Files
boc/web/_next/static/chunks/2_esa3vqemunu.js
T

1 line
26 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91027,e=>{"use strict";var t,a,i,n=e.i(1624),r=e.i(34772),s=e.i(43673);e.s([],95977),e.i(95977),e.i(59217);var l=e.i(62714),o=e.i(44727),c=e.i(88368),d=e.i(1572),u=e.i(46392),f=e.i(93002),h=e.i(33817);let x=l.createContext(void 0);function p(){let e=l.useContext(x);if(void 0===e)throw Error((0,h.default)(64));return e}let b=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),v={tabActivationDirection:e=>({[b.activationDirection]:e})};var m=e.i(93671),g=e.i(78495);let E=l.forwardRef(function(e,t){let{className:a,defaultValue:i=0,onValueChange:r,orientation:s="horizontal",render:h,value:p,style:b,...E}=e,N=void 0!==e.defaultValue,j=l.useRef([]),[R,w]=l.useState(()=>new Map),[S,C]=(0,o.useControlled)({controlled:p,default:i,name:"Tabs",state:"value"}),k=void 0!==p,[I,A]=l.useState(()=>new Map),B=l.useRef(void 0),T=l.useCallback(e=>{if(void 0===e)return null;for(let[t,a]of I.entries())if(null!=a&&e===(a.value??a.index))return t;return null},[I]),[D,L]=l.useState(()=>({previousValue:S,tabActivationDirection:"none"})),{previousValue:O,tabActivationDirection:_}=D,M=_,P=!1;O!==S&&(M=y(O,S,s,I),P=null!=O&&null!=S&&null==T(S));let W=P?O:S,F=O!==W||_!==M;(0,c.useIsoLayoutEffect)(()=>{F&&L({previousValue:W,tabActivationDirection:M})},[W,F,M]);let z=(0,d.useStableCallback)((e,t)=>{t.activationDirection=y(S,e,s,I),r?.(e,t),t.isCanceled||C(e)}),H=(0,d.useStableCallback)((e,t)=>{r?.(e,(0,m.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),V=(0,d.useStableCallback)((e,t)=>{w(a=>{if(a.get(e)===t)return a;let i=new Map(a);return i.set(e,t),i})}),Y=(0,d.useStableCallback)((e,t)=>{w(a=>{if(!a.has(e)||a.get(e)!==t)return a;let i=new Map(a);return i.delete(e),i})}),K=l.useCallback(e=>R.get(e),[R]),U=l.useCallback(e=>{for(let t of I.values())if(e===t?.value)return t?.id},[I]),$=l.useMemo(()=>({getTabElementBySelectedValue:T,getTabIdByPanelValue:U,getTabPanelIdByValue:K,onValueChange:z,orientation:s,registerMountedTabPanel:V,setTabMap:A,unregisterMountedTabPanel:Y,tabActivationDirection:M,value:S}),[T,U,K,z,s,V,A,Y,M,S]),q=l.useMemo(()=>{for(let e of I.values())if(null!=e&&e.value===S)return e},[I,S]),G=l.useMemo(()=>{for(let e of I.values())if(null!=e&&!e.disabled)return e.value},[I]),J=l.useRef(!N),X=l.useRef(i),Z=l.useRef(N),Q=l.useRef(!1);(0,c.useIsoLayoutEffect)(()=>{if(k)return;function e(e,t){C(e),L(t=>t.previousValue===e&&"none"===t.tabActivationDirection?t:{previousValue:e,tabActivationDirection:"none"}),H(e,t),J.current=!1}if(0===I.size){Q.current&&null!==S&&!B.current?.isConnected&&e(null,g.REASONS.missing);return}Q.current=!0,B.current=I.keys().next().value;let t=q?.disabled,a=null==q&&null!==S;if(t||S!==X.current||(Z.current=!1),Z.current&&t&&S===X.current)return;let i=J.current;if(t||a){let a=G??null;if(S===a){J.current=!1;return}let n=g.REASONS.missing;i?n=g.REASONS.initial:t&&(n=g.REASONS.disabled),e(a,n);return}i&&null!=q&&(H(S,g.REASONS.initial),J.current=!1)},[G,k,H,q,C,I,S]);let ee={orientation:s,tabActivationDirection:M},et=(0,u.useRenderElement)("div",e,{state:ee,ref:t,props:E,stateAttributesMapping:v});return(0,n.jsx)(x.Provider,{value:$,children:(0,n.jsx)(f.CompositeList,{elementsRef:j,children:et})})});function y(e,t,a,i){if(null==e||null==t)return"none";let n=null,r=null;for(let[a,s]of i.entries()){if(null==s)continue;let i=s.value??s.index;if(e===i&&(n=a),t===i&&(r=a),null!=n&&null!=r)break}if(null==n||null==r)return n!==r&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===a?t>e?"right":"left":t>e?"down":"up":"none";let s=n.getBoundingClientRect(),l=r.getBoundingClientRect();if("horizontal"===a){if(l.left<s.left)return"left";if(l.left>s.left)return"right"}else{if(l.top<s.top)return"up";if(l.top>s.top)return"down"}return"none"}var N=e.i(12229),j=e.i(7345),R=e.i(51385);let w="data-composite-item-active";var S=e.i(54412);let C=l.createContext(void 0);function k(){let e=l.useContext(C);if(void 0===e)throw Error((0,h.default)(65));return e}var I=e.i(57668);let A=l.forwardRef(function(e,t){let{className:a,disabled:i=!1,render:n,value:r,id:s,nativeButton:o=!0,style:d,...f}=e,{value:h,getTabPanelIdByValue:x,orientation:b,tabActivationDirection:E}=p(),{activateOnFocus:y,highlightedTabIndex:C,onTabActivation:A,registerTabResizeObserverElement:B,setHighlightedTabIndex:T,tabsListElement:D}=k(),L=(0,j.useBaseUiId)(s),O=l.useMemo(()=>({disabled:i,id:L,value:r}),[i,L,r]),{compositeProps:_,compositeRef:M,index:P}=(0,S.useCompositeItem)({metadata:O}),W=r===h,F=l.useRef(!1),z=l.useRef(null);(0,c.useIsoLayoutEffect)(()=>{let e=z.current;if(e)return B(e)},[B]),(0,c.useIsoLayoutEffect)(()=>{if(F.current){F.current=!1;return}if(W&&P>-1&&C!==P){if(null!=D){let e=(0,I.activeElement)((0,N.ownerDocument)(D));if(e&&(0,I.contains)(D,e))return}i||T(P)}},[W,P,C,T,i,D]);let{getButtonProps:H,buttonRef:V}=(0,R.useButton)({disabled:i,native:o,focusableWhenDisabled:!0}),Y=x(r),K=l.useRef(!1),U=l.useRef(!1);return(0,u.useRenderElement)("button",e,{state:{disabled:i,active:W,orientation:b,tabActivationDirection:E},ref:[t,V,M,z],props:[_,{role:"tab","aria-controls":Y,"aria-selected":W,id:L,onClick:function(e){W||i||A(r,(0,m.createChangeEventDetails)(g.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){W||(P>-1&&!i&&T(P),!i&&y&&(!K.current||K.current&&U.current)&&A(r,(0,m.createChangeEventDetails)(g.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){W||i||(K.current=!0,e.button&&0!==e.button||(U.current=!0,(0,N.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){K.current=!1,U.current=!1},{once:!0})))},[w]:W?"":void 0,onKeyDownCapture(){F.current=!0}},f,H],stateAttributesMapping:v})});var B=e.i(31079),T=e.i(12036),D=e.i(85384);function L(){return D.NOOP}function O(){return!1}function _(){return!0}let M=((a={}).activeTabLeft="--active-tab-left",a.activeTabRight="--active-tab-right",a.activeTabTop="--active-tab-top",a.activeTabBottom="--active-tab-bottom",a.activeTabWidth="--active-tab-width",a.activeTabHeight="--active-tab-height",a),P=l.createContext(void 0),W={disableStyleElements:!1},F={...v,activeTabPosition:()=>null,activeTabSize:()=>null},z=l.forwardRef(function(e,t){let{className:a,render:i,renderBeforeHydration:r=!1,style:s,...o}=e,{nonce:c}=l.useContext(P)??W,{getTabElementBySelectedValue:d,orientation:f,tabActivationDirection:h,value:x}=p(),{tabsListElement:b,registerIndicatorUpdateListener:v}=k(),m=(0,T.useSyncExternalStore)(L,O,_),g=function(){let[,e]=l.useState({});return l.useCallback(()=>{e({})},[])}();l.useEffect(()=>v(g),[v,g]);let E=0,y=0,N=0,j=0,R=0,w=0,S=!1;if(null!=x&&null!=b){let e=d(x);if(null!=e){S=!0;let{width:t,height:a}=(0,B.getCssDimensions)(e),{width:i,height:n}=(0,B.getCssDimensions)(b),r=e.getBoundingClientRect(),s=b.getBoundingClientRect(),l=i>0?s.width/i:1,o=n>0?s.height/n:1;if(Math.abs(l)>Number.EPSILON&&Math.abs(o)>Number.EPSILON){let e=r.left-s.left,t=r.top-s.top;E=e/l+b.scrollLeft-b.clientLeft,N=t/o+b.scrollTop-b.clientTop}else E=e.offsetLeft,N=e.offsetTop;R=t,w=a,y=b.scrollWidth-E-R,j=b.scrollHeight-N-w}}let C=S?{left:E,right:y,top:N,bottom:j}:null,I=S?{width:R,height:w}:null,A=S?{[M.activeTabLeft]:`${E}px`,[M.activeTabRight]:`${y}px`,[M.activeTabTop]:`${N}px`,[M.activeTabBottom]:`${j}px`,[M.activeTabWidth]:`${R}px`,[M.activeTabHeight]:`${w}px`}:void 0,D=S&&R>0&&w>0,z=(0,u.useRenderElement)("span",e,{state:{orientation:f,activeTabPosition:C,activeTabSize:I,tabActivationDirection:h},ref:t,props:[{role:"presentation",style:A,hidden:!D},o,{suppressHydrationWarning:!0}],stateAttributesMapping:F});return null==x?null:(0,n.jsxs)(l.Fragment,{children:[z,m&&r&&(0,n.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});var H=e.i(68042),V=e.i(89636),Y=e.i(64592),K=e.i(40030),U=e.i(42289);let $=((i={}).index="data-index",i.activationDirection="data-activation-direction",i.orientation="data-orientation",i.hidden="data-hidden",i[i.startingStyle=V.TransitionStatusDataAttributes.startingStyle]="startingStyle",i[i.endingStyle=V.TransitionStatusDataAttributes.endingStyle]="endingStyle",i),q={...v,...V.transitionStatusMapping},G=l.forwardRef(function(e,t){let{className:a,value:i,render:n,keepMounted:r=!1,style:s,...o}=e,{value:d,getTabIdByPanelValue:f,orientation:h,tabActivationDirection:x,registerMountedTabPanel:b,unregisterMountedTabPanel:v}=p(),m=(0,j.useBaseUiId)(),g=l.useMemo(()=>({id:m,value:i}),[m,i]),{ref:E,index:y}=(0,U.useCompositeListItem)({metadata:g}),N=i===d,{mounted:R,transitionStatus:w,setMounted:S}=(0,K.useTransitionStatus)(N),C=!R,k=f(i),I=l.useRef(null),A=(0,u.useRenderElement)("div",e,{state:{hidden:C,orientation:h,tabActivationDirection:x,transitionStatus:w},ref:[t,E,I],props:[{"aria-labelledby":k,hidden:C,id:m,role:"tabpanel",tabIndex:N?0:-1,inert:(0,H.inertValue)(!N),[$.index]:y},o],stateAttributesMapping:q});return((0,Y.useOpenChangeComplete)({open:N,ref:I,onComplete(){N||S(!1)}}),(0,c.useIsoLayoutEffect)(()=>{if((!C||r)&&null!=m)return b(i,m),()=>{v(i,m)}},[C,r,i,m,b,v]),r||R)?A:null});var J=e.i(41936),X=e.i(68504),Z=e.i(9985);let Q=[];var ee=e.i(84573),et=e.i(98474);function ea(e){let{render:t,className:a,style:i,refs:r=D.EMPTY_ARRAY,props:s=D.EMPTY_ARRAY,state:o=D.EMPTY_OBJECT,stateAttributesMapping:h,highlightedIndex:x,onHighlightedIndexChange:p,orientation:b,grid:v,loopFocus:m,onLoop:g,enableHomeAndEndKeys:E,onMapChange:y,stopEventPropagation:N=!0,rootRef:j,disabledIndices:R,modifierKeys:S,highlightItemOnHover:C=!1,tag:k="div",...A}=e,{props:B,highlightedIndex:T,onHighlightedIndexChange:L,elementsRef:O,onMapChange:_,relayKeyboardEvent:M}=function(e){let{loopFocus:t=!0,orientation:a="both",grid:i,onLoop:n,direction:r,highlightedIndex:s,onHighlightedIndexChange:o,rootRef:u,enableHomeAndEndKeys:f=!1,stopEventPropagation:h=!1,disabledIndices:x,modifierKeys:p=Q}=e,[b,v]=l.useState(0),m=null!=i,g=l.useRef(null),E=(0,J.useMergedRefs)(g,u),y=l.useRef([]),N=l.useRef(!1),j=s??b,R=(0,d.useStableCallback)((e,t=!1)=>{if((o??v)(e),t){let t=y.current[e];(0,X.scrollIntoViewIfNeeded)(g.current,t,r,a)}}),S=(0,d.useStableCallback)(e=>{if(0===e.size||N.current)return;N.current=!0;let t=Array.from(e.keys()),i=t.find(e=>e?.hasAttribute(w))??null,n=i?t.indexOf(i):-1;if(-1!==n)R(n);else if((0,Z.isListIndexDisabled)(t,j,x)){let e=(0,Z.findNonDisabledListIndex)(t,{disabledIndices:x});(0,Z.isIndexOutOfListBounds)(t,e)||R(e)}(0,X.scrollIntoViewIfNeeded)(g.current,i,r,a)});(0,c.useIsoLayoutEffect)(()=>{if(null==x||null!=s||!N.current)return;let e=y.current;if((0,Z.isListIndexDisabled)(e,j,x)){let t=(0,Z.findNonDisabledListIndex)(e,{disabledIndices:x});(0,Z.isIndexOutOfListBounds)(e,t)||R(t)}},[x,s,j,y,R]);let C=(0,d.useStableCallback)((e,t,a)=>n?n(e,t,a,y):a),k=(0,d.useStableCallback)(e=>{let s=f?X.COMPOSITE_KEYS:X.ARROW_KEYS;if(!s.has(e.key)||function(e,t){for(let a of X.MODIFIER_KEYS.values())if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}(e,p)||!g.current)return;let l="rtl"===r,o=l?X.ARROW_LEFT:X.ARROW_RIGHT,c={horizontal:o,vertical:X.ARROW_DOWN,both:o}[a],d=l?X.ARROW_RIGHT:X.ARROW_LEFT,u={horizontal:d,vertical:X.ARROW_UP,both:d}[a],b=(0,I.getTarget)(e.nativeEvent);if(null!=b&&(0,X.isNativeInput)(b)&&!(null==b||b.hasAttribute("disabled")||"true"===b.getAttribute("aria-disabled"))){let t=b.selectionStart,a=b.selectionEnd,i=b.value??"";if(null==t||e.shiftKey||t!==a||e.key!==u&&t<i.length||e.key!==c&&t>0)return}let v=j,E=(0,Z.getMinListIndex)(y,x),N=(0,Z.getMaxListIndex)(y,x);null!=i&&(v=i({disabledIndices:x,elementsRef:y,event:e,highlightedIndex:j,loopFocus:t,maxIndex:N,minIndex:E,onLoop:C,orientation:a,rtl:l}));let w={horizontal:[o],vertical:[X.ARROW_DOWN],both:[o,X.ARROW_DOWN]}[a],S={horizontal:[d],vertical:[X.ARROW_UP],both:[d,X.ARROW_UP]}[a],k=m?s:({horizontal:f?X.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:X.HORIZONTAL_KEYS,vertical:f?X.VERTICAL_KEYS_WITH_EXTRA_KEYS:X.VERTICAL_KEYS,both:s})[a];f&&(e.key===X.HOME?v=E:e.key===X.END&&(v=N)),v===j&&(w.includes(e.key)||S.includes(e.key))&&(t&&v===N&&w.includes(e.key)?(v=E,n&&(v=n(e,j,v,y))):t&&v===E&&S.includes(e.key)?(v=N,n&&(v=n(e,j,v,y))):v=(0,Z.findNonDisabledListIndex)(y.current,{startingIndex:v,decrement:S.includes(e.key),disabledIndices:x})),v===j||(0,Z.isIndexOutOfListBounds)(y.current,v)||(h&&e.stopPropagation(),k.has(e.key)&&e.preventDefault(),R(v,!0),queueMicrotask(()=>{y.current[v]?.focus()}))});return{props:{ref:E,onFocus(e){let t=g.current,a=(0,I.getTarget)(e.nativeEvent);t&&null!=a&&(0,X.isNativeInput)(a)&&a.setSelectionRange(0,a.value.length??0)},onKeyDown:k},highlightedIndex:j,onHighlightedIndexChange:R,elementsRef:y,disabledIndices:x,onMapChange:S,relayKeyboardEvent:k}}({grid:v,loopFocus:m,onLoop:g,orientation:b,highlightedIndex:x,onHighlightedIndexChange:p,rootRef:j,stopEventPropagation:N,enableHomeAndEndKeys:E,direction:(0,et.useDirection)(),disabledIndices:R,modifierKeys:S}),P=(0,u.useRenderElement)(k,e,{state:o,ref:r,props:[B,...s,A],stateAttributesMapping:h}),W=l.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:L,highlightItemOnHover:C,relayKeyboardEvent:M}),[T,L,C,M]);return(0,n.jsx)(ee.CompositeRootContext.Provider,{value:W,children:(0,n.jsx)(f.CompositeList,{elementsRef:O,onMapChange:e=>{y?.(e),_(e)},children:P})})}let ei=l.forwardRef(function(e,t){let{activateOnFocus:a=!1,className:i,loopFocus:r=!0,render:s,style:o,...u}=e,{onValueChange:f,orientation:h,value:x,setTabMap:b,tabActivationDirection:m}=p(),[g,E]=l.useState(0),[y,N]=l.useState(null),j=l.useRef(new Set),R=l.useRef(new Set),w=l.useRef(null);(0,c.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{j.current.forEach(e=>{e()})});return w.current=e,y&&e.observe(y),R.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),w.current=null}},[y]);let S=(0,d.useStableCallback)(e=>(j.current.add(e),()=>{j.current.delete(e)})),k=(0,d.useStableCallback)(e=>(R.current.add(e),w.current?.observe(e),()=>{R.current.delete(e),w.current?.unobserve(e)})),I=(0,d.useStableCallback)((e,t)=>{e!==x&&f(e,t)}),A=l.useMemo(()=>({activateOnFocus:a,highlightedTabIndex:g,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:k,onTabActivation:I,setHighlightedTabIndex:E,tabsListElement:y}),[a,g,S,k,I,E,y]);return(0,n.jsx)(C.Provider,{value:A,children:(0,n.jsx)(ea,{render:s,className:i,style:o,state:{orientation:h,tabActivationDirection:m},refs:[t,N],props:[{"aria-orientation":"vertical"===h?"vertical":void 0,role:"tablist"},u],stateAttributesMapping:v,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:r,orientation:h,onHighlightedIndexChange:E,onMapChange:b,disabledIndices:D.EMPTY_ARRAY})})});e.s(["Indicator",0,z,"List",0,ei,"Panel",0,G,"Root",0,E,"Tab",0,A],52468);var en=e.i(52468),en=en,er=e.i(54044),es=e.i(30573);function el({className:e,orientation:t="horizontal",...a}){return(0,n.jsx)(en.Root,{"data-slot":"tabs","data-orientation":t,className:(0,es.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}let eo=(0,er.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function ec({className:e,variant:t="default",...a}){return(0,n.jsx)(en.List,{"data-slot":"tabs-list","data-variant":t,className:(0,es.cn)(eo({variant:t}),e),...a})}function ed({className:e,...t}){return(0,n.jsx)(en.Tab,{"data-slot":"tabs-trigger",className:(0,es.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function eu({className:e,...t}){return(0,n.jsx)(en.Panel,{"data-slot":"tabs-content",className:(0,es.cn)("flex-1 text-sm outline-none",e),...t})}var ef=e.i(1791),eh=e.i(45665),ex=e.i(21806),ep=e.i(95992);function eb({className:e,orientation:t="horizontal",...a}){return(0,n.jsx)(ep.Separator,{"data-slot":"separator",orientation:t,className:(0,es.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",e),...a})}var ev=e.i(64828);let em=(0,ev.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var eg=e.i(96695),eE=e.i(84717);let ey=(0,ev.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["default",0,function(){return(0,n.jsx)(r.DashboardShell,{children:(0,n.jsxs)("div",{className:"space-y-6 max-w-3xl",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-xl font-bold text-[#111827]",children:"Settings"}),(0,n.jsx)("p",{className:"text-sm text-[#6B7280] mt-0.5",children:"Manage your account and preferences"})]}),(0,n.jsxs)(el,{defaultValue:"profile",className:"w-full",children:[(0,n.jsxs)(ec,{className:"bg-white border border-[#E5E7EB] rounded-xl p-1 h-10",children:[(0,n.jsxs)(ed,{value:"profile",className:"rounded-lg text-sm data-[state=active]:bg-[#F3F4F6] data-[state=active]:text-[#111827]",children:[(0,n.jsx)(em,{className:"w-4 h-4 mr-2"})," Profile"]}),(0,n.jsxs)(ed,{value:"notifications",className:"rounded-lg text-sm data-[state=active]:bg-[#F3F4F6] data-[state=active]:text-[#111827]",children:[(0,n.jsx)(eg.Bell,{className:"w-4 h-4 mr-2"})," Notifications"]}),(0,n.jsxs)(ed,{value:"security",className:"rounded-lg text-sm data-[state=active]:bg-[#F3F4F6] data-[state=active]:text-[#111827]",children:[(0,n.jsx)(eE.Shield,{className:"w-4 h-4 mr-2"})," Security"]}),(0,n.jsxs)(ed,{value:"appearance",className:"rounded-lg text-sm data-[state=active]:bg-[#F3F4F6] data-[state=active]:text-[#111827]",children:[(0,n.jsx)(ey,{className:"w-4 h-4 mr-2"})," Appearance"]})]}),(0,n.jsx)(eu,{value:"profile",className:"mt-4",children:(0,n.jsxs)(s.Card,{className:"p-6 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-[#111827] mb-4",children:"Profile Information"}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"First Name"}),(0,n.jsx)(ef.Input,{defaultValue:"Erik",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"Last Name"}),(0,n.jsx)(ef.Input,{defaultValue:"Andersson",className:"h-10 rounded-xl border-[#E5E7EB]"})]})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"Email"}),(0,n.jsx)(ef.Input,{defaultValue:"erik@admin.amos.systems",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"Job Title"}),(0,n.jsx)(ef.Input,{defaultValue:"CEO",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsx)(ex.Button,{className:"bg-[#1E3A5F] hover:bg-[#1E3A5F]/90 text-white rounded-xl h-10 px-6",children:"Save Changes"})]})]})}),(0,n.jsx)(eu,{value:"notifications",className:"mt-4",children:(0,n.jsxs)(s.Card,{className:"p-6 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-[#111827] mb-4",children:"Notification Preferences"}),(0,n.jsx)("div",{className:"space-y-4",children:[{label:"Email notifications",desc:"Receive updates via email",checked:!0},{label:"Deal alerts",desc:"Get notified when deals change stage",checked:!0},{label:"Approval requests",desc:"Notify when approvals are needed",checked:!0},{label:"System alerts",desc:"Critical system notifications",checked:!1},{label:"Weekly summary",desc:"Weekly digest of activity",checked:!0}].map(e=>(0,n.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[#111827]",children:e.label}),(0,n.jsx)("p",{className:"text-xs text-[#6B7280]",children:e.desc})]}),(0,n.jsx)("input",{type:"checkbox",defaultChecked:e.checked,className:"w-4 h-4 rounded border-[#D1D5DB] text-[#2563EB] focus:ring-[#2563EB]"})]},e.label))})]})}),(0,n.jsx)(eu,{value:"security",className:"mt-4",children:(0,n.jsxs)(s.Card,{className:"p-6 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-[#111827] mb-4",children:"Security Settings"}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"Current Password"}),(0,n.jsx)(ef.Input,{type:"password",defaultValue:"********",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"New Password"}),(0,n.jsx)(ef.Input,{type:"password",placeholder:"Enter new password",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(eh.Label,{className:"text-xs text-[#6B7280]",children:"Confirm Password"}),(0,n.jsx)(ef.Input,{type:"password",placeholder:"Confirm new password",className:"h-10 rounded-xl border-[#E5E7EB]"})]}),(0,n.jsx)(eb,{className:"my-4"}),(0,n.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[#111827]",children:"Two-Factor Authentication"}),(0,n.jsx)("p",{className:"text-xs text-[#6B7280]",children:"Add an extra layer of security"})]}),(0,n.jsx)("input",{type:"checkbox",className:"w-4 h-4 rounded border-[#D1D5DB] text-[#2563EB] focus:ring-[#2563EB]"})]}),(0,n.jsx)(ex.Button,{className:"bg-[#1E3A5F] hover:bg-[#1E3A5F]/90 text-white rounded-xl h-10 px-6",children:"Update Password"})]})]})}),(0,n.jsx)(eu,{value:"appearance",className:"mt-4",children:(0,n.jsxs)(s.Card,{className:"p-6 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-[#111827] mb-4",children:"Appearance"}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[#111827]",children:"Compact Mode"}),(0,n.jsx)("p",{className:"text-xs text-[#6B7280]",children:"Reduce spacing for denser layout"})]}),(0,n.jsx)("input",{type:"checkbox",className:"w-4 h-4 rounded border-[#D1D5DB] text-[#2563EB] focus:ring-[#2563EB]"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[#111827]",children:"Show Animations"}),(0,n.jsx)("p",{className:"text-xs text-[#6B7280]",children:"Enable page transition animations"})]}),(0,n.jsx)("input",{type:"checkbox",defaultChecked:!0,className:"w-4 h-4 rounded border-[#D1D5DB] text-[#2563EB] focus:ring-[#2563EB]"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[#111827]",children:"Sidebar Collapsed"}),(0,n.jsx)("p",{className:"text-xs text-[#6B7280]",children:"Start with collapsed sidebar"})]}),(0,n.jsx)("input",{type:"checkbox",className:"w-4 h-4 rounded border-[#D1D5DB] text-[#2563EB] focus:ring-[#2563EB]"})]})]})]})})]})]})})}],91027)}]);