PageSourceSearch

https://linkship.net/_next/static/chunks/5059-a07f66cee077e3ec.js?dpl=dpl_8ktbENsXGqSrt43XZFVMZSYThaBR

js linkship.net collected 2026-10-02 00:23:22 UTC 11,345 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5059],{46333:(e,t,r)=>{function a(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:0}).format(e/100)}function o(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"/").concat(r,"/").concat(a)}function s(e){return e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB")}r.d(t,{$g:()=>a,Yq:()=>o,v7:()=>s})},55059:(e,t,r)=>{r.d(t,{k:()=>y});var a=r(11232),o=r(74052),s=r(65983),l=r(50993),n=r(96801),i=r(87960),d=r(4900),c=r(46333),u=r(55966),p=r(74311),f=r(88147),x=r(6972),m=r(48784),b=r(67966),h=r(95111),v=r(23468);function g(e,t){return null==e?void 0:e.prices.find(e=>e.type===p.Y0.SUBSCRIPTION&&e.interval===t&&!e.disabled)}function y(e){var t,r;let{open:y,onOpenChange:N,trigger:j,userId:w}=e,k=(0,h.c)("UpgradeModal"),_=(0,d.iN)(),M=(0,i.F)().solo,[A,C]=(0,v.useState)(p.cB.YEAR),F=g(M,p.cB.MONTH),R=g(M,p.cB.YEAR),B=null!==(r=null!==(t=g(M,A))&&void 0!==t?t:R)&&void 0!==r?r:F,S=(0,v.useMemo)(()=>{var e;if(!B)return{billed:k("notAvailable"),display:k("notAvailable"),strike:null,trialDays:0};let t=B.currency,r=B.interval===p.cB.YEAR?Math.round(B.amount/12):B.amount,a=(0,c.$g)(r,t),o=(0,c.$g)(B.amount,t),s=B.interval===p.cB.YEAR&&F?(0,c.$g)(F.amount,F.currency):null;return{billed:B.interval===p.cB.YEAR?k("billedYearly",{amount:o}):k("billedMonthly",{amount:a}),display:a,strike:s,trialDays:null!==(e=B.trialPeriodDays)&&void 0!==e?e:0}},[F,B,k]),I=S.trialDays>0,E=I?k("ctaTrial",{days:S.trialDays}):k("cta"),U=!(null==B?void 0:B.priceId),Y=(0,v.useMemo)(()=>({source:"file_upgrade_modal",trigger:j}),[j]);return(0,a.jsx)(n.lG,{open:y,onOpenChange:N,children:(0,a.jsxs)(n.Cf,{showCloseButton:!1,className:"max-w-[440px] overflow-hidden rounded-[18px] border border-[rgba(15,15,20,0.08)] bg-white p-0 shadow-[0_1px_2px_rgba(15,15,20,0.04),0_8px_24px_-6px_rgba(15,15,20,0.10),0_44px_90px_-22px_rgba(15,15,20,0.35)]",children:[(0,a.jsx)(n.HM,{asChild:!0,children:(0,a.jsx)("button",{type:"button",className:"absolute top-3.5 right-3.5 z-10 grid h-7 w-7 place-items-center rounded-[7px] text-[var(--ls-text-3)] transition-colors hover:bg-[var(--ls-bg-inset)] hover:text-foreground","aria-label":k("close"),children:(0,a.jsx)(x.A,{className:"h-3.5 w-3.5"})})}),(0,a.jsxs)("div",{className:"px-7 pt-7",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-[5px] bg-foreground py-1 pr-2.5 pl-2 font-mono text-[10.5px] font-semibold uppercase text-white",children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-primary shadow-[0_0_0_3px_rgba(5,150,105,0.28)]"}),I?k("badgeTrial",{days:S.trialDays}):k("badge")]}),(0,a.jsx)(n.L3,{className:"mt-4 max-w-[18ch] text-[26px] leading-[1.15] font-semibold text-foreground",children:k("triggers.".concat(j,".title"))}),(0,a.jsx)(n.rr,{className:"mt-2.5 text-[14.5px] leading-[1.55] text-muted-foreground",children:k("triggers.".concat(j,".subtitle"))})]}),(0,a.jsxs)("div",{className:"mx-7 mt-5 flex flex-wrap items-baseline justify-between gap-3 border-t border-[rgba(15,15,20,0.08)] pt-4",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums",children:[(0,a.jsx)("span",{className:"font-sans text-[38px] leading-none font-semibold text-foreground",children:S.display}),B&&(0,a.jsx)("span",{className:"text-[12.5px] text-[var(--ls-text-3)]",children:k("perMonth")}),S.strike&&(0,a.jsx)("span",{className:"ml-1 text-[12.5px] text-[var(--ls-text-3)] line-through",children:S.strike})]}),(0,a.jsxs)("div",{className:"inline-flex rounded-[7px] border border-[rgba(15,15,20,0.08)] bg-[var(--ls-bg-inset)] p-0.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>C(p.cB.MONTH),className:(0,u.cn)("rounded-[5px] px-2.5 py-1.5 font-mono text-[11px] transition-colors",A===p.cB.MONTH?"bg-white text-foreground shadow-sm":"text-[var(--ls-text-3)] hover:text-foreground"),children:k("monthly")}),(0,a.jsx)("button",{type:"button",onClick:()=>C(p.cB.YEAR),className:(0,u.cn)("rounded-[5px] px-2.5 py-1.5 font-mono text-[11px] transition-colors",A===p.cB.YEAR?"bg-white text-foreground shadow-sm":"text-[var(--ls-text-3)] hover:text-foreground"),children:k("yearly")})]})]}),(0,a.jsx)("div",{className:"mx-7 mt-1 font-mono text-[11.5px] text-[var(--ls-text-3)]",children:S.billed}),(0,a.jsx)("ul",{className:"mx-7 mt-4 flex list-none flex-col gap-2.5",children:["features.permanentLinks","features.fileSize","features.passwordDomains","features.visits"].map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5 text-[14px] leading-[1.4] text-foreground",children:[(0,a.jsx)("span",{className:"grid h-3.5 w-3.5 shrink-0 place-items-center rounded-full bg-primary text-white",children:(0,a.jsx)(m.A,{className:"h-2.5 w-2.5"})}),k.rich(e,{strong:e=>(0,a.jsx)("b",{className:"font-semibold",children:e})})]},e))}),(0,a.jsxs)("div",{className:"mx-7 mt-5",children:[U?(0,a.jsx)(l.$,{disabled:!0,className:"h-auto w-full rounded-[10px] px-4 py-[13px] text-[14.5px] font-semibold",children:k("notAvailable")}):w?(0,a.jsxs)(s.L,{userId:w,planId:M.id,priceId:B.priceId,amount:B.amount,metadata:Y,className:"h-auto w-full gap-2 rounded-[10px] bg-primary px-4 py-[13px] text-[14.5px] font-semibold text-white hover:bg-emerald-700",children:[E,(0,a.jsx)(b.A,{className:"h-3.5 w-3.5"})]}):(0,a.jsx)(o.n,{mode:"modal",asChild:!0,callbackUrl:_,children:(0,a.jsxs)(l.$,{className:"h-auto w-full gap-2 rounded-[10px] bg-primary px-4 py-[13px] text-[14.5px] font-semibold text-white hover:bg-emerald-700",children:[E,(0,a.jsx)(b.A,{className:"h-3.5 w-3.5"})]})}),(0,a.jsx)("p",{className:"mt-2.5 text-center font-mono text-[10.5px] text-[var(--ls-text-3)]",children:I?k("microTrial"):k("micro")})]}),(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-between border-t border-[rgba(15,15,20,0.08)] px-7 py-3.5 text-[13px]",children:[(0,a.jsxs)(d.XO,{href:f.BV.Pricing,className:"inline-flex items-center gap-1 font-medium text-primary underline decoration-primary/40 underline-offset-4 transition-colors hover:decoration-primary",children:[k("seeAllPlans"),(0,a.jsx)(b.A,{className:"h-3 w-3"})]}),(0,a.jsx)(n.HM,{asChild:!0,children:(0,a.jsx)("button",{type:"button",className:"font-mono text-[11px] text-[var(--ls-text-3)] transition-colors hover:text-muted-foreground",children:k("maybeLater")})})]})]})})}},65983:(e,t,r)=>{r.d(t,{L:()=>x});var a=r(11232),o=r(75524);let s=(0,o.createServerReference)("7f8997cba6b5c727d5c7b1ff40257b04acdf28c1dc",o.callServer,void 0,o.findSourceMapURL,"createCheckoutAction");var l=r(74753),n=r(50993),i=r(40281),d=r(23167),c=r(38742),u=r(95111),p=r(23468),f=r(86438);function x(e){let{userId:t,planId:r,priceId:o,amount:x=0,metadata:m,variant:b="default",size:h="default",className:v,children:g}=e,y=(0,u.c)("PricingPage.CheckoutButton"),[N,j]=(0,p.useState)(!1),w=async()=>{try{var e,a,n,c,u,p,b,h,v,g,N,w;j(!0),(0,d.x2)({type:"subscription",planId:r,priceId:o,amount:x});let k=m?{...m}:{};
1if(i.u.features.enablePromotekitAffiliate){let e=window.promotekit_referral;e&&(console.log("create checkout button, promotekitReferral:",e),k.promotekit_referral=e)}if(i.u.features.enableAffonsoAffiliate){let e="undefined"!=typeof document?(()=>{let e=document.cookie.match(/(?:^|; )affonso_referral=([^;]*)/);return e?decodeURIComponent(e[1]):null})():null;e&&(console.log("create checkout button, affonsoReferral:",e),k.affonso_referral=e)}let _=await s({userId:t,planId:r,priceId:o,metadata:Object.keys(k).length>0?k:void 0});if((null==_?void 0:null===(e=_.data)||void 0===e?void 0:e.success)&&(null==_?void 0:null===(n=_.data)||void 0===n?void 0:null===(a=n.data)||void 0===a?void 0:a.url)){let e=null==_?void 0:null===(b=_.data)||void 0===b?void 0:null===(p=b.data)||void 0===p?void 0:p.id;(0,d.eG)({type:"subscription",planId:r,priceId:o,amount:x,sessionId:e}),(0,d.sv)({type:"subscription",planId:r,priceId:o,amount:x,sessionId:e}),window.location.href=null==_?void 0:null===(v=_.data)||void 0===v?void 0:null===(h=v.data)||void 0===h?void 0:h.url}else if((null==_?void 0:null===(c=_.data)||void 0===c?void 0:c.errorCode)==="ALREADY_SUBSCRIBED"){(0,d.bR)({type:"subscription",planId:r,priceId:o,amount:x,reason:"already_subscribed"}),f.o.info(y("alreadySubscribed"));let e=await (0,l.N)({userId:t});(null==e?void 0:null===(g=e.data)||void 0===g?void 0:g.success)&&(null===(N=e.data.data)||void 0===N?void 0:N.url)?window.location.href=e.data.data.url:(console.error("Create customer portal error, result:",e),f.o.error(y("portalFailed")))}else if((null==_?void 0:null===(u=_.data)||void 0===u?void 0:u.errorCode)==="SUBSCRIPTION_CHECK_UNAVAILABLE")(0,d.bR)({type:"subscription",planId:r,priceId:o,amount:x,reason:"subscription_check_unavailable"}),f.o.error(y("subscriptionCheckUnavailable"));else{let e=(null==_?void 0:null===(w=_.data)||void 0===w?void 0:w.error)||"Failed to create checkout session";(0,d.bR)({type:"subscription",planId:r,priceId:o,amount:x,reason:e}),console.error("Create checkout session error, result:",_),f.o.error(y("checkoutFailed"))}}catch(e){(0,d.bR)({type:"subscription",planId:r,priceId:o,amount:x,reason:e instanceof Error?e.message:"Unknown error"}),console.error("Create checkout session error:",e),f.o.error(y("checkoutFailed"))}finally{j(!1)}};return(0,a.jsx)(n.$,{variant:b,size:h,className:v,onClick:w,disabled:N,children:N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{className:"mr-2 size-4 animate-spin"}),y("loading")]}):g})}},74753:(e,t,r)=>{r.d(t,{N:()=>o});var a=r(75524);let o=(0,a.createServerReference)("7fffe056579ed810b592582f3af21ae45ad2b39d0d",a.callServer,void 0,a.findSourceMapURL,"createPortalAction")},87960:(e,t,r)=>{r.d(t,{F:()=>s});var a=r(95111),o=r(40281);function s(){let e=(0,a.c)("PricePlans"),t=o.u.price,r={};return t.plans.free&&(r.free={...t.plans.free,name:e("free.name"),description:e("free.description"),bestFor:e("free.bestFor"),features:[e("free.features.feature-1"),e("free.features.feature-2"),e("free.features.feature-3")],limits:[e("free.limits.limit-1"),e("free.limits.limit-2")]}),t.plans.tiny&&(r.tiny={...t.plans.tiny,name:e("tiny.name"),description:e("tiny.description"),bestFor:e("tiny.bestFor"),features:[e("tiny.features.feature-1"),e("tiny.features.feature-2"),e("tiny.features.feature-3")],limits:[]}),t.plans.solo&&(r.solo={...t.plans.solo,name:e("solo.name"),description:e("solo.description"),bestFor:e("solo.bestFor"),features:[e("solo.features.feature-1"),e("solo.features.feature-2"),e("solo.features.feature-3"),e("solo.features.feature-4"),e("solo.features.feature-6")],limits:[]}),t.plans.pro&&(r.pro={...t.plans.pro,name:e("pro.name"),description:e("pro.description"),bestFor:e("pro.bestFor"),features:[e("pro.features.feature-1"),e("pro.features.feature-2"),e("pro.features.feature-3"),e("pro.features.feature-6"),e("pro.features.feature-7")],limits:[]}),t.plans.proMax&&(r.proMax={...t.plans.proMax,name:e("proMax.name"),description:e("proMax.description"),bestFor:e("proMax.bestFor"),features:[e("proMax.features.feature-1"),e("proMax.features.feature-2"),e("proMax.features.feature-3"),e("proMax.features.feature-4"),e("proMax.features.feature-5"),e("proMax.features.feature-6"),e("proMax.features.feature-7"),e("proMax.features.feature-8")],limits:[]}),r}}}]);

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.