PageSourceSearch

https://nfthive.io/_next/static/chunks/1598-ce4d7cc63b01b1c0.js

js nfthive.io collected 2026-10-03 21:20:50 UTC 12,280 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1598],{62697:function(e,n,t){t.d(n,{b:function(){return f}});var r=t(30796),o=t(67294),a=t(75015),i=t(76418),c=t(27316),u=t(66446),l=t(88974),s=t(85893),d=(0,a.Gp)((e,n)=>{let{triggerRef:t,getTriggerProps:a}=(0,r.l)(),{children:d,...f}=e,h=(0,o.useMemo)(()=>"string"==typeof d?(0,s.jsx)("p",{children:d}):o.Children.only(d),[d]),{onPress:v,isDisabled:p,...m}=(0,o.useMemo)(()=>a((0,l.dG)(f,h.props),h.ref),[a,h.props,f,h.ref]),[,g]=(0,i.N)(d,u.A),{buttonProps:w}=(0,c.j)({onPress:v,isDisabled:p},t),y=(0,o.useMemo)(()=>(null==g?void 0:g[0])!==void 0,[g]);return(0,o.cloneElement)(h,(0,l.dG)(m,y?{onPress:v,isDisabled:p}:w))});d.displayName="NextUI.PopoverTrigger";var f=d},15526:function(e,n,t){t.d(n,{j:function(){return d}});var r=t(30796),o=t(58854),a=t(67294),i=t(75015),c=t(21620),u=t(82703),l=t(85893),s=(0,i.Gp)((e,n)=>{let{children:t,...i}=e,s=(0,o.S)({...i,ref:n}),[d,f]=a.Children.toArray(t),h=(0,l.jsx)(c.aV,{portalContainer:s.portalContainer,children:f});return(0,l.jsxs)(r.H,{value:s,children:[d,s.disableAnimation&&s.isOpen?h:(0,l.jsx)(u.M,{children:s.isOpen?h:null})]})});s.displayName="NextUI.Popover";var d=s},20229:function(e,n,t){t.d(n,{g:function(){return ee}});var r,o,a,i,c,u,l=t(30796),s=t(67294),d=t(75015),f=t(21620),h=t(8010),v=t(18522),p=t(1673),m=t(12560),g=t(97582),w="right-scroll-bar-position",y="width-before-scroll-bar";function b(e,n){return"function"==typeof e?e(n):e&&(e.current=n),e}var x=new WeakMap,E=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),a=[],i=!1,c={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var n=o(e,i);return a.push(n),function(){a=a.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(i=!0;a.length;){var n=a;a=[],n.forEach(e)}a={push:function(n){return e(n)},filter:function(){return a}}},assignMedium:function(e){i=!0;var n=[];if(a.length){var t=a;a=[],t.forEach(e),n=a}var r=function(){var t=n;n=[],t.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){n.push(e),o()},filter:function(e){return n=n.filter(e),a}}}}).options=(0,g.pi)({async:!0,ssr:!1},r),c),C=function(){},S=s.forwardRef(function(e,n){var t,r,o,a,i=s.useRef(null),c=s.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),u=c[0],l=c[1],d=e.forwardProps,f=e.children,h=e.className,v=e.removeScrollBar,p=e.enabled,m=e.shards,w=e.sideCar,y=e.noIsolation,S=e.inert,k=e.allowPinchZoom,M=e.as,N=void 0===M?"div":M,j=e.gapMode,R=(0,g._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(t=[i,n],r=function(e){return t.forEach(function(n){return b(n,e)})}
1,(o=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,s.useLayoutEffect(function(){var e=x.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||b(e,null)}),r.forEach(function(e){n.has(e)||b(e,o)})}x.set(a,t)},[t]),a),P=(0,g.pi)((0,g.pi)({},R),u);return s.createElement(s.Fragment,null,p&&s.createElement(w,{sideCar:E,removeScrollBar:v,shards:m,noIsolation:y,inert:S,setCallbacks:l,allowPinchZoom:!!k,lockRef:i,gapMode:j}),d?s.cloneElement(s.Children.only(f),(0,g.pi)((0,g.pi)({},P),{ref:T})):s.createElement(N,(0,g.pi)({},P,{className:h,ref:T}),f))});S.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},S.classNames={fullWidth:y,zeroRight:w};var k=function(e){var n=e.sideCar,t=(0,g._T)(e,["sideCar"]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,(0,g.pi)({},t))};k.isSideCarExport=!0;var M=function(){var e=0,n=null;return{add:function(r){if(0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=u||t.nc;return n&&e.setAttribute("nonce",n),e}())){var o,a;(o=n).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!n||(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},N=function(){var e=M();return function(n,t){s.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},j=function(){var e=N();return function(n){return e(n.styles,n.dynamic),null}},R={left:0,top:0,right:0,gap:0},T=function(e){return parseInt(e||"",10)||0},P=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[T(t),T(r),T(o)]},L=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var n=P(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},B=j(),I=function(e,n,t,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===t&&(t="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===t&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(w," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(y," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(w," .").concat(w," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(y," .").concat(y," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},X=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=s.useMemo(function(){return L(o)},[o]);return s.createElement(B,{styles:I(a,!n,o,t?"":"!important")})},W=!1;if("undefined"!=typeof window)try{var Y=Object.defineProperty({},"passive",{get:function(){return W=!0,!0}});window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(e){W=!1}var A=!!W&&{passive:!1},H=function(e,n){var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===t[n])},_=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),D(e,r)){var o=G(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},D=function(e,n){return"v"===e?H(n,"overflowY"):H(n,"overflowX")},G=function(e,n){return"v"===e?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},U=function(e,n,t,r,o){var a,i=(a=window.getComputedStyle(n).direction,"h"===e&&"rtl"===a?-1:1),c=i*r,u=t.target,l=n.contains(u),s=!1,d=c>0,f=0,h=0;do{var v=G(e,u),p=v[0],m=v[1]-v[2]-i*p;(p||m)&&D(e,u)&&(f+=m,h+=p),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!l&&u!==document.body||l&&(n.contains(u)||n===u));return d&&(o&&1>Math.abs(f)||!o&&c>f)?s=!0:!d&&(o&&1>Math.abs(h)||!o&&-c>h)&&(s=!0),s},O=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},z=0,V=[],q=(E.useMedium(function(e){var n=s.useRef([]),t=s.useRef([0,0]),r=s.useRef(),o=s.useState(z++)[0],a=s.useState(j)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var n=(0,g.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(
1Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),n.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(e,n){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=O(e),c=t.current,u="deltaX"in e?e.deltaX:c[0]-a[0],l="deltaY"in e?e.deltaY:c[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=_(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=_(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var h=r.current||o;return U(h,n,e,"h"===h?u:l,!0)},[]),u=s.useCallback(function(e){if(V.length&&V[V.length-1]===a){var t="deltaY"in e?Z(e):O(e),r=n.current.filter(function(n){var r;return n.name===e.type&&(n.target===e.target||e.target===n.shadowParent)&&(r=n.delta)[0]===t[0]&&r[1]===t[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(F).filter(Boolean).filter(function(n){return n.contains(e.target)});(o.length>0?c(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=s.useCallback(function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:function(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=s.useCallback(function(e){t.current=O(e),r.current=void 0},[]),f=s.useCallback(function(n){l(n.type,Z(n),n.target,c(n,e.lockRef.current))},[]),h=s.useCallback(function(n){l(n.type,O(n),n.target,c(n,e.lockRef.current))},[]);s.useEffect(function(){return V.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,A),document.addEventListener("touchmove",u,A),document.addEventListener("touchstart",d,A),function(){V=V.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,A),document.removeEventListener("touchmove",u,A),document.removeEventListener("touchstart",d,A)}},[]);var v=e.removeScrollBar,p=e.inert;return s.createElement(s.Fragment,null,p?s.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?s.createElement(X,{gapMode:e.gapMode}):null)}),k),J=s.forwardRef(function(e,n){return s.createElement(S,(0,g.pi)({},e,{ref:n,sideCar:q}))});J.classNames=S.classNames;var K=t(10902),Q=t(85893),$=(0,d.Gp)((e,n)=>{let{as:t,children:r,className:o,...a}=e,{Component:i,isOpen:c,placement:u,backdrop:d,motionProps:g,titleProps:w,disableAnimation:y,shouldBlockScroll:b,getPopoverProps:x,getDialogProps:E,getBackdropProps:C,getContentProps:S,isNonModal:k,onClose:M}=(0,l.l)(),N=E(a);delete N.role;let j=(0,Q.jsxs)(Q.Fragment,{children:[!k&&(0,Q.jsx)(f.U4,{onDismiss:M}),(0,Q.jsx)(t||i||"div",{...N,children:(0,Q.jsx)("div",{...S({className:o}),children:"function"==typeof r?r(w):r})}),(0,Q.jsx)(f.U4,{onDismiss:M})]}),R=(0,s.useMemo)(()=>"transparent"===d?null:y?(0,Q.jsx)("div",{...C()}):(0,Q.jsx)(v.X,{features:p.H,children:(0,Q.jsx)(m.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:h.y7.fade,...C()})}),[d,y,C]),T=(0,s.useCallback)(({children:e})=>(0,Q.jsx)(J,{enabled:b&&c,removeScrollBar:!1,children:e}),[b,c]),P=y?(0,Q.jsx)(T,{children:j}):(0,Q.jsx)(v.X,{features:p.H,children:(0,Q.jsx)(m.m.div,{animate:"enter",exit:"exit",initial:"initial",style:{...(0,K.VS)("center"===u?"top":u)},variants:h.y7.scaleSpringOpacity,...g,children:(0,Q.jsx)(T,{children:j})})});return(0,Q.jsxs)("div",{...x(),children:[R,P]})});$.displayName="NextUI.PopoverContent";var ee=$},30796:function(e,n,t){t.d(n,{H:function(){return r},l:function(){return o}});var[r,o]=(0,t(46347).k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"})}}]);
2//# sourceMappingURL=1598-ce4d7cc63b01b1c0.js.map

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.