PageSourceSearch

https://www.seeedstudio.com/_next/static/chunks/7382-3f10a36067116d56.js

js seeedstudio.com collected 2026-09-24 08:32:55 UTC 8,544 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7382],{23722:(e,t,n)=>{n.d(t,{Z:()=>i,k:()=>o});var[i,o]=(0,n(21544).q)({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"})},33624:(e,t,n)=>{n.d(t,{Y:()=>M});var i=n(59935),o=n(45322),l=n(57255),a=n(96900),r=n(13409),s=n(46275);let d="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,u=new WeakMap,c=[];var f=n(24499),p=n(76704),v=n(9367),h=n(43059),m=n(55371),b=n(1029),E=n(61565),w=n(16344),x=n(9422),g=n(12345),y=n(10133),N=n(21050),C=n(23722),L=n(75289),T=n(5740),S=(0,E.Rf)((e,t)=>{let{children:n,...S}=e,M=function(e){var t,n,C;let L=(0,b.o)(),[T,S]=(0,E.rE)(e,h.yl.variantKeys),{ref:M,as:k,className:j,classNames:F,isOpen:O,defaultOpen:A,onOpenChange:I,motionProps:R,closeButton:H,isDismissable:P=!0,hideCloseButton:D=!1,shouldBlockScroll:_=!0,portalContainer:z,isKeyboardDismissDisabled:B=!1,onClose:V,...K}=T,U=(0,y.zD)(M),W=(0,p.useRef)(null),[q,J]=(0,p.useState)(!1),[G,Z]=(0,p.useState)(!1),Y=null!=(n=null!=(t=e.disableAnimation)?t:null==L?void 0:L.disableAnimation)&&n,Q=(0,p.useId)(),X=(0,p.useId)(),$=(0,p.useId)(),ee=(0,N.T)({isOpen:O,defaultOpen:A,onOpenChange:e=>{null==I||I(e),e||null==V||V()}}),{modalProps:et,underlayProps:en}=function(e={shouldBlockScroll:!0},t,n){let{overlayProps:h,underlayProps:m}=(0,v.P)({...e,isOpen:t.isOpen,onClose:t.close},n);return(0,i.H)({isDisabled:!t.isOpen||!e.shouldBlockScroll}),(0,o.Se)(),(0,p.useEffect)(()=>{if(t.isOpen&&n.current)return function(e,t){var n;let i=(0,l.mD)(null==e?void 0:e[0]),o=void i.Element,f=null!=(n=null==o?void 0:o.root)?n:document.body,p=(null==o?void 0:o.shouldUseInert)&&d,v=new Set(e),h=new Set,m=(e,t)=>{p&&e instanceof i.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof i.HTMLElement&&(e.inert=!1))},b=new Set;if((0,s.Nf)())for(let t of e){let e=t;for(;e&&e!==f;){let t=e.getRootNode();"shadowRoot"in t&&b.add(t.shadowRoot),e=t.parentNode}}let E=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))v.add(t);let t=e=>{if(h.has(e)||v.has(e)||e.parentElement&&h.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of v)if((0,a.sD)(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=(0,r.H)((0,l.TW)(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),i=t(e);if(i===NodeFilter.FILTER_ACCEPT&&w(e),i!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)w(e),e=n.nextNode()}},w=e=>{var t;let n=null!=(t=u.get(e))?t:0;(p&&e instanceof i.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&m(e,!0),h.add(e),u.set(e,n+1))};c.length&&c[c.length-1].disconnect(),E(f);let x=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...v,...h].some(e=>(0,a.sD)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?v.add(e):e instanceof Element&&E(e);if((0,s.Nf)()){for(let e of b)if(!e.isConnected){x.disconnect();break}}}});x.observe(f,{childList:!0,subtree:!0});let g=new Set;if((0,s.Nf)())for(let e of b){let t=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...v,...h].some(e=>(0,a.sD)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?v.add(e):e instanceof Element&&E(e);if((0,s.Nf)()){for(let e of b)if(!e.isConnected){x.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),g.add(t)}let y={visibleNodes:v,hiddenNodes:h,observe(){x.observe(f,{childList:!0,subtree:!0})},disconnect(){x.disconnect()}};return c.push(y),()=>{if(x.disconnect(),(0,s.Nf)())for(let e of g)e.disconnect();for(let e of h){let t=u.get(e);null!=t&&(1===t?(m(e,!1),u.delete(e)):u.set(e,t-1))}y===c[c.length-1]?(c.pop(),c.length&&c[c.length-1].observe()):c.splice(c.indexOf(y),1)}}([n.current])},[t.isOpen,n]),{modalProps:(0,f.v)(h),underlayProps:m}}({isDismissable:P,shouldBlockScroll:_,isKeyboardDismissDisabled:B},ee,U),{buttonProps:ei}=(0,w.l)({onPress:ee.close},W),{isFocusVisible:eo,focusProps:el}=(0,x.o)(),ea=(0,m.cn)(null==F?void 0:F.base,j),er=(0,p.useMemo)(()=>(0,h.yl)({...S,disableAnimation:Y}),[(0,g.t6)(S),Y]),es=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{className:er.backdrop({class:null==F?void 0:F.backdrop}),...en,...e}},[er,F,en]);return{Component:k||"section",slots:er,domRef:U,headerId:X,bodyId:$,motionProps:R,classNames:F,isDismissable:P,closeButton:H,hideCloseButton:D,portalContainer:z,shouldBlockScroll:_,backdrop:null!=(C=e.backdrop)?C:"opaque",isOpen:ee.isOpen,onClose:ee.close,disableAnimation:Y,setBodyMounted:Z,setHeaderMounted:J,getDialogProps:function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{ref:(0,g.Px)(i,U),...(0,g.v6)(et,K,n),className:er.base({class:(0,m.cn)(ea,n.className)}),id:Q,"data-open":(0,g.sE)(ee.isOpen),"data-dismissable":(0,g.sE)(P),"aria-modal":(0,g.sE)(!0),"data-placement":null!=(t=null==e?void 0:e.placement)?t:"right","aria-labelledby":q?X:void 0,"aria-describedby":G?$:void 0}},getBackdropProps:es,getCloseButtonProps:()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":(0,g.sE)(eo),className:er.closeButton({class:null==F?void 0:F.closeButton}),...(0,g.v6)(ei,el)})}}({...S,ref:t}),k=(0,T.jsx)(o.hJ,{portalContainer:M.portalContainer,children:n});return(0,T.jsx)(C.Z,{value:M,children:M.disableAnimation&&M.isOpen?k:(0,T.jsx)(L.N,{children:M.isOpen?k:null})})});S.displayName="HeroUI.Modal";var M=S}
1,83539:(e,t,n)=>{n.d(t,{g:()=>y});var i=n(38557),o={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:i.xf.ease},opacity:{duration:.4,ease:i.xf.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:i.xf.ease}}},l=n(23722),a=n(76704),r=n(55105),s=n(98251),d=n(42987),u=n(10998),c=n(81648),f=n(12345),p="undefined"!=typeof document&&window.visualViewport,v=a.createContext(!1);function h(){return!1}function m(){return!0}function b(e){return()=>{}}function E(){return{width:p&&(null==p?void 0:p.width)||window.innerWidth,height:p&&(null==p?void 0:p.height)||window.innerHeight}}var w=n(5740),x=()=>Promise.all([n.e(6857),n.e(788)]).then(n.bind(n,90788)).then(e=>e.default),g=e=>{let{as:t,children:n,role:g="dialog",...y}=e,{Component:N,domRef:C,slots:L,classNames:T,motionProps:S,backdrop:M,closeButton:k,hideCloseButton:j,disableAnimation:F,getDialogProps:O,getBackdropProps:A,getCloseButtonProps:I,onClose:R}=(0,l.k)(),H=function(){let e="function"==typeof a.useSyncExternalStore?a.useSyncExternalStore(b,h,m):(0,a.useContext)(v),[t,n]=(0,a.useState)(()=>e?{width:0,height:0}:E());return(0,a.useEffect)(()=>{let e=()=>{n(e=>{let t=E();return t.width===e.width&&t.height===e.height?e:t})};return p?p.addEventListener("resize",e):window.addEventListener("resize",e),()=>{p?p.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),t}(),{dialogProps:P}=(0,c.s)({role:g},C),D=(0,a.isValidElement)(k)?(0,a.cloneElement)(k,I()):(0,w.jsx)("button",{...I(),children:(0,w.jsx)(s.U,{})}),_=(0,a.useCallback)(e=>{"Tab"===e.key&&e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault())},[]),z=O((0,f.v6)(P,y)),B=(0,w.jsxs)(t||N||"div",{...z,onKeyDown:(0,f.cy)(z.onKeyDown,_),children:[(0,w.jsx)(r.R,{onDismiss:R}),!j&&D,"function"==typeof n?n(R):n,(0,w.jsx)(r.R,{onDismiss:R})]}),V=(0,a.useMemo)(()=>"transparent"===M?null:F?(0,w.jsx)("div",{...A()}):(0,w.jsx)(d.F,{features:x,children:(0,w.jsx)(u.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:i.zF.fade,...A()})}),[M,F,A]),K={"--visual-viewport-height":H.height+"px"},U=F?(0,w.jsx)("div",{className:L.wrapper({class:null==T?void 0:T.wrapper}),"data-slot":"wrapper",style:K,children:B}):(0,w.jsx)(d.F,{features:x,children:(0,w.jsx)(u.m.div,{animate:"enter",className:L.wrapper({class:null==T?void 0:T.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:o,...S,style:K,children:B})});return(0,w.jsxs)("div",{tabIndex:-1,children:[V,U]})};g.displayName="HeroUI.ModalContent";var y=g}}]);

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.