1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0936cd46-1fda-4688-9c19-6501cb2b9217",e._sentryDebugIdIdentifier="sentry-dbid-0936cd46-1fda-4688-9c19-6501cb2b9217")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3588],{54885:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[companyShortId]/settings/plan",function(){return a(64988)}])},64988:(e,t,a)=>{"use strict";a.r(t),a.d(t,{PlanPageContent:()=>J,default:()=>X});var l=a(74348),n=a(2066),r=a(98022),i=a(82611),s=a(24673),d=a(74423),c=a(45931),o=a(16205),m=a(8113),u=a.n(m),h=a(91018),p=a(50148),f=a(90369),x=a(76947),g=a(64920);let y=f.bL,N=p.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,l.Y)(f.q7,{ref:t,className:(0,g.cn)("border-b",a),...n})});N.displayName="AccordionItem";let v=p.forwardRef((e,t)=>{let{className:a,children:n,...r}=e;return(0,l.Y)(f.Y9,{className:"flex",children:(0,l.FD)(f.l9,{ref:t,className:(0,g.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",a),...r,children:[n,(0,l.Y)(x.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});v.displayName=f.l9.displayName;let b=p.forwardRef((e,t)=>{let{className:a,children:n,...r}=e;return(0,l.Y)(f.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,l.Y)("div",{className:(0,g.cn)("pb-4 pt-0",a),children:n})})});b.displayName=f.UC.displayName;var Y=a(18920),D=a(29863),F=a(16066),w=a(95423);function I(e){let{label:t,current:a,limit:n,formatCurrent:r,formatLimit:i}=e,s=null==n,d=s?0:Math.min(a/n*100,100),c=(0,w.Pd)(d);return(0,l.FD)("div",{className:"space-y-2",children:[(0,l.FD)("div",{className:"flex items-baseline justify-between",children:[(0,l.Y)("span",{className:"text-sm font-medium text-foreground",children:t}),(0,l.FD)("div",{className:"flex items-baseline gap-1",children:[(0,l.Y)("span",{className:"text-lg font-semibold tabular-nums",children:r}),(0,l.FD)("span",{className:"text-sm text-muted-foreground",children:["/ ",i]})]})]}),s?(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãã®é
ç®ã«ä¸éã¯ããã¾ãã"}):(0,l.FD)(l.FK,{children:[(0,l.Y)("div",{className:"relative h-3 w-full overflow-hidden rounded-full bg-muted",children:(0,l.Y)("div",{className:"h-full rounded-full transition-all duration-500 ".concat(c),style:{width:"".concat(d,"%")}})}),d>=90&&(0,l.Y)("p",{className:"text-xs text-red-600",children:"ä¸éã«è¿ã¥ãã¦ãã¾ãããã©ã³ã®ã¢ããã°ã¬ã¼ãããæ¤è¨ãã ããã"})]})]})}var A=a(72425),P=a(65433),S=a(89304),L=a(53185),E=a(99536),_=a(43537),k=a(82497),B=a(99103),C=a(93479),M=a(93713);function T(e,t){return"jpy"===t.toLowerCase()?"\xa5".concat(e.toLocaleString("ja-JP")):"".concat((e/100).toFixed(2)," ").concat(t.toUpperCase())}var q=a(3659),K=a(13756),U=a(69540),z=a(86745);let G=async e=>{let{companyId:t,successPath:a,cancelPath:l,selectedPlan:n,billingInterval:r}=e,i=await (0,z.zS)("/api/v1/lib/stripe/portal",{companyId:t,successPath:a,cancelPath:l,...n&&{selectedPlan:n},...r&&{billingInterval:r}});return q.$n.parse(i).url},R=async e=>{let{companyId:t,returnPath:a}=e,l=await (0,z.zS)("/api/v1/subscription/group-portal",{companyId:t,returnPath:a});return q.$n.parse(l).url},W=async e=>{let{companyId:t}=e;await (0,z.zS)("/api/v1/subscription/scheduleRelease",{companyId:t})};var $=a(85149),j=a(27808),H=a(4134),O=a(84711);let Z=[{key:"standard",name:"ã¹ã¿ã³ãã¼ã",icon:(0,l.Y)(n.A,{className:"h-4 w-4"}),monthlyPrice:5980,annualMonthlyPrice:3480,features:[{label:"ã¢ã¤ãã æ°",value:"1,500"},{label:"ã¹ãã¬ã¼ã¸",value:"5GB"}],plan:q.R$.Standard},{key:"pro",name:"ãã",icon:(0,l.Y)(r.A,{className:"h-4 w-4"}),monthlyPrice:12800,annualMonthlyPrice:7800,features:[{label:"ã¢ã¤ãã æ°",value:"5,000"},{label:"ã¹ãã¬ã¼ã¸",value:"100GB"}],plan:q.R$.Pro},{key:"enterprise",name:"ã¨ã³ã¿ã¼ãã©ã¤ãº",icon:(0,l.Y)(i.A,{className:"h-4 w-4"}),monthlyPrice:24800,annualMonthlyPrice:14800,features:[{label:"ã¢ã¤ãã æ°",value:"ç¡å¶é"},{label:"ã¹ãã¬ã¼ã¸",value:"200GB"}],plan:q.R$.Enterprise}];function Q(e){return"year"===e?"å¹´æã":"ææã"}function V(e){let{isAdmin:t,companyId:a,companyShortId:l,authId:n,selectedPlan:r,billingInterval:i}=e,{setContent:s,setErrorContent:d}=(0,O.useToast)(),{logFeatureEvent:c}=(0,_.U)(),[o,m]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{let e=e=>{e.persisted&&m(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[]),{redirect:async()=>
1{if(!o){if(!t)return void s({title:"管çè
ã«ãé¡ããã¦ãã ãã",description:"ãã©ã³ã®å¤æ´ã¯ç®¡çè
権éãå¿
è¦ã§ããã¯ã¼ã¯ã¹ãã¼ã¹ã®ç®¡çè
ã«ãä¾é ¼ãã ããã",type:"normal"});m(!0),c(B.k.BILLING_CHECKOUT_START,{selectedPlan:null!=r?r:null,interval:null!=i?i:null});try{window.location.href=await G({companyId:a,authId:n,successPath:"/".concat(l,"/folder/home"),cancelPath:"/".concat(l,"/settings/plan"),selectedPlan:r,billingInterval:i})}catch(e){M.vF.error(e),d({title:"ã¨ã©ã¼ãçºçãã¾ãã",description:(0,H.H4)(e)}),m(!1)}}},loading:o}}let X=()=>{var e;let{subscription:t,companyDB:a,user:n,userDB:r}=(0,E.Z2)(),i=null==a?void 0:a.company,s=!t||!i||!n,d=null!=r&&!!r.role&&(0,$.vN)(r.role),{userState:c,usage:o,usageLoading:m}=(0,k.Ir)(),{reservation:f}=function(e){var t,a;return{reservation:null!=(a=null==(t=(0,S.I)({queryKey:["discount-reservation",e],queryFn:()=>(0,L.CS)("/api/v1/company/discountReservation?companyId=".concat(e)),enabled:!!e,staleTime:6e4}).data)?void 0:t.reservation)?a:null}}(null==i?void 0:i.id),{preview:x}=function(e){var t,a;return{preview:null!=(a=null==(t=(0,S.I)({queryKey:["upcoming-invoice",e],queryFn:()=>(0,L.CS)("/api/v1/company/upcomingInvoice?companyId=".concat(e)),enabled:!!e,staleTime:3e5}).data)?void 0:t.preview)?a:null}}(null==i?void 0:i.id);(0,h.useRouter)();let{logFunnelStepOnce:g}=(0,_.U)();if((0,p.useEffect)(()=>{var e;t&&g(B.k.BILLING_PAGE_VIEW,{currentPlan:t.plan,currentInterval:null!=(e=t.interval)?e:null,userState:null!=c?c:null})},[t,c,g]),s)return(0,l.FD)(l.FK,{children:[(0,l.Y)(u(),{children:(0,l.Y)("title",{children:(0,A.U6)("ãã©ã³")})}),(0,l.Y)(K.A,{children:(0,l.FD)("div",{className:"space-y-6",children:[(0,l.Y)(F.E,{className:"h-24 w-full rounded-lg"}),(0,l.Y)(F.E,{className:"h-20 w-full rounded-lg"}),(0,l.FD)("div",{className:"grid grid-cols-3 gap-4",children:[(0,l.Y)(F.E,{className:"h-64 rounded-lg"}),(0,l.Y)(F.E,{className:"h-72 rounded-lg"}),(0,l.Y)(F.E,{className:"h-64 rounded-lg"})]})]})})]});let y=void 0,N=null!=(e=null!=y?y:c)?e:"expired",v="trial"===N||"expired"===N;return t.selfServeDisabled?(0,l.FD)(l.FK,{children:[(0,l.Y)(u(),{children:(0,l.Y)("title",{children:(0,A.U6)("ãã©ã³")})}),(0,l.Y)(K.A,{children:(0,l.FD)("div",{className:"space-y-6",children:[(0,l.Y)(et,{subscription:t,companyId:i.id,returnPath:"/".concat(i.shortId,"/settings/plan")}),(0,l.Y)(el,{usage:o,loading:m,isTrial:"trial"===N}),(0,l.Y)(ec,{})]})})]}):(0,l.FD)(l.FK,{children:[(0,l.Y)(u(),{children:(0,l.Y)("title",{children:(0,A.U6)("ãã©ã³")})}),(0,l.FD)(K.A,{children:[(0,l.FD)("div",{className:"space-y-6",children:[(0,l.Y)(ea,{subscription:t,userState:N,authorized:d,companyId:i.id,companyShortId:i.shortId,authId:n.uid}),f&&(0,l.Y)(es,{reservation:f}),x&&x.discountTotal>0&&(0,l.Y)(ed,{preview:x}),v&&(0,l.Y)(er,{currentPlan:t.plan,userState:N,interval:t.interval,authorized:d,companyId:i.id,companyShortId:i.shortId,authId:n.uid}),(0,l.Y)(el,{usage:o,loading:m,isTrial:"trial"===N}),!v&&(0,l.Y)(er,{currentPlan:t.plan,userState:N,interval:t.interval,authorized:d,companyId:i.id,companyShortId:i.shortId,authId:n.uid}),(0,l.Y)(ec,{})]}),!1]})]})};function J(e){let{subscription:t,userState:a,usage:n,usageLoading:r,authorized:i,companyId:s,companyShortId:d,authId:c}=e,o="trial"===a||"expired"===a;return t.selfServeDisabled?(0,l.Y)("div",{className:"max-w-4xl mx-auto w-full p-4 md:px-8",children:(0,l.FD)("div",{className:"space-y-6",children:[(0,l.Y)(et,{subscription:t,companyId:s,returnPath:"/".concat(d,"/settings/plan")}),(0,l.Y)(el,{usage:n,loading:r,isTrial:"trial"===a}),(0,l.Y)(ec,{})]})}):(0,l.Y)("div",{className:"max-w-4xl mx-auto w-full p-4 md:px-8",children:(0,l.FD)("div",{className:"space-y-6",children:[(0,l.Y)(ea,{subscription:t,userState:a,authorized:i,companyId:s,companyShortId:d,authId:c}),(0,l.Y)(el,{usage:n,loading:r,isTrial:"trial"===a}),o&&(0,l.Y)(er,{currentPlan:t.plan,userState:a,interval:t.interval,authorized:i,companyId:s,companyShortId:d,authId:c}),!o&&(0,l.Y)(er,{currentPlan:t.plan,userState:a,interval:t.interval,authorized:i,companyId:s,companyShortId:d,authId:c}),(0,l.Y)(ec,{})]})})}function ee(e){var t;let{subscription:a,companyId:n,authorized:r}=e,i=(0,P.jE)(),{setContent:d,setErrorContent:c}=(0,O.useToast)(),{logFeatureEvent:o}=(0,_.U)(),[m,u]=(0,p.useState)(!1);if(!a.scheduledPlan||!a.scheduledAt)return null;let h=a.scheduledPlan,f=null!=(t=a.scheduledInterval)?t:"month",x=a.scheduledAt,g=async()=>
1{if(r&&!m){u(!0);try{await W({companyId:n}),o(B.k.BILLING_SCHEDULE_CANCEL,{scheduledPlan:h,scheduledInterval:f}),i.setQueryData([C.Zs,{companyId:n}],e=>e?{...e,scheduledPlan:null,scheduledInterval:null,scheduledAt:null,hasScheduledChange:!1}:e),i.invalidateQueries({queryKey:[C.Zs]}),d({title:"äºç´å¤æ´ãåãæ¶ãã¾ãã",description:"ç¾å¨ã®ãã©ã³ãç¶ç¶ããã¾ã",type:"normal"})}catch(e){M.vF.error("Failed to release scheduled change",e),c({title:"äºç´å¤æ´ã®åãæ¶ãã«å¤±æãã¾ãã",description:(0,H.H4)(e)})}finally{u(!1)}}};return(0,l.FD)("div",{className:"rounded-lg border border-border bg-secondary/30 p-4 flex flex-wrap items-center gap-x-3 gap-y-2",children:[(0,l.FD)("p",{className:"text-sm font-medium",children:["æ¬¡åæ´æ°æ¥ï¼",(0,j.Yq)(x),"ï¼ãã"," ",(0,l.FD)("span",{className:"text-primary",children:[(0,q.by)(h),"ï¼",Q(f),"ï¼"]})," ","ã«å¤ããã¾ã"]}),r&&(0,l.Y)(D.$,{size:"sm",variant:"outline",onClick:g,disabled:m,className:"text-xs",children:m?(0,l.FD)(l.FK,{children:[(0,l.Y)(s.A,{className:"h-3 w-3 mr-1 animate-spin"}),"å¦çä¸..."]}):"äºå®ãåãæ¶ã"})]})}function et(e){let{subscription:t,companyId:a,returnPath:n}=e,r="trial"===t.billingStatus,{setErrorContent:i}=(0,O.useToast)(),[d,c]=(0,p.useState)(!1),o=async()=>{if(!d){c(!0);try{let e=await R({companyId:a,returnPath:n});window.location.href=e}catch(e){i({title:"ã¨ã©ã¼ãçºçãã¾ãã",description:(0,H.H4)(e)}),c(!1)}}};return(0,l.FD)(U.A,{children:[(0,l.FD)(U.A.Header,{children:[(0,l.FD)("div",{className:"flex items-center gap-3",children:[(0,l.FD)(U.A.Title,{className:"mt-0",children:[t.localePlanName,t.interval&&(0,l.FD)("span",{className:"text-sm font-normal text-muted-foreground ml-1.5",children:["ï¼",Q(t.interval),"ï¼"]})]}),(0,l.Y)(Y.E,{variant:"plusBold",children:"ã¾ã¨ãã¦ãå¥ç´ä¸"})]}),(0,l.Y)(U.A.Message,{children:"è¤æ°æ ç¹ãã¾ã¨ããç¹å¥å¥ç´ã§ãå©ç¨ä¸ã§ãããè«æ±ã¯ã°ã«ã¼ãã§ã¾ã¨ãã¦ãæ¯æãããã ãã¾ãã"})]}),(0,l.Y)(U.A.Content,{children:(0,l.FD)("div",{className:"flex flex-wrap gap-x-10 gap-y-3",children:[r?t.localeUpcomingPriceLabel&&(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ã試ãçµäºå¾ã®æé"}),(0,l.FD)("p",{className:"text-base font-semibold mt-0.5",children:[t.localeUpcomingPriceLabel,t.interval&&(0,l.FD)("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["/ ",Q(t.interval)]})]})]}):(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãã®æ ç¹ã®ãå©ç¨æé"}),(0,l.Y)("p",{className:"text-base font-semibold mt-0.5",children:t.localePriceLabel})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:r?"ç¡æã試ãçµäºæ¥":"次åãæ¯æãæ¥"}),(0,l.Y)("p",{className:"text-base font-semibold mt-0.5",children:r?t.localeExpireDate:t.localeNextPaymentDate})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãæ¯æãæ¹æ³"}),(0,l.Y)("p",{className:"text-base font-semibold mt-0.5",children:"ã°ã«ã¼ã䏿¬è«æ±"})]})]})}),(0,l.Y)(U.A.Bottom,{children:(0,l.FD)("div",{className:"flex flex-wrap items-center gap-4",children:[t.canManageGroupBilling&&(0,l.FD)(D.$,{variant:"outline",size:"sm",onClick:o,disabled:d,children:[d&&(0,l.Y)(s.A,{className:"mr-1.5 h-4 w-4 animate-spin"}),"ãæ¯æãæ
å ±ã»è«æ±æ¸ã®ç®¡ç"]}),(0,l.Y)("a",{href:"https://www.nanco.io/free-consultation",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primaryLight underline underline-offset-4",children:"ãã©ã³ã®å¤æ´ã»è§£ç´ã«ã¤ãã¦ç¸è«ãã"})]})})]})}function ea(e){let{subscription:t,userState:a,authorized:n,companyId:i,companyShortId:s,authId:d}=e,c=function(e,t){switch(e){case"trial":return null;case"expired":return"ãã¼ã¿ã¯ä¿åããã¦ãã¾ãããã©ã³ãéå§ããã¨ããã¹ã¦ã®æ©è½ããå©ç¨ããã ãã¾ãã";case"past_due":return"ãæ¯æãã®æ´æ°ãå¿
è¦ã§ããã«ã¼ãæ
å ±ãæ´æ°ããã ãã§ãå¼ãç¶ããå©ç¨ããã ãã¾ãã";case"cancel_scheduled":return t.cancelsAt?"".concat((0,j.Yq)(t.cancelsAt),"ã¾ã§å¼ãç¶ããå©ç¨ããã ãã¾ãã"):"ç¾å¨ã®è«æ±æéçµäºå¾ã«ãã£ã³ã»ã«ããã¾ãã";case"standard_near_limit":return"ãå©ç¨éãä¸éã«è¿ã¥ãã¦ãã¾ãã";case"iap":return t.cancelsAtPeriodEnd?"ã¢ããªèª²éã¯è§£ç´æ¸ã¿ã§ãã".concat(t.localeExpireDate,"ã¾ã
1§å¼ãç¶ããå©ç¨ããã ãã¾ããæéå¾ã«Webçã§æ°ãããã©ã³ããé¸ã³ããã ãã¾ãã"):"Webçã§ã¯å¹´é¡ãã©ã³ã ããã»ã¨ã³ã¿ã¼ãã©ã¤ãº ããé¸ã³ããã ãã¾ãã";default:return""}}(a,t),o=t.hasScheduledChange&&t.scheduledPlan&&t.scheduledAt,m=(0,q.Se)(t)&&"iap"!==a,u=m&&!t.cancelsAtPeriodEnd&&!t.cancelsAt&&!(0,q.Id)(t),h=t.cancelsAt?"æ¯æãæ
å ±ã®å¤æ´ã¯ãã¡ã":"æ¯æãæ
å ±ã®å¤æ´ã»å¥ç´ã®åæ¢ã¯ãã¡ã";return(0,l.FD)(U.A,{children:[(0,l.FD)(U.A.Header,{children:[(0,l.FD)("div",{className:"flex items-center gap-3",children:[(0,l.Y)(U.A.Title,{className:"mt-0",children:"trial"===a?"".concat(k.My,"ä¸"):"expired"===a?"".concat(k.My,"çµäº"):(0,l.FD)(l.FK,{children:[t.localePlanName,t.interval&&(0,l.FD)("span",{className:"text-sm font-normal text-muted-foreground ml-1.5",children:["ï¼",Q(t.interval),"ï¼"]})]})}),function(e){switch(e){case"trial":case"expired":return null;case"past_due":return(0,l.Y)(Y.E,{variant:"minusBold",children:"ãæ¯æãã«åé¡ãããã¾ã"});case"cancel_scheduled":return(0,l.Y)(Y.E,{variant:"grayBold",children:"ãã£ã³ã»ã«äºå®"});case"iap":return(0,l.Y)(Y.E,{variant:"plusBold",children:"ã¢ããªèª²é"});default:return(0,l.Y)(Y.E,{variant:"plusBold",children:"ãå¥ç´ä¸"})}}(a)]}),c&&(0,l.Y)(U.A.Message,{children:c})]}),o&&(0,l.Y)(U.A.Content,{children:(0,l.Y)(ee,{subscription:t,companyId:i,authorized:n})}),("trial"===a||u)&&(0,l.FD)(U.A.Content,{children:["trial"===a&&(0,l.FD)("div",{className:"flex gap-x-10",children:[(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground mb-1",children:"çµäºæ¥"}),(0,l.Y)("p",{className:"text-lg font-semibold leading-none",children:t.localeExpireDate})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground mb-1",children:"æ®ãæ¥æ°"}),(0,l.FD)("p",{className:"text-lg font-semibold leading-none",children:[(0,k.le)(t.expiresDate),(0,l.Y)("span",{className:"text-sm font-normal text-muted-foreground ml-0.5",children:"æ¥"})]})]})]}),u&&(()=>{let e=t.scheduledPlan,a=t.scheduledInterval,r=!!(t.hasScheduledChange&&e),c=r?Z.find(t=>t.key===e):Z.find(e=>e.plan===t.plan),o=r?a:t.interval,m="year"===o||"month"===o?o:"month",u=r?(0,q.by)(e):t.localePlanName,h=c?"year"===m?c.annualMonthlyPrice:c.monthlyPrice:null;return(0,l.FD)("div",{className:"space-y-3",children:[(0,l.FD)("div",{className:"flex flex-wrap gap-x-10 gap-y-3",children:[(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"次åãæ¯æãæ¥"}),(0,l.Y)("p",{className:"text-base font-semibold mt-0.5",children:t.localeNextPaymentDate})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãã©ã³"}),(0,l.FD)("p",{className:"text-base font-semibold mt-0.5",children:[u,(0,l.FD)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:["ï¼",Q(m),"ï¼"]})]})]})]}),(0,l.FD)("div",{className:"flex flex-wrap gap-x-10 gap-y-3",children:[(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãæ¯æãé¡"}),null===h?(0,l.Y)("p",{className:"text-base font-semibold mt-0.5",children:"â"}):"year"===m?(0,l.FD)("p",{className:"text-base font-semibold mt-0.5",children:["\xa5",(12*h).toLocaleString(),"/å¹´",(0,l.FD)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:["ï¼æé¡æç® \xa5",h.toLocaleString(),"ï¼"]})]}):(0,l.FD)("p",{className:"text-base font-semibold mt-0.5",children:["\xa5",h.toLocaleString(),(0,l.Y)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:"/æï¼ææãï¼"})]})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"ãæ¯æãæ¹æ³"}),(0,l.FD)("p",{className:"text-base font-semibold mt-0.5",children:[t.localePaymentMethodName,t.paymentMethodDetail&&(0,l.FD)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:["ï¼",t.paymentMethodDetail,"ï¼"]})]})]})]}),"month"===m&&c&&(()=>{let e=(c.monthlyPrice-c.annualMonthlyPrice)*12;return(0,l.FD)("div",{className:"flex items-center gap-3 mt-4",children:[(0,l.FD)("p",{className:"text-sm font-medium",children:["å¹´æãã«åãæ¿ããã¨",(0,l.FD)("span",{className:"text-primary",children:["å¹´é\xa5",e.toLocaleStr
1ing(),"ãå¾"]})]}),(0,l.Y)(eh,{label:"å¹´æãã«åãæ¿ãã",errorLabel:"",isAdmin:n,companyId:i,companyShortId:s,authId:d,selectedPlan:c.plan,billingInterval:"year"})]})})()]})})()]}),"expired"===a&&(0,l.Y)("div",{className:"px-6 py-4 space-y-2",children:(0,l.FD)("p",{className:"text-xs text-muted-foreground",children:["å°å
¥ã®ãç¸è«ããã¼ã¿ç§»è¡ã®ä»£è¡ãæ¿ã£ã¦ãã¾ãã ç¡ææéå»¶é·ã®ã叿ããæ°è»½ã«ãé£çµ¡ãã ããã",(0,l.Y)("a",{href:"https://www.nanco.io/free-consultation",target:"_blank",rel:"noopener noreferrer",className:"text-primaryLight underline underline-offset-4 hover:text-primary ml-1",children:"ãåãåãã"})]})}),"iap"===a&&(()=>{let e=t.cancelsAtPeriodEnd,a=(0,q.lZ)(t.source),n=e?["ã¢ããªèª²éã¯è§£ç´æ¸ã¿ã§ãã".concat(t.localeExpireDate,"ã¾ã§ç¾å¨ã®ãã©ã³ãå¼ãç¶ããå©ç¨ããã ãã¾ã"),"æéå¾ããã®ãã¼ã¸ãã Web çã§ãã©ã³ããé¸ã³ãã ããï¼å¹´é¡ãã©ã³ã ããã»ã¨ã³ã¿ã¼ãã©ã¤ãºããå©ç¨å¯è½ï¼"]:[a,"ç¾å¨ã®ãã©ã³ã¯æå¹æéã¾ã§å¼ãç¶ããå©ç¨ããã ãã¾ã","æå¹æéå¾ããã®ãã¼ã¸ããæ°ãããã©ã³ããé¸ã³ãã ãã"],r=["â ","â¡","â¢","â£"];return(0,l.Y)(U.A.Content,{children:(0,l.FD)("div",{className:"p-4 rounded-lg bg-secondary/50 border border-border",children:[(0,l.Y)("p",{className:"text-sm font-medium mb-3",children:e?"Webçã§ã®åå¥ç´æé ":"Webçã¸ã®åãæ¿ãæé "}),(0,l.Y)("ol",{className:"space-y-2 text-sm text-muted-foreground",children:n.map((e,t)=>(0,l.FD)("li",{className:"flex gap-2",children:[(0,l.Y)("span",{className:"font-semibold text-foreground",children:r[t]}),(0,l.Y)("span",{children:e})]},t))})]})})})(),(0,l.FD)(U.A.Bottom,{children:[(0,l.FD)("div",{className:"flex flex-col gap-1",children:[m&&(0,l.Y)(eh,{label:h,errorLabel:"ãã®æä½ã«ã¯ç®¡çè
権éãå¿
è¦ã§ãã",isAdmin:n,companyId:i,companyShortId:s,authId:d}),("trial"===a||"expired"===a)&&(0,l.Y)("a",{href:"https://nanco.io/pricing",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primaryLight underline underline-offset-4",children:"ãã©ã³ã«ã¤ãã¦è©³ããç¥ã"})]}),(0,l.FD)(U.A.Action,{children:["trial"===a&&(0,l.Y)(em,{label:"ãã©ã³ãé¸ã¶"}),"expired"===a&&(0,l.Y)(em,{label:"ãã©ã³ãéå§ãã"}),"standard_near_limit"===a&&(0,l.Y)(eu,{label:"ã¢ããã°ã¬ã¼ã",icon:(0,l.Y)(r.A,{className:"h-4 w-4"}),isAdmin:n,companyId:i,companyShortId:s,authId:d}),"cancel_scheduled"===a&&(0,l.Y)(eu,{label:"ãã£ã³ã»ã«ãåãæ¶ã",variant:"outline",isAdmin:n,companyId:i,companyShortId:s,authId:d})]})]})]})}function el(e){var t,a,n,r;let{usage:i,loading:s,isTrial:d}=e,{companyDB:c}=(0,E.Z2)(),o=(r=null==c?void 0:c.company.id,(0,S.I)({queryKey:["company-ai-usage",r],queryFn:()=>(0,L.CS)("/api/v1/ai-usage/summary?companyId=".concat(r)),enabled:!!r,staleTime:6e4}));return(0,l.FD)(U.A,{children:[(0,l.FD)(U.A.Header,{children:[(0,l.Y)(U.A.Title,{children:"使ç¨é"}),d&&(0,l.Y)(U.A.Message,{children:"ç¡æã試ãä¸ã¯ä¸éãªãã§ãå©ç¨ããã ãã¾ãããå¥ç´å¾ã¯é¸æãããã©ã³ã®ä¸éãé©ç¨ããã¾ãã"})]}),(0,l.FD)(U.A.Content,{children:[s&&(0,l.FD)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,l.Y)(F.E,{className:"h-14 w-full"}),(0,l.Y)(F.E,{className:"h-14 w-full"})]}),!s&&i&&d&&(0,l.FD)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground mb-1",children:"ã¢ã¤ãã æ°"}),(0,l.Y)("p",{className:"text-lg font-semibold leading-none tabular-nums",children:i.activeItems.current.toLocaleString()})]}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs text-muted-foreground mb-1",children:"ç»åã¹ãã¬ã¼ã¸"}),(0,l.Y)("p",{className:"text-lg font-semibold leading-none tabular-nums",children:(0,w.z3)(i.storageBytes.current)})]})]}),!s&&i&&!d&&(0,l.FD)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,l.Y)(I,{label:"ã¢ã¤ãã æ°",current:i.activeItems.current,limit:i.activeItems.limit,formatCurrent:i.activeItems.current.toLocaleStr
1ing(),formatLimit:null==i.activeItems.limit?"ç¡å¶é":i.activeItems.limit.toLocaleString()+"ä»¶"}),(0,l.Y)(I,{label:"ç»åã¹ãã¬ã¼ã¸",current:i.storageBytes.current,limit:i.storageBytes.limit,formatCurrent:(0,w.z3)(i.storageBytes.current),formatLimit:null==i.storageBytes.limit?"ç¡å¶é":(0,w.DL)(i.storageBytes.limit)})]}),(0,l.Y)(en,{monthKey:null==(t=o.data)?void 0:t.monthKey,inputTokens:null==(a=o.data)?void 0:a.inputTokens,outputTokens:null==(n=o.data)?void 0:n.outputTokens,loading:o.isPending,error:o.isError})]})]})}function en(e){var t,a;let n=e.monthKey?"".concat(Number(e.monthKey.slice(5,7)),"æ"):"仿",r=null!=(t=e.inputTokens)?t:0,i=null!=(a=e.outputTokens)?a:0;return(0,l.FD)("div",{className:"border-t pt-6",children:[(0,l.FD)("p",{className:"text-xs text-muted-foreground mb-2",children:[n,"ã® AI å©ç¨"]}),e.error?(0,l.Y)("p",{className:"text-xs text-muted-foreground",children:"åå¾ã§ãã¾ããã§ããã"}):e.loading?(0,l.Y)(F.E,{className:"h-5 w-24"}):(0,l.FD)("div",{className:"flex items-baseline gap-3",children:[(0,l.FD)("p",{className:"text-lg font-semibold leading-none tabular-nums",children:[(0,w._y)(r+i),(0,l.Y)("span",{className:"ml-1 text-sm font-normal text-muted-foreground",children:"tokens"})]}),(0,l.FD)("p",{className:"text-xs text-muted-foreground tabular-nums",children:["å
¥å ",(0,w._y)(r)," / åºå ",(0,w._y)(i)]})]})]})}function er(e){let{currentPlan:t,userState:a,interval:n,authorized:r,companyId:i,companyShortId:s,authId:c}=e,[o,m]=(0,p.useState)(!0),{logFunnelStepOnce:u}=(0,_.U)(),h=e=>{m(e),u(B.k.BILLING_INTERVAL_TOGGLE,{interval:e?"year":"month"})};return(0,l.FD)("div",{id:"plans",className:"scroll-mt-4",children:[(0,l.FD)("div",{className:"relative flex items-center justify-center mt-20 mb-4",children:[(0,l.Y)("h3",{className:"absolute left-0 text-sm font-semibold",children:"ãã©ã³æ¯è¼"}),(0,l.FD)("div",{className:"inline-flex items-center rounded-full bg-white shadow-sm p-1 text-sm",children:[(0,l.Y)("button",{className:"rounded-full px-4 py-2 font-medium transition-all ".concat(o?"text-foreground":"bg-primary text-white shadow-sm"),onClick:()=>h(!1),children:"ææã"}),(0,l.FD)("button",{className:"rounded-full px-4 py-2 font-medium transition-all ".concat(o?"bg-primary text-white shadow-sm":"text-foreground"),onClick:()=>h(!0),children:["å¹´æã"," ",(0,l.Y)("span",{className:"tracking-wider ".concat(o?"":"text-primaryLight font-bold"),children:"40%ãå¾"})]})]})]}),(0,l.Y)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:Z.map((e,m)=>{let u=o?"year":"month",h=e.plan===t&&(null==n||n===u),p=e.plan===t,f=Z.findIndex(e=>e.plan===t);return(0,l.Y)("div",{className:"relative flex flex-col rounded-lg bg-white shadow-light ".concat(h?"ring-2 ring-primary":""),children:(0,l.FD)("div",{className:"p-5 flex flex-col flex-1",children:[(0,l.Y)("div",{className:"mb-4",children:(0,l.FD)("div",{className:"flex items-center gap-2",children:[(0,l.Y)("div",{className:"flex h-6 w-6 items-center justify-center rounded bg-secondary text-primary",children:e.icon}),(0,l.Y)("span",{className:"font-semibold",children:e.name})]})}),(0,l.FD)("div",{className:"mb-4",children:[(0,l.FD)("div",{className:"flex items-baseline",children:[(0,l.Y)("span",{className:"text-sm text-muted-foreground",children:"\xa5"}),(0,l.Y)("span",{className:"text-3xl font-bold tabular-nums",children:(o?e.annualMonthlyPrice:e.monthlyPrice).toLocaleString()}),(0,l.FD)("span",{className:"text-sm text-muted-foreground ml-0.5",children:["å/æ",o?"ï¼å¹´æãï¼":"ï¼ææãï¼"]})]}),o&&(0,l.FD)("p",{className:"text-xs text-muted-foreground mt-3",children:["å¹´é¡ \xa5",(12*e.annualMonthlyPrice).toLocaleString(),(0,l.FD)("span",{className:"text-primary ml-1",children:["ï¼å¹´é\xa5",((e.monthlyPrice-e.annualMonthlyPrice)*12).toLocaleString(),"ãå¾ï¼"]})]})]}),(0,l.Y)("div",{className:"border-t border-border pt-4 flex-1",children:(0,l.FD)("ul",{className:"space-y-2.5",children:[e.features.map(e=>(0,l.FD)("li",{className:"flex items-center justify-between text-sm",children:[(0,l.Y)("span",{className:"text-muted-foreground",children:e.label}),(0,l.Y)("span",{className:"font-medium",children:e.value})]},e.label)),(0,l.FD)("li",{className:"flex items-center gap-2 text-xs text-muted-foreground pt-1",children:[(0,l.Y)(d.A,{className:"h-3.5 w-3.5 text-primaryLight flex-shrink-0"}),(0,l.Y)("span",{children:"ãã®ä»ãã¹ã¦ã®æ©è½ãå©ç¨å¯è½"})]})]})}),(0,l.Y)("div",{className:"mt-5 pt-4 border-t border-border",children:(0,l.Y)(eo,{plan:e,currentPlan:t,isCurrentPlan:p,isUpgrade:!p&&m>
1f,isAnnual:o,interval:n,userState:a,authorized:r,companyId:i,companyShortId:s,authId:c})})]})},e.key)})}),(0,l.Y)("p",{className:"text-center text-sm text-muted-foreground mt-4",children:"ã¢ã¤ãã æ°ã»ã¹ãã¬ã¼ã¸ä»¥å¤ã®æ©è½ã¯ãã¹ã¦ã®ãã©ã³ã§å
±éã§å©ç¨ã§ãã¾ã"})]})}let ei=[{question:"ãã©ã³ã«ããéãã¯ãªãã§ããï¼",answer:"ãã©ã³ã«ãã£ã¦ç°ãªãã®ã¯ã¢ã¤ãã æ°ã¨ã¹ãã¬ã¼ã¸å®¹éã®ä¸éã®ã¿ã§ããåºè·ã»å
¥è·ã»æ£å¸ãªã©ã®æ©è½ãã¦ã¼ã¶ã¼æ°ã¯ãã¹ã¦ã®ãã©ã³ã§å¶éãªããå©ç¨ããã ãã¾ãã"},{question:"ã¹ãã¬ã¼ã¸å®¹éã«åçã¯ä½æãããä¿åã§ãã¾ããï¼",answer:"ã¹ãã¼ããã©ã³ã¢ããªã®æ¨æºè¨å®ï¼èªåå§ç¸®ããï¼ã§æ®å½±ã»ä¿åããå ´åã5GB ã§ç´ 10,000 æãç®å®ã§ããæ®å½±å
容ãããªãªã¸ãã«ãè¨å®ã§ä¿åããå ´åã¯å¤åãã¾ãã"},{question:"ã¦ã¼ã¶ã¼æ°ã«ãã£ã¦æéã¯å¤ããã¾ããï¼",answer:"ããããnancoã¯ã¦ã¼ã¶ã¼æ°ã«ããè¿½å æéã¯ããã¾ããããã¼ã å
¨å¡ã§ãå©ç¨ããã ãã¾ãã"},{question:"å¹´æãã¨ææãã¯åãæ¿ãã§ãã¾ããï¼",answer:"ããµãã¹ã¯ãªãã·ã§ã³ãæ´æ°ããããã¤ã§ãåãæ¿ãã§ãã¾ããææãâå¹´æãã¯ãã®æ¥ããããå¹´æãã«åãæ¿ããï¼å·®é¡ã¯æ¥å²ãç²¾ç®ããã¾ãï¼ãå¹´æãâææãã¯æ¬¡åã®æ´æ°æ¥ï¼ç¾å¨ã®å¹´æãæéã®çµäºæï¼ããææãã«åãæ¿ããã¾ããå¹´æãã¯ææãã«æ¯ã¹ã¦ç´40%ãå¾ã§ãã"},{question:"ãã©ã³ã夿´ããã¨ããã¤ããæ°ããæéã«ãªãã¾ããï¼",answer:"ä¸ä½ãã©ã³ã¸ã®å¤æ´ï¼ä¾: ã¹ã¿ã³ãã¼ãâããï¼ã¯å¤æ´ããæç¹ã§ããã«æ°ãã©ã³ã¸åãæ¿ãããç¾å¨ã®è«æ±æéã®æ®ãæ¥æ°åã®å·®é¡ãæ¥å²ãã§è«æ±ããã¾ããä¸ä½ãã©ã³ã¸ã®å¤æ´ï¼ä¾: ããâã¹ã¿ã³ãã¼ãï¼ã¯ãç¾å¨ã®è«æ±æéãçµãã£ãã¿ã¤ãã³ã°ããæ°ãã©ã³ã«åãæ¿ããã¾ããæéãçµããã¾ã§ã¯ç¾å¨ã®ãã©ã³ããã®ã¾ã¾ãå©ç¨ããã ããã®ã§ã追å ã®æ¯æãã¯çºçãã¾ããã"},{question:"è§£ç´ããã¨ãã¼ã¿ã¯ã©ããªãã¾ããï¼",answer:"è§£ç´å¾ãè«æ±æéã®çµäºæ¥ã¾ã§ã¯ãã¹ã¦ã®æ©è½ããå©ç¨ããã ãã¾ããæéçµäºå¾ã¯ãã¼ã¿ã®é²è¦§ã®ã¿å¯è½ã¨ãªãããã®å¾ä¸å®æéçµéå¾ã«åé¤ããã¾ãã\n\nâ»è§£ç´ãã¦ãã¢ã«ã¦ã³ããã¯ã¼ã¯ã¹ãã¼ã¹ã®ãã¼ã¿ã¯åé¤ããã¾ãããéä¼ï¼ã¯ã¼ã¯ã¹ãã¼ã¹ãå®å
¨ã«åé¤ï¼ãããå ´åã¯ãè¨å® ï¼ åºæ¬æ
å ± ãããã¯ã¼ã¯ã¹ãã¼ã¹åé¤ããè¡ã£ã¦ãã ããã"},{question:"é 忏ãè«æ±æ¸ã¯ã©ãããåå¾ã§ãã¾ããï¼",answer:"ãæ¯æãæ
å ±ã®å¤æ´ã»å¥ç´ã®åæ¢ã¯ãã¡ããããæ±ºæ¸ç®¡çãã¼ã¸ã¸é²ã¿ããè«æ±å±¥æ´ãããåæã®é 忏ã»è«æ±æ¸ï¼PDFï¼ããã¦ã³ãã¼ãã§ãã¾ãã"},{question:"ã¢ããªããå¥ç´ããå ´åã¯ã©ããªãã¾ããï¼",answer:"iOS/Androidã¢ããªããå¥ç´ããå ´åã¯ãåã¹ãã¢ã®è¨å®ç»é¢ãããã©ã³ã®ç®¡çã»è§£ç´ãè¡ã£ã¦ãã ããã"}];function es(e){var t;let{reservation:a}=e,n=null!=(t=a.label)?t:"å²å¼ã¯ã¼ãã³",r=null!=a.percentOff?"".concat(a.percentOff,"% ãªã"):null;return(0,l.FD)("div",{className:"flex items-start gap-3 rounded-lg border border-teal-200 bg-teal-50 p-4",children:[(0,l.Y)(c.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-teal-700"}),(0,l.FD)("div",{children:[(0,l.FD)("p",{className:"text-sm font-semibold text-teal-900",children:["ã¯ã¼ãã³ã",n,"ã",r?"ï¼".concat(r,"ï¼"):"","ããã®ã¯ã¼ã¯ã¹ãã¼ã¹ã«é©ç¨ããã¾ã"]}),(0,l.Y)("p",{className:"mt-1 text-sm text-teal-800",children:"ãã©ã³ãé¸ãã§æ±ºæ¸ã«é²ãã¨ãå²å¼å¾ã®ä¾¡æ ¼ãèªåã§è¡¨ç¤ºããã¾ãã"})]})]})}function ed(e){let{preview:t}=e,a=t.nextPaymentAt?(0,j.Yq)(new Date(1e3*t.nextPaymentAt)):null;return(0,l.FD)("div",{className:"flex items-start gap-3 rounded-lg border border-teal-200 bg-teal-50 p-4",children:[(0,l.Y)(c.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-teal-700"}),(0,l.FD)("div",{children:[(0,l.FD)("p",{className:"text-sm font-semibold text-teal-900",children:["ã¯ã¼ãã³é©ç¨ä¸ï¼æ¬¡åã®ãæ¯æã㯠",T(t.amountDue,t.currency)," ã§ã"]}),(0,l.FD)("p",{className:"mt-1 text-sm text-teal-800",children:[T(t.discountTotal,t.currency)," ã®å²å¼ãé©ç¨ããã¦ãã¾ãã",a?"次åè«æ±æ¥: ".concat(a):""]})]})]})}function ec(){return(0,l.FD)("div",{children:[(0,l.Y)("h3",{className:"text-sm font-semibold mt-10 mb-3",children:"ãããã質å"}),(0,l.Y)("div",{className:"bg-white shadow-light rounded-lg overflow-hidden",children:(0,l.Y)(y,{type:"multiple",className:"w-full",children:ei.map((e,t)=>(0,l.FD)(N,{value:"faq-".concat(t),children:[(0,l.Y)(v,{className:"px-6 py-4 text-sm text-left hover:no-underline hover:bg-secondary/50",children:e.question}),(0,l.Y)(b,{className:"px-6 pb-4 text-sm text-muted-foreground leading-relaxed whitespace-pre-line",children:e.answer})]},t))})})]})}function eo(e){let{plan:t,currentPlan:a,isCurrentPlan:n,isUpgrade:i,isAnnual
1:s,interval:d,userState:c,authorized:o,companyId:m,companyShortId:u,authId:h}=e,{logFeatureEvent:p}=(0,_.U)(),f="month"===d,x=!n&&!i;if("iap"===c)return(0,l.Y)("div",{className:"py-2"});let g=s?"year":"month",y=e=>{p(B.k.BILLING_UPGRADE_CLICK,{fromPlan:a,toPlan:t.plan,interval:e,isUpgrade:i})};if("trial"===c||"expired"===c)return(0,l.Y)(eu,{label:"ãã®ãã©ã³ã§ã¯ããã",isAdmin:o,companyId:m,companyShortId:u,authId:h,fullWidth:!0,variant:"outline",selectedPlan:t.plan,billingInterval:g});if(n){if(f&&s){let e=(t.monthlyPrice-t.annualMonthlyPrice)*12;return(0,l.FD)("div",{className:"space-y-1.5",children:[(0,l.Y)(eu,{label:"å¹´æãã«å¤æ´",isAdmin:o,companyId:m,companyShortId:u,authId:h,fullWidth:!0,variant:"default",selectedPlan:t.plan,billingInterval:"year",onBeforeRedirect:()=>y("year")}),(0,l.FD)("p",{className:"text-xs text-center text-primary font-medium",children:["å¹´é\xa5",e.toLocaleString(),"ãå¾"]})]})}return f||"year"!==d||s?(0,l.FD)("div",{className:"w-full py-2.5 text-center text-sm text-muted-foreground border border-border rounded-md",children:["ç¾å¨ã®ãã©ã³",f?"ï¼ææãï¼":""]}):(0,l.Y)(eu,{label:"ææãã«å¤æ´",isAdmin:o,companyId:m,companyShortId:u,authId:h,fullWidth:!0,variant:"outline",selectedPlan:t.plan,billingInterval:"month",onBeforeRedirect:()=>y("month")})}return i?(0,l.Y)(eu,{label:"ã¢ããã°ã¬ã¼ã",icon:(0,l.Y)(r.A,{className:"h-4 w-4"}),isAdmin:o,companyId:m,companyShortId:u,authId:h,fullWidth:!0,variant:"outline",selectedPlan:t.plan,billingInterval:g,onBeforeRedirect:()=>y(g)}):x?(0,l.Y)(eu,{label:"ãã®ãã©ã³ã«å¤æ´",isAdmin:o,companyId:m,companyShortId:u,authId:h,fullWidth:!0,variant:"ghost",className:"font-normal",selectedPlan:t.plan,billingInterval:g,onBeforeRedirect:()=>y(g)}):(0,l.Y)("div",{className:"py-2"})}function em(e){return(0,l.Y)(D.$,{asChild:!0,className:"gap-2",children:(0,l.FD)("a",{href:"#plans",children:[(0,l.Y)(o.A,{className:"h-4 w-4"}),e.label]})})}function eu(e){let{label:t,icon:a,isAdmin:n,companyId:r,companyShortId:i,authId:d,fullWidth:c,variant:m,className:u,selectedPlan:h,billingInterval:p,onBeforeRedirect:f}=e,{redirect:x,loading:y}=V({isAdmin:n,companyId:r,companyShortId:i,authId:d,selectedPlan:h,billingInterval:p});return(0,l.FD)(D.$,{variant:null!=m?m:"default",className:(0,g.cn)("gap-2",c&&"w-full",u),onClick:()=>{null==f||f(),x()},disabled:y,children:[y?(0,l.Y)(s.A,{className:"h-4 w-4 animate-spin"}):null!=a?a:(0,l.Y)(o.A,{className:"h-4 w-4"}),t]})}function eh(e){let{label:t,errorLabel:a,isAdmin:n,companyId:r,companyShortId:i,authId:d,selectedPlan:c,billingInterval:o}=e,{redirect:m,loading:u}=V({isAdmin:n,companyId:r,companyShortId:i,authId:d,selectedPlan:c,billingInterval:o});return n?(0,l.FD)(D.$,{variant:"link",className:"px-0 h-auto text-sm text-primaryLight",onClick:m,disabled:u,children:[u&&(0,l.Y)(s.A,{className:"h-3.5 w-3.5 animate-spin mr-1"}),t]}):(0,l.Y)("p",{className:"text-sm text-muted-foreground",children:a})}},95423:(e,t,a)=>{"use strict";function l(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/1024**t;return"".concat(a.toFixed(+(a<10))," ").concat(["B","KB","MB","GB","TB"][t])}function n(e){return e>=0x40000000?"".concat(Math.round(e/0x40000000),"GB"):e>=1048576?"".concat(Math.round(e/1048576),"MB"):l(e)}function r(e){return e>=90?"bg-red-500":e>=70?"bg-amber-500":"bg-primaryLight"}function i(e){let t=Math.max(0,Math.round(e));if(t<1e3)return t.toLocaleString();if(t<1e6){let e=t/1e3;return"".concat(e<10?e.toFixed(1):Math.round(e).toLocaleString(),"k")}let a=t/1e6;return"".concat(a<10?a.toFixed(2):a<100?a.toFixed(1):Math.round(a).toLocaleString(),"M")}a.d(t,{DL:()=>n,Pd:()=>r,_y:()=>i,z3:()=>l})}},e=>{var t=t=>e(e.s=t);e.O(0,[6482,4567,3085,5505,3139,3535,9769,9384,8966,8456,4645,636,6593,8792],()=>t(54885)),_N_E=e.O()}]);
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.