@tom2012/cc-web 2026.6.13-b → 2026.6.13-d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +15 -0
- package/backend/dist/__tests__/login-events.test.d.ts +2 -0
- package/backend/dist/__tests__/login-events.test.d.ts.map +1 -0
- package/backend/dist/__tests__/login-events.test.js +90 -0
- package/backend/dist/__tests__/login-events.test.js.map +1 -0
- package/backend/dist/__tests__/project-status.test.d.ts +2 -0
- package/backend/dist/__tests__/project-status.test.d.ts.map +1 -0
- package/backend/dist/__tests__/project-status.test.js +102 -0
- package/backend/dist/__tests__/project-status.test.js.map +1 -0
- package/backend/dist/config.d.ts +9 -0
- package/backend/dist/config.d.ts.map +1 -1
- package/backend/dist/config.js +17 -0
- package/backend/dist/config.js.map +1 -1
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +74 -0
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/login-events.d.ts +27 -0
- package/backend/dist/login-events.d.ts.map +1 -0
- package/backend/dist/login-events.js +68 -0
- package/backend/dist/login-events.js.map +1 -0
- package/backend/dist/routes/auth.d.ts.map +1 -1
- package/backend/dist/routes/auth.js +58 -18
- package/backend/dist/routes/auth.js.map +1 -1
- package/backend/dist/routes/update.d.ts.map +1 -1
- package/backend/dist/routes/update.js +40 -0
- package/backend/dist/routes/update.js.map +1 -1
- package/backend/dist/terminal-manager.js +6 -6
- package/backend/dist/terminal-manager.js.map +1 -1
- package/frontend/dist/assets/{ChatOverlay-Cg09i5qF.js → ChatOverlay-DwPC3Y_e.js} +3 -3
- package/frontend/dist/assets/{ClaudeMemPage-CT87pX5z.js → ClaudeMemPage-CwV9l2NE.js} +1 -1
- package/frontend/dist/assets/{GraphPreview-LQt3-skN.js → GraphPreview-fFpkFaQE.js} +1 -1
- package/frontend/dist/assets/{MobilePage-NHtpiQsi.js → MobilePage-DjLvqaio.js} +3 -3
- package/frontend/dist/assets/{OfficePreview-CH1bJV2V.js → OfficePreview-DuMoePns.js} +2 -2
- package/frontend/dist/assets/{PdfPreview-BDDzOq58.js → PdfPreview-BbHxtxfw.js} +1 -1
- package/frontend/dist/assets/{ProjectPage-BoOR1Zr9.js → ProjectPage-2UirY1P_.js} +3 -3
- package/frontend/dist/assets/{ProjectSettingsPage-ClHkL2L4.js → ProjectSettingsPage-D69dwFe9.js} +1 -1
- package/frontend/dist/assets/{SettingsPage-Q7dhf4gJ.js → SettingsPage-DzZWV8CU.js} +1 -1
- package/frontend/dist/assets/{SkillHubPage-CI5o_FsS.js → SkillHubPage-Dm1YdeJx.js} +1 -1
- package/frontend/dist/assets/{check-circle-2-CZgbn9H8.js → check-circle-2-8LZMunbB.js} +1 -1
- package/frontend/dist/assets/{chevron-down-efPsOYlh.js → chevron-down-I_rDvMfO.js} +1 -1
- package/frontend/dist/assets/{file-text-mpbJn406.js → file-text-BpPkf7MY.js} +1 -1
- package/frontend/dist/assets/{index-oPZyCxeH.js → index-CEpL_aOE.js} +1 -1
- package/frontend/dist/assets/{index-BjydjBX7.js → index-CfBtobxM.js} +4 -4
- package/frontend/dist/assets/{index-DS0RkMkF.css → index-D52wv9GD.css} +1 -1
- package/frontend/dist/assets/{index-Di-Iyd_L.js → index-DKEi6Zik.js} +1 -1
- package/frontend/dist/assets/{jszip.min-nePKj7L6.js → jszip.min-Zj3KVSnT.js} +1 -1
- package/frontend/dist/assets/{save-BYi9FbQu.js → save-BAXCWaCI.js} +1 -1
- package/frontend/dist/assets/{search-09qCXbdG.js → search-xY2_-xif.js} +1 -1
- package/frontend/dist/assets/{select-De5oupVM.js → select-C1RL7Yie.js} +1 -1
- package/frontend/dist/assets/{tabs-CQZcN-v5.js → tabs-DkYm8MYB.js} +1 -1
- package/frontend/dist/assets/{textarea-Ge2i0ho4.js → textarea-BJc-eM1I.js} +1 -1
- package/frontend/dist/index.html +2 -2
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,j as t,a3 as n,a7 as r,R as o,ab as l,ad as a,ba as s,a5 as i,br as c,bC as d,a8 as u,a6 as p,ac as f,aa as m,b3 as h,a4 as v,ae as g,ag as x,ah as y,ai as w,aj as b,ak as S,al as C,d as j,y as N}from"./index-BjydjBX7.js";import{u as R,c as _,C as P}from"./index-Di-Iyd_L.js";import{C as I}from"./chevron-down-efPsOYlh.js";function E(n){const r=k(n),o=e.forwardRef((n,o)=>{const{children:l,...a}=n,s=e.Children.toArray(l),i=s.find(D);if(i){const n=i.props.children,l=s.map(t=>t===i?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,l):null})}return t.jsx(r,{...a,ref:o,children:l})});return o.displayName=`${n}.Slot`,o}function k(t){const r=e.forwardRef((t,r)=>{const{children:o,...l}=t;if(e.isValidElement(o)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{const t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(l,o.props);return o.type!==e.Fragment&&(a.ref=r?n(r,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var T=Symbol("radix.slottable");function D(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===T}function M(e){const n=e+"CollectionProvider",[a,s]=r(n),[i,c]=a(n,{collectionRef:{current:null},itemMap:new Map}),d=e=>{const{scope:n,children:r}=e,l=o.useRef(null),a=o.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:a,collectionRef:l,children:r})};d.displayName=n;const u=e+"CollectionSlot",p=E(u),f=o.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=c(u,r),s=l(n,a.collectionRef);return t.jsx(p,{ref:s,children:o})});f.displayName=u;const m=e+"CollectionItemSlot",h="data-radix-collection-item",v=E(m),g=o.forwardRef((e,n)=>{const{scope:r,children:a,...s}=e,i=o.useRef(null),d=l(n,i),u=c(m,r);return o.useEffect(()=>(u.itemMap.set(i,{ref:i,...s}),()=>{u.itemMap.delete(i)})),t.jsx(v,{[h]:"",ref:d,children:a})});return g.displayName=m,[{Provider:d,Slot:f,ItemSlot:g},function(t){const n=c(e+"CollectionConsumer",t);return o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}function O(n){const r=A(n),o=e.forwardRef((n,o)=>{const{children:l,...a}=n,s=e.Children.toArray(l),i=s.find(L);if(i){const n=i.props.children,l=s.map(t=>t===i?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,l):null})}return t.jsx(r,{...a,ref:o,children:l})});return o.displayName=`${n}.Slot`,o}function A(t){const r=e.forwardRef((t,r)=>{const{children:o,...l}=t;if(e.isValidElement(o)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{const t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(l,o.props);return o.type!==e.Fragment&&(a.ref=r?n(r,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var V=Symbol("radix.slottable");function L(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===V}function H(t){const n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var W=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});e.forwardRef((e,n)=>t.jsx(a.span,{...e,ref:n,style:{...W,...e.style}})).displayName="VisuallyHidden";var B=[" ","Enter","ArrowUp","ArrowDown"],F=[" ","Enter"],K="Select",[z,U,q]=M(K),[$]=r(K,[q,u]),Z=u(),[X,Y]=$(K),[G,J]=$(K),Q=n=>{const{__scopeSelect:r,children:o,open:l,defaultOpen:a,onOpenChange:d,value:u,defaultValue:p,onValueChange:f,dir:m,name:h,autoComplete:v,disabled:g,required:x,form:y}=n,w=Z(r),[b,S]=e.useState(null),[C,j]=e.useState(null),[N,_]=e.useState(!1),P=R(m),[I,E]=s({prop:l,defaultProp:a??!1,onChange:d,caller:K}),[k,T]=s({prop:u,defaultProp:p,onChange:f,caller:K}),D=e.useRef(null),M=!b||(y||!!b.closest("form")),[O,A]=e.useState(new Set),V=Array.from(O).map(e=>e.props.value).join(";");return t.jsx(i,{...w,children:t.jsxs(X,{required:x,scope:r,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:N,onValueNodeHasChildrenChange:_,contentId:c(),value:k,onValueChange:T,open:I,onOpenChange:E,dir:P,triggerPointerDownPosRef:D,disabled:g,children:[t.jsx(z.Provider,{scope:r,children:t.jsx(G,{scope:n.__scopeSelect,onNativeOptionAdd:e.useCallback(e=>{A(t=>new Set(t).add(e))},[]),onNativeOptionRemove:e.useCallback(e=>{A(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:o})}),M?t.jsxs(He,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:v,value:k,onChange:e=>T(e.target.value),disabled:g,form:y,children:[void 0===k?t.jsx("option",{value:""}):null,Array.from(O)]},V):null]})})};Q.displayName=K;var ee="SelectTrigger",te=e.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:s=!1,...i}=n,c=Z(o),d=Y(ee,o),u=d.disabled||s,m=l(r,d.onTriggerChange),h=U(o),v=e.useRef("touch"),[g,x,y]=Be(e=>{const t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===d.value),r=Fe(t,e,n);void 0!==r&&d.onValueChange(r.value)}),w=e=>{u||(d.onOpenChange(!0),y()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return t.jsx(p,{asChild:!0,...c,children:t.jsx(a.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":We(d.value)?"":void 0,...i,ref:m,onClick:f(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==v.current&&w(e)}),onPointerDown:f(i.onPointerDown,e=>{v.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:f(i.onKeyDown,e=>{const t=""!==g.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||x(e.key),t&&" "===e.key||B.includes(e.key)&&(w(),e.preventDefault())})})})});te.displayName=ee;var ne="SelectValue",re=e.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:s,children:i,placeholder:c="",...u}=e,p=Y(ne,r),{onValueNodeHasChildrenChange:f}=p,m=void 0!==i,h=l(n,p.onValueNodeChange);return d(()=>{f(m)},[f,m]),t.jsx(a.span,{...u,ref:h,style:{pointerEvents:"none"},children:We(p.value)?t.jsx(t.Fragment,{children:c}):i})});re.displayName=ne;var oe=e.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...l}=e;return t.jsx(a.span,{"aria-hidden":!0,...l,ref:n,children:o||"▼"})});oe.displayName="SelectIcon";var le=e=>t.jsx(m,{asChild:!0,...e});le.displayName="SelectPortal";var ae="SelectContent",se=e.forwardRef((n,r)=>{const o=Y(ae,n.__scopeSelect),[l,a]=e.useState();if(d(()=>{a(new DocumentFragment)},[]),!o.open){const e=l;return e?h.createPortal(t.jsx(ce,{scope:n.__scopeSelect,children:t.jsx(z.Slot,{scope:n.__scopeSelect,children:t.jsx("div",{children:n.children})})}),e):null}return t.jsx(pe,{...n,ref:r})});se.displayName=ae;var ie=10,[ce,de]=$(ae),ue=O("SelectContent.RemoveScroll"),pe=e.forwardRef((n,r)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:d,sideOffset:u,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:S,sticky:C,hideWhenDetached:j,avoidCollisions:N,...R}=n,_=Y(ae,o),[P,I]=e.useState(null),[E,k]=e.useState(null),T=l(r,e=>I(e)),[D,M]=e.useState(null),[O,A]=e.useState(null),V=U(o),[L,H]=e.useState(!1),W=e.useRef(!1);e.useEffect(()=>{if(P)return g(P)},[P]),x();const B=e.useCallback(e=>{const[t,...n]=V().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const l of e){if(l===o)return;if(null==l||l.scrollIntoView({block:"nearest"}),l===t&&E&&(E.scrollTop=0),l===r&&E&&(E.scrollTop=E.scrollHeight),null==l||l.focus(),document.activeElement!==o)return}},[V,E]),F=e.useCallback(()=>B([D,P]),[B,D,P]);e.useEffect(()=>{L&&F()},[L,F]);const{onOpenChange:K,triggerPointerDownPosRef:z}=_;e.useEffect(()=>{if(P){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=z.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=z.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||K(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,K,z]),e.useEffect(()=>{const e=()=>K(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[K]);const[q,$]=Be(e=>{const t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Fe(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Z=e.useCallback((e,t,n)=>{const r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&(M(e),r&&(W.current=!0))},[_.value]),X=e.useCallback(()=>null==P?void 0:P.focus(),[P]),G=e.useCallback((e,t,n)=>{const r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&A(e)},[_.value]),J="popper"===a?me:fe,Q=J===me?{side:d,sideOffset:u,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:S,sticky:C,hideWhenDetached:j,avoidCollisions:N}:{};return t.jsx(ce,{scope:o,content:P,viewport:E,onViewportChange:k,itemRefCallback:Z,selectedItem:D,onItemLeave:X,itemTextRefCallback:G,focusSelectedItem:F,selectedItemText:O,position:a,isPositioned:L,searchRef:q,children:t.jsx(y,{as:ue,allowPinchZoom:!0,children:t.jsx(w,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:f(s,e=>{var t;null==(t=_.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:t.jsx(b,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:t.jsx(J,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...R,...Q,onPlaced:()=>H(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:f(R.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});pe.displayName="SelectContentImpl";var fe=e.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:s,...i}=n,c=Y(ae,o),u=de(ae,o),[p,f]=e.useState(null),[m,h]=e.useState(null),v=l(r,e=>h(e)),g=U(o),x=e.useRef(!1),y=e.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:S,focusSelectedItem:C}=u,j=e.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&m&&w&&b&&S){const e=c.trigger.getBoundingClientRect(),t=m.getBoundingClientRect(),n=c.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==c.dir){const o=r.left-t.left,l=n.left-o,a=e.left-l,s=e.width+a,i=Math.max(s,t.width),c=window.innerWidth-ie,d=_(l,[ie,Math.max(ie,c-i)]);p.style.minWidth=s+"px",p.style.left=d+"px"}else{const o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,s=e.width+a,i=Math.max(s,t.width),c=window.innerWidth-ie,d=_(l,[ie,Math.max(ie,c-i)]);p.style.minWidth=s+"px",p.style.right=d+"px"}const o=g(),l=window.innerHeight-2*ie,a=w.scrollHeight,i=window.getComputedStyle(m),d=parseInt(i.borderTopWidth,10),u=parseInt(i.paddingTop,10),f=parseInt(i.borderBottomWidth,10),h=d+u+a+parseInt(i.paddingBottom,10)+f,v=Math.min(5*b.offsetHeight,h),y=window.getComputedStyle(w),C=parseInt(y.paddingTop,10),j=parseInt(y.paddingBottom,10),N=e.top+e.height/2-ie,R=l-N,P=b.offsetHeight/2,I=d+u+(b.offsetTop+P),E=h-I;if(I<=N){const e=o.length>0&&b===o[o.length-1].ref.current;p.style.bottom="0px";const t=m.clientHeight-w.offsetTop-w.offsetHeight,n=I+Math.max(R,P+(e?j:0)+t+f);p.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;p.style.top="0px";const t=Math.max(N,d+w.offsetTop+(e?C:0)+P)+E;p.style.height=t+"px",w.scrollTop=I-N+w.offsetTop}p.style.margin=`${ie}px 0`,p.style.minHeight=v+"px",p.style.maxHeight=l+"px",null==s||s(),requestAnimationFrame(()=>x.current=!0)}},[g,c.trigger,c.valueNode,p,m,w,b,S,c.dir,s]);d(()=>j(),[j]);const[N,R]=e.useState();d(()=>{m&&R(window.getComputedStyle(m).zIndex)},[m]);const P=e.useCallback(e=>{e&&!0===y.current&&(j(),null==C||C(),y.current=!1)},[j,C]);return t.jsx(he,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:x,onScrollButtonChange:P,children:t.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:t.jsx(a.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});fe.displayName="SelectItemAlignedPosition";var me=e.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:l=ie,...a}=e,s=Z(r);return t.jsx(S,{...s,...a,ref:n,align:o,collisionPadding:l,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});me.displayName="SelectPopperPosition";var[he,ve]=$(ae,{}),ge="SelectViewport",xe=e.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:s,...i}=n,c=de(ge,o),d=ve(ge,o),u=l(r,c.onViewportChange),p=e.useRef(0);return t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),t.jsx(z.Slot,{scope:o,children:t.jsx(a.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:f(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=d;if((null==r?void 0:r.current)&&n){const e=Math.abs(p.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*ie,o=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),a=Math.max(o,l);if(a<r){const o=a+e,l=Math.min(r,o),s=o-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})})})]})});xe.displayName=ge;var ye="SelectGroup",[we,be]=$(ye);e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=c();return t.jsx(we,{scope:r,id:l,children:t.jsx(a.div,{role:"group","aria-labelledby":l,...o,ref:n})})}).displayName=ye;var Se="SelectLabel",Ce=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=be(Se,r);return t.jsx(a.div,{id:l.id,...o,ref:n})});Ce.displayName=Se;var je="SelectItem",[Ne,Re]=$(je),_e=e.forwardRef((n,r)=>{const{__scopeSelect:o,value:s,disabled:i=!1,textValue:d,...u}=n,p=Y(je,o),m=de(je,o),h=p.value===s,[v,g]=e.useState(d??""),[x,y]=e.useState(!1),w=l(r,e=>{var t;return null==(t=m.itemRefCallback)?void 0:t.call(m,e,s,i)}),b=c(),S=e.useRef("touch"),C=()=>{i||(p.onValueChange(s),p.onOpenChange(!1))};if(""===s)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.jsx(Ne,{scope:o,value:s,disabled:i,textId:b,isSelected:h,onItemTextChange:e.useCallback(e=>{g(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:t.jsx(z.ItemSlot,{scope:o,value:s,disabled:i,textValue:v,children:t.jsx(a.div,{role:"option","aria-labelledby":b,"data-highlighted":x?"":void 0,"aria-selected":h&&x,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:w,onFocus:f(u.onFocus,()=>y(!0)),onBlur:f(u.onBlur,()=>y(!1)),onClick:f(u.onClick,()=>{"mouse"!==S.current&&C()}),onPointerUp:f(u.onPointerUp,()=>{"mouse"===S.current&&C()}),onPointerDown:f(u.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:f(u.onPointerMove,e=>{var t;S.current=e.pointerType,i?null==(t=m.onItemLeave)||t.call(m):"mouse"===S.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:f(u.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null==(t=m.onItemLeave)||t.call(m))}),onKeyDown:f(u.onKeyDown,e=>{var t;""!==(null==(t=m.searchRef)?void 0:t.current)&&" "===e.key||(F.includes(e.key)&&C()," "===e.key&&e.preventDefault())})})})})});_e.displayName=je;var Pe="SelectItemText",Ie=e.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:i,...c}=n,u=Y(Pe,o),p=de(Pe,o),f=Re(Pe,o),m=J(Pe,o),[v,g]=e.useState(null),x=l(r,e=>g(e),f.onItemTextChange,e=>{var t;return null==(t=p.itemTextRefCallback)?void 0:t.call(p,e,f.value,f.disabled)}),y=null==v?void 0:v.textContent,w=e.useMemo(()=>t.jsx("option",{value:f.value,disabled:f.disabled,children:y},f.value),[f.disabled,f.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=m;return d(()=>(b(w),()=>S(w)),[b,S,w]),t.jsxs(t.Fragment,{children:[t.jsx(a.span,{id:f.textId,...c,ref:x}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?h.createPortal(c.children,u.valueNode):null]})});Ie.displayName=Pe;var Ee="SelectItemIndicator",ke=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return Re(Ee,r).isSelected?t.jsx(a.span,{"aria-hidden":!0,...o,ref:n}):null});ke.displayName=Ee;var Te="SelectScrollUpButton",De=e.forwardRef((n,r)=>{const o=de(Te,n.__scopeSelect),a=ve(Te,n.__scopeSelect),[s,i]=e.useState(!1),c=l(r,a.onScrollButtonChange);return d(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),s?t.jsx(Ae,{...n,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});De.displayName=Te;var Me="SelectScrollDownButton",Oe=e.forwardRef((n,r)=>{const o=de(Me,n.__scopeSelect),a=ve(Me,n.__scopeSelect),[s,i]=e.useState(!1),c=l(r,a.onScrollButtonChange);return d(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),s?t.jsx(Ae,{...n,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Oe.displayName=Me;var Ae=e.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:l,...s}=n,i=de("SelectScrollButton",o),c=e.useRef(null),u=U(o),p=e.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return e.useEffect(()=>()=>p(),[p]),d(()=>{var e;const t=u().find(e=>e.ref.current===document.activeElement);null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),t.jsx(a.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:f(s.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(l,50))}),onPointerMove:f(s.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===c.current&&(c.current=window.setInterval(l,50))}),onPointerLeave:f(s.onPointerLeave,()=>{p()})})}),Ve=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return t.jsx(a.div,{"aria-hidden":!0,...o,ref:n})});Ve.displayName="SelectSeparator";var Le="SelectArrow";e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=Z(r),a=Y(Le,r),s=de(Le,r);return a.open&&"popper"===s.position?t.jsx(C,{...l,...o,ref:n}):null}).displayName=Le;var He=e.forwardRef(({__scopeSelect:n,value:r,...o},s)=>{const i=e.useRef(null),c=l(s,i),d=H(r);return e.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(d!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[d,r]),t.jsx(a.select,{...o,style:{...W,...o.style},ref:c,defaultValue:r})});function We(e){return""===e||void 0===e}function Be(t){const n=v(t),r=e.useRef(""),o=e.useRef(0),l=e.useCallback(e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(t)},[n]),a=e.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,l,a]}function Fe(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=(a=e,s=Math.max(o,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(l=l.filter(e=>e!==n));const i=l.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}He.displayName="SelectBubbleInput";var Ke=te,ze=oe,Ue=le,qe=se,$e=xe,Ze=Ce,Xe=_e,Ye=Ie,Ge=ke,Je=De,Qe=Oe,et=Ve;const tt=Q,nt=re,rt=e.forwardRef(({className:e,children:n,...r},o)=>t.jsxs(Ke,{ref:o,className:j("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,t.jsx(ze,{asChild:!0,children:t.jsx(I,{className:"h-4 w-4 opacity-50"})})]}));rt.displayName=Ke.displayName;const ot=e.forwardRef(({className:e,...n},r)=>t.jsx(Je,{ref:r,className:j("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(P,{className:"h-4 w-4"})}));ot.displayName=Je.displayName;const lt=e.forwardRef(({className:e,...n},r)=>t.jsx(Qe,{ref:r,className:j("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(I,{className:"h-4 w-4"})}));lt.displayName=Qe.displayName;const at=e.forwardRef(({className:e,children:n,position:r="popper",...o},l)=>t.jsx(Ue,{children:t.jsxs(qe,{ref:l,className:j("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[t.jsx(ot,{}),t.jsx($e,{className:j("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),t.jsx(lt,{})]})}));at.displayName=qe.displayName;e.forwardRef(({className:e,...n},r)=>t.jsx(Ze,{ref:r,className:j("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...n})).displayName=Ze.displayName;const st=e.forwardRef(({className:e,children:n,...r},o)=>t.jsxs(Xe,{ref:o,className:j("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(Ge,{children:t.jsx(N,{className:"h-4 w-4"})})}),t.jsx(Ye,{children:n})]}));st.displayName=Xe.displayName;e.forwardRef(({className:e,...n},r)=>t.jsx(et,{ref:r,className:j("-mx-1 my-1 h-px bg-muted",e),...n})).displayName=et.displayName;export{tt as S,rt as a,nt as b,M as c,at as d,st as e,H as u};
|
|
1
|
+
import{r as e,j as t,a3 as n,a7 as r,R as o,ab as l,ad as a,ba as s,a5 as i,br as c,bC as d,a8 as u,a6 as p,ac as f,aa as m,b3 as h,a4 as v,ae as g,ag as x,ah as y,ai as w,aj as b,ak as S,al as C,d as j,y as N}from"./index-CfBtobxM.js";import{u as R,c as _,C as P}from"./index-DKEi6Zik.js";import{C as I}from"./chevron-down-I_rDvMfO.js";function E(n){const r=k(n),o=e.forwardRef((n,o)=>{const{children:l,...a}=n,s=e.Children.toArray(l),i=s.find(D);if(i){const n=i.props.children,l=s.map(t=>t===i?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,l):null})}return t.jsx(r,{...a,ref:o,children:l})});return o.displayName=`${n}.Slot`,o}function k(t){const r=e.forwardRef((t,r)=>{const{children:o,...l}=t;if(e.isValidElement(o)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{const t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(l,o.props);return o.type!==e.Fragment&&(a.ref=r?n(r,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var T=Symbol("radix.slottable");function D(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===T}function M(e){const n=e+"CollectionProvider",[a,s]=r(n),[i,c]=a(n,{collectionRef:{current:null},itemMap:new Map}),d=e=>{const{scope:n,children:r}=e,l=o.useRef(null),a=o.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:a,collectionRef:l,children:r})};d.displayName=n;const u=e+"CollectionSlot",p=E(u),f=o.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=c(u,r),s=l(n,a.collectionRef);return t.jsx(p,{ref:s,children:o})});f.displayName=u;const m=e+"CollectionItemSlot",h="data-radix-collection-item",v=E(m),g=o.forwardRef((e,n)=>{const{scope:r,children:a,...s}=e,i=o.useRef(null),d=l(n,i),u=c(m,r);return o.useEffect(()=>(u.itemMap.set(i,{ref:i,...s}),()=>{u.itemMap.delete(i)})),t.jsx(v,{[h]:"",ref:d,children:a})});return g.displayName=m,[{Provider:d,Slot:f,ItemSlot:g},function(t){const n=c(e+"CollectionConsumer",t);return o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}function O(n){const r=A(n),o=e.forwardRef((n,o)=>{const{children:l,...a}=n,s=e.Children.toArray(l),i=s.find(L);if(i){const n=i.props.children,l=s.map(t=>t===i?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,l):null})}return t.jsx(r,{...a,ref:o,children:l})});return o.displayName=`${n}.Slot`,o}function A(t){const r=e.forwardRef((t,r)=>{const{children:o,...l}=t;if(e.isValidElement(o)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{const t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(l,o.props);return o.type!==e.Fragment&&(a.ref=r?n(r,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var V=Symbol("radix.slottable");function L(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===V}function H(t){const n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var W=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});e.forwardRef((e,n)=>t.jsx(a.span,{...e,ref:n,style:{...W,...e.style}})).displayName="VisuallyHidden";var B=[" ","Enter","ArrowUp","ArrowDown"],F=[" ","Enter"],K="Select",[z,U,q]=M(K),[$]=r(K,[q,u]),Z=u(),[X,Y]=$(K),[G,J]=$(K),Q=n=>{const{__scopeSelect:r,children:o,open:l,defaultOpen:a,onOpenChange:d,value:u,defaultValue:p,onValueChange:f,dir:m,name:h,autoComplete:v,disabled:g,required:x,form:y}=n,w=Z(r),[b,S]=e.useState(null),[C,j]=e.useState(null),[N,_]=e.useState(!1),P=R(m),[I,E]=s({prop:l,defaultProp:a??!1,onChange:d,caller:K}),[k,T]=s({prop:u,defaultProp:p,onChange:f,caller:K}),D=e.useRef(null),M=!b||(y||!!b.closest("form")),[O,A]=e.useState(new Set),V=Array.from(O).map(e=>e.props.value).join(";");return t.jsx(i,{...w,children:t.jsxs(X,{required:x,scope:r,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:N,onValueNodeHasChildrenChange:_,contentId:c(),value:k,onValueChange:T,open:I,onOpenChange:E,dir:P,triggerPointerDownPosRef:D,disabled:g,children:[t.jsx(z.Provider,{scope:r,children:t.jsx(G,{scope:n.__scopeSelect,onNativeOptionAdd:e.useCallback(e=>{A(t=>new Set(t).add(e))},[]),onNativeOptionRemove:e.useCallback(e=>{A(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:o})}),M?t.jsxs(He,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:v,value:k,onChange:e=>T(e.target.value),disabled:g,form:y,children:[void 0===k?t.jsx("option",{value:""}):null,Array.from(O)]},V):null]})})};Q.displayName=K;var ee="SelectTrigger",te=e.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:s=!1,...i}=n,c=Z(o),d=Y(ee,o),u=d.disabled||s,m=l(r,d.onTriggerChange),h=U(o),v=e.useRef("touch"),[g,x,y]=Be(e=>{const t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===d.value),r=Fe(t,e,n);void 0!==r&&d.onValueChange(r.value)}),w=e=>{u||(d.onOpenChange(!0),y()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return t.jsx(p,{asChild:!0,...c,children:t.jsx(a.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":We(d.value)?"":void 0,...i,ref:m,onClick:f(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==v.current&&w(e)}),onPointerDown:f(i.onPointerDown,e=>{v.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:f(i.onKeyDown,e=>{const t=""!==g.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||x(e.key),t&&" "===e.key||B.includes(e.key)&&(w(),e.preventDefault())})})})});te.displayName=ee;var ne="SelectValue",re=e.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:s,children:i,placeholder:c="",...u}=e,p=Y(ne,r),{onValueNodeHasChildrenChange:f}=p,m=void 0!==i,h=l(n,p.onValueNodeChange);return d(()=>{f(m)},[f,m]),t.jsx(a.span,{...u,ref:h,style:{pointerEvents:"none"},children:We(p.value)?t.jsx(t.Fragment,{children:c}):i})});re.displayName=ne;var oe=e.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...l}=e;return t.jsx(a.span,{"aria-hidden":!0,...l,ref:n,children:o||"▼"})});oe.displayName="SelectIcon";var le=e=>t.jsx(m,{asChild:!0,...e});le.displayName="SelectPortal";var ae="SelectContent",se=e.forwardRef((n,r)=>{const o=Y(ae,n.__scopeSelect),[l,a]=e.useState();if(d(()=>{a(new DocumentFragment)},[]),!o.open){const e=l;return e?h.createPortal(t.jsx(ce,{scope:n.__scopeSelect,children:t.jsx(z.Slot,{scope:n.__scopeSelect,children:t.jsx("div",{children:n.children})})}),e):null}return t.jsx(pe,{...n,ref:r})});se.displayName=ae;var ie=10,[ce,de]=$(ae),ue=O("SelectContent.RemoveScroll"),pe=e.forwardRef((n,r)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:d,sideOffset:u,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:S,sticky:C,hideWhenDetached:j,avoidCollisions:N,...R}=n,_=Y(ae,o),[P,I]=e.useState(null),[E,k]=e.useState(null),T=l(r,e=>I(e)),[D,M]=e.useState(null),[O,A]=e.useState(null),V=U(o),[L,H]=e.useState(!1),W=e.useRef(!1);e.useEffect(()=>{if(P)return g(P)},[P]),x();const B=e.useCallback(e=>{const[t,...n]=V().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const l of e){if(l===o)return;if(null==l||l.scrollIntoView({block:"nearest"}),l===t&&E&&(E.scrollTop=0),l===r&&E&&(E.scrollTop=E.scrollHeight),null==l||l.focus(),document.activeElement!==o)return}},[V,E]),F=e.useCallback(()=>B([D,P]),[B,D,P]);e.useEffect(()=>{L&&F()},[L,F]);const{onOpenChange:K,triggerPointerDownPosRef:z}=_;e.useEffect(()=>{if(P){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=z.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=z.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||K(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,K,z]),e.useEffect(()=>{const e=()=>K(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[K]);const[q,$]=Be(e=>{const t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Fe(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Z=e.useCallback((e,t,n)=>{const r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&(M(e),r&&(W.current=!0))},[_.value]),X=e.useCallback(()=>null==P?void 0:P.focus(),[P]),G=e.useCallback((e,t,n)=>{const r=!W.current&&!n;(void 0!==_.value&&_.value===t||r)&&A(e)},[_.value]),J="popper"===a?me:fe,Q=J===me?{side:d,sideOffset:u,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:S,sticky:C,hideWhenDetached:j,avoidCollisions:N}:{};return t.jsx(ce,{scope:o,content:P,viewport:E,onViewportChange:k,itemRefCallback:Z,selectedItem:D,onItemLeave:X,itemTextRefCallback:G,focusSelectedItem:F,selectedItemText:O,position:a,isPositioned:L,searchRef:q,children:t.jsx(y,{as:ue,allowPinchZoom:!0,children:t.jsx(w,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:f(s,e=>{var t;null==(t=_.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:t.jsx(b,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:t.jsx(J,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...R,...Q,onPlaced:()=>H(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:f(R.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});pe.displayName="SelectContentImpl";var fe=e.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:s,...i}=n,c=Y(ae,o),u=de(ae,o),[p,f]=e.useState(null),[m,h]=e.useState(null),v=l(r,e=>h(e)),g=U(o),x=e.useRef(!1),y=e.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:S,focusSelectedItem:C}=u,j=e.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&m&&w&&b&&S){const e=c.trigger.getBoundingClientRect(),t=m.getBoundingClientRect(),n=c.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==c.dir){const o=r.left-t.left,l=n.left-o,a=e.left-l,s=e.width+a,i=Math.max(s,t.width),c=window.innerWidth-ie,d=_(l,[ie,Math.max(ie,c-i)]);p.style.minWidth=s+"px",p.style.left=d+"px"}else{const o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,s=e.width+a,i=Math.max(s,t.width),c=window.innerWidth-ie,d=_(l,[ie,Math.max(ie,c-i)]);p.style.minWidth=s+"px",p.style.right=d+"px"}const o=g(),l=window.innerHeight-2*ie,a=w.scrollHeight,i=window.getComputedStyle(m),d=parseInt(i.borderTopWidth,10),u=parseInt(i.paddingTop,10),f=parseInt(i.borderBottomWidth,10),h=d+u+a+parseInt(i.paddingBottom,10)+f,v=Math.min(5*b.offsetHeight,h),y=window.getComputedStyle(w),C=parseInt(y.paddingTop,10),j=parseInt(y.paddingBottom,10),N=e.top+e.height/2-ie,R=l-N,P=b.offsetHeight/2,I=d+u+(b.offsetTop+P),E=h-I;if(I<=N){const e=o.length>0&&b===o[o.length-1].ref.current;p.style.bottom="0px";const t=m.clientHeight-w.offsetTop-w.offsetHeight,n=I+Math.max(R,P+(e?j:0)+t+f);p.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;p.style.top="0px";const t=Math.max(N,d+w.offsetTop+(e?C:0)+P)+E;p.style.height=t+"px",w.scrollTop=I-N+w.offsetTop}p.style.margin=`${ie}px 0`,p.style.minHeight=v+"px",p.style.maxHeight=l+"px",null==s||s(),requestAnimationFrame(()=>x.current=!0)}},[g,c.trigger,c.valueNode,p,m,w,b,S,c.dir,s]);d(()=>j(),[j]);const[N,R]=e.useState();d(()=>{m&&R(window.getComputedStyle(m).zIndex)},[m]);const P=e.useCallback(e=>{e&&!0===y.current&&(j(),null==C||C(),y.current=!1)},[j,C]);return t.jsx(he,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:x,onScrollButtonChange:P,children:t.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:t.jsx(a.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});fe.displayName="SelectItemAlignedPosition";var me=e.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:l=ie,...a}=e,s=Z(r);return t.jsx(S,{...s,...a,ref:n,align:o,collisionPadding:l,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});me.displayName="SelectPopperPosition";var[he,ve]=$(ae,{}),ge="SelectViewport",xe=e.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:s,...i}=n,c=de(ge,o),d=ve(ge,o),u=l(r,c.onViewportChange),p=e.useRef(0);return t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),t.jsx(z.Slot,{scope:o,children:t.jsx(a.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:f(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=d;if((null==r?void 0:r.current)&&n){const e=Math.abs(p.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*ie,o=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),a=Math.max(o,l);if(a<r){const o=a+e,l=Math.min(r,o),s=o-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})})})]})});xe.displayName=ge;var ye="SelectGroup",[we,be]=$(ye);e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=c();return t.jsx(we,{scope:r,id:l,children:t.jsx(a.div,{role:"group","aria-labelledby":l,...o,ref:n})})}).displayName=ye;var Se="SelectLabel",Ce=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=be(Se,r);return t.jsx(a.div,{id:l.id,...o,ref:n})});Ce.displayName=Se;var je="SelectItem",[Ne,Re]=$(je),_e=e.forwardRef((n,r)=>{const{__scopeSelect:o,value:s,disabled:i=!1,textValue:d,...u}=n,p=Y(je,o),m=de(je,o),h=p.value===s,[v,g]=e.useState(d??""),[x,y]=e.useState(!1),w=l(r,e=>{var t;return null==(t=m.itemRefCallback)?void 0:t.call(m,e,s,i)}),b=c(),S=e.useRef("touch"),C=()=>{i||(p.onValueChange(s),p.onOpenChange(!1))};if(""===s)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.jsx(Ne,{scope:o,value:s,disabled:i,textId:b,isSelected:h,onItemTextChange:e.useCallback(e=>{g(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:t.jsx(z.ItemSlot,{scope:o,value:s,disabled:i,textValue:v,children:t.jsx(a.div,{role:"option","aria-labelledby":b,"data-highlighted":x?"":void 0,"aria-selected":h&&x,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:w,onFocus:f(u.onFocus,()=>y(!0)),onBlur:f(u.onBlur,()=>y(!1)),onClick:f(u.onClick,()=>{"mouse"!==S.current&&C()}),onPointerUp:f(u.onPointerUp,()=>{"mouse"===S.current&&C()}),onPointerDown:f(u.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:f(u.onPointerMove,e=>{var t;S.current=e.pointerType,i?null==(t=m.onItemLeave)||t.call(m):"mouse"===S.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:f(u.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null==(t=m.onItemLeave)||t.call(m))}),onKeyDown:f(u.onKeyDown,e=>{var t;""!==(null==(t=m.searchRef)?void 0:t.current)&&" "===e.key||(F.includes(e.key)&&C()," "===e.key&&e.preventDefault())})})})})});_e.displayName=je;var Pe="SelectItemText",Ie=e.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:i,...c}=n,u=Y(Pe,o),p=de(Pe,o),f=Re(Pe,o),m=J(Pe,o),[v,g]=e.useState(null),x=l(r,e=>g(e),f.onItemTextChange,e=>{var t;return null==(t=p.itemTextRefCallback)?void 0:t.call(p,e,f.value,f.disabled)}),y=null==v?void 0:v.textContent,w=e.useMemo(()=>t.jsx("option",{value:f.value,disabled:f.disabled,children:y},f.value),[f.disabled,f.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=m;return d(()=>(b(w),()=>S(w)),[b,S,w]),t.jsxs(t.Fragment,{children:[t.jsx(a.span,{id:f.textId,...c,ref:x}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?h.createPortal(c.children,u.valueNode):null]})});Ie.displayName=Pe;var Ee="SelectItemIndicator",ke=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return Re(Ee,r).isSelected?t.jsx(a.span,{"aria-hidden":!0,...o,ref:n}):null});ke.displayName=Ee;var Te="SelectScrollUpButton",De=e.forwardRef((n,r)=>{const o=de(Te,n.__scopeSelect),a=ve(Te,n.__scopeSelect),[s,i]=e.useState(!1),c=l(r,a.onScrollButtonChange);return d(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),s?t.jsx(Ae,{...n,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});De.displayName=Te;var Me="SelectScrollDownButton",Oe=e.forwardRef((n,r)=>{const o=de(Me,n.__scopeSelect),a=ve(Me,n.__scopeSelect),[s,i]=e.useState(!1),c=l(r,a.onScrollButtonChange);return d(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),s?t.jsx(Ae,{...n,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Oe.displayName=Me;var Ae=e.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:l,...s}=n,i=de("SelectScrollButton",o),c=e.useRef(null),u=U(o),p=e.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return e.useEffect(()=>()=>p(),[p]),d(()=>{var e;const t=u().find(e=>e.ref.current===document.activeElement);null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),t.jsx(a.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:f(s.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(l,50))}),onPointerMove:f(s.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===c.current&&(c.current=window.setInterval(l,50))}),onPointerLeave:f(s.onPointerLeave,()=>{p()})})}),Ve=e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return t.jsx(a.div,{"aria-hidden":!0,...o,ref:n})});Ve.displayName="SelectSeparator";var Le="SelectArrow";e.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,l=Z(r),a=Y(Le,r),s=de(Le,r);return a.open&&"popper"===s.position?t.jsx(C,{...l,...o,ref:n}):null}).displayName=Le;var He=e.forwardRef(({__scopeSelect:n,value:r,...o},s)=>{const i=e.useRef(null),c=l(s,i),d=H(r);return e.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(d!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[d,r]),t.jsx(a.select,{...o,style:{...W,...o.style},ref:c,defaultValue:r})});function We(e){return""===e||void 0===e}function Be(t){const n=v(t),r=e.useRef(""),o=e.useRef(0),l=e.useCallback(e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(t)},[n]),a=e.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,l,a]}function Fe(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=(a=e,s=Math.max(o,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(l=l.filter(e=>e!==n));const i=l.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}He.displayName="SelectBubbleInput";var Ke=te,ze=oe,Ue=le,qe=se,$e=xe,Ze=Ce,Xe=_e,Ye=Ie,Ge=ke,Je=De,Qe=Oe,et=Ve;const tt=Q,nt=re,rt=e.forwardRef(({className:e,children:n,...r},o)=>t.jsxs(Ke,{ref:o,className:j("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,t.jsx(ze,{asChild:!0,children:t.jsx(I,{className:"h-4 w-4 opacity-50"})})]}));rt.displayName=Ke.displayName;const ot=e.forwardRef(({className:e,...n},r)=>t.jsx(Je,{ref:r,className:j("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(P,{className:"h-4 w-4"})}));ot.displayName=Je.displayName;const lt=e.forwardRef(({className:e,...n},r)=>t.jsx(Qe,{ref:r,className:j("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(I,{className:"h-4 w-4"})}));lt.displayName=Qe.displayName;const at=e.forwardRef(({className:e,children:n,position:r="popper",...o},l)=>t.jsx(Ue,{children:t.jsxs(qe,{ref:l,className:j("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[t.jsx(ot,{}),t.jsx($e,{className:j("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),t.jsx(lt,{})]})}));at.displayName=qe.displayName;e.forwardRef(({className:e,...n},r)=>t.jsx(Ze,{ref:r,className:j("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...n})).displayName=Ze.displayName;const st=e.forwardRef(({className:e,children:n,...r},o)=>t.jsxs(Xe,{ref:o,className:j("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(Ge,{children:t.jsx(N,{className:"h-4 w-4"})})}),t.jsx(Ye,{children:n})]}));st.displayName=Xe.displayName;e.forwardRef(({className:e,...n},r)=>t.jsx(et,{ref:r,className:j("-mx-1 my-1 h-px bg-muted",e),...n})).displayName=et.displayName;export{tt as S,rt as a,nt as b,M as c,at as d,st as e,H as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,r as t,j as o,br as a,ad as n,ac as r,a7 as i,ab as s,ba as c,a4 as l,a9 as u,d}from"./index-
|
|
1
|
+
import{c as e,r as t,j as o,br as a,ad as n,ac as r,a7 as i,ab as s,ba as c,a4 as l,a9 as u,d}from"./index-CfBtobxM.js";import{c as f}from"./select-C1RL7Yie.js";import{u as p}from"./index-DKEi6Zik.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.309.0 - ISC
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,j as r,d as s}from"./index-
|
|
1
|
+
import{r as e,j as r,d as s}from"./index-CfBtobxM.js";const o=e.forwardRef(({className:e,...o},a)=>r.jsx("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Textarea";export{o as T};
|
package/frontend/dist/index.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
11
11
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
12
12
|
<title>CC Web</title>
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-CfBtobxM.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D52wv9GD.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tom2012/cc-web",
|
|
3
|
-
"version": "2026.6.13-
|
|
3
|
+
"version": "2026.6.13-d",
|
|
4
4
|
"description": "Self-hosted web UI for Claude Code CLI — run Claude in your browser",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "electron/dist/main.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"bin/",
|
|
13
|
+
"CHANGELOG.json",
|
|
13
14
|
"backend/dist/",
|
|
14
15
|
"backend/package.json",
|
|
15
16
|
"backend/package-lock.json",
|