1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:mercury-fem":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0540f8b3-f896-416c-a007-3a717fb74673",e._sentryDebugIdIdentifier="sentry-dbid-0540f8b3-f896-416c-a007-3a717fb74673")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8362],{2767:(e,t,a)=>{a.d(t,{l:()=>r});async function r(e){if(!e)return!1;try{var t;if(null==(t=navigator)?void 0:t.clipboard)return await navigator.clipboard.writeText(e),!0;let a=document.createElement("textarea");a.value=e,Object.assign(a.style,{position:"fixed",top:0,left:0,opacity:0}),document.body.appendChild(a),a.focus(),a.select();try{if(!document.execCommand("copy"))throw Error("Copy command failed");return!0}catch(e){return console.error("Fallback copy failed:",e),!1}finally{document.body.removeChild(a)}}catch(e){return console.error("Copy failed:",e),!1}}},8850:(e,t,a)=>{a.d(t,{default:()=>g});var r=a(95155),n=a(12115),l=a(85887),i=a(66942),o=a(15159),s=a(19214),c=a(27493),u=a(12429);function d(e){let{onSubmit:t,onReset:a,control:n}=e,{wrapper:l,form:i,formFields:d}=(0,s.N6)();return(0,r.jsx)("div",{className:l(),children:(0,r.jsxs)("form",{className:i(),onSubmit:t,children:[(0,r.jsxs)("div",{className:d(),children:[(0,r.jsx)(u.A,{name:"startingCashBalance",control:n,textInputProps:{label:"Starting cash balance",prefix:"$"}}),(0,r.jsx)(u.A,{name:"endingCashBalance",control:n,textInputProps:{label:"Ending cash balance",prefix:"$"}}),(0,r.jsx)(u.A,{name:"months",control:n,textInputProps:{cleaveOptions:{numeral:!0,numeralPositiveOnly:!0,numeralDecimalScale:0},inputMode:"numeric",label:"Number of months",tooltip:{content:"Amount of months passed between the starting and ending cash balance.",variant:"rich"}}})]}),(0,r.jsx)(o.Hg,{className:"flex gap-s8",primaryButtonProps:c.H5,secondaryButtonProps:{...c.sY,onClick:a}})]})})}var m=a(95154);let f=m.Ik({startingCashBalance:c.Pq,endingCashBalance:c.Pq,months:m.ai("Enter a valid number").min(1,{message:"Enter a number greater than ".concat(0)}).max(360,{message:"Enter a number less than ".concat(360)})});var p=a(88980);function h(e){let{burnRate:t,runway:a}=e,n=(0,p.UY)(t),l=null!==a?"".concat((0,p.cy)(a,{min:0,max:1})).concat(null===a?"":1===a?" month":" months"):null;return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.KV,{hintProps:{content:"Average rate of cash spent per month.",variant:"rich"},label:"Burn rate per month",text:n,hasBottomBorder:!0,hasAnimation:!0}),(0,r.jsx)(o.KV,{hintProps:{content:"Months until cash is exhausted. A negative value indicates cash gain.",variant:"rich"},label:"Cash runway",text:l,hasAnimation:!0})]})}function g(){let{control:e,handleSubmit:t,reset:a}=(0,l.useForm)({mode:"onSubmit",resolver:(0,i.u)(f)}),[o,c]=(0,n.useState)({burnRate:null,runway:null});return(0,r.jsx)("div",{className:(0,s.Lb)(),children:(0,r.jsxs)("div",{className:(0,s.tJ)(),children:[(0,r.jsx)(d,{control:e,onSubmit:t(e=>{c(function(e){let{startingCashBalance:t,endingCashBalance:a,months:r}=e,n=(t-a)/r;return{burnRate:n,runway:a/n}}(e))}),onReset:()=>{a(),c({burnRate:null,runway:null})}}),(0,r.jsx)(h,{burnRate:o.burnRate,runway:o.runway})]})})}},12429:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(95155),n=a(22544),l=a(15159),i=a(88980);let o={numeral:!0,numeralPositiveOnly:!0,numeralDecimalScale:2};function s(e){let{name:t,control:a,textInputProps:s}=e;return(0,r.jsx)(n.xI,{name:t,control:a,render:e=>{var t,a;let{field:n,fieldState:c}=e;return(0,r.jsx)(l.D7,{...n,cleaveOptions:o,onChange:e=>{n.onChange((0,i.ZL)(e.target.value))},value:null!=(a=n.value)?a:"",errorMessage:null==(t=c.error)?void 0:t.message,inputMode:"decimal",...s})}})}},12701:(e,t,a)=>{a.d(t,{VimeoEmbed:()=>i});var r=a(95155),n=a(58941);let l=(0,a(67909).default)(()=>Promise.all([a.e(490),a.e(9736)]).then(a.t.bind(a,39736,23)),{loadableGenerated:{webpack:()=>[39736]},ssr:!1}),i=e=>{let{url:t}=e;return(0,r.jsx)(n.A,{borderRadius:"0px",aspectRatio:"16:9",children:(0,r.jsx)(l,{"data-chromatic":"ignore",config:{playerOptions:{controls:!0}},url:t,width:"100%",height:"100%"})})}},14330:(e,t,a)=>{a.d(t,{D2:()=>s,G0:()=>c,Oj:()=>i,Xf:()=>o,eE:()=>l,se:()=>u});var r=a(61760),n=a(27750);let l="fem_anonymous_user_id",i="_ga",o="_fbp",s="analytics_session_id",c="lastLogin";function u(){let e="userLoggedIn";switch(n._K.NEXT_PUBLIC_BACKEND_SOURCE){case"production":return e;case"staging":case"localhost":case"mock":return"".concat(e,"_").concat(n._K.NEXT_PUBLIC_BACKEND_SOURCE);default:return(0,r.$p)(n._K.NEXT_PUBLIC_BACKEND_SOURCE),""}}},19214:(e,t,a)=>{a.d(t,{Lb:()=>l,N6:()=>o,tJ:()=>i});var r=a(35741),n=a(76970);let l=(0,r.tv)({extend:n.Vg,base:"mx-auto bg-background-default py-gap-2xl font-sans"}),i=(0,r.tv)({extend:n.ux,base:"grid divide-border-frosted rounded-xl bg-surface-elevated shadow-[0_10px_16px_0px_rgba(28,28,35,0.02),0_6px_10px_0px_rgba(28,28,35,0.04),0_0px_3px_0px_rgba(28,28,35,0.09)] max-md:divide-y md:grid-cols-2 md:divide-x",defaultVariants:{size:"max"}}),o=(0,r.tv)({slots:{wrapper:"p-gap-lg text-text-default",form:"flex h-full flex-col justify-between gap-y-gap-xl",formFields:"flex flex-col gap-y-s12 *:max-w-full"}})},23953:(e,t,a)=>{a.d(t,{g:()=>l});var r=a(95155),n=a(3495);function l(e){let{data:t,...a}=e,l=t.image,i=null==l?void 0:l.responsiveImage;return i?(0,r.jsx)(n.k,{data:i,...a}):null}},26372:(e,t,a)=>{a.d(t,{Q:()=>o,default:()=>s});var r=a(95155),n=a(20063),l=a(12115);let i=(0,l.createContext)(null);function o(){let e=(0,l.use)(i);if(!e)throw Error("useNavigationHistory must be used within a NavigationHistoryProvi
1der");return e}function s(e){let{children:t}=e,[a,o]=(0,l.useState)([]),s=(0,n.usePathname)();return(0,l.useEffect)(()=>{o(e=>[...e,window.location.href])},[s]),(0,r.jsx)(i,{value:{visitedURLs:a,getPreviousURL:function(){if(!(a.length<2))return a[a.length-2]}},children:t})}},27493:(e,t,a)=>{a.d(t,{H5:()=>i,Pq:()=>l,sY:()=>o});var r=a(95154);let n=(0,a(96064).r)(1e12,{withDollarSign:!0,neverShowCents:!0,withDecimals:0}),l=r.ai("Enter a valid amount").max(1e12,{message:"Enter an amount less than ".concat(n)}),i={type:"submit",children:"Get results"},o={contentType:"icon",iconProps:{iconType:"arrow-rotate-right"},tooltip:"Reset calculator","aria-label":"Reset calculator",type:"button"}},27868:(e,t,a)=>{a.d(t,{YoutubeEmbed:()=>i});var r=a(95155),n=a(58941);let l=(0,a(67909).default)(()=>Promise.all([a.e(490),a.e(2033)]).then(a.t.bind(a,92033,23)),{loadableGenerated:{webpack:()=>[92033]},ssr:!1}),i=e=>{let{url:t}=e;return(0,r.jsx)(n.A,{aspectRatio:"16:9",borderRadius:"0px",children:(0,r.jsx)(l,{"data-chromatic":"ignore",url:t,width:"100%",height:"100%",controls:!0})})}},28058:(e,t,a)=>{a.d(t,{T:()=>i});var r=a(95155),n=a(17129),l=a(46072);function i(e){let{children:t,theme:a}=e,i=a.name in l.IU?a.name:"neutral";return(0,r.jsx)(n.DX,{className:l.IU[i],children:t})}},28751:(e,t,a)=>{a.d(t,{LinkedInEmbed:()=>l});var r=a(95155);let n=(0,a(67909).default)(()=>a.e(2614).then(a.t.bind(a,12614,23)).then(e=>e.LinkedInEmbed),{loadableGenerated:{webpack:()=>[12614]}}),l=e=>{let{height:t,url:a}=e;return(0,r.jsx)(n,{"data-chromatic":"ignore",url:a,width:"100%",height:t})}},40700:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(95155),n=a(23953),l=a(78671),i=a(46072);let o=e=>{let{data:t,aspectRatio:a,datoImageProps:o,datoVideoProps:s}=e,{asset:c}=t;switch(c.__typename){case"ImageBlockRecord":return(0,r.jsx)(n.g,{data:c,...o});case"VideoBlockRecord":return(0,r.jsx)(l.default,{data:c,controlsTheme:c.controlsTheme&&c.controlsTheme.name in i.IU?c.controlsTheme.name:"neutral",aspectRatio:a,...s});default:return null}}},40989:(e,t,a)=>{a.d(t,{InstagramEmbed:()=>l});var r=a(95155);let n=(0,a(67909).default)(()=>a.e(2614).then(a.t.bind(a,12614,23)).then(e=>e.InstagramEmbed),{loadableGenerated:{webpack:()=>[12614]},ssr:!1}),l=e=>{let{url:t}=e;return(0,r.jsx)(n,{"data-chromatic":"ignore",captioned:!0,url:t,width:"100%",height:"100%"})}},44527:(e,t,a)=>{a.d(t,{SpotifyEmbed:()=>n});var r=a(95155);let n=e=>{let{url:t}=e,a=new URL(t);return(0,r.jsx)("iframe",{"data-chromatic":"ignore",style:{borderRadius:"12px"},src:"https://open.spotify.com/embed".concat(a.pathname,"?theme=0"),width:"100%",height:"152",frameBorder:"0",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy"})}},60597:(e,t,a)=>{a.d(t,{SoundCloudEmbed:()=>l});var r=a(95155);let n=(0,a(67909).default)(()=>Promise.all([a.e(490),a.e(8536)]).then(a.t.bind(a,58536,23)),{loadableGenerated:{webpack:()=>[58536]},ssr:!1}),l=e=>{let{url:t}=e;return(0,r.jsx)(n,{"data-chromatic":"ignore",url:t,width:"100%",height:"450"})}},63009:(e,t,a)=>{a.d(t,{XEmbed:()=>i});var r=a(95155),n=a(35741);let l=(0,a(67909).default)(()=>a.e(2614).then(a.t.bind(a,12614,23)).then(e=>e.XEmbed),{loadableGenerated:{webpack:()=>[12614]}}),i=e=>{let{url:t,className:a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("flex justify-center",a),children:(0,r.jsx)(l,{"data-chromatic":"ignore",className:"max-w-550 min-w-260",url:t,width:"100%",height:"100%"})})}},66081:(e,t,a)=>{a.d(t,{o:()=>l});var r=a(14330),n=a(72378);function l(){let e=(0,r.se)();return!!(e&&n.A.get(e))}},78671:(e,t,a)=>{a.d(t,{default:()=>m});var r=a(95155),n=a(15239),l=a(12115),i=a(15159),o=a(35741),s=a(26785),c=a(93487),u=a(27987);let d=(0,l.lazy)(()=>Promise.all([a.e(6163),a.e(6150),a.e(6921)]).then(a.bind(a,6921))),m=e=>{var t,a;let{data:m,aspectRatio:f,classNames:p,isOverlay:h,preRenderVideo:g=!1}=e,x=(0,l.useRef)(null),b=(0,c.K)(x,{rootMargin:"100%",once:!0});if(!(null==m||null==(t=m.video)?void 0:t.video))return(0,s.t)("Dato video asset missing video data",{metadata:{data:m}}),null;let{thumbnailUrl:v,width:y}=m.video.video,w=Math.min(null!=y?y:1920,1920),{width:_,height:j,url:k,blurUpThumb:N}=(null==(a=m.poster)?void 0:a.url)?m.poster:{...m.video.video,url:"".concat(v,"?time=0&width=").concat(w)},P=N&&"none"!==f?(0,r.jsx)(i.Hj,{className:"col-start-1 col-end-auto row-start-1 row-end-auto h-full min-h-0",children:(0,r.jsx)(n.default,{src:N,alt:"",width:null!=_?_:void 0,height:null!=j?j:void 0})}):null,C=(0,r.jsx)("div",{className:"col-start-1 col-end-auto row-start-1 row-end-auto h-full min-h-0",children:(0,r.jsx)(i.OO,{title:"Failed to load",body:"Try refreshing the page",alignment:"center",topPadding:"s9"})});return(0,r.jsxs)("div",{ref:x,className:(0,o.cn)("grid h-full min-h-0 w-full",h&&"grid-rows-1",
1null==p?void 0:p.container),children:[P,(g||b)&&(0,r.jsx)("div",{className:"col-start-1 col-end-auto row-start-1 row-end-auto h-full min-h-0",children:(0,r.jsx)("div",{className:"h-full",children:(0,r.jsx)(u.tH,{fallback:null!=P?P:C,onError:e=>(0,s.t)("Unable to play Dato video",{caughtError:e}),children:(0,r.jsx)(l.Suspense,{fallback:P,children:(0,r.jsx)(d,{...e,posterUrl:k})})})})})]})}},78873:(e,t,a)=>{a.d(t,{default:()=>P});var r=a(95155),n=a(12115),l=a(85887),i=a(66942),o=a(15159),s=a(88980);function c(e){let{priceOfItem:t,grossProfit:a,grossMargin:n}=e,l=(0,s.UY)(t),i=(0,s.UY)(a),c=null!==n?"".concat((0,s.cy)(n,{min:2,max:2}),"%"):null;return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.KV,{hintProps:{content:"The dollar amount you should sell your product for to achieve the designated markup.",variant:"rich"},label:"Price of item",text:l,hasBottomBorder:!0,hasAnimation:!0}),(0,r.jsx)(o.KV,{hintProps:{content:"The dollar amount of profit you earn from selling your product at the designated markup.",variant:"rich"},label:"Gross profit",text:i,hasBottomBorder:!0,hasAnimation:!0}),(0,r.jsx)(o.KV,{hintProps:{content:"The percentage of income remaining after costs are deducted from revenue at the designated markup.",variant:"rich"},label:"Gross margin",text:c,hasAnimation:!0})]})}function u(e){let{grossMargin:t}=e,a=null!==t?"".concat((0,s.cy)(t,{min:2,max:2}),"%"):null;return(0,r.jsx)("div",{children:(0,r.jsx)(o.KV,{hintProps:{content:"The percentage of revenue remaining after subtracting the Cost of Goods Sold (COGS).",variant:"rich"},label:"Gross margin",text:a,hasAnimation:!0})})}var d=a(19214),m=a(95154),f=a(25999),p=a(27493);let h="markup-based-form",g="revenue-based-form",x={grossMargin:null,priceOfItem:null,grossProfit:null},b={grossMargin:null},v="".concat((0,f.Q)(1e3,0,!0),"%"),y=m.Ik({costOfItem:p.Pq,markup:m.ai("Enter a valid number").max(1e3,{message:"Enter a number less than ".concat(v)})}),w=m.Ik({salesRevenue:p.Pq,costOfGoodsSold:p.Pq});var _=a(12429);function j(e){let{control:t,onSubmit:a}=e,{formFields:n}=(0,d.N6)();return(0,r.jsxs)("form",{id:h,className:n({className:"pt-gap-md"}),onSubmit:a,children:[(0,r.jsx)(_.A,{name:"costOfItem",control:t,textInputProps:{label:"Cost of item ($)",prefix:"$",tooltip:{content:"The total amount of money it takes to manufacture your product.",variant:"rich"}}}),(0,r.jsx)(_.A,{name:"markup",control:t,textInputProps:{label:"Markup (%)",suffix:"%",tooltip:{content:"The percentage youâd like to add to the selling price of your product.",variant:"rich"}}})]})}function k(e){let{control:t,onSubmit:a}=e,{formFields:n}=(0,d.N6)();return(0,r.jsxs)("form",{id:g,className:n({className:"pt-gap-md"}),onSubmit:a,children:[(0,r.jsx)(_.A,{name:"salesRevenue",control:t,textInputProps:{label:"Sales Revenue ($)",prefix:"$",tooltip:{content:"The total amount of money earned from sales before any deductions.",variant:"rich"}}}),(0,r.jsx)(_.A,{name:"costOfGoodsSold",control:t,textInputProps:{label:"Cost of Goods Sold ($)",prefix:"$",tooltip:{content:"The total amount of money it takes to manufacture your product.",variant:"rich"}}})]})}function N(e){let{activeTab:t,setActiveTab:a,markupBasedFormControl:n,revenueBasedFormControl:l,onMarkupBasedFormSubmit:i,onRevenueBasedFormSubmit:s,onReset:c}=e,{wrapper:u,form:m}=(0,d.N6)();return(0,r.jsx)("div",{className:u(),children:(0,r.jsxs)("div",{className:m(),children:[(0,r.jsx)(o.fl,{tabs:[{key:"markup",label:"Markup-based",content:(0,r.jsx)(j,{control:n,onSubmit:i})},{key:"revenue",label:"Revenue-based",content:(0,r.jsx)(k,{control:l,onSubmit:s})}],onValueChange:e=>a(e)}),(0,r.jsx)(o.Hg,{className:"flex gap-s8",primaryButtonProps:{...p.H5,form:"markup"===t?h:g},secondaryButtonProps:{...p.sY,onClick:c}})]})})}function P(){let[e,t]=(0,n.useState)("markup"),a=(0,l.useForm)({mode:"onSubmit",resolver:(0,i.u)(y)}),o=(0,l.useForm)({mode:"onSubmit",resolver:(0,i.u)(w)}
1),[s,m]=(0,n.useState)(x),[f,p]=(0,n.useState)(b);return(0,r.jsx)("div",{className:(0,d.Lb)(),children:(0,r.jsxs)("div",{className:(0,d.tJ)(),children:[(0,r.jsx)(N,{activeTab:e,setActiveTab:t,markupBasedFormControl:a.control,revenueBasedFormControl:o.control,onMarkupBasedFormSubmit:a.handleSubmit(e=>{m(function(e){let{costOfItem:t,markup:a}=e,r=(a/100+1)*t,n=r-t;return{grossMargin:r>0?n/r*100:0,priceOfItem:r,grossProfit:n}}(e))}),onRevenueBasedFormSubmit:o.handleSubmit(e=>{p(function(e){let{salesRevenue:t,costOfGoodsSold:a}=e;return 0===t?{grossMargin:0}:{grossMargin:(t-a)/t*100}}(e))}),onReset:()=>{"markup"===e?(a.reset(),m(x)):(o.reset(),p(b))}}),(0,r.jsxs)("div",{className:"grid *:col-start-1 *:row-start-1",children:[(0,r.jsx)("div",{className:"opacity-0 transition-[visibility] aria-hidden:invisible aria-hidden:animate-fadeOut aria-[hidden=false]:animate-fadeIn","aria-hidden":"markup"!==e,children:(0,r.jsx)(c,{...s})}),(0,r.jsx)("div",{className:"opacity-0 transition-[visibility] aria-hidden:invisible aria-hidden:animate-fadeOut aria-[hidden=false]:animate-fadeIn","aria-hidden":"revenue"!==e,children:(0,r.jsx)(u,{...f})})]})]})})}},82852:(e,t,a)=>{a.d(t,{J:()=>i});var r=a(95155),n=a(15159),l=a(46072);function i(e){let{children:t,theme:a,applyGlobally:i,darkThemeOnly:o}=e,s=o?(0,l.dj)(a.name):(0,l.x3)(a.name);return(0,r.jsx)(n.Or,{theme:s,applyGlobally:i,children:t})}},88980:(e,t,a)=>{a.d(t,{UY:()=>i,ZL:()=>l,cy:()=>o});var r=a(25999),n=a(74719);function l(e){if(""===e)return null;let t=Number(e.replace(/[^\d.]/g,""));return isNaN(t)?null:t}function i(e){return null===e?null:(0,n._f)(e,!0,2)}function o(e,t){return null===e?null:(0,r.Q)(e,{min:t.min,max:t.max},!0)}},90656:(e,t,a)=>{a.d(t,{SignupAnalytics:()=>b,SignupAnalyticsProvider:()=>x,q:()=>g});var r=a(95155),n=a(72378),l=a(12115),i=a(14330),o=a(30073),s=a(26785);let c=e=>"".concat(u).concat(e),u="customer-referral-";var d=a(97615);let m=[{queryParam:"gclid",fieldName:"gclid",columnName:"gclid",collectMode:"QueryParam"},{queryParam:"msclkid",fieldName:"msclkid",columnName:"msclkid",collectMode:"QueryParam"},{queryParam:"twclid",fieldName:"twclid",columnName:"twclid",collectMode:"QueryParam"},{queryParam:"irclickid",fieldName:"irclickid",columnName:"irclickid",collectMode:"QueryParam"},{queryParam:"li_fat_id",fieldName:"linkedinClickId",columnName:"linkedin_click_id",collectMode:"QueryParam"},{queryParam:"rdt_cid",fieldName:"redditClickId",columnName:"reddit_click_id",collectMode:"QueryParam"},{queryParam:"fdrclid",fieldName:"funderaClickId",columnName:"fundera_click_id",collectMode:"QueryParam"},{queryParam:"subid",fieldName:"quicksproutClickId",columnName:"quicksprout_click_id",collectMode:"ConditionalSubid"},{queryParam:"fbclid",fieldName:"facebookClickId",columnName:"facebook_click_id",collectMode:"FbcConstruct"},{queryParam:"_fbp",fieldName:"facebookPixelId",columnName:"facebook_pixel_id",collectMode:"Cookie"},{queryParam:"_ga",fieldName:"gaClientId",columnName:"ga_client_id",collectMode:"Cookie"},{queryParam:"_ga_",fieldName:"gaSessionId",columnName:"ga_session_id",collectMode:"CookiePrefix"},{queryParam:"oppref",fieldName:"oppref",columnName:"oppref",collectMode:"QueryParam"},{queryParam:"gbraid",fieldName:"googleGbraidClickId",columnName:"google_gbraid_click_id",collectMode:"QueryParam"},{queryParam:"wbraid",fieldName:"googleWbraidClickId",columnName:"google_wbraid_click_id",collectMode:"QueryParam"}].filter(function(e){switch(e.collectMode){case"QueryParam":return!0;case"Cookie":case"CookiePrefix":case"FbcConstruct":case"ConditionalSubid":return!1;default:return(0,d.$)(e.collectMode)}}),f=e=>"string"==typeof e?e:e instanceof Array&&"string"==typeof e[0]?e[0]:void 0,p=new Set(["Failed to fetch","Load failed","NetworkError when attempting to fetch resource."]),h=(0,l.createContext)(null);function g(){let e=(0,l.use)(h);if(!e)throw Error("useSignupAnalytics must be used within a SignupAnalyticsProvider");return e}function x(e){let{children:t}=e,[a,n]=(0,l.useState)(null);return(0,r.jsx)(h,{value:{data:a,setData:n},children:t})}function b(){let{setData:e}=g();return(0,l.useEffect)(()=>{let t=n.A.get(i.eE),a=n.A.get(i.G0);t&&o.Analytics._identify({femAnonymousUserId:t,...a?{hasLoggedInPreviously:!!a}:{}}
1);let r=fetch("/api/referral-attributions",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json","X-CSRF-PROTECT":"1"},credentials:"include",body:JSON.stringify(function(){let e=new URLSearchParams(window.location.search).entries(),t={};for(let[a,r]of e){let e=f(r);e&&(t[a]=e)}let a={gaClientId:(()=>{let e=n.A.get(i.Oj);return e?e.split(".").slice(-2).join("."):e})(),gaSessionId:(()=>{let e=document.cookie.split("; ").filter(e=>e.startsWith("_ga_"));if(0===e.length)return;let t=e.map(e=>{let t=e.split("=")[1],a=null==t?void 0:t.match(/\.s(\d+)\$/),r=null==t?void 0:t.match(/t(\d+)/);return{sessionId:null==a?void 0:a[1],timestamp:(null==r?void 0:r[1])?parseInt(r[1],10):0}}).filter(e=>e.sessionId);if(0!==t.length)return t.reduce((e,t)=>t.timestamp>e.timestamp?t:e).sessionId})(),facebookPixelId:n.A.get(i.Xf),landingPage:window.location.href,referralPartnerCallsign:function(){let e=window.location.pathname.split("/");if(e.includes("peak-season"))return"mercury-peak-season-2025";if(e.includes("partner")){let t=e.indexOf("partner");return e[t+1]}if(e.includes("r")){let t=e.indexOf("r");return c(e[t+1])}if(e.includes("share")){let t=e.indexOf("share");return c(e[t+1])}}()};if(Object.keys(t).length>0){for(let{queryParam:e,fieldName:r}of(null!==t.utm_campaign&&void 0!==t.utm_campaign&&(a.campaign=t.utm_campaign),null!==t.utm_source&&void 0!==t.utm_source&&(a.source=t.utm_source),null!==t.utm_medium&&void 0!==t.utm_medium&&(a.medium=t.utm_medium),null!==t.utm_term&&void 0!==t.utm_term&&(a.term=t.utm_term),null!==t.utm_content&&void 0!==t.utm_content&&(a.content=t.utm_content),m)){let n=t[e];n&&(a[r]=n)}if(t.fbclid){let e=new Date;a.facebookClickId="fb.1.".concat(e.getTime(),".").concat(t.fbclid)}"quicksprout"===t.utm_source&&t.subid&&(a.quicksproutClickId=t.subid)}let r=function(){let e;if(""===document.referrer)e=void 0;else try{let t=new URL(document.referrer);e=t.host.replace(/^www./,"")+t.pathname}catch(t){e=document.referrer}return e}();return r&&(a.referrerUrl=r),a}())});!async function(){try{let a=await r;if(!a.ok)throw Error("Attribution error! status: ".concat(a.status));let n=await a.json();if(e(n),"skippedForSignedInUser"===n.tag||!(n.contents.femAnonymousUserId||t))return;await o.Analytics._identify(n.contents)}catch(e){if(e instanceof Error&&(p.has(e.message)||"AbortError"===e.name))return;(0,s.t)("Unable to collect signup analytics",{caughtError:e instanceof Error?e:void 0,metadata:{source:"SignupAnalytics",endpoint:"femReferralAttribution"},groupingHash:"signup-analytics-collect"})}}()},[]),null}},90770:(e,t,a)=>{a.d(t,{default:()=>b});var r=a(95155),n=a(4489),l=a(28721),i=a.n(l),o=a(58715),s=a.n(o),c=a(20063),u=a(12115),d=a(26372),m=a(90656),f=a(27750),p=a(7918),h=a(15159),g=a(30073),x=a(66081);let b=e=>{let{url:t}=e,[a,l]=(0,u.useState)(),o=(0,u.useRef)(null),{data:b}=(0,m.q)(),{getPreviousURL:v}=(0,d.Q)(),y=(0,c.useSearchParams)(),[w,_]=(0,u.useState)(""),j=(0,u.useCallback)(()=>{var e;let a=new URL(t),r=(null==b?void 0:b.tag)==="data"?{utm_campaign:b.contents.campaign||"",utm_source:b.contents.source||"",utm_medium:b.contents.medium||"",utm_term:b.contents.term||"",utm_content:b.contents.content||"",referrer_url:b.contents.referrerUrl||""}:{},n={last_visited_page:(null==(e=v())?void 0:e.split("?")[0])||"",is_logged_in:(0,x.o)()},l={email:sessionStorage.getItem("email")||""};return a.search=new URLSearchParams([...Object.entries(r),...Object.entries(n),...Object.entries({shouldAutoFocus:0}),...Object.entries(l),...Array.from(y.entries())]).toString(),a.toString()},[t,v,y,b]);return((0,u.useEffect)(()=>{_(j())},[j]),!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{attributes:!0,attributeFilter:["data-global-theme"]};(0,u.useEffect)(()=>{let a=document.getElementById("theme-switch-scroller");if(a){let r=new MutationObserver(e);return r.observe(a,t),()=>{r.disconnect()}}},[e,t])}((0,u.useCallback)(e=>{let t=e[0].target.dataset.globalTheme;l(e=>e!==t?t:e)},[])),(0,u.useEffect)(()=>{var e;null==(e=o.current)||e.sendMessage(a||"neutral-theme")},[a]),w)?(0,r.jsx)(n.A,{license:f._K.NEXT_PUBLIC_IFRAME_RESIZER_LICENSE_KEY,src:w,style:{width:"100%",height:"100%"},className:"rounded-xl shadow-[0px_0px_3px_0px_#1C1C2217,0px_6px_10px_0px_#1C1C220A,0px_10px_16px_0px_#1C1C2205]",forwardRef:o,scrolling:!0,onMessage:e=>{let{message:a,iframe:r}=e;if((null==a?void 0:a.type)==="submit"){let e=t.startsWith("".concat(p.f9,"/forms/"))?t.split("".concat(p.f9,"/forms/")).pop():"";if(g.Analytics.trackClick({type:s()(e),location:"webform-module"}),(null==a?void 0:a.isSuccessful)&&(r.style.maxHeight="500px"),null==a?void 0:a.theme)for(let e=0;e<50;e++)i()(()=>{var e;null==(e=o.current)||e.sendMessage(a.theme||"neutral-theme")},15*e)}}}):(0,r.jsx)(h.oJ,{className:"justify-center"})}},95976:(e,t,a)=>{a.r(t),a.d(t,{HgArticleWYSIWYGMediaAsset:()=>s,HgMediaAsset:()=>o});var r=a(95155),n=a(15159),l=a(35741);let i=(0,l.tv)({slots:{wrapper:"",caption:""},variants:{size:{xs:{wrapper:"col-span-10 col-start-2 md:col-span-6 md:col-start-4 lg:col-start-6"},small:{wrapper:"col-span-full md:col-span-8 md:col-start-3 lg:col-start-5"},medium:{wrapper:"col-span-full lg:col-span-12 lg:col-start-3"},large:{wrapper:"col-span-full"},xl:{caption:"px-gap-lg",wrapper:"col-span-full -mx-gap-lg w-screen 3xl:mx-[calc(-100vw/2+var(--grid-max-width)/2-var(--gap-lg))]"}}}}),o=e=>{let{asset:t,assetId:a,aspectRatio:i,caption:o,credit:s,showLightboxButton:c=!0,openLightbox:u,classNames:d,controlsTheme:m,borderRadius:f="0px"}=e;return(0,r.jsxs)("figure",{className:(0,l.cn)("flex h-fit flex-col space-y-s8",null==d?void 0:d.wrapper),children:[(0,r.jsxs)("div",{className:"relative flex h-full min-h-0 w-full max-w-full flex-1 items-center justify-center",children:[(0,r.jsx)(n.NR,{aspectRatio:i,borderRadius:f,children:t}),c&&(0,r.jsx)(n.Ce,{theme:m,children:(0,r.jsx)(n.aA,{variant:"frosted",contentType:"icon",iconProps:{iconType:"exp
1and"},onClick:()=>{u&&u(a)},"aria-label":"Open media gallery",className:"pointer-events-auto absolute right-s12 bottom-s12"})})]}),(o||s)&&(0,r.jsxs)("figcaption",{className:(0,l.cn)("flex flex-row flex-wrap justify-between gap-s4 arcadia-body-3 text-text-emphasized",null==d?void 0:d.caption),children:[o,s&&(0,r.jsx)("span",{className:"text-text-subdued",children:s})]})]})},s=e=>{let{classNames:t,...a}=e,{wrapper:n,caption:l}=i({size:a.size});return(0,r.jsx)(o,{...a,classNames:{wrapper:n({class:null==t?void 0:t.wrapper}),caption:l({class:null==t?void 0:t.caption})}})}},96064:(e,t,a)=>{a.d(t,{r:()=>l});var r=a(74719);let n=[["Quint.",1e18],["Quad.",1e15],["T",1e12],["B",1e9],["M",1e6],["K",1e3]],l=(e,t)=>{if(0!==e&&!e)return"";let a=Math.abs(e),l=parseFloat(a.toPrecision(3)),i=n.find(e=>{let[t,a]=e;return a<=l});if(i){if(t.withDecimals&&t.withDecimals>0){let r=10**t.withDecimals;return"".concat(e<0?"-":"").concat(t.withDollarSign?"$":"").concat(Math.round(a/i[1]*r)/r).concat(i[0])}return(0,r._f)(e/i[1],t.withDollarSign,0)+i[0]}return a>=1e3?(0,r._f)(e,t.withDollarSign,0):(0,r._f)(e,t.withDollarSign,2*!t.neverShowCents)}},97163:(e,t,a)=>{a.d(t,{default:()=>_});var r=a(95155),n=a(12115),l=a(85887),i=a(66942),o=a(15159),s=a(35741),c=a(89212),u=a(80972);let d=(0,s.tv)({slots:{wrapper:"flex flex-col gap-s8 border-solid border-border-frosted p-gap-lg",outputText:"arcadia-body-1"},variants:{bottomPadding:{default:{wrapper:"pb-gap-lg"},large:{wrapper:"pb-gap-2xl"}},hasBottomBorder:{true:{wrapper:"border-b"}}}}),m={excellent:"green",good:"purple",fair:"beige",poor:"orange"},f=e=>{let{grade:t,text:a,bottomPadding:n="default",hasBottomBorder:l}=e,{wrapper:i,outputText:o}=d({bottomPadding:n,hasBottomBorder:l});return(0,r.jsxs)("div",{className:i(),children:[(0,r.jsx)(u.Ce,{theme:m[t],children:(0,r.jsx)(c.i,{id:"interpretation-output-tag",body:t.charAt(0).toUpperCase()+t.slice(1)})}),(0,r.jsx)("p",{className:o(),children:a})]})};var p=a(88980);function h(e){let{magicNumber:t,grade:a,text:n}=e,l=(0,p.cy)(t,{min:2,max:2});return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.KV,{hintProps:{content:"This number represents how efficiently youâre converting sales and marketing efforts into recurring revenue.",variant:"rich"},label:"SaaS magic number",text:l,hasBottomBorder:null!==t,hasAnimation:!0}),(0,r.jsx)("div",{"aria-hidden":null===t,className:"grid grid-rows-[0fr] opacity-0 transition-[grid-template-rows,opacity] duration-300 ease-in-out aria-[hidden=false]:grid-rows-[1fr] aria-[hidden=false]:opacity-100 md:transition-opacity",children:(0,r.jsx)("div",{className:"overflow-hidden",children:a&&n&&(0,r.jsx)(f,{grade:a,text:n})})})]})}var g=a(19214),x=a(27493),b=a(12429);function v(e){let{onSubmit:t,onReset:a,control:n}=e,{wrapper:l,form:i,formFields:s}=(0,g.N6)();return(0,r.jsx)("div",{className:l(),children:(0,r.jsxs)("form",{className:i(),onSubmit:t,children:[(0,r.jsxs)("div",{className:s(),children:[(0,r.jsx)(b.A,{name:"currentQuarterRevenue",control:n,textInputProps:{label:"Current quarter revenue",prefix:"$"}}),(0,r.jsx)(b.A,{name:"priorQuarterRevenue",control:n,textInputProps:{label:"Prior quarter revenue",prefix:"$"}}),(0,r.jsx)(b.A,{name:"priorQuarterSalesAndMarketingSpend",control:n,textInputProps:{label:"Prior quarter sales & marketing spend",prefix:"$"}})]}),(0,r.jsx)(o.Hg,{className:"flex gap-s8",primaryButtonProps:x.H5,secondaryButtonProps:{...x.sY,onClick:a}})]})})}function y(e,t){if(null!==t){var a;let{grade:e,text:r}=(a=t)>1.5?{grade:"excellent",text:"Your sales and marketing spend is highly effective."}:a>1?{grade:"good",text:"Your sales and marketing spend is effective."}:a>.5?{grade:"fair",text:"Your sales and marketing spend needs improvement."}:{grade:"poor",text:"Consider optimizing your sales and marketing strategies to increase efficiency."};return{magicNumber:t,grade:e,text:r}}return{...e,magicNumber:null}}let w=a(95154).Ik({currentQuarterRevenue:x.Pq,priorQuarterRevenue:x.Pq,priorQuarterSalesAndMarketingSpend:x.Pq});function _(){let{control:e,handleSubmit:t,reset:a}=(0,l.useForm)({mode:"onSubmit",resolver:(0,i.u)(w)}),[o,s]=(0,n.useReducer)(y,{magicNumber:null,grade:null,text:null});return(0,r.jsx)("div",{className:(0,g.Lb)(),children:(0,r.jsxs)("div",{className:(0,g.tJ)(),children:[(0,r.jsx)(v,{c
1ontrol:e,onSubmit:t(e=>{s(function(e){let{currentQuarterRevenue:t,priorQuarterRevenue:a,priorQuarterSalesAndMarketingSpend:r}=e;return 0===r&&0===a&&0===t?0:(t-a)*4/r}(e))}),onReset:()=>{a(),s(null)}}),(0,r.jsx)(h,{...o})]})})}}}]); 2//# sourceMappingURL=8362-1ace61d641892f94.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.