Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/toaster-ByauXeMB.js

import{r as s,j as i}from"./app-CfNGmD83.js";import{r as ke}from"./index-CmUi_9hO.js";import{u as se,e as ee,g as Ue,c as Ke,a as We,b,f as Y,P as D,B as $e,R as He,V as le,h as Xe,i as Ye,d as Be}from"./index-WVAMdUeC.js";import{c as M}from"./utils-CytzSlOG.js";import{X as qe}from"./x-lvw-yoBF.js";function ze(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var fe=e=>{const{present:t,children:n}=e,o=Ge(t),a=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),d=se(o.ref,Qe(a));return typeof n=="function"||o.isPresent?s.cloneElement(a,{ref:d}):null};fe.displayName="Presence";function Ge(e){const[t,n]=s.useState(),o=s.useRef({}),a=s.useRef(e),d=s.useRef("none"),p=e?"mounted":"unmounted",[m,f]=ze(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const r=W(o.current);d.current=m==="mounted"?r:"none"},[m]),ee(()=>{const r=o.current,x=a.current;if(x!==e){const R=d.current,E=W(r);e?f("MOUNT"):E==="none"||(r==null?void 0:r.display)==="none"?f("UNMOUNT"):f(x&&R!==E?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),ee(()=>{if(t){let r;const x=t.ownerDocument.defaultView??window,T=E=>{const l=W(o.current).includes(E.animationName);if(E.target===t&&l&&(f("ANIMATION_END"),!a.current)){const c=t.style.animationFillMode;t.style.animationFillMode="forwards",r=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=c)})}},R=E=>{E.target===t&&(d.current=W(o.current))};return t.addEventListener("animationstart",R),t.addEventListener("animationcancel",T),t.addEventListener("animationend",T),()=>{x.clearTimeout(r),t.removeEventListener("animationstart",R),t.removeEventListener("animationcancel",T),t.removeEventListener("animationend",T)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:s.useCallback(r=>{r&&(o.current=getComputedStyle(r)),n(r)},[])}}function W(e){return(e==null?void 0:e.animationName)||"none"}function Qe(e){var o,a;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Je=1,Ze=1e6;let Q=0;function et(){return Q=(Q+1)%Number.MAX_SAFE_INTEGER,Q.toString()}const J=new Map,ue=e=>{if(J.has(e))return;const t=setTimeout(()=>{J.delete(e),V({type:"REMOVE_TOAST",toastId:e})},Ze);J.set(e,t)},tt=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Je)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?ue(n):e.toasts.forEach(o=>{ue(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===n||n===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},H=[];let X={toasts:[]};function V(e){X=tt(X,e),H.forEach(t=>{t(X)})}function nt({...e}){const t=et(),n=a=>V({type:"UPDATE_TOAST",toast:{...a,id:t}}),o=()=>V({type:"DISMISS_TOAST",toastId:t});return V({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||o()}}}),{id:t,dismiss:o,update:n}}function ot(){const[e,t]=s.useState(X);return s.useEffect(()=>(H.push(t),()=>{const n=H.indexOf(t);n>-1&&H.splice(n,1)}),[e]),{...e,toast:nt,dismiss:n=>V({type:"DISMISS_TOAST",toastId:n})}}var re="ToastProvider",[ae,st,rt]=Ue("Toast"),[pe,It]=Ke("Toast",[rt]),[at,B]=pe(re),me=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:p}=e,[m,f]=s.useState(null),[r,x]=s.useState(0),T=s.useRef(!1),R=s.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${re}\`. Expected non-empty \`string\`.`),i.jsx(ae.Provider,{scope:t,children:i.jsx(at,{scope:t,label:n,duration:o,swipeDirection:a,swipeThreshold:d,toastCount:r,viewport:m,onViewportChange:f,onToastAdd:s.useCallback(()=>x(E=>E+1),[]),onToastRemove:s.useCallback(()=>x(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:T,isClosePausedRef:R,children:p})})};me.displayName=re;var ve="ToastViewport",it=["F8"],te="toast.viewportPause",ne="toast.viewportResume",Te=s.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=it,label:a="Notifications ({hotkey})",...d}=e,p=B(ve,n),m=st(n),f=s.useRef(null),r=s.useRef(null),x=s.useRef(null),T=s.useRef(null),R=se(t,T,p.onViewportChange),E=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=p.toastCount>0;s.useEffect(()=>{const c=h=>{var w;o.length!==0&&o.every(y=>h[y]||h.code===y)&&((w=T.current)==null||w.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[o]),s.useEffect(()=>{const c=f.current,h=T.current;if(S&&c&&h){const v=()=>{if(!p.isClosePausedRef.current){const N=new CustomEvent(te);h.dispatchEvent(N),p.isClosePausedRef.current=!0}},w=()=>{if(p.isClosePausedRef.current){const N=new CustomEvent(ne);h.dispatchEvent(N),p.isClosePausedRef.current=!1}},y=N=>{!c.contains(N.relatedTarget)&&w()},g=()=>{c.contains(document.activeElement)||w()};return c.addEventListener("focusin",v),c.addEventListener("focusout",y),c.addEventListener("pointermove",v),c.addEventListener("pointerleave",g),window.addEventListener("blur",v),window.addEventListener("focus",w),()=>{c.removeEventListener("focusin",v),c.removeEventListener("focusout",y),c.removeEventListener("pointermove",v),c.removeEventListener("pointerleave",g),window.removeEventListener("blur",v),window.removeEventListener("focus",w)}}},[S,p.isClosePausedRef]);const l=s.useCallback(({tabbingDirection:c})=>{const v=m().map(w=>{const y=w.ref.current,g=[y,...yt(y)];return c==="forwards"?g:g.reverse()});return(c==="forwards"?v.reverse():v).flat()},[m]);return s.useEffect(()=>{const c=T.current;if(c){const h=v=>{var g,N,C;const w=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!w){const F=document.activeElement,O=v.shiftKey;if(v.target===c&&O){(g=r.current)==null||g.focus();return}const I=l({tabbingDirection:O?"backwards":"forwards"}),k=I.findIndex(u=>u===F);Z(I.slice(k+1))?v.preventDefault():O?(N=r.current)==null||N.focus():(C=x.current)==null||C.focus()}};return c.addEventListener("keydown",h),()=>c.removeEventListener("keydown",h)}},[m,l]),i.jsxs($e,{ref:f,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&i.jsx(oe,{ref:r,onFocusFromOutsideViewport:()=>{const c=l({tabbingDirection:"forwards"});Z(c)}}),i.jsx(ae.Slot,{scope:n,children:i.jsx(D.ol,{tabIndex:-1,...d,ref:R})}),S&&i.jsx(oe,{ref:x,onFocusFromOutsideViewport:()=>{const c=l({tabbingDirection:"backwards"});Z(c)}})]})});Te.displayName=ve;var we="ToastFocusProxy",oe=s.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...a}=e,d=B(we,n);return i.jsx(le,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:p=>{var r;const m=p.relatedTarget;!((r=d.viewport)!=null&&r.contains(m))&&o()}})});oe.displayName=we;var q="Toast",ct="toast.swipeStart",ut="toast.swipeMove",dt="toast.swipeCancel",lt="toast.swipeEnd",xe=s.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:a,onOpenChange:d,...p}=e,[m=!0,f]=We({prop:o,defaultProp:a,onChange:d});return i.jsx(fe,{present:n||m,children:i.jsx(mt,{open:m,...p,ref:t,onClose:()=>f(!1),onPause:Y(e.onPause),onResume:Y(e.onResume),onSwipeStart:b(e.onSwipeStart,r=>{r.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:b(e.onSwipeMove,r=>{const{x,y:T}=r.detail.delta;r.currentTarget.setAttribute("data-swipe","move"),r.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),r.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${T}px`)}),onSwipeCancel:b(e.onSwipeCancel,r=>{r.currentTarget.setAttribute("data-swipe","cancel"),r.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),r.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),r.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),r.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:b(e.onSwipeEnd,r=>{const{x,y:T}=r.detail.delta;r.currentTarget.setAttribute("data-swipe","end"),r.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),r.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),r.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),r.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${T}px`),f(!1)})})})});xe.displayName=q;var[ft,pt]=pe(q,{onClose(){}}),mt=s.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:a,open:d,onClose:p,onEscapeKeyDown:m,onPause:f,onResume:r,onSwipeStart:x,onSwipeMove:T,onSwipeCancel:R,onSwipeEnd:E,...S}=e,l=B(q,n),[c,h]=s.useState(null),v=se(t,u=>h(u)),w=s.useRef(null),y=s.useRef(null),g=a||l.duration,N=s.useRef(0),C=s.useRef(g),F=s.useRef(0),{onToastAdd:O,onToastRemove:z}=l,_=Y(()=>{var P;(c==null?void 0:c.contains(document.activeElement))&&((P=l.viewport)==null||P.focus()),p()}),I=s.useCallback(u=>{!u||u===1/0||(window.clearTimeout(F.current),N.current=new Date().getTime(),F.current=window.setTimeout(_,u))},[_]);s.useEffect(()=>{const u=l.viewport;if(u){const P=()=>{I(C.current),r==null||r()},A=()=>{const j=new Date().getTime()-N.current;C.current=C.current-j,window.clearTimeout(F.current),f==null||f()};return u.addEventListener(te,A),u.addEventListener(ne,P),()=>{u.removeEventListener(te,A),u.removeEventListener(ne,P)}}},[l.viewport,g,f,r,I]),s.useEffect(()=>{d&&!l.isClosePausedRef.current&&I(g)},[d,g,l.isClosePausedRef,I]),s.useEffect(()=>(O(),()=>z()),[O,z]);const k=s.useMemo(()=>c?Re(c):null,[c]);return l.viewport?i.jsxs(i.Fragment,{children:[k&&i.jsx(vt,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:k}),i.jsx(ft,{scope:n,onClose:_,children:ke.createPortal(i.jsx(ae.ItemSlot,{scope:n,children:i.jsx(He,{asChild:!0,onEscapeKeyDown:b(m,()=>{l.isFocusedToastEscapeKeyDownRef.current||_(),l.isFocusedToastEscapeKeyDownRef.current=!1}),children:i.jsx(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":l.swipeDirection,...S,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:b(e.onKeyDown,u=>{u.key==="Escape"&&(m==null||m(u.nativeEvent),u.nativeEvent.defaultPrevented||(l.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:b(e.onPointerDown,u=>{u.button===0&&(w.current={x:u.clientX,y:u.clientY})}),onPointerMove:b(e.onPointerMove,u=>{if(!w.current)return;const P=u.clientX-w.current.x,A=u.clientY-w.current.y,j=!!y.current,L=["left","right"].includes(l.swipeDirection),U=["left","up"].includes(l.swipeDirection)?Math.min:Math.max,Le=L?U(0,P):0,Ve=L?0:U(0,A),G=u.pointerType==="touch"?10:2,K={x:Le,y:Ve},ce={originalEvent:u,delta:K};j?(y.current=K,$(ut,T,ce,{discrete:!1})):de(K,l.swipeDirection,G)?(y.current=K,$(ct,x,ce,{discrete:!1}),u.target.setPointerCapture(u.pointerId)):(Math.abs(P)>G||Math.abs(A)>G)&&(w.current=null)}),onPointerUp:b(e.onPointerUp,u=>{const P=y.current,A=u.target;if(A.hasPointerCapture(u.pointerId)&&A.releasePointerCapture(u.pointerId),y.current=null,w.current=null,P){const j=u.currentTarget,L={originalEvent:u,delta:P};de(P,l.swipeDirection,l.swipeThreshold)?$(lt,E,L,{discrete:!0}):$(dt,R,L,{discrete:!0}),j.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),l.viewport)})]}):null}),vt=e=>{const{__scopeToast:t,children:n,...o}=e,a=B(q,t),[d,p]=s.useState(!1),[m,f]=s.useState(!1);return xt(()=>p(!0)),s.useEffect(()=>{const r=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(r)},[]),m?null:i.jsx(Xe,{asChild:!0,children:i.jsx(le,{...o,children:d&&i.jsxs(i.Fragment,{children:[a.label," ",n]})})})},Tt="ToastTitle",Ee=s.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return i.jsx(D.div,{...o,ref:t})});Ee.displayName=Tt;var wt="ToastDescription",ye=s.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return i.jsx(D.div,{...o,ref:t})});ye.displayName=wt;var ge="ToastAction",he=s.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?i.jsx(Pe,{altText:n,asChild:!0,children:i.jsx(ie,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ge}\`. Expected non-empty \`string\`.`),null)});he.displayName=ge;var Ne="ToastClose",ie=s.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,a=pt(Ne,n);return i.jsx(Pe,{asChild:!0,children:i.jsx(D.button,{type:"button",...o,ref:t,onClick:b(e.onClick,a.onClose)})})});ie.displayName=Ne;var Pe=s.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...a}=e;return i.jsx(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:t})});function Re(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),Et(o)){const a=o.ariaHidden||o.hidden||o.style.display==="none",d=o.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const p=o.dataset.radixToastAnnounceAlt;p&&t.push(p)}else t.push(...Re(o))}}),t}function $(e,t,n,{discrete:o}){const a=n.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?Ye(a,d):a.dispatchEvent(d)}var de=(e,t,n=0)=>{const o=Math.abs(e.x),a=Math.abs(e.y),d=o>a;return t==="left"||t==="right"?d&&o>n:!d&&a>n};function xt(e=()=>{}){const t=Y(e);ee(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function Et(e){return e.nodeType===e.ELEMENT_NODE}function yt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var gt=me,be=Te,Se=xe,Ae=Ee,Ce=ye,Ie=he,Oe=ie;const ht=gt,_e=s.forwardRef(({className:e,...t},n)=>i.jsx(be,{ref:n,className:M("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));_e.displayName=be.displayName;const Nt=Be("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),De=s.forwardRef(({className:e,variant:t,...n},o)=>i.jsx(Se,{ref:o,className:M(Nt({variant:t}),e),...n}));De.displayName=Se.displayName;const Pt=s.forwardRef(({className:e,...t},n)=>i.jsx(Ie,{ref:n,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));Pt.displayName=Ie.displayName;const Me=s.forwardRef(({className:e,...t},n)=>i.jsx(Oe,{ref:n,className:M("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:i.jsx(qe,{className:"h-4 w-4"})}));Me.displayName=Oe.displayName;const Fe=s.forwardRef(({className:e,...t},n)=>i.jsx(Ae,{ref:n,className:M("text-sm font-semibold [&+div]:text-xs",e),...t}));Fe.displayName=Ae.displayName;const je=s.forwardRef(({className:e,...t},n)=>i.jsx(Ce,{ref:n,className:M("text-sm opacity-90",e),...t}));je.displayName=Ce.displayName;function Ot(){const{toasts:e}=ot();return i.jsxs(ht,{children:[e.map(function({id:t,title:n,description:o,action:a,...d}){return i.jsxs(De,{...d,children:[i.jsxs("div",{className:"grid gap-1",children:[n&&i.jsx(Fe,{children:n}),o&&i.jsx(je,{children:o})]}),a,i.jsx(Me,{})]},t)}),i.jsx(_e,{})]})}export{fe as P,Ot as T,nt as t};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]