PageSourceSearch

https://n26.com/_build/assets/index-D2KXizHX.js

js n26.com collected 2026-10-01 08:33:31 UTC 7,406 bytes, 1 lines download raw bytes

1import{j as u}from"./jsx-runtime-CiSVbEyf.js";import{c as V}from"./clsx-DG2FZI_l.js";import{x as le,r as s}from"./chunk-62JRHF6Z-DResD4R9.js";import{c as U,b as z,m as de,P as S,e as F,d as Y,l as fe,f as ve}from"./index-CrdEqtib.js";import{c as be,u as q}from"./index-DqOFUWBN.js";import{u as pe,t as me}from"./index-BxMHtWZH.js";import{B as ge}from"./Box-Uzl25Y1I.js";var Te=Object.defineProperty,Ie=(t,e)=>Te(t,"name",{value:e,configurable:!0});function Fe(t,[e,n]){return Math.min(n,Math.max(e,t))}Ie(Fe,"clamp");var ye=Object.defineProperty,N=(t,e)=>ye(t,"name",{value:e,configurable:!0}),j=!1;function J(){const[t,e]=s.useState(j);return s.useEffect(()=>{j||(j=!0,e(!0))},[]),t}N(J,"useIsHydrated");var Q=le[" useSyncExternalStore ".trim().toString()];function X(){return()=>{}}N(X,"subscribe");function Z(){return Q(X,()=>!0,()=>!1)}N(Z,"useIsHydratedModern");var Re=typeof Q=="function"?Z:J,xe=Object.defineProperty,_=(t,e)=>xe(t,"name",{value:e,configurable:!0}),M="rovingFocusGroup.onEntryFocus",_e={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[D,W,Ce]=be(P),[Ee,ee]=U(P,[Ce]),[Se,he]=Ee(P),we=s.forwardRef(_(function(e,n){return u.jsx(D.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(D.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ae,{...e,ref:n})})})},"RovingFocusGroup")),Ae=s.forwardRef(_(function(e,n){const{__scopeRovingFocusGroup:o,orientation:r,loop:l=!1,dir:f,currentTabStopId:c,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:T,onEntryFocus:p,preventScrollOnEntryFocus:a=!1,...i}=e,m=s.useRef(null),C=pe(n,m),E=q(f),[w,R]=z({prop:c,defaultProp:b??null,onChange:T,caller:P}),[d,y]=s.useState(!1),A=de(p),I=W(o),g=s.useRef(!1),[ae,B]=s.useState(0);return s.useEffect(()=>{const v=m.current;if(v)return v.addEventListener(M,A),()=>v.removeEventListener(M,A)},[A]),u.jsx(Se,{scope:o,orientation:r,dir:E,loop:l,currentTabStopId:w,onItemFocus:s.useCallback(v=>R(v),[R]),onItemShiftTab:s.useCallback(()=>y(!0),[]),onFocusableItemAdd:s.useCallback(()=>
1B(v=>v+1),[]),onFocusableItemRemove:s.useCallback(()=>B(v=>v-1),[]),children:u.jsx(S.div,{tabIndex:d||ae===0?-1:0,"data-orientation":r,...i,ref:C,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{g.current=!0}),onFocus:F(e.onFocus,v=>{const se=!g.current;if(v.target===v.currentTarget&&se&&!d){const $=new CustomEvent(M,_e);if(v.currentTarget.dispatchEvent($),!$.defaultPrevented){const G=I().filter(x=>x.focusable),ce=G.find(x=>x.active),ie=G.find(x=>x.id===w),ue=[ce,ie,...G].filter(Boolean).map(x=>x.ref.current);L(ue,a)}}g.current=!1}),onBlur:F(e.onBlur,()=>y(!1))})})},"RovingFocusGroupImpl")),Pe="RovingFocusGroupItem",Ge=s.forwardRef(_(function(e,n){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:l=!1,tabStopId:f,children:c,...b}=e,T=Y(),p=f||T,a=he(Pe,o),i=a.currentTabStopId===p,m=W(o),{onFocusableItemAdd:C,onFocusableItemRemove:E,currentTabStopId:w}=a,R=Re();return fe(()=>{if(!(!R||!r))return C(),()=>E()},[R,r,C,E]),s.useEffect(()=>{if(!(R||!r))return C(),()=>E()},[R,r,C,E]),u.jsx(D.ItemSlot,{scope:o,id:p,focusable:r,active:l,children:u.jsx(S.span,{tabIndex:i?0:-1,"data-orientation":a.orientation,...b,ref:n,onMouseDown:F(e.onMouseDown,d=>{r?a.onItemFocus(p):d.preventDefault()}),onFocus:F(e.onFocus,()=>a.onItemFocus(p)),onKeyDown:F(e.onKeyDown,d=>{if(d.key==="Tab"&&d.shiftKey){a.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const y=oe(d,a.orientation,a.dir);if(y!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||d.shiftKey)return;d.preventDefault();let I=m().filter(g=>g.focusable).map(g=>g.ref.current);if(y==="last")I.reverse();else if(y==="prev"||y==="next"){y==="prev"&&I.reverse();const g=I.indexOf(d.currentTarget);I=a.loop?re(I,g+1):I.slice(g+1)}setTimeout(()=>L(I))}}),children:typeof c=="function"?c({isCurrentTabStop:i,hasTabStop:w!=null}):c})})},"RovingFocusGroupItem")),je={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function te(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}_(te,"getDirectionAwareKey");function oe(t,e,n){const o=te(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return je[o]}_(oe,"getFocusIntent");function L(t,e=!1){const n=document.activeElement;for(const o of t)if(o===n||(o.focus({preventScroll:e}),document.activeElement!==n))return}_(L,"focusFirst");function re(t,e){return t.map((n,o)=>t[(e+o)%t.length])}_(re,"wrapArray");var Me=we,De=Ge,Ne=Object.defineProperty,h=(t,e)=>Ne(t,"name",{value:e,configurable:!0}),O="Tabs",[Le,rt]=U(O,[ee]),ne=ee(),[Oe,k]=Le(O),ke=s.forwardRef(h(function(e,n){const{__scopeTabs:o,value:r,onValueChange:l,defaultValue:f,orientation:c="horizontal",dir:b,activationMode:T="automatic",...p}=e,a=q(b),[i,m]=z({prop:r,onChange:l,defaultProp:f??"",caller:O});return u.jsx(Oe,{scope:o,baseId:Y(),value:i,onValueChange:m,orientation:c,dir:a,activationMode:T,children:u.jsx(S.div,{dir:a,"data-orientation":c,...p,ref:n})})},"Tabs")),Ke="TabsList",He=s.forwardRef(h(function(e,n){const{__scopeTabs:o,loop:r=!0,...l}=e,f=k(Ke,o),c=ne(o);return u.jsx(Me,{asChild:!0,...c,orientation:f.orientation,dir:f.dir,loop:r,children:u.jsx(S.div,{role:"tablist","aria-orientation":f.orientation,...l,ref:n})})},"TabsList")),Be="TabsTrigger",$e=s.forwardRef(h(function(e,n){const{__scopeTabs:o,value:r,disabled:l=!1,...f}=e,c=k(Be,o),b=ne(o),T=K(c.baseId,r),p=H(c.baseId,r),a=r===c.value;return u.jsx(De,{asChild:!0,...b,focusable:!l,active:a,children:u.jsx(S.button,{type:"button",role:"tab","aria-selected":a,"aria-controls":p,"data-state":a?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:T,...f,ref:n,onMouseDown:F(e.onMouseDown,i=>{!l&&i.button===0&&i.ctrlKey===!1?c.onValueChange(r):i.preventDefault()}),onKeyDown:F(e.onKeyDown,i=>{l||i.target!==i.currentTarget||[" ","Enter"].includes(i.key)&&c.onValueChange(r)}),onFocus:F(e.onFocus,()=>{const i=c.activationMode!=="manual";!a&&!l&&i&&c.onValueChange(r)})})})},"TabsTrigger")),Ve="TabsContent",Ue=s.forwardRef(h(function(e,n){const{__scopeTabs:o,value:r,forceMount:l,children:f,...c}=e,b=k(Ve,o),T=K(b.baseId,r),p=H(b.baseId,r),a=r===b.value,i=s.useRef(a);return s.useEffect(()=>{const m=requestAnimationFrame(()=>i.current=!1);return()=>cancelAnimationFrame(m)},[]),u.jsx(ve,{present:l||a,children:({present:m})=>u.jsx(S.div,{"data-state":a?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":T,hidden:!m,id:p,tabIndex:0,...c,ref:n,style:{...e.style,animationDuration:i.current?"0s":void 0},children:m&&f})})},"TabsContent"));function K(t,e){return`${t}-trigger-${e}`}h(K,"makeTriggerId");function H(t,e){return`${t}-content-${e}`}h(H,"makeContentId");var nt=ke,at=He,ze=$e,st=Ue;const Ye=({fullWidth:t=!1})=>V(me({variant:"x-small",color:"gray"}),"z-1 transition-all","data-[state=active]:text-nemoBlack","focus-visible:nemoGray focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden","disabled:pointer-events-none disabled:opacity-50",t&&"flex-1"),qe=({fullWidth:t,children:e,...n})=>u.jsx(ze,{asChild:!0,className:V(t&&"w-full"),...n,children:u.jsx(ge,{as:"button",py:4,px:12,borderRadius:8,className:Ye({fullWidth:t}),children:e})});qe.displayName="TabTrigger";const ct=typeof window>"u"?s.useEffect:s.useLayoutEffect;export{st as C,at as L,nt as R,qe as T,Fe as c,Ye as t,ct as u};

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.