1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,693593,131992,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(270756),a=e.i(167881),i=e.i(561362),s=e.i(835882);e.i(540259);var l=e.i(911860),o=e.i(667668),c=e.i(630374),u=e.i(23750),d=e.i(643531),m=e.i(531278),f=e.i(299023),h=e.i(941388),p=e.i(647163),y=e.i(846696),x=e.i(292209),g=e.i(295519),b=e.i(724166),v=e.i(327147);let k=["Every feature","Every integration","Unlimited usage","Dedicated support"],S=null;function C({active:e,pricing:n,onSubscribed:a}){let{status:i}=(0,s.usePlan)(),c=i?.trialEligible?i.trial??s.TRIAL_FALLBACK:null,[u,d]=(0,r.useState)("monthly"),[f,h]=(0,r.useState)(1),[p,y]=(0,r.useState)(()=>(0,b.guessCountryCode)()),[g,v]=(0,r.useState)(null),[k,N]=(0,r.useState)(null),w=n.monthly,j=n.yearly;return(0,r.useEffect)(()=>{if(!e||g)return;let t=!1;return(async()=>{try{let e=await fetch("/api/billing/setup-intent",{method:"POST"}),r=await e.json();if(t)return;if(!e.ok||!r.clientSecret)return void N(r.error||"Failed to start checkout");v(r.clientSecret)}catch{t||N("Failed to start checkout")}})(),()=>{t=!0}},[e,g]),(0,t.jsx)(t.Fragment,{children:g?(0,t.jsx)(o.Elements,{stripe:(S||(S=(0,l.loadStripe)("pk_live_51OZq8YAqBhrGliNEoAgJqGGE00mGX63tSZt6wubjQkVdHmG2Q74aathG8AhxZ5c6xv6tBHL3OgVHk7EM1A1WJRci00GsKjKmGs")),S),options:{clientSecret:g,appearance:(0,x.buildStripeAppearance)()},children:(0,t.jsx)(T,{interval:u,onIntervalChange:d,seats:f,onSeatsChange:function(e){Number.isFinite(e)&&h(Math.min(Math.max(Math.trunc(e),1),500))},country:p,onCountryChange:y,monthly:w,yearly:j,trial:c,onSuccess:a,clientSecret:g})}):(0,t.jsx)("div",{className:"p-12 flex items-center justify-center min-h-[280px]",children:k?(0,t.jsx)("div",{className:"text-sm text-destructive text-center max-w-xs",children:k}):(0,t.jsx)(m.Loader2,{className:"h-5 w-5 animate-spin text-muted-foreground"})})})}function N({value:e,onChange:n}){let[a,i]=(0,r.useState)(null),[s,l]=(0,r.useState)(!1),o=a??String(e);function c(){let e=parseInt(o,10);Number.isFinite(e)&&n(e),i(null)}return(0,t.jsxs)("div",{className:"inline-flex items-center gap-0.5 rounded-full border border-border bg-white dark:bg-black p-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>n(e-1),disabled:e<=1,"aria-label":"Decrease users",className:"flex h-7 w-7 items-center justify-center rounded-full text-foreground/70 hover:text-foreground hover:bg-foreground
1/5 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:(0,t.jsx)(f.Minus,{className:"h-3.5 w-3.5",strokeWidth:2.5})}),(0,t.jsx)("label",{className:"group flex h-7 items-center text-sm font-medium cursor-text select-none",title:"Click to type the number of users",children:(0,t.jsx)("span",{className:(0,p.cn)("flex h-7 items-center rounded-full border px-2",s?"border-[var(--ring)]/60 bg-[var(--ring)]/10":"border-transparent group-hover:border-border group-hover:bg-foreground/[0.06]"),children:(0,t.jsx)("input",{type:"text",inputMode:"numeric","aria-label":"Number of users",value:o,onFocus:e=>{l(!0),e.currentTarget.select()},onChange:e=>i(e.target.value.replace(/[^0-9]/g,"").slice(0,3)),onBlur:()=>{l(!1),c()},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),c(),t.currentTarget.blur()):"Escape"===t.key?(i(null),t.currentTarget.blur()):"ArrowUp"===t.key?(t.preventDefault(),i(null),n(e+1)):"ArrowDown"===t.key&&(t.preventDefault(),i(null),n(e-1))},style:{width:`${Math.max(o.length,2)}ch`},className:"bg-transparent p-0 text-sm font-medium tabular-nums text-center outline-none selection:bg-[var(--ring)]/35 selection:text-foreground"})})}),(0,t.jsx)("button",{type:"button",onClick:()=>n(e+1),"aria-label":"Increase users",className:"flex h-7 w-7 items-center justify-center rounded-full text-foreground/70 hover:text-foreground hover:bg-foreground
1/5 transition-colors",children:(0,t.jsx)(h.Plus,{className:"h-3.5 w-3.5",strokeWidth:2.5})})]})}function w({value:e,onChange:r}){return(0,t.jsx)("div",{className:"inline-flex rounded-full border border-border bg-background p-0.5",children:(0,t.jsxs)("div",{className:"relative grid grid-cols-2 isolate",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,p.cn)("absolute inset-y-0 left-0 w-1/2 rounded-full bg-[var(--ring)] transition-transform duration-300 ease-out","yearly"===e&&"translate-x-full")}),(0,t.jsx)("button",{type:"button",onClick:()=>r("monthly"),className:(0,p.cn)("relative z-10 rounded-full px-4 py-1.5 text-sm font-medium transition-colors","monthly"===e?"text-white":"text-foreground/70 hover:text-foreground"),children:"Monthly"}),(0,t.jsx)("button",{type:"button",onClick:()=>r("yearly"),className:(0,p.cn)("relative z-10 rounded-full px-4 py-1.5 text-sm font-medium transition-colors","yearly"===e?"text-white":"text-foreground/70 hover:text-foreground"),children:"Yearly"})]})})}let j="rounded-[14px] [corner-shape:squircle] border border-border bg-transparent px-3 py-[11px] transition-colors focus-within:border-foreground
1/40 dark:bg-background";function T({interval:e,onIntervalChange:i,seats:s,onSeatsChange:l,country:c,onCountryChange:m,monthly:f,yearly:h,trial:p,onSuccess:x,clientSecret:b}){let S="yearly"===e?h:f,C=(0,o.useStripe)(),M=(0,o.useElements)(),A=(0,r.useMemo)(()=>{let e=document.createElement("span");e.style.cssText="position:absolute;visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=(t,r)=>{try{e.style.color="",e.style.color=t;let n=getComputedStyle(e).color;return n&&"rgba(0, 0, 0, 0)"!==n?n:r}catch{return r}},r=document.documentElement.classList.contains("dark"),n=t("var(--foreground)",r?"#F5F3EC":"#403F3D"),a=t("var(--destructive)","#C1503F");return e.remove(),{base:{color:n,fontSize:"14px",fontWeight:"500","::placeholder":{color:r?"rgba(245,243,236,0.45)":"rgba(64,63,61,0.45)"},iconColor:n},invalid:{color:a,iconColor:a}}},[]),[E,I]=(0,r.useState)(!1),[L,O]=(0,r.useState)(!1),[P,U]=(0,r.useState)(""),[$,F]=(0,r.useState)(!1),[B,G]=(0,r.useState)(null),K="yearly"===e?"year":"month";(0,r.useMemo)(()=>"yearly"===e?"Yearly":"Monthly",[e]);let R=S*s,D=(0,r.useMemo)(()=>B?B.percentOff?Math.round(R*(1-B.percentOff/100)*100)/100:B.amountOff?Math.max(0,R-B.amountOff/100):R:R,[R,B]),_=(0,r.useMemo)(()=>{if(!p)return 0;let e=p.weeklyPrice;return B?B.percentOff?Math.round(e*(1-B.percentOff/100)*100)/100:B.amountOff?Math.max(0,e-B.amountOff/100):e:e},[p,B]);async function H(){let e=P.trim();if(e){F(!0);try{let t=await fetch("/api/billing/validate-promo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})}),r=await t.json();if(!t.ok)return void y.toast.error(r.error||"Invalid code");G(r),y.toast.success(r.percentOff?`${r.percentOff}% off applied`:r.amountOff?`$${(r.amountOff/100).toFixed(2)} off applied`:"Discount applied")}finally{F(!1)}}}async function V(t){if(t.preventDefault(),C&&M){I(!0);try{let t=M.getElement(o.CardNumberElement);if(!t)return void y.toast.error("Card details unavailable");let{error:r,setupIntent:n}=await C.confirmCardSetup(b,{payment_method:{card:t,billing_details:{address:{country:c}}}});if(r){console.warn("[paywall] confirmCardSetup error",{code:r.code,declineCode:r.decline_code,type:r.type,paymentMethodType:r.payment_method?.type,message:r.message,fullError:r}),y.toast.error(r.message||"Card could not be saved");return}let a="string"==typeof n?.payment_method?n.payment_method:n?.payment_method?.id;if(!a)return void y.toast.error("Card was not saved");let i=await fetch("/api/billing/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interval:e,paymentMethodId:a,promotionCodeId:B?.id,quantity:s})}),l=await i.json();if(!i.ok)return void y.toast.error(l.error||"Failed to create subscription");if(l.clientSecret){let{error:e}=await C.handleNextAction({clientSecret:l.clientSecret});if(e)return void y.toast.error(e.message||"Payment failed")}y.toast.success(p?"You're in - your trial has started":"You're in - thanks for subscribing"),x()}finally{I(!1)}}}return(0,t.jsxs)("form",{onSubmit:V,className:"flex flex-col flex-1 min-h-0",children:[(0,t.jsxs)("div",{className:"px-6 pt-5 pb-4 border-b border-border/60 shrink-0",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold tracking-tight",children:p?`Start your $${p.weeklyPrice}-a-week trial`:"Subscribe to everything"}),(0,t.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:p?`One plan, all features. $${p.weeklyPrice} a week for up to ${p.weeks} weeks. Regular billing starts after that, cancel anytime before then.`:"One plan, all features. Add a payment method and click Pay."})]}),(0,t.jsxs)("div",{className:"grid grid-cols-12 gap-6 p-5 dark:bg-muted/40 flex-1 min-h-0 overflow-y-auto",children:[(0,t.jsxs)("div",{className:"col-span-12 md:col-span-7 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-medium text-foreground/70 mb-2",children:"Payment method"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-1.5 text-[13px] font-medium",children:"Card number"}),(0,t.jsx)("div",{className:j,children:(0,t.jsx)(o.CardNumberElement,{options:{style:A,showIcon:!0}})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-1.5 text-[13px] font-medium",children:"Expiration date"}),(0,t.jsx)("div",{className:j,children:(0,t.jsx)(o.CardExpiryElement,{options:{style:A}})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-1.5 text-[13px] font-medium",children:"Security code"}),(0,t.jsx)("div",{className:j,children:(0,t.jsx)(o.CardCvcElement,{options:{style:A}})})]})]})]}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("div",{className:"text-[13px] font-medium mb-1.5",children:"Country"}),(0,t.jsx)(g.CountrySelect,{value:c,onChange:m,modal:!0,className:"w-full rounded-[14px] [corner-shape:squircle] squircle-safari-fallback border-border bg-transparent hover:border-foreground
1/30 hover:bg-transparent dark:bg-background dark:hover:bg-background",container:null,contentClassName:"z-[200] bg-popover rounded-[14px] [corner-shape:squircle] squircle-safari-fallback"})]})]}),(0,t.jsx)("p",{className:"text-[11px] leading-relaxed text-muted-foreground",children:"By providing your card information, you allow boring plugins, LLC to charge your card for future payments in accordance with their terms."}),(0,t.jsxs)("div",{children:[!L&&!B&&(0,t.jsx)("button",{type:"button",onClick:()=>O(!0),className:"text-xs font-medium text-foreground/60 hover:text-foreground transition-colors",children:"Have a discount code?"}),L&&!B&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(u.Input,{variant:"default",value:P,onChange:e=>U(e.target.value.toUpperCase()),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),H())},placeholder:"Discount code",className:"h-9 max-w-[200px] uppercase",autoFocus:!0}),(0,t.jsxs)(a.Button,{type:"button",size:"sm",variant:"outline",onClick:H,disabled:$||!P.trim(),children:[$&&(0,t.jsx)(v.ButtonSpinner,{className:"mr-1.5"}),(0,t.jsx)(v.ShimmerLabel,{active:$,children:"Apply"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{O(!1),U("")},className:"text-xs text-foreground/50 hover:text-foreground",children:"Cancel"})]}),B&&(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/5 px-3 py-1.5 text-xs",children:[(0,t.jsx)(d.Check,{className:"h-3 w-3 text-primary"}),(0,t.jsx)("span",{className:"font-mono font-semibold",children:B.code}),(0,t.jsx)("span",{className:"text-foreground/60",children:B.percentOff?`${B.percentOff}% off`:B.amountOff?`$${(B.amountOff/100).toFixed(2)} off`:"applied"}),(0,t.jsx)("button",{type:"button",onClick:()=>{G(null),U(""),O(!1)},className:"ml-1 text-foreground/40 hover:text-foreground","aria-label":"Remove discount",children:"Ã"})]})]})]}),(0,t.jsxs)("div",{className:"col-span-12 md:col-span-5 space-y-4",children:[(0,t.jsx)(w,{value:e,onChange:i}),(0,t.jsxs)("div",{className:"rounded-2xl border border-border bg-muted/40 p-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[p&&(0,t.jsxs)("span",{className:"text-2xl font-semibold leading-none tracking-tight tabular-nums text-foreground/40 line-through",children:["$",S.toLocaleString()]}),(0,t.jsxs)("span",{className:"text-4xl font-bold tracking-tight tabular-nums leading-none",children:["$",(p?p.weeklyPrice:S).toLocaleString()]}),(0,t.jsx)("span",{className:"text-xs font-medium text-foreground/70",children:p?"a week":`user/${K}`})]}),p&&(0,t.jsxs)("p",{className:"mt-2 text-[11px] font-medium text-foreground/70",children:["For up to ",p.weeks," weeks ($",p.total," max), then $",S.toLocaleString(),"/user/",K,"."]}),(0,t.jsx)("ul",{className:"mt-4 space-y-2",children:k.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs font-medium text-foreground/90",children:[(0,t.jsx)("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[var(--ring)] text-white",children:(0,t.jsx)(d.Check,{className:"h-2.5 w-2.5",strokeWidth:3})}),(0,t.jsx)("span",{children:e})]},e))}),(0,t.jsxs)("div",{className:"mt-4 pt-3.5 border-t border-foreground
1/15",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-foreground/70",children:"Users"}),(0,t.jsx)(N,{value:s,onChange:l})]}),s>1&&(0,t.jsx)("div",{className:"text-[11px] text-foreground/60 mt-2 text-right",children:p?(0,t.jsxs)(t.Fragment,{children:["$",R.toLocaleString()," total/",K," after the trial"]}):(0,t.jsxs)(t.Fragment,{children:["$",R.toLocaleString()," total/",K]})})]})]})]})]}),(0,t.jsxs)("div",{className:"px-5 py-4 border-t border-border/60 bg-muted/20 flex items-center justify-between gap-3 shrink-0",children:[(0,t.jsxs)("p",{className:"text-[11px] text-muted-foreground inline-flex items-center gap-1.5 pl-2",children:[(0,t.jsx)(n.Lock,{className:"h-3 w-3"}),"Secure checkout via Stripe"]}),(0,t.jsxs)(a.Button,{type:"submit",className:"rounded-2xl",disabled:!C||E,children:[E&&(0,t.jsx)(v.ButtonSpinner,{className:"mr-1.5"}),(0,t.jsx)(v.ShimmerLabel,{active:E,children:p?B?(0,t.jsxs)("span",{children:["Start trial -"," ",(0,t.jsxs)("span",{className:"mr-1 line-through opacity-60",children:["$",p.weeklyPrice]}),"$",_.toLocaleString()," today"]}):(0,t.jsxs)(t.Fragment,{children:["Start trial - $",p.weeklyPrice," today"]}):B?(0,t.jsxs)("span",{children:["Pay - ",(0,t.jsxs)("span",{className:"line-through opacity-60 mr-1",children:["$",R.toLocaleString()]}),"$",D.toLocaleString()]}):(0,t.jsxs)(t.Fragment,{children:["Pay - $",R.toLocaleString()]})})]})]})]})}function M({open:e,pricing:r,onSubscribed:n,blocking:a=!0,onClose:i}){return(0,t.jsx)(c.Dialog,{open:e,onOpenChange:e=>!e&&!a&&i?.(),children:(0,t.jsx)(c.DialogContent,{showCloseButton:!a,container:null,overlayClassName:"backdrop-blur-[1.5px]",className:"sm:max-w-4xl sm:max-h-[min(660px,100%)] p-0 gap-0 overflow-hidden",onPointerDownOutside:e=>a&&e.preventDefault(),onEscapeKeyDown:e=>a&&e.preventDefault(),children:(0,t.jsx)(C,{active:e,pricing:r,onSubscribed:n})})})}function A({title:e,description:i}){let{status:l,subscribed:o,refresh:c}=(0,s.usePlan)(),[u,d]=(0,r.useState)(!1),m=l?.role==="owner",f=l?.pricing.monthly;async function h(){for(let e=0;e<10;e++)await c(),await new Promise(e=>setTimeout(e,800))}return(0,t.jsxs)("div",{className:"flex flex-col items-center text-center max-w-sm mx-auto",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-500/10",children:(0,t.jsx)(n.Lock,{className:"h-4 w-4 text-amber-600"})}),(0,t.jsx)("h2",{className:"mt-4 text-lg font-semibold tracking-tight",children:e}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:m?i??"This is part of the everything plan. One subscription unlocks every feature and integration.":o?"Your workspace is subscribed, but you haven't been assigned a paid seat yet. Ask the workspace owner to activate your seat.":"This is part of the everything plan. Ask the workspace owner to subscribe to unlock it."}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{className:"mt-5",onClick:()=>d(!0),children:"Upgrade"}),null!=f&&(0,t.jsx)("p",{className:"mt-2.5 text-[11px] text-muted-foreground",children:l?.trialEligible?`$${l.trial?.weeklyPrice??s.TRIAL_FALLBACK.weeklyPrice} a week for up to ${l.trial?.weeks??s.TRIAL_FALLBACK.weeks} weeks, then from $${f}/user per month. Cancel anytime.`:`From $${f}/user per month. Cancel anytime.`}),l&&(0,t.jsx)(M,{open:u,pricing:l.pricing,onSubscribed:h,blocking:!1,onClose:()=>d(!1)})]})]})}e.s(["PaywallCheckout",0,C,"PaywallModal",0,M],131992),e.s(["FeaturePaywall",0,function({pathname:e}){let r=(0,i.findNavItem)(e),n=r?.label??"This feature";return(0,t.jsx)("div",{className:"flex h-full min-h-[60vh] items-center justify-center p-6",children:(0,t.jsx)(A,{title:`${n} is a paid feature`})})},"LockedFeaturePanel",0,A],693593)},835882,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(901949);let a=(0,r.createContext)({status:null,checked:!1,subscribed:!0,entitled:!0,isFeatureLocked:()=>!1,isChannelLocked:()=>!1,wholeAppGated:!1,refresh:async()=>{}});e.s(["PlanProvider",0,function({initialStatus:e=null,children:i}){let[s,l]=(0,r.useState)(e),[o,c]=(0,r.useState)(!!e),u=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/billing/status");e.ok&&l(await e.json())}finally{c(!0)}},[]);(0,r.useEffect)(()=>{e||u()},[u]);let d=(0,r.useMemo)(()=>{let e=!!s&&(0,n.isSubscribedPlan)(s),t=!o||!s||(0,n.isEntitledSnapshot)(s),r=Object.values(s?.featureOverrides??{}).some(e=>!0===e),a=o&&!!s&&!s.isSupport&&!t&&!r;return{status:s,checked:o,subscribed:e,entitled:t,isFeatureLocked:e=>{if(!o||!s||a)return!1;let t=(0,n.featureForNavPath)(e);return!!t&&!(0,n.isFeatureUnlocked)(t,s,s.featureOverrides)},isChannelLocked:e=>{if(!o||!s||a)return!1;let t=(0,n.featuresForInboxChannel)(e);return 0!==t.length&&t.every(e=>!(0,n.isFeatureUnlocked)(e,s,s.featureOverrides))},wholeAppGated:a,refresh:u}},[s,o,u]);return(0,t.jsx)(a.Provider,{value:d,children:i})},"TRIAL_FALLBACK",0,{weeks:4,weeklyPrice:1,days:28,total:4},"usePlan",0,function(){return(0,r.useContext)(a)}])},295519,724166,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(447170),a=e.i(692293);let i=["AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ-BO","BQ-SA","BQ-SE","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","E
1R","ES-CT","ES","ET","EU","FI","FJ","FK","FM","FO","FR","GA","GB-ENG","GB-NIR","GB-SCT","GB-WLS","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XA","XC","XK","XO","YE","YT","ZA","ZM","ZW"],s=new Set(["AC","CP","DG","EA","EU","IC","TA","UN","XC","XO","XX"]),l=null;function o(){if(l)return l;let e=new Intl.DisplayNames(["en"],{type:"region"});return l=i.filter(e=>/^[A-Z]{2}$/.test(e)&&!s.has(e)).map(t=>{let r=t;try{r=e.of(t)??t}catch{}return{code:t,name:r}}).sort((e,t)=>e.name.localeCompare(t.name))}e.s(["getCountries",0,o,"guessCountryCode",0,function(e="US"){if("u"<typeof navigator)return e;let t=new Set(o().map(e=>e.code));for(let e of[...navigator.languages??[],navigator.language].filter(Boolean))try{let r=new Intl.Locale(e).region?.toUpperCase();if(r&&t.has(r))return r}catch{}return e}],724166),e.s(["CountrySelect",0,function({value:e,onChange:i,className:s,contentClassName:l,container:c,size:u="default",variant:d,disabled:m,modal:f=!1,"aria-label":h="Country"}){let p=(0,r.useMemo)(()=>o().map(e=>({value:e.code,label:e.name,keywords:e.code,icon:(0,t.jsx)(a.CountryFlag,{country:e.code,className:"h-3 w-4 shrink-0"})})),[]);return(0,t.jsx)(n.SearchableSelect,{options:p,value:e.toUpperCase(),onValueChange:i,placeholder:"Select country",className:s,contentClassName:l,container:c,size:u,variant:d,disabled:m,modal:f,"aria-label":h})}],295519)},593462,e=>{"use strict";var t=e.i(271645),r=e.i(287751);let n={next:{key:"j"},prev:{key:"k"},open:{key:"enter"},back:{key:"escape"},compose:{key:"c"},reply:{key:"r"},archive:{key:"e"},trash:{key:"#",shift:!0},markRead:{key:"i",shift:!0},markUnread:{key:"u",shift:!0},star:{key:"s"},selectToggle:{key:"x"},selectAll:{key:"a",shift:!0},search:{key:"k",meta:!0},refresh:{key:"g"},tag:{key:"l"}},a="/api/gmail/shortcuts",i=new Set(["next","prev"]);function s(e){for(let t=e;t;t=t.parentElement)if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!0;return!1}function l(){let e=document.activeElement;return!!e?.closest?.("[data-gmail-reply-area]")}e.s(["ACTION_LABELS",0,{next:"Next email",prev:"Previous email",open:"Open email",back:"Back to list",compose:"Compose",reply:"Reply",archive:"Archive",trash:"Trash",markRead:"Mark as read",markUnread:"Mark as unread",star:"Star / Unstar",selectToggle:"Select / Deselect",selectAll:"Select all",search:"Focus search",refresh:"Refresh",tag:"Tag"},"DEFAULT_SHORTCUTS",0,n,"formatBinding",0,function(e){let t=[];return e.meta&&t.push("â"),e.ctrl&&t.push("Ctrl"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),t.push(1===e.key.length?e.key.toUpperCase():"enter"===e.key?"âµ":"escape"===e.key?"Esc":"arrowup"===e.key?"â":"arrowdown"===e.key?"â":e.key),t.join("+")},"useCustomShortcuts",0,function(){let{data:e,isLoading:i,mutate:s}=(0,r.useCachedFetch)(a,{staleTime:6e5}),l=(0,t.useMemo)(()=>{let t={};for(let r of e?.shortcuts||[])t[r.action]={key:r.key,meta:r.meta,shift:r.shift,ctrl:r.ctrl,alt:r.alt};return t},[e]);async function o(e,t){s(r=>({shortcuts:[...(r?.shortcuts||[]).filter(t=>t.action!==e),{action:e,key:t.key,meta:!!t.meta,shift:!!t.shift,ctrl:!!t.ctrl,alt:!!t.alt}]}),{revalidate:!1}),await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,...t})})}async function c(e){s(t=>({shortcuts:(t?.shortcuts||[]).filter(t=>t.action!==e)}),{revalidate:!1}),await fetch(`${a}?action=${e}`,{method:"DELETE"})}return{bindings:{...n,...l},customBindings:l,loaded:!i,saveBinding:o,resetBinding:c}},"useGmailShortcuts",0,function({handlers:e,bindings:r,enabled:n=!0,allowNavInInput:a=!1,threadOpen:o=!1,extraBindings:c=[]}){let u=(0,t.useRef)(e);u.current=e;let d=(0,t.useRef)(a);d.current=a;let m=(0,t.useRef)(o);m.current=o;let f=(0,t.useCallback)(e=>{if(!n)return;let t=e.key.toLowerCase();if(m.current&&("j"===t||"k"===t)&&!e.metaKey&&!e.ctrlKey&&!e.altKey||!m.current&&function(e,t){if(t)return!1;let r=e.key.toLowerCase();
1return("j"===r||"k"===r)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&(!!l()||s(document.activeElement))}(e,d.current))return;let a=s(document.activeElement);for(let{key:r,action:n}of c){if(t!==r.toLowerCase())continue;let i=l();if(!d.current&&(a||i))continue;let s=u.current[n];if(s){e.preventDefault(),s();return}}for(let[t,n]of Object.entries(r)){if(e.key.toLowerCase()!==n.key.toLowerCase()||!!n.meta!==(e.metaKey||e.ctrlKey)&&n.meta||n.meta&&!e.metaKey&&!e.ctrlKey||!n.meta&&(e.metaKey||e.ctrlKey)||!!n.shift!==e.shiftKey||!!n.alt!==e.altKey||m.current&&i.has(t)||a&&!n.meta&&!(d.current&&i.has(t)))continue;let r=u.current[t];if(r){e.preventDefault(),r();return}}},[r,n,a,o,c]);(0,t.useEffect)(()=>(window.addEventListener("keydown",f,!0),()=>window.removeEventListener("keydown",f,!0)),[f])}])},60686,e=>{"use strict";let t="unified-inbox-only-linked";e.s(["ONLY_LINKED_STORAGE_KEY",0,t,"readOnlyLinked",0,function(){try{return"0"!==localStorage.getItem(t)}catch{return!0}}])},881262,795514,e=>{"use strict";var t=e.i(701452);e.s(["Hourglass",()=>t.default],881262);var r=e.i(395913);let n="https://www.linkedin.com/voyager/api";function a(e){return(String(e??"").match(/ACo[A-Za-z0-9_-]+/)||[])[0]||null}function i(e){return"string"==typeof e&&e.trim()?e:null}function s(e){return"number"==typeof e&&Number.isFinite(e)?e:null}function l(e){if(!e||"object"!=typeof e||"string"!=typeof e.rootUrl||!Array.isArray(e.artifacts)||0===e.artifacts.length)return null;let t=e.artifacts,r=t.reduce((e,t)=>(t.width||0)>(e.width||0)?t:e,t[0]);return r?.fileIdentifyingUrlPathSegment?`${e.rootUrl}${r.fileIdentifyingUrlPathSegment}`:null}async function o(e,t=300){let c=[],u=null;for(let o=0;o<t;o+=100){let t=await (0,r.linkedInFetch)(function(e,t=0,r=50){let a=Math.max(1,Math.min(100,Math.floor(r))),i=Math.max(0,Math.floor(t));return"sent"===e?`${n}/relationships/sentInvitationViewsV2?start=${i}&count=${a}&invitationType=CONNECTION&q=invitationType`:`${n}/relationships/invitationViews?start=${i}&count=${a}&includeInsights=false&q=receivedInvitation`}(e,o,100),{timeoutMs:2e4});if(!t.ok)return{ok:c.length>0,invitations:c,total:u,error:t.error||`LinkedIn returned HTTP ${t.status}`};let d=function(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch{e=null}let r=e&&"object"==typeof e?e:{},n=Array.isArray(r.included)?r.included:[],o=new Map,c=new Map,u=new Map,d=new Map;for(let e of n){let t=String(e?.entityUrn??"");if(/fs_miniProfile|fsd_profile/.test(t)){let r=a(t);if(!r)continue;let n=i(e.publicIdentifier);o.set(r,{name:[i(e.firstName),i(e.lastName)].filter(e=>!!e).map(e=>e.trim()).join(" ")||i(e.name),publicIdentifier:n,headline:i(e.occupation)??i(e.headline),pictureUrl:function(e){let t=e.picture;if(t){let e=l(t["com.linkedin.common.VectorImage"]??t);if(e)return e}let r=e.profilePicture?.displayImageReference;return l(r?.vectorImage)??null}(e),linkedinUrl:n?`https://www.linkedin.com/in/${n}`:null});continue}if(/fs_miniCompany|fsd_company/.test(t)){let r=(t.match(/:(\d+)$/)||[])[1];if(!r)continue;let n=i(e.universalName);c.set(r,{urn:`urn:li:company:${r}`,name:i(e.name),logoUrl:l(e.logo),linkedinUrl:n?`https://www.linkedin.com/company/${n}`:`https://www.linkedin.com/company/${r}`});continue}let r=t.match(/:(\d+)$/);r&&(/fs_relInvitation:|fs_invitation:|fsd_invitation:/i.test(t)?u.set(r[1],e):/InvitationView:/i.test(t)&&d.set(r[1],e))}let m=new Set([...u.keys(),...d.keys()]),f=[];for(let e of m){let r=u.get(e),n=d.get(e),l=r?.invitee,m=i(r?.toMemberId)??a(r?.["*toMember"])??a(l?.["*miniProfile"]),h=i(r?.fromMemberId)??a(r?.["*fromMember"]),p="received"===t?h:m??h,y=n?.primaryImage?.attributes??[];if(!p){let e=y.find(e=>e["*miniProfile"]);p=a(e?.["*miniProfile"])}p||(p=a(n?.["*toMember"])??a(n?.["*invitee"]));let x=p?o.get(p):void 0,g=i(r?.invitationType)??i(n?.invitationType),b=function(e,t){let r=(e??"").toUpperCase();return"ORGANIZATION"===r||"COMPANY"===r||"PAGE"===r?"page_follow":"EVENT"===r?"event":"CONNECTION"===r||"SENT"===r||!r&&t?"connection":r?"other":"connection"}(g,!!h),v=null,k=i(n?.invitationTargetUrn);if(k){let e=(k.match(/company:(\d+)/)||[])[1];v=e&&c.get(e)||{urn:k,name:null,logoUrl:null,linkedinUrl:null}}else if("page_follow"===b){let e=y.find(e=>e["*miniCompany"]),t=(String(e?.["*miniCompany"]??"").match(/:(\d+)$/)||[])[1];t&&(v=c.get(t)??null)}f.push({entityUrn:r?String(r.entityUrn):String(n?.entityUrn??`urn:li:fs_relInvitation:${e}`),invitationId:e,sharedSecret:i(r?.sharedSecret)??i(n?.sharedSecret),kind:b,invitationType:g,sentTime:s(r?.sentTime)??s(n?.sentTime),sentLabel:i(n?.sentTime)??i(r?.sentTime),message:i(r?.message)??i(n?.message),title:i(n?.title?.text),direction:t,person:p?{profileId:p,name:x?.name??null,publicIdentifier:x?.publicIdentifier??null,headline:x?.headline??null,pictureUrl:
1x?.pictureUrl??null,linkedinUrl:x?.linkedinUrl??null}:null,target:v})}f.sort((e,t)=>(t.sentTime??0)-(e.sentTime??0));let h=r.data?.paging??r.paging,p=s(h?.total);return{invitations:f,total:null!=p&&p>0?p:null}}(t.data,e);if(null!=d.total&&(u=d.total),c.push(...d.invitations),d.invitations.length<100||null!=u&&c.length>=u)break}let d=new Set,m=c.filter(e=>!d.has(e.invitationId)&&(d.add(e.invitationId),!0));return{ok:!0,invitations:m,total:u??m.length}}async function c(e,t){var a,i;if(!e.invitationId)return{ok:!1,error:"Invitation has no id"};let s=(a=e.invitationId,i=e.sharedSecret,{url:`${n}/relationships/invitations/${encodeURIComponent(a)}?action=${t}`,method:"POST",body:JSON.stringify({invitationId:a,..."withdraw"===t?i&&"dummy"!==i?{invitationSharedSecret:i}:{}:{invitationSharedSecret:i||""},isGenericInvitation:!1}),headers:{"Content-Type":"application/json; charset=UTF-8"}}),l=await (0,r.linkedInFetch)(s.url,{method:s.method,body:s.body,headers:s.headers,timeoutMs:2e4});return l.ok?{ok:!0}:{ok:!1,error:l.error||`LinkedIn returned HTTP ${l.status}`}}e.s(["fetchInvitations",0,o,"respondToInvitation",0,c],795514)},75945,e=>{"use strict";let t=(0,e.i(475254).default)("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);e.s(["default",0,t])},306886,e=>{"use strict";var t=e.i(75945);e.s(["Keyboard",()=>t.default])}]);
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.