PageSourceSearch

https://oday.sswagger.hk/_next/static/chunks/807-ce9ab00833efb52b.js

js sswagger.hk collected 2026-09-29 23:26:40 UTC 4,696 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[807],{2807:(e,t,o)=>{o.d(t,{IJ:()=>O,Ay:()=>H});var r=o(75890),n=o(35045),i=o(30758),l=o(13526),a=o(33008),s=o(80458),u=o(73266),p=o(55572),c=o(84985),f=o(19219),h=o(48780),d=o(33145),v=o(98040),m=o(48927),A=o(24520),P=o(14806),g=o(52474),y=o(85410);function b(e){return(0,y.Ay)("MuiPopover",e)}(0,g.A)("MuiPopover",["root","paper"]);var w=o(86070);let x=["onEntering"],E=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],z=["slotProps"];function k(e,t){let o=0;return"number"==typeof t?o=t:"center"===t?o=e.height/2:"bottom"===t&&(o=e.height),o}function C(e,t){let o=0;return"number"==typeof t?o=t:"center"===t?o=e.width/2:"right"===t&&(o=e.width),o}function T(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function M(e){return"function"==typeof e?e():e}let R=e=>{let{classes:t}=e;return(0,a.A)({root:["root"],paper:["paper"]},b,t)},N=(0,p.Ay)(A.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O=(0,p.Ay)(P.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),H=i.forwardRef(function(e,t){var o,a,p;let A=(0,c.b)({props:e,name:"MuiPopover"}),{action:P,anchorEl:g,anchorOrigin:y={vertical:"top",horizontal:"left"},anchorPosition:b,anchorReference:H="anchorEl",children:L,className:S,container:j,elevation:W=8,marginThreshold:_=16,open:D,PaperProps:I={},slots:B,slotProps:F,transformOrigin:J={vertical:"top",horizontal:"left"},TransitionComponent:X=m.A,transitionDuration:Y="auto",TransitionProps:{onEntering:q}={},disableScrollLock:G=!1}=A,K=(0,n.A)(A.TransitionProps,x),Q=(0,n.A)(A,E),U=null!=(o=null==F?void 0:F.paper)?o:I,V=i.useRef(),Z=(0,v.A)(V,U.ref),$=(0,r.A)({},A,{anchorOrigin:y,anchorReference:H,elevation:W,marginThreshold:_,externalPaperSlotProps:U,transformOrigin:J,TransitionComponent:X,transitionDuration:Y,TransitionProps:K}),ee=R($),et=i.useCallback(()=>{if("anchorPosition"===H)return b;let e=M(g),t=(e&&1===e.nodeType?e:(0,h.A)(V.current).body).getBoundingClientRect();return{top:t.top+k(t,y.vertical),left:t.left+C(t,y.horizontal)}},[g,y.horizontal,y.vertical,b,H]),eo=i.useCallback(e=>({vertical:k(e,J.vertical),horizontal:C(e,J.horizontal)}),[J.horizontal,J.vertical]),er=i.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},o=eo(t);if("none"===H)return{top:null,left:null,transformOrigin:T(o)};let r=et(),n=r.top-o.vertical,i=r.left-o.horizontal,l=n+t.height,a=i+t.width,s=(0,d.A)(M(g)),u=s.innerHeight-_,p=s.innerWidth-_;if(null!==_&&n<_){let e=n-_;n-=e,o.vertical+=e}else if(null!==_&&l>u){let e=l-u;n-=e,o.vertical+=e}if(null!==_&&i<_){let e=i-_;i-=e,o.horizontal+=e}else if(a>p){let e=a-p;i-=e,o.horizontal+=e}return{top:"".concat(Math.round(n),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:T(o)}},[g,H,et,eo,_]),[en,ei]=i.useState(D),el=i.useCallback(()=>{let e=V.current;if(!e)return;let t=er(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ei(!0)},[er]);i.useEffect(()=>(G&&window.addEventListener("scroll",el),()=>window.removeEventListener("scroll",el)),[g,G,el]),i.useEffect(()=>{D&&el()}),i.useImperativeHandle(P,()=>D?{updatePosition:()=>{el()}}:null,[D,el]),i.useEffect(()=>{if(!D)return;let e=(0,f.A)(()=>{el()}),t=(0,d.A)(g);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[g,D,el]);let ea=Y;"auto"!==Y||X.muiSupportAuto||(ea=void 0);let es=j||(g?(0,h.A)(M(g)).body:void 0),eu=null!=(a=null==B?void 0:B.root)?a:N,ep=null!=(p=null==B?void 0:B.paper)?p:O,ec=(0,s.A)({elementType:ep,externalSlotProps:(0,r.A)({},U,{style:en?U.style:(0,r.A)({},U.style,{opacity:0})}),additionalProps:{elevation:W,ref:Z},ownerState:$,className:(0,l.A)(ee.paper,null==U?void 0:U.className)}),ef=(0,s.A)({elementType:eu,externalSlotProps:(null==F?void 0:F.root)||{},externalForwardedProps:Q,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:es,open:D},ownerState:$,className:(0,l.A)(ee.root,S)}),{slotProps:eh}=ef,ed=(0,n.A)(ef,z);return(0,w.jsx)(eu,(0,r.A)({},ed,!(0,u.A)(eu)&&{slotProps:eh,disableScrollLock:G},{children:(0,w.jsx)(X,(0,r.A)({appear:!0,in:D,onEntering:(e,t)=>
1{q&&q(e,t),el()},onExited:()=>{ei(!1)},timeout:ea},K,{children:(0,w.jsx)(ep,(0,r.A)({},ec,{children:L}))}))}))})}}]);

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.