PageSourceSearch

https://tailwindadmin-tanstack-pro-dark.netlify.app/assets/index-aJTH1M9Z.js

js tailwindadmin-tanstack-pro-dark.netlify.app collected 2026-10-03 11:29:45 UTC 16,255 bytes, 41 lines download raw bytes

vendor: 4,135 bytes, line 1
1import{r as c,j as ue,b as be}from"./main-BkpAS6Tt.js";import{u as Ee}from"./index-L0SKbviM.js";import{P as ie}from"./index-DRcYnjBa.js";import{u as q}from"./index-BHinUB-C.js";import{u as Se}from"./index-CfThMl9f.js";import{_ as k,a as le,b as we}from"./tslib.es6-CmEaCU22.js";var _="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",Q={bubbles:!1,cancelable:!0},Ce="FocusScope",Re=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:i,...l}=e,[a,S]=c.useState(null),b=q(u),p=q(i),f=c.useRef(null),v=Ee(t,o=>S(o)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let o=function(g){if(h.paused||!a)return;const y=g.target;a.contains(y)?f.current=y:T(f.current,{select:!0})},s=function(g){if(h.paused||!a)return;const y=g.relatedTarget;y!==null&&(a.contains(y)||T(f.current,{select:!0}))},d=function(g){if(document.activeElement===document.body)for(const E of g)E.removedNodes.length>0&&T(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",s);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",s),m.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){J.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(_,Q);a.addEventListener(_,b),a.dispatchEvent(d),d.defaultPrevented||(Te(Pe(se(a)),{select:!0}),document.activeElement===o&&T(a))}return()=>{a.removeEventListener(_,b),setTimeout(()=>{const d=new CustomEvent(K,Q);a.addEventListener(K,p),a.dispatchEvent(d),d.defaultPrevented||T(o??document.body,{select:!0}),a.removeEventListener(K,p),J.remove(h)},0)}}},[a,b,p,h]);const w=c.useCallback(o=>{if(!n&&!r||h.paused)return;const s=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(s&&d){const m=o.currentTarget,[g,y]=ke(m);g&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&T(g,{select:!0})):o.shiftKey&&d===g&&(o.preventDefault(),n&&T(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return ue.jsx(ie.div,{tabIndex:-1,...l,ref:v,onKeyDown:w})});Re.displayName=Ce;function Te(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T(r,{select:t}),document.activeElement!==n)return}function ke(e){const t=se(e),n=$(t,e),r=$(t.reverse(),e);return[n,r]}function se(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $(e,t){for(const n of e)if(!Ae(n,{upTo:t}))return n}function Ae(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ne(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ne(e)&&t&&e.select()}}var J=Me();function Me(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ee(e,t),e.unshift(t)},remove(t){e=ee(e,t),e[0]?.resume()}}}function ee(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Pe(e){return e.filter(t=>t.tagName!=="A")}var Fe="Portal",Le=c.forwardRef((e,t)=>{const{container:n,...r}=e,[u,i]=c.useState(!1);Se(()=>i(!0),[]);const l=n||u&&globalThis?.document?.body;return l?be.createPortal(ue.jsx(ie.div,{...r,ref:t}),l):null});Le.displayName=Fe;var H=0;function Rt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??te()),document.body.insertAdjacentElement("beforeend",e[1]??te()),H++,()=>{H===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[])}function te(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,876 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var W="right-scroll-bar-position",B="width-before-scroll-bar",xe="with-scroll-bars-hidden",Ie="--removed-body-scroll-bar-size";function V(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Oe(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var We=typeof window<"u"?c.useLayoutEffect:c.useEffect,ne=new WeakMap;function Be(e,t){var n=Oe(null,function(r){return e.forEach(function(u){return V(u,r)})});return We(function(){var r=ne.get(n);if(r){var u=new Set(r),i=new Set(e),l=n.current;u.forEach(function(a){i.has(a)||V(a,null)}),i.forEach(function(a){u.has(a)||V(a,l)})}ne.set(n,e)},[e]),n}function De(e){return e}function Ue(e,t){t===void 0&&(t=De);var n=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(i),l=n}var S=function(){var p=l;l=[],p.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(p){l.push(p),b()},filter:function(p){return l=l.filter(p),n}}}};return u}function _e(e){e===void 0&&(e={});var t=Ue(null);return t.options=k({async:!0,ssr:!1},e),t}var fe=function(e){var t=e.sideCar,n=le(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,k({},n))};fe.isSideCarExport=!0;function Ke(e,t){return e.useMedium(t),fe}var de=_e(),X=function(){},D=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:X,onWheelCapture:X,onTouchMoveCapture:X}),u=r[0],i=r[1],l=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,p=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,s=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,g=e.gapMode,y=le(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,C=Be([n,t]),R=k(k({},y),u);return c.createElement(c.Fragment,null,p&&c.createElement(E,{sideCar:de,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!s,lockRef:n,gapMode:g}),l?c.cloneElement(c.Children.only(a),k(k({},R),{ref:C})):c.createElement(m,k({},R,{className:S,ref:C}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var He=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ve(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=He();return t&&e.setAttribute("nonce",t),e}function Xe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ye(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var je=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ve())&&(Xe(t,n),Ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ge=function(){var e=je();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ve=function(){var e=Ge(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},ze={left:0,top:0,right:0,gap:0},Y=function(e){return parseInt(e||"",10)||0},Ze=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[Y(n),Y(r),Y(u)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ze;var t=Ze(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qe=ve(),P="data-scroll-locked",$e=function(e,t,n,r){var u=e.left,i=e.top,l=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(xe,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(a,"px ").concat(r,`;
5  }
6  body[`).concat(P,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(u,`px;
11    padding-top: `).concat(i,`px;
12    padding-right: `).concat(l,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(a,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(W,` {
20    right: `).concat(a,"px ").concat(r,`;
21  }
22  
23  .`).concat(B,` {
24    margin-right: `).concat(a,"px ").concat(r,`;
25  }
26  
27  .`).concat(W," .").concat(W,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(B," .").concat(B,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(P,`] {
36    `).concat(Ie,": ").concat(a,`px;
37  }
38`)},re=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},Je=function(){c.useEffect(function(){return document.body.setAttribute(P,(re()+1).toString()),function(){var e=re()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}},[])},et=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;Je();var i=c.useMemo(function(){return qe(u)},[u]);return c.createElement(Qe,{styles:$e(i,!t,u,n?"":"!important")})},G=!1;if(typeof window<"u")try{var L=Object.defineProperty({},"passive",{get:function(){return G=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch{G=!1}var A=G?{passive:!1}:!1,tt=function(e){return e.tagName==="TEXTAREA"},he=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tt(e)&&n[t]==="visible")},nt=function(e){return he(e,"overflowY")},rt=function(e){return he(e,"overflowX")},ae=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=me(e,r);if(u){var i=ge(e,r),l=i[1],a=i[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},at=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ot=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},me=function(e,t){return e==="v"?nt(t):rt(t)},ge=function(e,t){return e==="v"?at(t):ot(t)},ct=function(e,t){return e==="h"&&t==="rtl"?-1:1},ut=function(e,t,n,r,u){var i=ct(e,window.getComputedStyle(t).direction),l=i*r,a=n.target,S=t.contains(a),b=!1,p=l>0,f=0,v=0;do{if(!a)break;var h=ge(e,a),w=h[0],o=h[1],s=h[2],d=o-s-i*w;(w||d)&&me(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(p&&Math.abs(f)<1||!p&&Math.abs(v)<1)&&(b=!0),b},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oe=function(e){return[e.deltaX,e.deltaY]},ce=function(e){return e&&"current"in e?e.current:e},it=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lt=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},st=0,N=[];function ft(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),u=c.useState(st++)[0],i=c.useState(ve)[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var o=we([e.lockRef.current],(e.shards||[]).map(ce),!0).filter(Boolean);return o.forEach(function(s){return s.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),o.forEach(function(s){return s.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(o,s){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!l.current.allowPinchZoom;var d=x(o),m=n.current,g="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,C=o.target,R=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in o&&R==="h"&&C.type==="range")return!1;var z=window.getSelection(),U=z&&z.anchorNode,ye=U?U===C||U.contains(C):!1;if(ye)return!1;var F=ae(R,C);if(!F)return!0;if(F?E=R:(E=R==="v"?"h":"v",F=ae(R,C)),!F)return!1;if(!r.current&&"changedTouches"in o&&(g||y)&&(r.current=E),!E)return!0;var Z=r.current||E;return ut(Z,s,o,Z==="h"?g:y)},[]),S=c.useCallback(function(o){var s=o;if(!(!N.length||N[N.length-1]!==i)){var d="deltaY"in s?oe(s):x(s),m=t.current.filter(function(E){return E.name===s.type&&(E.target===s.target||s.target===E.shadowParent)&&it(E.delta,d)})[0];
vendor: 3,052 bytes, line 41
41if(m&&m.should){s.cancelable&&s.preventDefault();return}if(!m){var g=(l.current.shards||[]).map(ce).filter(Boolean).filter(function(E){return E.contains(s.target)}),y=g.length>0?a(s,g[0]):!l.current.noIsolation;y&&s.cancelable&&s.preventDefault()}}},[]),b=c.useCallback(function(o,s,d,m){var g={name:o,delta:s,target:d,should:m,shadowParent:dt(d)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),p=c.useCallback(function(o){n.current=x(o),r.current=void 0},[]),f=c.useCallback(function(o){b(o.type,oe(o),o.target,a(o,e.lockRef.current))},[]),v=c.useCallback(function(o){b(o.type,x(o),o.target,a(o,e.lockRef.current))},[]);c.useEffect(function(){return N.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,A),document.addEventListener("touchmove",S,A),document.addEventListener("touchstart",p,A),function(){N=N.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,A),document.removeEventListener("touchmove",S,A),document.removeEventListener("touchstart",p,A)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:lt(u)}):null,h?c.createElement(et,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vt=Ke(de,ft);var ht=c.forwardRef(function(e,t){return c.createElement(D,k({},e,{ref:t,sideCar:vt}))});ht.classNames=D.classNames;var mt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},M=new WeakMap,I=new WeakMap,O={},j=0,pe=function(e){return e&&(e.host||pe(e.parentNode))},gt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pe(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},pt=function(e,t,n,r){var u=gt(t,Array.isArray(e)?e:[e]);O[n]||(O[n]=new WeakMap);var i=O[n],l=[],a=new Set,S=new Set(u),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};u.forEach(b);var p=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))p(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(M.get(v)||0)+1,s=(i.get(v)||0)+1;M.set(v,o),i.set(v,s),l.push(v),o===1&&w&&I.set(v,!0),s===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return p(t),a.clear(),j++,function(){l.forEach(function(f){var v=M.get(f)-1,h=i.get(f)-1;M.set(f,v),i.set(f,h),v||(I.has(f)||f.removeAttribute(r),I.delete(f)),h||f.removeAttribute(n)}),j--,j||(M=new WeakMap,M=new WeakMap,I=new WeakMap,O={})}},Tt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=mt(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live], script"))),pt(r,u,n,"aria-hidden")):function(){return null}};export{Re as F,Le as P,ht as R,Tt as h,Rt as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.