1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8112],{39997:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(20107);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:d,className:s="",children:p,iconNode:c,...u}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:d?24*Number(l)/Number(o):l,className:a("lucide",s),...u},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(p)?p:[p]])}),d=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:d,...s}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),d),...s})});return r.displayName="".concat(e),r}},29475:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},12607:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(39997).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},54379:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(20107),o=r(20475);function a(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,a){let i=n.createContext(a),l=r.length;function d(t){let{scope:r,children:a,...d}=t,s=r?.[e][l]||i,p=n.useMemo(()=>d,Object.values(d));return(0,o.jsx)(s.Provider,{value:p,children:a})}return r=[...r,a],d.displayName=t+"Provider",[d,function(r,o){let d=o?.[e][l]||i,s=n.useContext(d);if(s)return s;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},21840:(e,t,r)=>{r.d(t,{b:()=>l});var n=r(20107),o=r(34544),a=r(20475),i=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},57563:(e,t,r)=>{r.d(t,{Mz:()=>O,i3:()=>$,UC:()=>z,bL:()=>_,Bk:()=>m});var n=r(20107),o=r(9895),a=r(84069),i=r(34544),l=r(20475),d=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,l.jsx)(i.sG.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});d.displayName="Arrow";var s=r(64236),p=r(54379),c=r(46774),u=r(54122),f=r(63620),h="Popper",[v,m]=(0,p.A)(h),[w,g]=v(h),x=e=>{let{__scopePopper:t,children:r}=e,[o,a]=n.useState(null);return(0,l.jsx)(w,{scope:t,anchor:o,onAnchorChange:a,children:r})};x.displayName=h;var y="PopperAnchor",A=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...a}=e,d=g(y,r),p=n.useRef(null),c=(0,s.s)(t,p);return n.useEffect(()=>{d.onAnchorChange((null==o?void 0:o.current)||p.current)}),o?null:(0,l.jsx)(i.sG.div,{...a,ref:c})});A.displayName=y;var b="PopperContent",[N,j]=v(b),k=n.forwardRef((e,t)=>{var r,d,p,h,v,m,w,x;let{__scopePopper:y,side:A="bottom",sideOffset:j=0,align:k="center",alignOffset:C=0,arrowPadding:E=0,avoidCollisions:P=!0,collisionBoundary:_=[],collisionPadding:O=0,sticky:z="partial",hideWhenDetached:$=!1,updatePositionStrategy:H="optimized",onPlaced:L,...B}=e,G=g(b,y),[W,Y]=n.useState(null),D=(0,s.s)(t,e=>Y(e)),[U,X]=n.useState(null),F=(0,f.X)(U),I=null!==(w=null==F?void 0:F.width)&&void 0!==w?w:0,V=null!==(x=null==F?void 0:F.height)&&void 0!==x?x:0,q="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},T=Array.isArray(_)?_:[_],Z=T.length>0,J={padding:q,boundary:T.filter(R),altBoundary:Z},{refs:K,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,o.we)({strategy:"fixed",placement:A+("center"!==k?"-"+k:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.ll)(...t,{animationFrame:"always"===H})},elements:{reference:G.anchor},middleware:[(0,o.cY)({mainAxis:j+V,alignmentAxis:C}),P&&(0,o.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===z?(0,o.ER)():void 0,...J}),P&&(0,o.UU)({...J}),(0,o.Ej)({...J,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:a,height:i}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),U&&(0,o.UE)({element:U,padding:E}),M({arrowWidth:I,arrowHeight:V}),$&&(0,o.jD)({strategy:"referenceHidden",...J})]}),[en,eo]=S(ee),ea=(0,c.c)(L);(0,u.N)(()=>{et&&(null==ea||ea())},[et,ea]);let ei=null===(r=er.arrow)||void 0===r?void 0:r.x,el=null===(d=er.arrow)||void 0===d?void 0:d.y,ed=(null===(p=er.arrow)||void 0===p?void 0:p.centerOffset)!==0,[es,ep]=n.useState();return(0,u.N)(()=>{W&&ep(window.getComputedStyle(W).zIndex)},[W]),(0,l.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(h=er.transformOrigin)||void 0===h?void 0:h.x,null===(v=er.transformOrigin)||void 0===v?void 0:v.y].join(" "),...(null===(m=er.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(N,{scope:y,placedSide:en,onArrowChange:X,arrowX:ei,arrowY:el,shouldHideArrow:ed,children:(0,l.jsx)(i.sG.div,{"data-side":en,"data-align":eo,...B,ref:D,style:{...B.style,animation:et?void 0:"none"}})})})});k.displayName=b;var C="PopperArrow",E={top:"bottom",right:"left",bottom:"top",left:"right"},P=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=j(C,r),a=E[o.placedSide];return(0,l.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(d,{...n,ref:t,style:{...n.style,display:"block"}})})});function R(e){return null!==e}P.displayName=C;var M=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,i;let{placement:l,rects:d,middlewareData:s}=t,p=(null===(r=s.arrow)||void 0===r?void 0:r.centerOffset)!==0,c=p?0:e.arrowWidth,u=p?0:e.arrowHeight,[f,h]=S(l),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(a=null===(n=s.arrow)||void 0===n?void 0:n.x)&&void 0!==a?a:0)+c/2,w=(null!==(i=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+u/2,g="",x="";return"bottom"===f?(g=p?v:"".concat(m,"px"),x="".concat(-u,"px")):"top"===f?(g=p?v:"".concat(m,"px"),x="".concat(d.floating.height+u,"px")):"right"===f?(g="".concat(-u,"px"),x=p?v:"".concat(w,"px")):"left"===f&&(g="".concat(d.floating.width+u,"px"),x=p?v:"".concat(w,"px")),{data:{x:g,y:x}}}});function S(e){let[t,r="center"]=e.split("-");return[t,r]}var _=x,O=A,z=k,$=P},91475:(e,t,r)=>{r.d(t,{b:()=>l,s:()=>i});var n=r(20107),o=r(34544),a=r(20475),i=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{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.style}}));i.displayName="VisuallyHidden";var l=i}}]); |