PageSourceSearch

https://admin.propertyprotect.com/assets/chunk-KBN3H6OQ-Bx5Rdpu5.js

js propertyprotect.com collected 2026-10-02 01:41:01 UTC 32,958 bytes, 1 lines download raw bytes

1import{R as ke,r as p,j as M}from"./jsx-runtime-BgQc5Su6.js";import{I as Ne,J as Lt,_ as Dt,E as Ot,w as It,n as Rt,B as Mt,x as Kt,c as Ue,f as He}from"./import-CA6vSH2m.js";import{$ as _t}from"./import-C5ysotpi.js";import{t as tt,g as Ft,_ as At,c as ye,b as V,f as Vt}from"./chunk-TDOFO53L-DovbRcqE.js";import{u as jt}from"./index-BY-63axa.js";import{s as Bt}from"./chunk-CAFRINWI-BTDo8zfp.js";import{w as Ge,m as Nt}from"./chunk-CIZQCQPA-CpeAJSas.js";import{$ as rt,a as Ut,b as Ht,c as Gt}from"./import-I6xLywFU.js";import{u as Wt}from"./index-FeH0CfEy.js";import{d as qt}from"./import-DFNu2rli.js";var zt=tt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ft],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});tt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",de
1scription:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});const Ce=typeof document<"u"?ke.useLayoutEffect:()=>{};function U(e){const t=p.useRef(null);return Ce(()=>{t.current=e},[e]),p.useCallback((...n)=>{const a=t.current;return a==null?void 0:a(...n)},[])}let We=new Map;function Yt(e,t){if(e===t)return e;let n=We.get(e);if(n)return n(t),t;let a=We.get(t);return a?(a(e),e):t}function nt(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const C=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Z=e=>e&&"window"in e&&e.window===e?e:C(e).defaultView||window;function at(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=at(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Xt(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=at(e))&&(a&&(a+=" "),a+=t);return a}function G(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let i in a){let u=t[i],l=a[i];typeof u=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=nt(u,l):(i==="className"||i==="UNSAFE_className")&&typeof u=="string"&&typeof l=="string"?t[i]=Xt(u,l):i==="id"&&u&&l?t.id=Yt(u,l):t[i]=l!==void 0?l:u}}return t}const Jt=new Set(["id"]),Qt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Zt=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),er=/^(data-.*)$/;function tr(e,t={}){let{labelable:n,isLink:a,propNames:i}=t,u={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(Jt.has(l)||n&&Qt.has(l)||a&&Zt.has(l)||i!=null&&i.has(l)||er.test(l))&&(u[l]=e[l]);return u}function H(e){if(rr())e.focus({preventScroll:!0});else{let t=nr(e);e.focus(),ar(t)}}let oe=null;function rr(){if(oe==null){oe=!1;try{document.createElement("div").focus({get preventScroll(){return oe=!0,!0}})}catch{}}return oe}function nr(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function ar(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}function ce(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Le(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function te(){return Le(/^Mac/i)}function or(){return Le(/^iPhone/i)}function ot(){return Le(/^iPad/i)||te()&&navigator.maxTouchPoints>1}function it(){return or()||ot()}function ir(){return ce(/AppleWebKit/i)&&!sr()}function sr(){return ce(/Chrome/i)}function st(){return ce(/Android/i)}function lr(){return ce(/Firefox/i)}function re(e,t,n=!0){var a,i;let{metaKey:u,ctrlKey:l,altKey:v,shiftKey:c}=t;lr()&&(!((i=window.event)===null||i===void 0||(a=i.type)===null||a===void 0)&&a.startsWith("key"))&&e.target==="_blank"&&(te()?u=!0:l=!0);let m=ir()&&te()&&!ot()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:l,altKey:v,shiftKey:c}):new MouseEvent("click",{metaKey:u,ctrlKey:l,altKey:v,shiftKey:c,bubbles:!0,cancelable:!0});re.isOpening=n,H(e),e.dispatchEvent(m),re.isOpening=!1}re.isOpening=!1;let J=new Map,Ee=new Set;function qe(){if(typeof window>"u")return;function e(a){return"propertyName"in a}let t=a=>{if(!e(a)||!a.target)return;let i=J.get(a.target);
1i||(i=new Set,J.set(a.target,i),a.target.addEventListener("transitioncancel",n,{once:!0})),i.add(a.propertyName)},n=a=>{if(!e(a)||!a.target)return;let i=J.get(a.target);if(i&&(i.delete(a.propertyName),i.size===0&&(a.target.removeEventListener("transitioncancel",n),J.delete(a.target)),J.size===0)){for(let u of Ee)u();Ee.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qe():document.addEventListener("DOMContentLoaded",qe));function lt(e){requestAnimationFrame(()=>{J.size===0?e():Ee.add(e)})}function dr(){let e=p.useRef(new Map),t=p.useCallback((i,u,l,v)=>{let c=v!=null&&v.once?(...m)=>{e.current.delete(l),l(...m)}:l;e.current.set(l,{type:u,eventTarget:i,fn:c,options:v}),i.addEventListener(u,l,v)},[]),n=p.useCallback((i,u,l,v)=>{var c;let m=((c=e.current.get(l))===null||c===void 0?void 0:c.fn)||l;i.removeEventListener(u,m,v),e.current.delete(l)},[]),a=p.useCallback(()=>{e.current.forEach((i,u)=>{n(i.eventTarget,i.type,u,i.options)})},[n]);return p.useEffect(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}function dt(e,t){Ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function xe(e){return e.mozInputSource===0&&e.isTrusted?!0:st()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ur(e){return!st()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function cr(e,t,n){let a=p.useRef(t),i=U(()=>{n&&n(a.current)});p.useEffect(()=>{var u;let l=e==null||(u=e.current)===null||u===void 0?void 0:u.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[e,i])}let Q="default",we="",de=new WeakMap;function ze(e){if(it()){if(Q==="default"){const t=C(e);we=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Q="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(de.set(e,e.style.userSelect),e.style.userSelect="none")}function ie(e){if(it()){if(Q!=="disabled")return;Q="restoring",setTimeout(()=>{lt(()=>{if(Q==="restoring"){const t=C(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=we||""),we="",Q="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&de.has(e)){let t=de.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),de.delete(e)}}const ut=ke.createContext({register:()=>{}});ut.displayName="PressResponderContext";function fr(e){let t=p.useContext(ut);if(t){let{register:n,...a}=t;e=G(a,e),n()}return dt(t,e.ref),e}var se=new WeakMap;class le{continuePropagation(){Ne(this,se,!1)}get shouldStopPropagation(){return Lt(this,se)}constructor(t,n,a){Dt(this,se,{writable:!0,value:void 0}),Ne(this,se,!0),this.type=t,this.pointerType=n,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey}}const Ye=Symbol("linkClicked");function Xe(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:i,onPressUp:u,isDisabled:l,isPressed:v,preventFocusOnPress:c,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:f,ref:O,...K}=fr(e),[F,T]=p.useState(!1),h=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:P,removeAllGlobalListeners:I}=dr(),w=U((r,b)=>{let E=h.current;if(l||E.didFirePressStart)return!1;let d=!0;if(E.isTriggeringEvent=!0,a){let g=new le("pressstart",b,r);a(g),d=g.shouldStopPropagation}return n&&n(!0),E.isTriggeringEvent=!1,E.didFirePressStart=!0,T(!0),d}),y=U((r,b,E=!0)=>{let d=h.current;if(!d.didFirePressStart)return!1;d.ignoreClickAfterPress=!0,d.didFirePressStart=!1,d.isTriggeringEvent=!0;let g=!0;if(i){let o=new le("pressend",b,r);i(o),g=o.shouldStopPropagation}if(n&&n(!1),T(!1),t&&E&&!l){let o=new le("press",b,r);t(o),g&&(g=o.shouldStopPropagation)}return d.isTriggeringEvent=!1,g}),R=U((r,b)=>{let E=h.current;if(l)return!1;if(u){E.isTriggeringEvent=!0;let d=new le("pressup",b,r);return u(d),E.isTriggeringEvent=!1,d.shouldStopPropagation}return!0}),S=U(r=>{let b=h.current;b.isPressed&&b.target&&(b.isOverTarget&&b.pointerType!=null&&y(j(b.target,r),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,I(),f||ie(b.target))}),L=U(r=>{m&&S(r)}),ae=p.useMemo(()=>
1{let r=h.current,b={onKeyDown(d){if(Pe(d.nativeEvent,d.currentTarget)&&d.currentTarget.contains(d.target)){var g;Qe(d.target,d.key)&&d.preventDefault();let o=!0;if(!r.isPressed&&!d.repeat){r.target=d.currentTarget,r.isPressed=!0,o=w(d,"keyboard");let s=d.currentTarget,$=_=>{Pe(_,s)&&!_.repeat&&s.contains(_.target)&&r.target&&R(j(r.target,_),"keyboard")};P(C(d.currentTarget),"keyup",nt($,E),!0)}o&&d.stopPropagation(),d.metaKey&&te()&&((g=r.metaKeyEvents)===null||g===void 0||g.set(d.key,d.nativeEvent))}else d.key==="Meta"&&(r.metaKeyEvents=new Map)},onClick(d){if(!(d&&!d.currentTarget.contains(d.target))&&d&&d.button===0&&!r.isTriggeringEvent&&!re.isOpening){let g=!0;if(l&&d.preventDefault(),!r.ignoreClickAfterPress&&!r.ignoreEmulatedMouseEvents&&!r.isPressed&&(r.pointerType==="virtual"||xe(d.nativeEvent))){!l&&!c&&H(d.currentTarget);let o=w(d,"virtual"),s=R(d,"virtual"),$=y(d,"virtual");g=o&&s&&$}r.ignoreEmulatedMouseEvents=!1,r.ignoreClickAfterPress=!1,g&&d.stopPropagation()}}},E=d=>{var g;if(r.isPressed&&r.target&&Pe(d,r.target)){var o;Qe(d.target,d.key)&&d.preventDefault();let $=d.target;y(j(r.target,d),"keyboard",r.target.contains($)),I(),d.key!=="Enter"&&De(r.target)&&r.target.contains($)&&!d[Ye]&&(d[Ye]=!0,re(r.target,d,!1)),r.isPressed=!1,(o=r.metaKeyEvents)===null||o===void 0||o.delete(d.key)}else if(d.key==="Meta"&&(!((g=r.metaKeyEvents)===null||g===void 0)&&g.size)){var s;let $=r.metaKeyEvents;r.metaKeyEvents=void 0;for(let _ of $.values())(s=r.target)===null||s===void 0||s.dispatchEvent(new KeyboardEvent("keyup",_))}};if(typeof PointerEvent<"u"){b.onPointerDown=s=>{if(s.button!==0||!s.currentTarget.contains(s.target))return;if(ur(s.nativeEvent)){r.pointerType="virtual";return}Te(s.currentTarget)&&s.preventDefault(),r.pointerType=s.pointerType;let $=!0;r.isPressed||(r.isPressed=!0,r.isOverTarget=!0,r.activePointerId=s.pointerId,r.target=s.currentTarget,!l&&!c&&H(s.currentTarget),f||ze(r.target),$=w(s,r.pointerType),P(C(s.currentTarget),"pointermove",d,!1),P(C(s.currentTarget),"pointerup",g,!1),P(C(s.currentTarget),"pointercancel",o,!1)),$&&s.stopPropagation()},b.onMouseDown=s=>{s.currentTarget.contains(s.target)&&s.button===0&&(Te(s.currentTarget)&&s.preventDefault(),s.stopPropagation())},b.onPointerUp=s=>{!s.currentTarget.contains(s.target)||r.pointerType==="virtual"||s.button===0&&X(s,s.currentTarget)&&R(s,r.pointerType||s.pointerType)};let d=s=>{s.pointerId===r.activePointerId&&(r.target&&X(s,r.target)?!r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!0,w(j(r.target,s),r.pointerType)):r.target&&r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!1,y(j(r.target,s),r.pointerType,!1),L(s)))},g=s=>{s.pointerId===r.activePointerId&&r.isPressed&&s.button===0&&r.target&&(X(s,r.target)&&r.pointerType!=null?y(j(r.target,s),r.pointerType):r.isOverTarget&&r.pointerType!=null&&y(j(r.target,s),r.pointerType,!1),r.isPressed=!1,r.isOverTarget=!1,r.activePointerId=null,r.pointerType=null,I(),f||ie(r.target))},o=s=>{S(s)};b.onDragStart=s=>{s.currentTarget.contains(s.target)&&S(s)}}else{b.onMouseDown=o=>{if(o.button!==0||!o.currentTarget.contains(o.target))return;if(Te(o.currentTarget)&&o.preventDefault(),r.ignoreEmulatedMouseEvents){o.stopPropagation();return}r.isPressed=!0,r.isOverTarget=!0,r.target=o.currentTarget,r.pointerType=xe(o.nativeEvent)?"virtual":"mouse",!l&&!c&&H(o.currentTarget),w(o,r.pointerType)&&o.stopPropagation(),P(C(o.currentTarget),"mouseup",d,!1)},b.onMouseEnter=o=>{if(!o.currentTarget.contains(o.target))return;let s=!0;r.isPressed&&!r.ignoreEmulatedMouseEvents&&r.pointerType!=null&&(r.isOverTarget=!0,s=w(o,r.pointerType)),s&&o.stopPropagation()},b.onMouseLeave=o=>{if(!o.currentTarget.contains(o.target))return;let s=!0;r.isPressed&&!r.ignoreEmulatedMouseEvents&&r.pointerType!=null&&(r.isOverTarget=!1,s=y(o,r.pointerType,!1),L(o)),s&&o.stopPropagation()},b.onMouseUp=o=>{o.currentTarget.contains(o.target)&&!r.ignoreEmulatedMouseEvents&&o.button===0&&R(o,r.pointerType||"mouse")};let d=o=>{if(o.button===0){if(r.isPressed=!1,I(),r.ignoreEmulatedMouseEvents){r.ignoreEmulatedMouseEvents=!1;return}r.target&&X(o,r.target)&&r.pointerType!=null?y(j(r.target,o),r.pointerType):r.target&&r.isOverTarget&&r.pointerType!=null&&y(j(r.target,o),r.pointerType,!1),r.isOverTarget=!1}};
1b.onTouchStart=o=>{if(!o.currentTarget.contains(o.target))return;let s=pr(o.nativeEvent);if(!s)return;r.activePointerId=s.identifier,r.ignoreEmulatedMouseEvents=!0,r.isOverTarget=!0,r.isPressed=!0,r.target=o.currentTarget,r.pointerType="touch",!l&&!c&&H(o.currentTarget),f||ze(r.target),w(o,r.pointerType)&&o.stopPropagation(),P(Z(o.currentTarget),"scroll",g,!0)},b.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(!r.isPressed){o.stopPropagation();return}let s=Je(o.nativeEvent,r.activePointerId),$=!0;s&&X(s,o.currentTarget)?!r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!0,$=w(o,r.pointerType)):r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!1,$=y(o,r.pointerType,!1),L(o)),$&&o.stopPropagation()},b.onTouchEnd=o=>{if(!o.currentTarget.contains(o.target))return;if(!r.isPressed){o.stopPropagation();return}let s=Je(o.nativeEvent,r.activePointerId),$=!0;s&&X(s,o.currentTarget)&&r.pointerType!=null?(R(o,r.pointerType),$=y(o,r.pointerType)):r.isOverTarget&&r.pointerType!=null&&($=y(o,r.pointerType,!1)),$&&o.stopPropagation(),r.isPressed=!1,r.activePointerId=null,r.isOverTarget=!1,r.ignoreEmulatedMouseEvents=!0,r.target&&!f&&ie(r.target),I()},b.onTouchCancel=o=>{o.currentTarget.contains(o.target)&&(o.stopPropagation(),r.isPressed&&S(o))};let g=o=>{r.isPressed&&o.target.contains(r.target)&&S({currentTarget:r.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};b.onDragStart=o=>{o.currentTarget.contains(o.target)&&S(o)}}return b},[P,l,c,I,f,S,L,y,w,R]);return p.useEffect(()=>()=>{var r;f||ie((r=h.current.target)!==null&&r!==void 0?r:void 0)},[f]),{isPressed:v||F,pressProps:G(K,ae)}}function De(e){return e.tagName==="A"&&e.hasAttribute("href")}function Pe(e,t){const{key:n,code:a}=e,i=t,u=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(i instanceof Z(i).HTMLInputElement&&!ct(i,n)||i instanceof Z(i).HTMLTextAreaElement||i.isContentEditable)&&!((u==="link"||!u&&De(i))&&n!=="Enter")}function pr(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Je(e,t){const n=e.changedTouches;for(let a=0;a<n.length;a++){const i=n[a];if(i.identifier===t)return i}return null}function j(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function br(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function vr(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function X(e,t){let n=t.getBoundingClientRect(),a=br(e);return vr(n,a)}function Te(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Qe(e,t){return e instanceof HTMLInputElement?!ct(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!De(e)}const gr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ct(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":gr.has(e.type)}class mr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function $r(e){let t=p.useRef({isFocused:!1,observer:null});Ce(()=>{const a=t.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let n=U(a=>{e==null||e(a)});return p.useCallback(a=>
1{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=a.target,u=l=>{t.current.isFocused=!1,i.disabled&&n(new mr("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",u,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let v=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:v})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:v}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function hr(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:i}=e;const u=p.useCallback(c=>{if(c.target===c.currentTarget)return a&&a(c),i&&i(!1),!0},[a,i]),l=$r(u),v=p.useCallback(c=>{const m=C(c.target);c.target===c.currentTarget&&m.activeElement===c.target&&(n&&n(c),i&&i(!0),l(c))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||a)?v:void 0,onBlur:!t&&(a||i)?u:void 0}}}let ne=null,yr=new Set,ee=new Map,W=!1,Se=!1;function Oe(e,t){for(let n of yr)n(e,t)}function Pr(e){return!(e.metaKey||!te()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ue(e){W=!0,Pr(e)&&(ne="keyboard",Oe("keyboard",e))}function D(e){ne="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(W=!0,Oe("pointer",e))}function ft(e){xe(e)&&(W=!0,ne="virtual")}function pt(e){e.target===window||e.target===document||(!W&&!Se&&(ne="virtual",Oe("virtual",e)),W=!1,Se=!1)}function bt(){W=!1,Se=!0}function Ze(e){if(typeof window>"u"||ee.get(Z(e)))return;const t=Z(e),n=C(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){W=!0,a.apply(this,arguments)},n.addEventListener("keydown",ue,!0),n.addEventListener("keyup",ue,!0),n.addEventListener("click",ft,!0),t.addEventListener("focus",pt,!0),t.addEventListener("blur",bt,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",D,!0),n.addEventListener("pointermove",D,!0),n.addEventListener("pointerup",D,!0)):(n.addEventListener("mousedown",D,!0),n.addEventListener("mousemove",D,!0),n.addEventListener("mouseup",D,!0)),t.addEventListener("beforeunload",()=>{vt(e)},{once:!0}),ee.set(t,{focus:a})}const vt=(e,t)=>{const n=Z(e),a=C(e);t&&a.removeEventListener("DOMContentLoaded",t),ee.has(n)&&(n.HTMLElement.prototype.focus=ee.get(n).focus,a.removeEventListener("keydown",ue,!0),a.removeEventListener("keyup",ue,!0),a.removeEventListener("click",ft,!0),n.removeEventListener("focus",pt,!0),n.removeEventListener("blur",bt,!1),typeof PointerEvent<"u"?(a.removeEventListener("pointerdown",D,!0),a.removeEventListener("pointermove",D,!0),a.removeEventListener("pointerup",D,!0)):(a.removeEventListener("mousedown",D,!0),a.removeEventListener("mousemove",D,!0),a.removeEventListener("mouseup",D,!0)),ee.delete(n))};function Tr(e){const t=C(e);let n;return t.readyState!=="loading"?Ze(e):(n=()=>{Ze(e)},t.addEventListener("DOMContentLoaded",n)),()=>vt(e,n)}typeof document<"u"&&Tr();function Er(){return ne}function et(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(a),t&&n.stopPropagation()}}function xr(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:et(e.onKeyDown),onKeyUp:et(e.onKeyUp)}}}function wr(e){const t=C(e);if(Er()==="virtual"){let n=t.activeElement;lt(()=>{t.activeElement===n&&e.isConnected&&H(e)})}else H(e)}let Sr=ke.createContext(null);function kr(e){let t=p.useContext(Sr)||{};dt(t,e);let{ref:n,...a}=t;return a}function Cr(e,t){let{focusProps:n}=hr(e),{keyboardProps:a}=xr(e),i=G(n,a),u=kr(t),l=e.isDisabled?{}:u,v=p.useRef(e.autoFocus);return p.useEffect(()=>{v.current&&t.current&&wr(t.current),v.current=!1},[t]),{focusableProps:G({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}function Lr(e,t,n){let{isDisabled:a=!1,isReadOnly:i=!1,value:u,name:l,children:v,"aria-label":c,"aria-labelledby":m,validationState:f="valid",isInvalid:O}
1=e,K=L=>{L.stopPropagation(),t.setSelected(L.target.checked)},F=v!=null,T=c!=null||m!=null;!F&&!T&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:h,isPressed:P}=Xe({isDisabled:a}),{pressProps:I,isPressed:w}=Xe({isDisabled:a||i,onPress(){t.toggle()}}),{focusableProps:y}=Cr(e,n),R=G(h,y),S=tr(e,{labelable:!0});return cr(n,t.isSelected,t.setSelected),{labelProps:G(I,{onClick:L=>L.preventDefault()}),inputProps:G(S,{"aria-invalid":O||f==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:K,disabled:a,...u==null?{}:{value:u},name:l,type:"checkbox",...R}),isSelected:t.isSelected,isPressed:P||w,isDisabled:a,isReadOnly:i,isInvalid:O||f==="invalid"}}function gt(e={}){let{isReadOnly:t}=e,[n,a]=_t(e.isSelected,e.defaultSelected||!1,e.onChange);function i(l){t||a(l)}function u(){t||a(!n)}return{isSelected:n,setSelected:i,toggle:u}}function mt(e,t,n){let a=rt({...e,value:t.isSelected}),{isInvalid:i,validationErrors:u,validationDetails:l}=a.displayValidation,{labelProps:v,inputProps:c,isSelected:m,isPressed:f,isDisabled:O,isReadOnly:K}=Lr({...e,isInvalid:i},t,n);Ut(e,a,n);let{isIndeterminate:F,isRequired:T,validationBehavior:h="aria"}=e;return p.useEffect(()=>{n.current&&(n.current.indeterminate=!!F)}),{labelProps:v,inputProps:{...c,checked:m,"aria-required":T&&h==="aria"||void 0,required:T&&h==="native"},isSelected:m,isPressed:f,isDisabled:O,isReadOnly:K,isInvalid:i,validationErrors:u,validationDetails:l}}const Dr=new WeakMap;function Or(e,t,n){const a=gt({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(P){P?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(P)}});let{name:i,descriptionId:u,errorMessageId:l,validationBehavior:v}=Dr.get(t);var c;v=(c=e.validationBehavior)!==null&&c!==void 0?c:v;let{realtimeValidation:m}=rt({...e,value:a.isSelected,name:void 0,validationBehavior:"aria"}),f=p.useRef(Ht),O=()=>{t.setInvalid(e.value,m.isInvalid?m:f.current)};p.useEffect(O);let K=t.realtimeValidation.isInvalid?t.realtimeValidation:m,F=v==="native"?t.displayValidation:K;var T;let h=mt({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(T=e.isRequired)!==null&&T!==void 0?T:t.isRequired,validationBehavior:v,[Gt]:{realtimeValidation:K,displayValidation:F,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(P){f.current=P,O()}}},a,n);return{...h,inputProps:{...h.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,u].filter(Boolean).join(" ")||void 0}}}var[qr,Ir]=Ot({name:"CheckboxGroupContext",strict:!1});function Rr(e){const{isSelected:t,disableAnimation:n,...a}=e;return M.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...a,children:M.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function Mr(e){const{isSelected:t,disableAnimation:n,...a}=e;return M.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...a,children:M.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Kr(e){const{isIndeterminate:t,...n}=e,a=t?Mr:Rr;return M.jsx(a,{...n})}function _r(e={}){var t,n,a,i,u,l,v,c;const m=It(),f=Ir(),O=!!f,{as:K,ref:F,value:T="",children:h,icon:P,name:I,isRequired:w,isReadOnly:y=!1,autoFocus:R=!1,isSelected:S,size:L=(t=f==null?void 0:f.size)!=null?t:"md",color:ae=(n=f==null?void 0:f.color)!=null?n:"primary",radius:r=f==null?void 0:f.radius,lineThrough:b=(a=f==null?void 0:f.lineThrough)!=null?a:!1,isDisabled:E=(i=f==null?void 0:f.isDisabled)!=null?i:!1,disableAnimation:d=(l=(u=f==null?void 0:f.disableAnimation)!=null?u:m==null?void 0:m.disableAnimation)!=null?l:!1,validationState:g,isInvalid:o=g?g==="invalid":(v=f==null?void 0:f.isInvalid)!=null?v:!1,isIndeterminate:s=!1,validationBehavior:$=(c=f==null?void 0:f.validationBehavior)!=null?c:"aria",defaultSelected:_,classNames:x,className:ht,onValueChange:Ie,...q}=e;f&&At&&(S&&Ge("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),_&&Ge("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const yt=K||"label",Pt=p.useRef(null),z=p.useRef(null);let fe=e.onChange;O&&(fe=He(()=>{f.groupState.resetValidation()},fe));const pe=p.useId(),be=p.useMemo(()=>({name:I,value:T,children:h,autoFocus:R,defaultSelected:_,validationBehavior:$,isIndeterminate:s,isRequired:w,isInvalid:o,isSelected:S,isDisabled:E,isReadOnly:y,"aria-label":Bt(q["aria-label"],h),"aria-labelledby":q["aria-labelledby"]||pe,onChange:Ie}),[T,I,pe,h,R,o,s,E,y,S,_,$,q["aria-label"],q["aria-labelledby"],Ie]),Re=gt(be),{inputProps:N,isSelected:Y,isDisabled:A,isReadOnly:ve,isPressed:Tt}=O?Or({...be},f.groupState,z):mt({...be},Re,z),Me=A||ve,[Et,Ke]=p.useState(!1),{pressProps:_e}=Rt({isDisabled:Me,onPressStart(k){k.pointerType!=="keyboard"&&Ke(!0)},onPressEnd(k){k.pointerType!=="keyboard"&&Ke(!1)}}),Fe=Me?!1:Et||Tt,{hoverProps:Ae,isHovered:ge}=Mt({isDisabled:N.disabled}),{focusProps:Ve,isFocused:me,isFocusVisible:$e}=Kt({autoFocus:N.autoFocus}),B=p.useMemo(()=>zt({color:ae,size:L,radius:r,isInvalid:o,lineThrough:b,isDisabled:A,disableAnimation:d}),[ae,L,r,o,b,A,d]);Wt(()=>{if(!z.current)return;const k=!!z.current.checked;Re.setSelected(k)},[z.current]);const he=jt(fe),je=p.useCallback(k=>{if(ve||A){k.preventDefault();return}he==null||he(k)},[ve,A,he]),Be=ye(x==null?void 0:x.base,ht),xt=p.useCallback(()=>({ref:Pt,className:B.base({class:Be}),"data-disabled":V(A),"data-selected":V(Y||s),"data-invalid":V(o),"data-hover":V(ge),"data-focus":V(me),"data-pressed":V(Fe),"data-readonly":V(N.readOnly),"data-focus-visible":V($e),"data-indeterminate":V(s),...Ue(Ae,_e,q)}),[B,Be,A,Y,s,o,ge,me,Fe,N.readOnly,$e,Ae,_e,q]),wt=p.useCallback((k={})=>
1({...k,"aria-hidden":!0,className:ye(B.wrapper({class:ye(x==null?void 0:x.wrapper,k==null?void 0:k.className)}))}),[B,x==null?void 0:x.wrapper]),St=p.useCallback(()=>({ref:Nt(z,F),...Ue(N,Ve),onChange:He(N.onChange,je)}),[N,Ve,je]),kt=p.useCallback(()=>({id:pe,className:B.label({class:x==null?void 0:x.label})}),[B,x==null?void 0:x.label,A,Y,o]),Ct=p.useCallback(()=>({isSelected:Y,isIndeterminate:s,disableAnimation:d,className:B.icon({class:x==null?void 0:x.icon})}),[B,x==null?void 0:x.icon,Y,s,d]);return{Component:yt,icon:P,children:h,isSelected:Y,isDisabled:A,isInvalid:o,isFocused:me,isHovered:ge,isFocusVisible:$e,getBaseProps:xt,getWrapperProps:wt,getInputProps:St,getLabelProps:kt,getIconProps:Ct}}var $t=Vt((e,t)=>{const{Component:n,children:a,icon:i=M.jsx(Kr,{}),getBaseProps:u,getWrapperProps:l,getInputProps:v,getIconProps:c,getLabelProps:m}=_r({...e,ref:t}),f=typeof i=="function"?i(c()):p.cloneElement(i,c());return M.jsxs(n,{...u(),children:[M.jsx(qt,{elementType:"span",children:M.jsx("input",{...v()})}),M.jsx("span",{...l(),children:f}),a&&M.jsx("span",{...m(),children:a})]})});$t.displayName="NextUI.Checkbox";var zr=$t;export{Lr as $,gt as a,zr as c};

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.