PageSourceSearch

https://cdnv3.banlek.com/6afd0cee0a04304e78e50b2b2d265180b0f77eca-…/static/chunks/9507-ccb7bbe79ff583a5.js

js banlek.com collected 2026-09-24 09:13:01 UTC 11,893 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9507],{89507:(e,t,n)=>{let r,o;n.d(t,{bm:()=>ev,UC:()=>ep,VY:()=>eg,hJ:()=>ef,ZL:()=>ed,bL:()=>es,hE:()=>em,l9:()=>ec,G$:()=>el,Hs:()=>P});var l,i=n(12115),u=n.t(i,2);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():s(e[t],null)}}}}function d(...e){return i.useCallback(c(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var f=n(95155),p=globalThis?.document?i.useLayoutEffect:()=>{},m=u[" useId ".trim().toString()]||(()=>void 0),g=0;function v(e){let[t,n]=i.useState(m());return p(()=>{e||n(e=>e??String(g++))},[e]),e||(t?`radix-${t}`:"")}var y=u[" useInsertionEffect ".trim().toString()]||p;Symbol("RADIX:SYNC_STATE");var h=n(58289),N=n(46742),w=n(81415),b=e=>{var t,n,r;let o,l,{present:u,children:a}=e,s=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),u=i.useRef(e),a=i.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=R(l.current);a.current="mounted"===s?e:"none"},[s]),p(()=>{let t=l.current,n=u.current;if(n!==e){let r=a.current,o=R(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),u.current=e}},[e,c]),p(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=R(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(c("ANIMATION_END"),!u.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(a.current=R(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(u),c="function"==typeof a?a({present:s.isPresent}):i.Children.only(a),f=d(s.ref,(l=(o=null==(n=Object.getOwnPropertyDescriptor((t=c).props,"ref"))?void 0:n.get)&&"isReactWarning"in o&&o.isReactWarning)?t.ref:(l=(o=null==(r=Object.getOwnPropertyDescriptor(t,"ref"))?void 0:r.get)&&"isReactWarning"in o&&o.isReactWarning)?t.props.ref:t.props.ref||t.ref);return"function"==typeof a||s.isPresent?i.cloneElement(c,{ref:f}):null};function R(e){return(null==e?void 0:e.animationName)||"none"}function x(e){var t;let n,r=(t=e,(n=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,u=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(a.ref=t?c(t,u):u),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null})).displayName=`${t}.SlotClone`,n),o=i.forwardRef((e,t)=>{let{children:n,...o}=e,l=i.Children.toArray(n),u=l.find(E);if(u){let e=u.props.children,n=l.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,f.jsx)(r,{...o,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,f.jsx)(r,{...o,ref:t,children:n})});return o.displayName=`${e}.Slot`,o}b.displayName="Presence",n(47650);
1var C=Symbol("radix.slottable");function E(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===C}var D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=x(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),O=n(32007),j=n(78919),I=n(22954),_="Dialog",[M,P]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let u=t=>{let{scope:n,children:r,...u}=t,a=n?.[e]?.[l]||o,s=i.useMemo(()=>u,Object.values(u));return(0,f.jsx)(a.Provider,{value:s,children:r})};return u.displayName=t+"Provider",[u,function(n,u){let a=u?.[e]?.[l]||o,s=i.useContext(a);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(_),[S,T]=M(_),A=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,a=i.useRef(null),s=i.useRef(null),[c,d]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,u]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return y(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[s,i.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[a,e,l,u])]}({prop:r,defaultProp:null!=o&&o,onChange:l,caller:_});return(0,f.jsx)(S,{scope:t,triggerRef:a,contentRef:s,contentId:v(),titleId:v(),descriptionId:v(),open:c,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:u,children:n})};A.displayName=_;var F="DialogTrigger",$=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(F,n),l=d(t,o.triggerRef);return(0,f.jsx)(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":er(o.open),...r,ref:l,onClick:a(e.onClick,o.onOpenToggle)})});$.displayName=F;var U="DialogPortal",[k,W]=M(U,{forceMount:void 0}),L=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=T(U,t);return(0,f.jsx)(k,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,f.jsx)(b,{present:n||l.open,children:(0,f.jsx)(w.Z,{asChild:!0,container:o,children:e})}))})};L.displayName=U;var V="DialogOverlay",Z=i.forwardRef((e,t)=>{let n=W(V,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=T(V,e.__scopeDialog);return l.modal?(0,f.jsx)(b,{present:r||l.open,children:(0,f.jsx)(B,{...o,ref:t})}):null});Z.displayName=V;var q=x("DialogOverlay.RemoveScroll"),B=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(V,n);return(0,f.jsx)(j.A,{as:q,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(D.div,{"data-state":er(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),H="DialogContent",Y=i.forwardRef((e,t)=>{let n=W(H,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=T(H,e.__scopeDialog);return(0,f.jsx)(b,{present:r||l.open,children:l.modal?(0,f.jsx)(G,{...o,ref:t}):(0,f.jsx)(J,{...o,ref:t})})});Y.displayName=H;var G=i.forwardRef((e,t)=>
1{let n=T(H,e.__scopeDialog),r=i.useRef(null),o=d(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,I.Eq)(e)},[]),(0,f.jsx)(K,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault())})}),J=i.forwardRef((e,t)=>{let n=T(H,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,f.jsx)(K,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,i;null==(l=e.onCloseAutoFocus)||l.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var l,i;null==(l=e.onInteractOutside)||l.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let u=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),K=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,a=T(H,n),s=i.useRef(null),c=d(t,s);return(0,O.Oh)(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,f.jsx)(h.qW,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":er(a.open),...u,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(eu,{titleId:a.titleId}),(0,f.jsx)(ea,{contentRef:s,descriptionId:a.descriptionId})]})]})}),X="DialogTitle",z=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(X,n);return(0,f.jsx)(D.h2,{id:o.titleId,...r,ref:t})});z.displayName=X;var Q="DialogDescription",ee=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(Q,n);return(0,f.jsx)(D.p,{id:o.descriptionId,...r,ref:t})});ee.displayName=Q;var et="DialogClose",en=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(et,n);return(0,f.jsx)(D.button,{type:"button",...r,ref:t,onClick:a(e.onClick,()=>o.onOpenChange(!1))})});function er(e){return e?"open":"closed"}en.displayName=et;var eo="DialogTitleWarning",[el,ei]=(l={contentName:H,titleName:X,docsSlug:"dialog"},r=i.createContext(l),(o=e=>{let{children:t,...n}=e,o=i.useMemo(()=>n,Object.values(n));return(0,f.jsx)(r.Provider,{value:o,children:t})}).displayName=eo+"Provider",[o,function(e){let t=i.useContext(r);if(t)return t;if(void 0!==l)return l;throw Error(`\`${e}\` must be used within \`${eo}\``)}]),eu=e=>{let{titleId:t}=e,n=ei(eo),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return i.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},ea=e=>{let{contentRef:t,descriptionId:n}=e,r=ei("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return i.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},es=A,ec=$,ed=L,ef=Z,ep=Y,em=z,eg=ee,ev=en}}]);

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.