1 line
8.1 KiB
JavaScript
1 line
8.1 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5668],{76076:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},59166:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},27720:(e,r,a)=>{a.d(r,{A:()=>t});let t=(0,a(39997).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},28702:(e,r,a)=>{a.d(r,{UC:()=>ei,Y9:()=>en,q7:()=>et,bL:()=>ea,l9:()=>eo});var t=a(20107),n=a(45170),o=a(32474),i=a(64236),l=a(94521),d=a(13061),s=a(34544),c=a(54122),u=a(54245),p=a(72763),f=a(20475),v="Collapsible",[h,m]=(0,n.A)(v),[x,b]=h(v),g=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,open:n,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u=!1,v]=(0,d.i)({prop:n,defaultProp:o,onChange:l});return(0,f.jsx)(x,{scope:a,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),children:(0,f.jsx)(s.sG.div,{"data-state":k(u),"data-disabled":i?"":void 0,...c,ref:r})})});g.displayName=v;var y="CollapsibleTrigger",w=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,...t}=e,n=b(y,a);return(0,f.jsx)(s.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":k(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...t,ref:r,onClick:(0,l.m)(e.onClick,n.onOpenToggle)})});w.displayName=y;var j="CollapsibleContent",A=t.forwardRef((e,r)=>{let{forceMount:a,...t}=e,n=b(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:a||n.open,children:e=>{let{present:a}=e;return(0,f.jsx)(C,{...t,ref:r,present:a})}})});A.displayName=j;var C=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,present:n,children:o,...l}=e,d=b(j,a),[u,p]=t.useState(n),v=t.useRef(null),h=(0,i.s)(r,v),m=t.useRef(0),x=m.current,g=t.useRef(0),y=g.current,w=d.open||u,A=t.useRef(w),C=t.useRef();return t.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=v.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();m.current=r.height,g.current=r.width,A.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(n)}},[d.open,n]),(0,f.jsx)(s.sG.div,{"data-state":k(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!w,...l,ref:h,style:{"--radix-collapsible-content-height":x?"".concat(x,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&o})});function k(e){return e?"open":"closed"}var N=a(76056),R="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,D,P]=(0,o.N)(R),[G,O]=(0,n.A)(R,[P,m]),q=m(),E=t.forwardRef((e,r)=>{let{type:a,...t}=e;return(0,f.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,f.jsx)(S,{...t,ref:r}):(0,f.jsx)(z,{...t,ref:r})})});E.displayName=R;var[H,L]=G(R),[M,T]=G(R,{collapsible:!1}),z=t.forwardRef((e,r)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[s,c]=(0,d.i)({prop:a,defaultProp:n,onChange:o});return(0,f.jsx)(H,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:t.useCallback(()=>i&&c(""),[i,c]),children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(F,{...l,ref:r})})})}),S=t.forwardRef((e,r)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},...i}=e,[l=[],s]=(0,d.i)({prop:a,defaultProp:n,onChange:o}),c=t.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[s]),u=t.useCallback(e=>s(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[s]);return(0,f.jsx)(H,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...i,ref:r})})})}),[U,B]=G(R),F=t.forwardRef((e,r)=>{let{__scopeAccordion:a,disabled:n,dir:o,orientation:d="vertical",...c}=e,u=t.useRef(null),p=(0,i.s)(u,r),v=D(a),h="ltr"===(0,N.jH)(o),m=(0,l.m)(e.onKeyDown,e=>{var r;if(!I.includes(e.key))return;let a=e.target,t=v().filter(e=>{var r;return!(null===(r=e.ref.current)||void 0===r?void 0:r.disabled)}),n=t.findIndex(e=>e.ref.current===a),o=t.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,s=()=>{(i=n+1)>l&&(i=0)},c=()=>{(i=n-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===d&&(h?s():c());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(h?c():s());break;case"ArrowUp":"vertical"===d&&c()}null===(r=t[i%o].ref.current)||void 0===r||r.focus()});return(0,f.jsx)(U,{scope:a,disabled:n,direction:o,orientation:d,children:(0,f.jsx)(_.Slot,{scope:a,children:(0,f.jsx)(s.sG.div,{...c,"data-orientation":d,ref:p,onKeyDown:n?void 0:m})})})}),K="AccordionItem",[V,Y]=G(K),Z=t.forwardRef((e,r)=>{let{__scopeAccordion:a,value:t,...n}=e,o=B(K,a),i=L(K,a),l=q(a),d=(0,p.B)(),s=t&&i.value.includes(t)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(V,{scope:a,open:s,disabled:c,triggerId:d,children:(0,f.jsx)(g,{"data-orientation":o.orientation,"data-state":er(s),...l,...n,ref:r,disabled:c,open:s,onOpenChange:e=>{e?i.onItemOpen(t):i.onItemClose(t)}})})});Z.displayName=K;var J="AccordionHeader",Q=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y(J,a);return(0,f.jsx)(s.sG.h3,{"data-orientation":n.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...t,ref:r})});Q.displayName=J;var W="AccordionTrigger",X=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y(W,a),i=T(W,a),l=q(a);return(0,f.jsx)(_.ItemSlot,{scope:a,children:(0,f.jsx)(w,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...l,...t,ref:r})})});X.displayName=W;var $="AccordionContent",ee=t.forwardRef((e,r)=>{let{__scopeAccordion:a,...t}=e,n=B(R,a),o=Y($,a),i=q(a);return(0,f.jsx)(A,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var ea=E,et=Z,en=Q,eo=X,ei=ee},33466:(e,r,a)=>{a.d(r,{C1:()=>w,bL:()=>y});var t=a(20107),n=a(54379),o=a(34544),i=a(20475),l="Progress",[d,s]=(0,n.A)(l),[c,u]=d(l),p=t.forwardRef((e,r)=>{var a,t,n,l;let{__scopeProgress:d,value:s=null,max:u,getValueLabel:p=h,...f}=e;(u||0===u)&&!b(u)&&console.error((a="".concat(u),t="Progress","Invalid prop `max` of value `".concat(a,"` supplied to `").concat(t,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=b(u)?u:100;null===s||g(s,v)||console.error((n="".concat(s),l="Progress","Invalid prop `value` of value `".concat(n,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let y=g(s,v)?s:null,w=x(y)?p(y,v):void 0;return(0,i.jsx)(c,{scope:d,value:y,max:v,children:(0,i.jsx)(o.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":x(y)?y:void 0,"aria-valuetext":w,role:"progressbar","data-state":m(y,v),"data-value":null!=y?y:void 0,"data-max":v,...f,ref:r})})});p.displayName=l;var f="ProgressIndicator",v=t.forwardRef((e,r)=>{var a;let{__scopeProgress:t,...n}=e,l=u(f,t);return(0,i.jsx)(o.sG.div,{"data-state":m(l.value,l.max),"data-value":null!==(a=l.value)&&void 0!==a?a:void 0,"data-max":l.max,...n,ref:r})});function h(e,r){return"".concat(Math.round(e/r*100),"%")}function m(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function x(e){return"number"==typeof e}function b(e){return x(e)&&!isNaN(e)&&e>0}function g(e,r){return x(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=f;var y=p,w=v}}]); |