@nice2dev/ui 1.0.31 → 1.1.5
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.md +353 -0
- package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
- package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
- package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
- package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
- package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
- package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
- package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
- package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
- package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
- package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
- package/dist/NiceForm-C6F0HvrX.cjs +1 -0
- package/dist/NiceForm-CCyfWgIs.js +4805 -0
- package/dist/NiceGantt-CSFLZD2y.js +328 -0
- package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
- package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
- package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
- package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
- package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
- package/dist/NiceMention-CWoLD0SE.js +11082 -0
- package/dist/NiceMention-J1lUDLhg.cjs +430 -0
- package/dist/NiceMention.css +1 -0
- package/dist/NiceModal-0UxviEYE.cjs +1 -0
- package/dist/NiceModal-D-iOonog.js +95 -0
- package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
- package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-CPn-Q1h_.js +172 -0
- package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
- package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
- package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
- package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
- package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
- package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
- package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
- package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
- package/dist/NiceSelect-DHowflmX.js +433 -0
- package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
- package/dist/NiceWindow-xnTSHdHv.js +1623 -0
- package/dist/charts-B-sl1V9y.cjs +882 -0
- package/dist/charts-DO2z6Ziu.js +31920 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +7 -7
- package/dist/core-C2KhqEaU.cjs +1 -0
- package/dist/core-K2DIxXLn.js +795 -0
- package/dist/data-branching-DC6hcBQN.cjs +1 -0
- package/dist/data-branching-DykdTpjJ.js +6255 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +29 -7
- package/dist/data.mjs +18 -16
- package/dist/devops-CU0sOVEA.cjs +17 -0
- package/dist/devops-CXyEwQeM.js +8165 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +73 -1
- package/dist/editors.mjs +58 -54
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +5137 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +115 -13
- package/dist/index.mjs +66371 -992
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +6 -0
- package/dist/navigation.mjs +4 -4
- package/dist/no-code-C58g8_fb.cjs +332 -0
- package/dist/no-code-Cj4xJ3w9.js +7425 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +2 -0
- package/dist/overlays.mjs +2 -2
- package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
- package/dist/pickerCommons-COiSUiP2.js +1122 -0
- package/dist/style.css +6 -6
- package/dist/vendor-BPVpdtPp.js +271 -0
- package/dist/vendor-Bo2Q64AF.cjs +1 -0
- package/package.json +17 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),X=require("./charts-B-sl1V9y.cjs"),n=require("react"),ht=({visible:t,onClose:i,title:s,items:l,showCancelButton:h=!0,cancelText:f,size:x="md",disabled:w,readOnly:u,loading:b,error:a,className:v,style:T})=>{const{t:S}=X.Gt();if(!t)return null;const N=w||b||u;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"nice-actionsheet__overlay",onClick:i}),e.jsxs("div",{className:`nice-actionsheet nice-actionsheet--${x} ${w?"nice-actionsheet--disabled":""} ${u?"nice-actionsheet--readonly":""} ${b?"nice-actionsheet--loading":""} ${a?"nice-actionsheet--error":""} ${v||""}`,style:T,"aria-disabled":w||void 0,"aria-readonly":u||void 0,"aria-busy":b||void 0,children:[a&&e.jsx("div",{className:"nice-actionsheet__error",role:"alert",children:a}),b&&e.jsx("span",{className:"nice-actionsheet__spinner","aria-hidden":"true",children:e.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),s&&e.jsx("div",{className:"nice-actionsheet__title",children:s}),e.jsx("div",{className:"nice-actionsheet__items",children:l.map((j,P)=>e.jsxs("button",{className:`nice-actionsheet__item ${j.type==="danger"?"nice-actionsheet__item--danger":""}`,disabled:j.disabled||N,onClick:()=>{N||(j.onClick?.(),i())},children:[j.icon&&e.jsx("span",{className:"nice-actionsheet__icon",children:j.icon}),j.text]},P))}),h&&e.jsx("button",{className:"nice-actionsheet__cancel",onClick:i,children:f||S("cancel","Cancel")})]})]})},ft=({visible:t,onClose:i,targetRef:s,position:l="bottom",title:h,showArrow:f=!0,width:x,children:w,className:u,style:b,displayStyle:a})=>{X.ac("tooltip",a);const v=n.useRef(null),[T,S]=n.useState({top:0,left:0}),N=n.useCallback(()=>{const j=s.current,P=v.current;if(!j||!P)return;const c=j.getBoundingClientRect(),g=P.getBoundingClientRect();let r=0,C=0;const _=8;switch(l){case"top":r=c.top-g.height-_,C=c.left+(c.width-g.width)/2;break;case"bottom":r=c.bottom+_,C=c.left+(c.width-g.width)/2;break;case"left":r=c.top+(c.height-g.height)/2,C=c.left-g.width-_;break;case"right":r=c.top+(c.height-g.height)/2,C=c.right+_;break}S({top:r+window.scrollY,left:C+window.scrollX})},[s,l]);return n.useEffect(()=>{if(t){requestAnimationFrame(N);const j=P=>{v.current&&!v.current.contains(P.target)&&s.current&&!s.current.contains(P.target)&&i()};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)}},[t,N,i,s]),t?e.jsxs("div",{ref:v,className:`nice-popover nice-popover--${l} ${u||""}`,style:{...b,position:"absolute",top:T.top,left:T.left,width:x},children:[f&&e.jsx("div",{className:`nice-popover__arrow nice-popover__arrow--${l}`}),h&&e.jsx("div",{className:"nice-popover__title",children:h}),e.jsx("div",{className:"nice-popover__content",children:w})]}):null},pt=({visible:t,message:i,container:s,showIndicator:l=!0,shading:h=!0,className:f,style:x})=>{const{t:w}=X.Gt();if(!t)return null;const u=!!s?.current,b=e.jsxs("div",{className:`nice-loadpanel ${f||""}`,style:x,children:[h&&e.jsx("div",{className:"nice-loadpanel__shade"}),e.jsxs("div",{className:"nice-loadpanel__box",children:[l&&e.jsx("div",{className:"nice-spinner nice-spinner--md"}),e.jsx("span",{className:"nice-loadpanel__text",children:i||w("loading","Loading...")})]})]});if(u&&s.current){const a=s.current;return a.style.position=a.style.position||"relative",b}return b},xt=({direction:t="row",align:i,justify:s,wrap:l,gap:h,flex:f,children:x,className:w,style:u})=>e.jsx("div",{className:`nice-box ${w||""}`,style:{display:"flex",flexDirection:t,alignItems:i,justifyContent:s,flexWrap:l?"wrap":void 0,gap:h,flex:f,...u},children:x}),wt=({direction:t="row",items:i,gap:s,className:l,style:h})=>e.jsx("div",{className:`nice-responsivebox ${l||""}`,style:{display:"flex",flexDirection:t,gap:s,...h},children:i.map((f,x)=>e.jsx("div",{style:{flex:f.ratio??1,flexBasis:f.baseSize,flexShrink:f.shrink??1},children:f.children},x))}),_t=({width:t=200,height:i=200,minWidth:s=50,minHeight:l=50,maxWidth:h=1/0,maxHeight:f=1/0,handles:x=["right","bottom","bottomRight"],onResize:w,children:u,className:b,style:a})=>{const[v,T]=n.useState({width:t,height:i}),S=n.useRef(null),N=(c,g)=>{g.preventDefault();const r=g.clientX,C=g.clientY,_=v.width,G=v.height,M={n:"top",s:"bottom",e:"right",w:"left",ne:"topRight",se:"bottomRight",sw:"bottomLeft",nw:"topLeft"}[c]??c,o=M==="right"||M==="topRight"||M==="bottomRight",E=M==="left"||M==="topLeft"||M==="bottomLeft",k=M==="bottom"||M==="bottomRight"||M==="bottomLeft",I=M==="top"||M==="topRight"||M==="topLeft",d=m=>{const L=m.clientX-r,p=m.clientY-C;let Y=_,O=G;o&&(Y=_+L),E&&(Y=_-L),k&&(O=G+p),I&&(O=G-p),Y=Math.max(s,Math.min(h,Y)),O=Math.max(l,Math.min(f,O)),T({width:Y,height:O}),w?.({width:Y,height:O})},y=()=>{document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",y)};document.addEventListener("pointermove",d),document.addEventListener("pointerup",y)},j=c=>{switch(c){case"top":case"bottom":return"ns-resize";case"left":case"right":return"ew-resize";case"topLeft":case"bottomRight":return"nwse-resize";case"topRight":case"bottomLeft":return"nesw-resize";default:return"default"}},P=c=>{const g={position:"absolute",zIndex:1},r=8;return c==="right"?{...g,top:0,right:-r/2,width:r,height:"100%",cursor:j(c)}:c==="bottom"?{...g,left:0,bottom:-r/2,width:"100%",height:r,cursor:j(c)}:c==="left"?{...g,top:0,left:-r/2,width:r,height:"100%",cursor:j(c)}:c==="top"?{...g,top:-r/2,left:0,width:"100%",height:r,cursor:j(c)}:c==="bottomRight"?{...g,bottom:-r/2,right:-r/2,width:r*2,height:r*2,cursor:j(c)}:c==="bottomLeft"?{...g,bottom:-r/2,left:-r/2,width:r*2,height:r*2,cursor:j(c)}:c==="topRight"?{...g,top:-r/2,right:-r/2,width:r*2,height:r*2,cursor:j(c)}:c==="topLeft"?{...g,top:-r/2,left:-r/2,width:r*2,height:r*2,cursor:j(c)}:g};return e.jsxs("div",{ref:S,className:`nice-resizable ${b||""}`,style:{...a,width:v.width,height:v.height,position:"relative",overflow:"hidden"},children:[u,x.map(c=>e.jsx("div",{style:P(c),onPointerDown:g=>N(c,g)},c))]})},gt=({direction:t="vertical",showScrollbar:i="onInteraction",width:s,height:l,onScroll:h,children:f,className:x,style:w})=>{const u=t==="horizontal"||t==="both"?"auto":"hidden",b=t==="vertical"||t==="both"?"auto":"hidden",a=i==="never"?"nice-scrollview--hide-sb":i==="always"?"nice-scrollview--show-sb":"";return e.jsx("div",{className:`nice-scrollview ${a} ${x||""}`,style:{...w,width:s,height:l,overflowX:u,overflowY:b},onScroll:h,children:f})};function Me(t,i){if(!t)return{score:1,indices:[]};const s=t.toLowerCase(),l=i.toLowerCase();let h=0;const f=[];let x=0,w=-1;for(let u=0;u<l.length&&h<s.length;u++)l[u]===s[h]&&(f.push(u),w===u-1&&(x+=3),(u===0||/[\s\-_/.]/.test(i[u-1]))&&(x+=5),i[u]===t[h]&&(x+=1),x+=1,w=u,h++);return h<s.length?null:(x-=f[0]*.1,{score:x,indices:f})}function qe(t,i){if(i.length===0)return[t];const s=[];let l=0;const h=new Set(i);for(let f=0;f<t.length;f++)h.has(f)&&(l<f&&s.push(t.slice(l,f)),s.push(n.createElement("mark",{key:`m-${f}`,className:"nice-command-palette__match"},t[f])),l=f+1);return l<t.length&&s.push(t.slice(l)),s}function bt(t,i){switch(i.type){case"REGISTER":{const s=new Map(t.commands);return s.set(i.command.id,i.command),{...t,commands:s}}case"REGISTER_BATCH":{const s=new Map(t.commands);for(const l of i.commands)s.set(l.id,l);return{...t,commands:s}}case"UNREGISTER":{const s=new Map(t.commands);return s.delete(i.id),{...t,commands:s}}case"OPEN":return{...t,isOpen:!0,query:"",selectedIndex:0};case"CLOSE":return{...t,isOpen:!1,query:"",selectedIndex:0};case"SET_QUERY":return{...t,query:i.query,selectedIndex:0};case"SET_SELECTED":return{...t,selectedIndex:i.index};case"ADD_RECENT":{const s=t.recentIds.filter(l=>l!==i.id);return{...t,recentIds:[i.id,...s].slice(0,i.maxRecent)}}default:return t}}const Oe=n.createContext(null);function We(){const t=n.useContext(Oe);if(!t)throw new Error("useCommandPalette must be used within NiceCommandPaletteProvider");return t}const Ae=({children:t,commands:i,placeholder:s="Type a command...",maxVisible:l=10,maxRecent:h=5,className:f,emptyText:x="No commands found",closeOnAction:w=!0,onOpen:u,onClose:b})=>{const[a,v]=n.useReducer(bt,{commands:new Map(i?.map(d=>[d.id,d])??[]),isOpen:!1,query:"",selectedIndex:0,recentIds:[]}),T=n.useRef(null),S=n.useRef(null),[N,j]=n.useState(!1),P=n.useCallback(d=>{v({type:"REGISTER",command:d})},[]),c=n.useCallback(d=>{v({type:"UNREGISTER",id:d})},[]),g=n.useCallback(d=>{v({type:"REGISTER_BATCH",commands:d})},[]),r=n.useCallback(()=>{v({type:"OPEN"}),u?.()},[u]),C=n.useCallback(()=>{v({type:"CLOSE"}),b?.()},[b]),_=n.useCallback(()=>{a.isOpen?C():r()},[a.isOpen,C,r]),q=n.useMemo(()=>{const d=Array.from(a.commands.values()).filter(m=>!m.hidden);if(!a.query.trim()){const m=a.recentIds.map(p=>a.commands.get(p)).filter(p=>!!p&&!p.hidden),L=d.filter(p=>!a.recentIds.includes(p.id));return L.sort((p,Y)=>p.label.localeCompare(Y.label)),[...m,...L].map(p=>({command:p,match:null,isRecent:a.recentIds.includes(p.id)}))}return d.map(m=>{const L=Me(a.query,m.label),p=m.description?Me(a.query,m.description):null,Y=m.keywords?.map(H=>Me(a.query,H)).filter(Boolean)[0]??null,O=[L,p,Y].filter(Boolean).sort((H,J)=>(J?.score??0)-(H?.score??0))[0];return{command:m,match:O,isRecent:!1}}).filter(m=>m.match!==null).sort((m,L)=>(L.match?.score??0)-(m.match?.score??0))},[a.commands,a.query,a.recentIds]).slice(0,l),M=n.useCallback(async d=>{const y=a.commands.get(d);if(!(!y||y.disabled)){j(!0);try{await y.action(),v({type:"ADD_RECENT",id:d,maxRecent:h})}finally{j(!1),w&&C()}}},[a.commands,h,w,C]);n.useEffect(()=>{const d=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),_()),y.key==="Escape"&&a.isOpen&&(y.preventDefault(),C())};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[_,a.isOpen,C]),n.useEffect(()=>{a.isOpen&&requestAnimationFrame(()=>T.current?.focus())},[a.isOpen]);const o=n.useCallback(d=>{const y=q.length;if(y){if(d.key==="ArrowDown")d.preventDefault(),v({type:"SET_SELECTED",index:(a.selectedIndex+1)%y});else if(d.key==="ArrowUp")d.preventDefault(),v({type:"SET_SELECTED",index:(a.selectedIndex-1+y)%y});else if(d.key==="Enter"){d.preventDefault();const m=q[a.selectedIndex];m&&M(m.command.id)}}},[q,a.selectedIndex,M]);n.useEffect(()=>{if(!S.current)return;S.current.children[a.selectedIndex]?.scrollIntoView({block:"nearest"})},[a.selectedIndex]);const E=n.useMemo(()=>({registerCommand:P,unregisterCommand:c,registerCommands:g,open:r,close:C,toggle:_,isOpen:a.isOpen,executeCommand:M}),[P,c,g,r,C,_,a.isOpen,M]),k=n.useMemo(()=>{const d=new Map;for(const y of q){const m=y.command.category??"General";d.has(m)||d.set(m,[]),d.get(m).push(y)}return d},[q]);let I=0;return e.jsxs(Oe.Provider,{value:E,children:[t,a.isOpen&&e.jsx("div",{className:`nice-command-palette__overlay ${f??""}`,onClick:C,children:e.jsxs("div",{className:"nice-command-palette",role:"dialog","aria-label":"Command Palette","aria-modal":"true",onClick:d=>d.stopPropagation(),children:[e.jsx("div",{className:"nice-command-palette__input-wrapper",children:e.jsx("input",{ref:T,className:"nice-command-palette__input",type:"text",placeholder:s,value:a.query,onChange:d=>v({type:"SET_QUERY",query:d.target.value}),onKeyDown:o,"aria-label":"Search commands","aria-autocomplete":"list","aria-controls":"nice-command-palette-list","aria-activedescendant":q[a.selectedIndex]?`nice-cmd-${q[a.selectedIndex].command.id}`:void 0})}),e.jsxs("div",{ref:S,id:"nice-command-palette-list",className:"nice-command-palette__list",role:"listbox",children:[q.length===0&&e.jsx("div",{className:"nice-command-palette__empty",children:x}),Array.from(k.entries()).map(([d,y])=>e.jsxs("div",{className:"nice-command-palette__group",children:[e.jsx("div",{className:"nice-command-palette__category",children:d}),y.map(m=>{const L=I++,p=L===a.selectedIndex;return e.jsxs("div",{id:`nice-cmd-${m.command.id}`,className:`nice-command-palette__item ${p?"nice-command-palette__item--selected":""} ${m.command.disabled?"nice-command-palette__item--disabled":""}`,role:"option","aria-selected":p,"aria-disabled":m.command.disabled,onClick:()=>!m.command.disabled&&M(m.command.id),onMouseEnter:()=>v({type:"SET_SELECTED",index:L}),children:[m.command.icon&&e.jsx("span",{className:"nice-command-palette__icon",children:m.command.icon}),e.jsxs("div",{className:"nice-command-palette__label-group",children:[e.jsx("span",{className:"nice-command-palette__label",children:m.match&&a.query?qe(m.command.label,m.match.indices):m.command.label}),m.command.description&&e.jsx("span",{className:"nice-command-palette__description",children:m.command.description})]}),m.command.shortcut&&e.jsx("kbd",{className:"nice-command-palette__shortcut",children:m.command.shortcut}),m.isRecent&&e.jsx("span",{className:"nice-command-palette__recent-badge",children:"Recent"})]},m.command.id)})]},d))]}),N&&e.jsx("div",{className:"nice-command-palette__executing",children:"Executing..."})]})})]})};Ae.displayName="NiceCommandPaletteProvider";function vt(t){const{registerCommands:i,unregisterCommand:s}=We();n.useEffect(()=>(i(t),()=>{for(const l of t)s(l.id)}),[])}const Fe=n.forwardRef(({blocked:t,message:i,spinner:s,blur:l,children:h,className:f,style:x,id:w},u)=>{const b=X.bc(w);return e.jsxs("div",{ref:u,id:b,className:`nice-block-ui ${f||""}`,style:{position:"relative",...x},children:[h,t&&e.jsx("div",{className:`nice-block-ui__overlay${l?" nice-block-ui__overlay--blur":""}`,"aria-busy":"true",role:"alert",children:(s||i)&&e.jsxs("div",{className:"nice-block-ui__content",children:[s&&e.jsx("div",{className:"nice-block-ui__spinner","aria-hidden":"true"}),i&&e.jsx("div",{className:"nice-block-ui__message",children:i})]})})]})});Fe.displayName="NiceBlockUI";const Ue=n.forwardRef(({windows:t,children:i,onChange:s,onClose:l,onFocus:h,showTaskbar:f=!0,size:x="md",className:w,style:u,id:b,...a},v)=>{const T=X.bc(b),{t:S}=X.Gt(),[N,j]=n.useState(null),P=n.useRef(null),c=t??[],g=Math.max(1,...c.map(o=>o.zIndex??1)),r=n.useCallback((o,E)=>{const k=c.map(I=>I.key===o?{...I,...E}:I);s?.(k)},[c,s]),C=n.useCallback(o=>{r(o,{zIndex:g+1}),h?.(o)},[r,g,h]),_=n.useCallback(o=>{l?.(o),s?.(c.filter(E=>E.key!==o))},[c,s,l]),G=n.useCallback(o=>{const E=c.find(k=>k.key===o);E&&r(o,{minimized:!E.minimized,maximized:!1})},[c,r]),q=n.useCallback(o=>{const E=c.find(k=>k.key===o);E&&r(o,{maximized:!E.maximized,minimized:!1})},[c,r]);n.useEffect(()=>{if(!N)return;const o=k=>{const I=c.find(d=>d.key===N.key);if(I)if(N.mode==="move")r(N.key,{x:k.clientX-N.offsetX,y:k.clientY-N.offsetY});else{const y=P.current?.getBoundingClientRect(),m=y?.left??0,L=y?.top??0;r(N.key,{width:Math.max(200,k.clientX-m-I.x),height:Math.max(100,k.clientY-L-I.y)})}},E=()=>j(null);return document.addEventListener("mousemove",o),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",E)}},[N,c,r]);const M=n.useCallback((o,E,k)=>{E.preventDefault();const I=c.find(d=>d.key===o);I&&(C(o),j({key:o,offsetX:k==="move"?E.clientX-I.x:0,offsetY:k==="move"?E.clientY-I.y:0,mode:k}))},[c,C]);return e.jsxs("div",{ref:o=>{P.current=o,typeof v=="function"?v(o):v&&(v.current=o)},id:T,className:`nice-wm nice-wm--${x} ${w??""}`,style:{...u,position:"relative",overflow:"hidden"},...a,children:[c.map(o=>{if(o.minimized)return null;const E=o.maximized,k=E?{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:o.zIndex??1}:{position:"absolute",top:o.y,left:o.x,width:o.width,height:o.height,zIndex:o.zIndex??1};return e.jsxs("div",{className:`nice-wm__window ${E?"nice-wm__window--maximized":""}`,style:k,onMouseDown:()=>C(o.key),role:"dialog","aria-label":o.title,children:[e.jsxs("div",{className:"nice-wm__titlebar",onMouseDown:I=>!E&&M(o.key,I,"move"),children:[o.icon&&e.jsx("span",{className:"nice-wm__icon",children:o.icon}),e.jsx("span",{className:"nice-wm__title",children:o.title}),e.jsxs("div",{className:"nice-wm__controls",children:[(o.minimizable??!0)&&e.jsx("button",{type:"button",className:"nice-wm__ctrl-btn nice-wm__ctrl-btn--min",onClick:()=>G(o.key),title:S("wm.minimize","Minimize"),children:e.jsx(X.oa,{name:"minus",size:14})}),(o.maximizable??!0)&&e.jsx("button",{type:"button",className:"nice-wm__ctrl-btn nice-wm__ctrl-btn--max",onClick:()=>q(o.key),title:S("wm.maximize","Maximize"),children:e.jsx(X.oa,{name:E?"copy":"window",size:14})}),(o.closable??!0)&&e.jsx("button",{type:"button",className:"nice-wm__ctrl-btn nice-wm__ctrl-btn--close",onClick:()=>_(o.key),title:S("wm.close","Close"),children:e.jsx(X.oa,{name:"close",size:14})})]})]}),e.jsx("div",{className:"nice-wm__body",children:o.content}),(o.resizable??!0)&&!E&&e.jsx("div",{className:"nice-wm__resize-handle",onMouseDown:I=>M(o.key,I,"resize")})]},o.key)}),t===void 0&&i,f&&e.jsx("div",{className:"nice-wm__taskbar",role:"toolbar","aria-label":S("wm.taskbar","Taskbar"),children:c.map(o=>e.jsxs("button",{type:"button",className:`nice-wm__taskbar-btn ${o.minimized?"nice-wm__taskbar-btn--minimized":""}`,onClick:()=>{o.minimized&&G(o.key),C(o.key)},children:[o.icon&&e.jsx("span",{className:"nice-wm__taskbar-icon",children:o.icon}),e.jsx("span",{className:"nice-wm__taskbar-label",children:o.title})]},o.key))})]})});Ue.displayName="NiceWindowManager";function yt(t,i){const s=document.querySelector(t);if(!s)return null;const l=s.getBoundingClientRect();return{top:l.top-i+window.scrollY,left:l.left-i+window.scrollX,width:l.width+i*2,height:l.height+i*2}}function Nt(t,i,s,l){const f={w:window.innerWidth,h:window.innerHeight+window.scrollY},x={top:{top:t.top-s-12,left:t.left+t.width/2-i/2},bottom:{top:t.top+t.height+12,left:t.left+t.width/2-i/2},left:{top:t.top+t.height/2-s/2,left:t.left-i-12},right:{top:t.top+t.height/2-s/2,left:t.left+t.width+12}};if(l&&l!=="auto")return{...x[l],actualPlacement:l};for(const w of["bottom","top","right","left"]){const u=x[w];if(u.top>=0&&u.left>=0&&u.top+s<=f.h&&u.left+i<=f.w)return{...u,actualPlacement:w}}return{...x.bottom,actualPlacement:"bottom"}}const be={width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};function jt(){return e.jsxs("svg",{...be,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function kt(){return e.jsx("svg",{...be,children:e.jsx("polyline",{points:"15 18 9 12 15 6"})})}function Ct(){return e.jsx("svg",{...be,children:e.jsx("polyline",{points:"9 18 15 12 9 6"})})}function Et(){return e.jsxs("svg",{...be,children:[e.jsx("polygon",{points:"5 4 15 12 5 20 5 4"}),e.jsx("line",{x1:"19",y1:"5",x2:"19",y2:"19"})]})}function zt(){return e.jsx("svg",{...be,children:e.jsx("polygon",{points:"6 4 20 12 6 20 6 4",fill:"currentColor"})})}function St(){return e.jsxs("svg",{...be,children:[e.jsx("rect",{x:"6",y:"4",width:"4",height:"16",fill:"currentColor"}),e.jsx("rect",{x:"14",y:"4",width:"4",height:"16",fill:"currentColor"})]})}function Re(t,i,s){return s==="text"?e.jsx("span",{className:"nice-tutorial__btn-label",children:i}):s==="icon-text"?e.jsxs(e.Fragment,{children:[t,e.jsx("span",{className:"nice-tutorial__btn-label",children:i})]}):t}const Be=({steps:t,active:i,onFinish:s,onSkip:l,onStepChange:h,closeOnEscape:f=!0,closeOnOverlayClick:x=!1,showProgress:w=!0,showSkipButton:u=!0,labels:b,animationDuration:a=300,overlayOpacity:v=.6,zIndex:T=1e4,buttonsPlacement:S="floating-bottom",buttonsDisplay:N="icon",showAutoplay:j=!0,autoplayInterval:P=5e3,autoplaySpeedRange:c={min:2e3,max:15e3},onAutoplayChange:g})=>{const[r,C]=n.useState(0),[_,G]=n.useState(null),[q,M]=n.useState({w:340,h:200}),[o,E]=n.useState(!0),[k,I]=n.useState(!1),[d,y]=n.useState(P),m=n.useRef(null),L=n.useRef(-1),p=t[r],Y=r===t.length-1,O=r===0,H=b?.next??"Next",J=b?.back??"Back",ee=b?.finish??"Finish",ue=b?.skip??"Skip",me=b?.stepOf??"of",he=b?.play??"Play",fe=b?.pause??"Pause",ze=b?.speed??"Speed",ve=b?.close??"Close";n.useEffect(()=>{i&&(C(0),I(!1),y(P))},[i,P]),n.useEffect(()=>{if(m.current){const R=m.current.getBoundingClientRect();M({w:R.width,h:R.height})}},[r,i]),n.useEffect(()=>{if(!i||!p)return;const R=p.highlightPadding??0,$=()=>{const A=yt(p.target,R);G(A)};if($(),p.scrollIntoView!==!1){document.querySelector(p.target)?.scrollIntoView({behavior:"smooth",block:"center"});const K=setTimeout($,350);return()=>clearTimeout(K)}},[i,p,r]),n.useEffect(()=>{!i||!p||L.current!==r&&(L.current>=0&&L.current<t.length&&t[L.current]?.onLeave?.(),p.onEnter?.(),L.current=r)},[i,p,r,t]);const te=n.useCallback(()=>{if(Y)p?.onLeave?.(),s?.();else{const R=r+1;C(R),h?.(R)}},[r,Y,s,h,p]),pe=n.useCallback(()=>{if(!O){const R=r-1;C(R),h?.(R)}},[r,O,h]);n.useEffect(()=>{if(!i||!p?.advanceOn)return;const R=document.querySelector(p.target);if(!R)return;const $=()=>te();return R.addEventListener(p.advanceOn.event,$),()=>R.removeEventListener(p.advanceOn.event,$)},[i,p,r,te]),n.useEffect(()=>{if(!i)return;const R=$=>{$.key==="Escape"&&f?l?.():$.key==="ArrowRight"?te():$.key==="ArrowLeft"&&pe()};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[i,r,f,te,pe,l]),n.useEffect(()=>{E(!0);const R=setTimeout(()=>E(!1),a);return()=>clearTimeout(R)},[r,a]),n.useEffect(()=>{if(!i||!k)return;const R=setInterval(()=>{C($=>{if($>=t.length-1)return I(!1),g?.(!1),t[$]?.onLeave?.(),s?.(),$;const A=$+1;return h?.(A),A})},Math.max(500,d));return()=>clearInterval(R)},[i,k,d,t,g,s,h]);const Se=n.useCallback(()=>{I(R=>{const $=!R;return g?.($),$})},[g]),xe=n.useMemo(()=>_?Nt(_,q.w,q.h,p?.placement):{top:typeof window<"u"?window.innerHeight/2:0,left:typeof window<"u"?window.innerWidth/2:0,actualPlacement:"bottom"},[_,q,p?.placement]),ye=t.length===0?0:(r+1)/t.length*100,ne=n.useCallback(R=>{const $=j&&t.length>1,A=u&&!Y&&e.jsx("button",{type:"button",className:`nice-tutorial__btn nice-tutorial__btn--skip nice-tutorial__btn--${N}`,onClick:l,"aria-label":ue,title:ue,children:Re(e.jsx(Et,{}),ue,N)}),K=!O&&e.jsx("button",{type:"button",className:`nice-tutorial__btn nice-tutorial__btn--back nice-tutorial__btn--${N}`,onClick:pe,"aria-label":J,title:J,children:Re(e.jsx(kt,{}),J,N)}),we=!p?.waitForAction&&e.jsx("button",{type:"button",className:`nice-tutorial__btn nice-tutorial__btn--next nice-tutorial__btn--${N}`,onClick:te,"aria-label":Y?ee:H,title:Y?ee:H,children:Re(e.jsx(Ct,{}),Y?ee:H,N)}),_e=$&&e.jsx("button",{type:"button",className:["nice-tutorial__btn","nice-tutorial__btn--play",`nice-tutorial__btn--${N}`,k?"nice-tutorial__btn--active":""].filter(Boolean).join(" "),onClick:Se,"aria-label":k?fe:he,title:k?fe:he,"aria-pressed":k,children:Re(k?e.jsx(St,{}):e.jsx(zt,{}),k?fe:he,N)});return e.jsxs("div",{className:["nice-tutorial__controls",R?"nice-tutorial__controls--inline":"nice-tutorial__controls--floating-bottom"].join(" "),style:R?void 0:{zIndex:T+2},role:"group","aria-label":"Tutorial controls",children:[A,K,w&&e.jsxs("span",{className:"nice-tutorial__step-label","aria-live":"polite",children:[r+1," ",me," ",t.length]}),we,$&&e.jsx("div",{className:"nice-tutorial__progress-bar",role:"progressbar","aria-valuenow":Math.round(ye),"aria-valuemin":0,"aria-valuemax":100,"aria-label":`${r+1} ${me} ${t.length}`,children:e.jsx("div",{className:"nice-tutorial__progress-bar-fill",style:{width:`${ye}%`}})}),_e,$&&e.jsxs("label",{className:"nice-tutorial__speed",children:[e.jsx("input",{type:"range",className:"nice-tutorial__speed-slider",min:c.min,max:c.max,step:500,value:c.min+c.max-d,onChange:Ie=>y(c.min+c.max-Number(Ie.target.value)),"aria-label":ze}),e.jsxs("span",{className:"nice-tutorial__speed-value",children:[(d/1e3).toFixed(1),"s"]})]})]})},[j,u,w,N,O,Y,l,ue,J,H,ee,he,fe,ze,me,pe,te,p,k,Se,r,t.length,ye,d,c,T]);if(!i||!p)return null;const Ne=typeof document<"u"?Math.max(document.documentElement.scrollWidth,window.innerWidth):0,D=typeof document<"u"?Math.max(document.documentElement.scrollHeight,window.innerHeight):0;return e.jsxs("div",{className:"nice-tutorial",style:{zIndex:T},"aria-modal":"true",role:"dialog","aria-label":"Tutorial",children:[e.jsxs("svg",{className:"nice-tutorial__overlay",style:{position:"absolute",top:0,left:0,width:Ne,height:D,pointerEvents:"auto"},onClick:x?l:void 0,children:[e.jsx("defs",{children:e.jsxs("mask",{id:"nice-tutorial-mask",children:[e.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),_&&e.jsx("rect",{x:_.left,y:_.top,width:_.width,height:_.height,rx:"4",fill:"black",className:o?"nice-tutorial__spotlight--entering":""})]})}),e.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`rgba(0,0,0,${v})`,mask:"url(#nice-tutorial-mask)"})]}),_&&e.jsx("div",{className:`nice-tutorial__highlight ${o?"nice-tutorial__highlight--entering":""}`,style:{position:"absolute",top:_.top,left:_.left,width:_.width,height:_.height,transition:`all ${a}ms ease`}}),p.disableInteraction&&_&&e.jsx("div",{className:"nice-tutorial__blocker",style:{position:"absolute",top:_.top,left:_.left,width:_.width,height:_.height}}),e.jsxs("div",{ref:m,className:`nice-tutorial__tooltip nice-tutorial__tooltip--${xe.actualPlacement} ${o?"nice-tutorial__tooltip--entering":""}`,style:{position:"absolute",top:xe.top,left:xe.left,transition:`all ${a}ms ease`,maxWidth:380,zIndex:T+1},children:[p.showArrow!==!1&&e.jsx("div",{className:`nice-tutorial__arrow nice-tutorial__arrow--${xe.actualPlacement}`}),e.jsxs("div",{className:"nice-tutorial__header",children:[e.jsx("h4",{className:"nice-tutorial__title",children:p.title}),u&&e.jsx("button",{type:"button",className:"nice-tutorial__close",onClick:l,"aria-label":ve,title:ve,children:e.jsx(jt,{})})]}),e.jsx("div",{className:"nice-tutorial__content",dangerouslySetInnerHTML:{__html:X.lc(p.content)}}),S==="inline"&&ne(!0)]}),S==="floating-bottom"&&ne(!1)]})};Be.displayName="NiceTutorial";const Ge=n.createContext({startTutorial:()=>{},stopTutorial:()=>{},isActive:!1,currentStep:0,nextStep:()=>{},prevStep:()=>{},goToStep:()=>{}});function Rt(){return n.useContext(Ge)}const He=({children:t})=>{const[i,s]=n.useState([]),[l,h]=n.useState(!1),[f,x]=n.useState(0),w=n.useCallback(S=>{s(S),x(0),h(!0)},[]),u=n.useCallback(()=>{h(!1),x(0),s([])},[]),b=n.useCallback(()=>{x(S=>Math.min(S+1,i.length-1))},[i.length]),a=n.useCallback(()=>{x(S=>Math.max(S-1,0))},[]),v=n.useCallback(S=>{x(Math.max(0,Math.min(S,i.length-1)))},[i.length]),T={startTutorial:w,stopTutorial:u,isActive:l,currentStep:f,nextStep:b,prevStep:a,goToStep:v};return e.jsxs(Ge.Provider,{value:T,children:[t,l&&i.length>0&&e.jsx(Be,{steps:i,active:l,onFinish:u,onSkip:u,onStepChange:x})]})};He.displayName="NiceTutorialProvider";function Mt(t,i,s,l,h){const f=t<=h,x=t+h>=s,w=i<=h,u=i+h>=l;return w&&f?"top-left":w&&x?"top-right":u&&f?"bottom-left":u&&x?"bottom-right":f?"left":x?"right":w?"top":u?"bottom":"none"}function It(t){switch(t){case"left":return{left:0,top:0,width:"50%",height:"100%"};case"right":return{left:"50%",top:0,width:"50%",height:"100%"};case"top":return{left:0,top:0,width:"100%",height:"50%"};case"bottom":return{left:0,top:"50%",width:"100%",height:"50%"};case"top-left":return{left:0,top:0,width:"50%",height:"50%"};case"top-right":return{left:"50%",top:0,width:"50%",height:"50%"};case"bottom-left":return{left:0,top:"50%",width:"50%",height:"50%"};case"bottom-right":return{left:"50%",top:"50%",width:"50%",height:"50%"};default:return null}}const Ke=n.forwardRef(({windowKey:t,title:i,icon:s,children:l,footer:h,x:f,y:x,defaultPosition:w,width:u=480,height:b=360,minWidth:a=200,minHeight:v=120,maxWidth:T,maxHeight:S,zIndex:N=1,closable:j=!0,minimizable:P=!0,maximizable:c=!0,fullscreenable:g=!1,pinnable:r=!1,resizable:C=!0,draggable:_=!0,snappable:G=!0,snapThreshold:q=20,minimized:M,maximized:o,fullscreen:E,pinned:k,focused:I,onClose:d,onMinimize:y,onMaximize:m,onFullscreen:L,onPin:p,onFocus:Y,onMove:O,onResize:H,onSnap:J,onTitleBarDoubleClick:ee,size:ue="md",statusBar:me,titleBarActions:he,className:fe,style:ze,id:ve,accessMode:te,...pe},Se)=>{const xe=X.bc(ve),ye=X.Dc(te,ve),{t:ne}=X.Gt(),Ne=n.useRef(null);Ne.current==null&&(Ne.current=`nice-window-${Math.random().toString(36).slice(2,10)}`);const D=t??Ne.current,R=f??w?.x??100,$=x??w?.y??100;if(ye==="hidden")return null;const[A,K]=n.useState({x:R,y:$}),[we,_e]=n.useState({width:u,height:b}),[Ie,Ve]=n.useState(!1),[Qe,Ze]=n.useState(!1),[Je,et]=n.useState(!1),[tt,nt]=n.useState(!1),[Q,Le]=n.useState("none"),it=M??Ie,V=o??Qe,F=E??Je,je=k??tt,$e=I??!0,ae=A.x,de=A.y,ie=we.width,se=we.height,oe=n.useRef(null),U=n.useRef(null),B=n.useRef(null),st=n.useCallback(()=>{d?.(D)},[D,d]),ot=n.useCallback(()=>{Ve(!0),y?.(D)},[D,y]),Te=n.useCallback(()=>{const z=!V;Ze(z),!z&&B.current?(K({x:B.current.x,y:B.current.y}),_e({width:B.current.w,height:B.current.h}),B.current=null):z&&(B.current={x:ae,y:de,w:ie,h:se}),Le("none"),m?.(D,z)},[D,V,ae,de,ie,se,m]),Pe=n.useCallback(()=>{const z=!F;et(z),z?B.current={x:ae,y:de,w:ie,h:se}:B.current&&(K({x:B.current.x,y:B.current.y}),_e({width:B.current.w,height:B.current.h}),B.current=null),L?.(D,z)},[D,F,ae,de,ie,se,L]),ct=n.useCallback(()=>{const z=!je;nt(z),p?.(D,z)},[D,je,p]),ke=n.useCallback(()=>{Y?.(D)},[D,Y]),rt=n.useCallback(()=>{ee?ee(D):c&&Te()},[D,c,Te,ee]);n.useEffect(()=>{const z=ce=>{if(!oe.current)return;const Z=ce.clientX-oe.current.startX+oe.current.origX,Ce=ce.clientY-oe.current.startY+oe.current.origY;K({x:Z,y:Ce}),O?.(D,{x:Z,y:Ce})},W=ce=>{if(oe.current){if(G){const Z=Mt(ce.clientX,ce.clientY,window.innerWidth,window.innerHeight,q);Z!=="none"&&(B.current={x:A.x,y:A.y,w:ie,h:se},Le(Z),J?.(D,Z))}oe.current=null}};return document.addEventListener("mousemove",z),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",W)}});const lt=n.useCallback(z=>{!_||V||F||(z.preventDefault(),Q!=="none"&&(B.current&&(K({x:B.current.x,y:B.current.y}),_e({width:B.current.w,height:B.current.h})),Le("none")),ke(),oe.current={startX:z.clientX,startY:z.clientY,origX:ae,origY:de})},[_,V,F,Q,ae,de,ke]);n.useEffect(()=>{const z=ce=>{if(!U.current)return;const Z=ce.clientX-U.current.startX,Ce=ce.clientY-U.current.startY,ge=U.current.handle;let re=U.current.origW,le=U.current.origH;if(ge.includes("e")&&(re=U.current.origW+Z),ge.includes("w")&&(re=U.current.origW-Z),ge.includes("s")&&(le=U.current.origH+Ce),ge.includes("n")&&(le=U.current.origH-Ce),re=Math.max(a,T?Math.min(T,re):re),le=Math.max(v,S?Math.min(S,le):le),ge.includes("w")){const Ye=we.width-re;K(Ee=>({...Ee,x:Ee.x+Ye}))}if(ge.includes("n")){const Ye=we.height-le;K(Ee=>({...Ee,y:Ee.y+Ye}))}_e({width:re,height:le}),H?.(D,{width:re,height:le})},W=()=>{U.current=null};return document.addEventListener("mousemove",z),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",W)}});const at=n.useCallback((z,W)=>{!C||V||F||Q!=="none"||(W.preventDefault(),W.stopPropagation(),ke(),U.current={startX:W.clientX,startY:W.clientY,origW:ie,origH:se,handle:z})},[C,V,F,Q,ie,se,ke]);if(n.useEffect(()=>{if(!$e)return;const z=W=>{W.key==="Escape"&&F&&Pe()};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[$e,F,Pe]),it)return null;const De=Q!=="none"?It(Q):null,Xe=V||F,dt=F?{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:999999}:V?{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:N}:De?{position:"absolute",...De,zIndex:N}:{position:"absolute",top:de,left:ae,width:ie,height:se,zIndex:N},ut=["n","e","s","w","ne","se","sw","nw"],mt={n:"ns-resize",s:"ns-resize",e:"ew-resize",w:"ew-resize",ne:"nesw-resize",sw:"nesw-resize",nw:"nwse-resize",se:"nwse-resize"};return e.jsxs("div",{ref:Se,id:xe,className:`nice-window nice-window--${ue} ${$e?"nice-window--focused":""} ${je?"nice-window--pinned":""} ${Xe?"nice-window--maximized":""} ${Q!=="none"?`nice-window--snapped-${Q}`:""} ${fe??""}`,style:{...dt,...ze},onMouseDown:ke,role:"dialog","aria-label":i,...pe,children:[e.jsxs("div",{className:"nice-window__titlebar",onMouseDown:lt,onDoubleClick:rt,children:[s&&e.jsx("span",{className:"nice-window__icon",children:s}),e.jsx("span",{className:"nice-window__title",children:i}),e.jsxs("div",{className:"nice-window__actions",children:[he,r&&e.jsx("button",{type:"button",className:`nice-window__action nice-window__action--pin ${je?"nice-window__action--active":""}`,onClick:ct,title:ne("window.pin",je?"Unpin":"Pin"),children:e.jsx(X.oa,{name:"paperclip",size:14})}),P&&e.jsx("button",{type:"button",className:"nice-window__action nice-window__action--minimize",onClick:ot,title:ne("window.minimize","Minimize"),children:e.jsx(X.oa,{name:"minus",size:14})}),c&&e.jsx("button",{type:"button",className:"nice-window__action nice-window__action--maximize",onClick:Te,title:ne("window.maximize",V?"Restore":"Maximize"),children:e.jsx(X.oa,{name:V?"copy":"window",size:14})}),g&&e.jsx("button",{type:"button",className:"nice-window__action nice-window__action--fullscreen",onClick:Pe,title:ne("window.fullscreen",F?"Exit Full Screen":"Full Screen"),children:e.jsx(X.oa,{name:F?"collapse":"expand",size:14})}),j&&e.jsx("button",{type:"button",className:"nice-window__action nice-window__action--close",onClick:st,title:ne("window.close","Close"),children:e.jsx(X.oa,{name:"close",size:14})})]})]}),e.jsx("div",{className:"nice-window__body",children:l}),h&&e.jsx("div",{className:"nice-window__footer",children:h}),me&&e.jsx("div",{className:"nice-window__statusbar",children:me}),C&&!Xe&&Q==="none"&&e.jsx(e.Fragment,{children:ut.map(z=>e.jsx("div",{className:`nice-window__resize nice-window__resize--${z}`,style:{cursor:mt[z]},onMouseDown:W=>at(z,W)},z))})]})});Ke.displayName="NiceWindow";exports.NiceActionSheet=ht;exports.NiceBlockUI=Fe;exports.NiceBox=xt;exports.NiceCommandPaletteProvider=Ae;exports.NiceLoadPanel=pt;exports.NicePopover=ft;exports.NiceResizable=_t;exports.NiceResponsiveBox=wt;exports.NiceScrollView=gt;exports.NiceTutorial=Be;exports.NiceTutorialProvider=He;exports.NiceWindow=Ke;exports.NiceWindowManager=Ue;exports.fuzzyMatch=Me;exports.highlightMatches=qe;exports.useCommandPalette=We;exports.useNiceTutorial=Rt;exports.useRegisterCommands=vt;
|