PageSourceSearch

https://beebro.com/app/assets/ProrationNote-VE_SNUtN.js

js beebro.com collected 2026-09-24 14:40:22 UTC 6,910 bytes, 1 lines download raw bytes

1import{o as e,t}from"./react-B8HINTYZ.js";import{i as n}from"./bundle-mjs-C77yRssA.js";import{a as r,c as i,i as a}from"./i18n-Uclp8k7f.js";import{t as o}from"./Button-Cl7lg8gb.js";import{t as s}from"./Sheet-CNX3uLfs.js";import{s as c}from"./billing-B5fdBcMc.js";import{o as l,r as u}from"./format-HDAawYrk.js";var d=n();function f({selected:e,onSelect:t,title:n,hint:r,disabled:a=!1}){return(0,d.jsxs)(`button`,{type:`button`,"aria-pressed":e,disabled:a,onClick:t,className:i(`flex w-full items-start gap-3 rounded-2xl border p-4 text-left outline-none transition-colors`,e?`border-transparent bg-surface-bee`:`border-line bg-background`,a?`opacity-50`:null),children:[(0,d.jsx)(`span`,{"aria-hidden":`true`,className:i(`mt-[1px] flex size-[22px] shrink-0 items-center justify-center rounded-full border-2`,e?`border-current text-foreground`:`border-line-focus`),children:e?(0,d.jsx)(`span`,{className:`size-[10px] rounded-full bg-current`}):null}),(0,d.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,d.jsx)(`span`,{className:`text-[14px] font-medium leading-[1.3] tracking-[-0.28px] text-foreground`,children:n}),(0,d.jsx)(`span`,{className:`text-[12px] font-medium leading-[1.3] text-[#999]`,children:r})]})]})}function p({prefix:e,name:t,tags:n,right:r,className:a}){return(0,d.jsxs)(`div`,{className:i(`flex w-full items-start justify-between gap-3 rounded-2xl border border-[#f3f4f6] bg-white p-4`,a),children:[(0,d.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-[10px]`,children:[(0,d.jsxs)(`span`,{className:`text-[14px] font-medium leading-[1.3] tracking-[-0.28px] text-black`,children:[e,` · `,t]}),n&&n.length>0?(0,d.jsx)(`div`,{className:`flex flex-col items-start gap-[5px]`,children:n.map(e=>(0,d.jsx)(`span`,{className:`flex items-center rounded-[4px] bg-[#f7f7f7] px-[5px] py-1 text-[10px] leading-none text-black`,children:e},e))}):null]}),r?(0,d.jsx)(`span`,{className:`shrink-0 text-[14px] font-medium leading-[1.3] tracking-[-0.28px] text-[#999]`,children:r}):null]})}var m=e(t(),1),h={quota_drops:`planDowngradeHintQuotaDrops`,resources_drop:`planDowngradeHintResourcesDrop`,remaining_period_lost:`planDowngradeHintPeriodLost`},g={day:`numeric`,month:`long`};function _(e){let t=r(),n=l(a()),i=e=>new Intl.NumberFormat(n,{notation:`compact`,maximumFractionDigits:0}).format(e);return(e?.warnings??[]).map(r=>{if(r===`limit_drops_below_usage`){let{used_tokens:r,new_limit_tokens:a,window_ends_at:o}=e??{};return r!=null&&a!=null&&o?t(`planDowngradeHintLimitBelowUsage`,{used:i(r),limit:i(a),date:u(o,g,n)}):t(`planDowngradeHintLimitBelowUsageShort`)}let a=h[r];return a?t(a):``}).filter(e=>e.length>0)}function v(e,t=!1){let[n,r]=(0,m.useState)(null),i=c(e),a=e?.now.available!==!1&&!t,o=i?n??e?.recommended??`deferred`:`now`;return{mode:o===`now`&&!a?`deferred`:o,setMode:r,hasChoice:i,nowAvailable:a,reset:()=>r(null)}}var y={day:`2-digit`,month:`2-digit`,year:`numeric`};function b({activation:e,mode:t,onModeChange:n,currentName:i,currentTags:o,nextName:s,nextTags:c,nextRight:m,nowDisabled:h=!1,nowDisabledHint:g,disabled:v=!1}){let b=r(),x=l(a()),S=e.deferred?.starts_at??null,C=S?u(S,y,x):``,w=_(e.now).join(` · `);return(0,d.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,d.jsxs)(`div`,{className:`flex flex-col gap-[10px]`,children:[(0,d.jsx)(p,{prefix:b(`planDowngradeCurrentTariff`),name:i,tags:o,right:C?b(`planDowngradeCurrentUntil`,{date:C}):void 0}),(0,d.jsx)(p,{prefix:b(`planDowngradeNewTariff`),name:s,tags:c,right:m})]}),(0,d.jsxs)(`div`,{className:`flex flex-col gap-[10px]`,children:[(0,d.jsx)(f,{selected:t===`now`,onSelect:()=>n(`now`),disabled:v||h||e.now.available===!1,title:b(`planDowngradeActivateNow`),hint:(h?g:w)||w||b(`planDowngradeHintPeriodLost`)}),(0,d.jsx)(f,{selected:t===`deferred`,onSelect:()=>n(`deferred`),disabled:v,title:b(`planDowngradeActivateDeferred`,{date:C}),hint:b(`planDowngradeHintDeferred`)})]})]})}function x({open:e,onOpenChange:t,onBack:n,onConfirm:i,activation:a,currentName:c,currentTags:l,nextName:u,nextTags:f,nextRight:p,nowDisabled:m=!1,nowDisabledHint:h,pending:g=!1}){let _=r(),{mode:y,setMode:x}=v(a,m);return(0,d.jsx)(s,{mode:`modal`,open:e,onOpenChange:t,showBack:!0,showDesktopBack:!!n,onBack:n??(()=>t(!1)),title:_(`planDowngradeTitle`),contentClassName:`flex flex-col p-0`,children:(0,d.jsxs)(`div`,{className:`flex min-h-full flex-1 flex-col`,children:[(0,d.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[480px] flex-1 flex-col gap-8 px-4 pt-1 lg:max-w-[700px] lg:px-0`,children:[(0,d.jsx)(`h1`,{className:`hidden text-[28px] font-bold leading-none tracking-[-0.56px] text-foreground lg:block`,children:_(`planDowngradeTitle`)}),(0,d.jsx)(b,{activation:a,mode:y,onModeChange:x,currentName:c,currentTags:l,nextName:u,nextTags:f,nextRight:p,nowDisabled:m,nowDisabledHint:h,disabled:g})]}),(0,d.jsx)(`div`,{className:`sticky bottom-0 mx-auto flex w-full max-w-[480px] flex-col gap-4 bg-background px-4 pb-[calc(var(--sa-bottom)+32px)] pt-2.5 lg:max-w-[700px] lg:px-0`,children:(0,d.jsx)(o,{type:`button`,variant:`info`,className:`w-full`,loading:g,onClick:()=>i(y),children:_(`planDowngradeConfirm`)})})]})})}var S=e=>
1(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:19,height:19,viewBox:`0 0 19 19`,fill:`none`,...e,children:[(0,d.jsxs)(`g`,{clipPath:`url(#clip0_4624_154388)`,children:[(0,d.jsx)(`path`,{d:`M2.375 9.5C2.375 10.4357 2.55929 11.3622 2.91736 12.2266C3.27542 13.0911 3.80025 13.8765 4.46186 14.5381C5.12348 15.1998 5.90894 15.7246 6.77338 16.0826C7.63783 16.4407 8.56433 16.625 9.5 16.625C10.4357 16.625 11.3622 16.4407 12.2266 16.0826C13.0911 15.7246 13.8765 15.1998 14.5381 14.5381C15.1998 13.8765 15.7246 13.0911 16.0826 12.2266C16.4407 11.3622 16.625 10.4357 16.625 9.5C16.625 7.61033 15.8743 5.79806 14.5381 4.46186C13.2019 3.12567 11.3897 2.375 9.5 2.375C7.61033 2.375 5.79806 3.12567 4.46186 4.46186C3.12567 5.79806 2.375 7.61033 2.375 9.5Z`,stroke:`currentColor`,strokeWidth:1.6,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,d.jsx)(`path`,{d:`M9.5 7.125H9.50875`,stroke:`currentColor`,strokeWidth:1.6,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,d.jsx)(`path`,{d:`M8.70703 9.5H9.4987V12.6667H10.2904`,stroke:`currentColor`,strokeWidth:1.6,strokeLinecap:`round`,strokeLinejoin:`round`})]}),(0,d.jsx)(`defs`,{children:(0,d.jsx)(`clipPath`,{id:`clip0_4624_154388`,children:(0,d.jsx)(`rect`,{width:19,height:19,fill:`white`})})})]});function C({amount:e,full:t}){let n=r();return(0,d.jsxs)(`div`,{className:`flex w-full items-start gap-2 rounded-[10px] bg-surface-bee py-2.5 pl-2.5 pr-3.5`,children:[(0,d.jsx)(S,{className:`size-[19px] shrink-0 text-foreground`}),(0,d.jsxs)(`p`,{className:`min-w-0 flex-1 text-body font-medium leading-[1.3] tracking-[-0.28px] text-foreground`,children:[n(`tariffSelectProrationNote`,{amount:e}),(0,d.jsx)(`br`,{}),n(`tariffSelectProrationNext`,{full:t})]})]})}export{p as a,v as i,x as n,f as o,b as r,C as t};

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.