PageSourceSearch

https://admin.propertyprotect.com/assets/import-CwK7aghm.js

js propertyprotect.com collected 2026-10-02 01:41:13 UTC 15,557 bytes, 1 lines download raw bytes

1import{r as Q}from"./components-DRS3ZNdV.js";import{r as g}from"./jsx-runtime-BgQc5Su6.js";import{j as Z,k as _,d as V,l as ee,m as W,c as J,n as te,o as le,p as ie,q,r as Y,s as oe,t as ne,u as re,v as X}from"./import-CA6vSH2m.js";import{$ as se,a as ae}from"./import-DFNu2rli.js";import{$ as ce,a as ue,b as fe}from"./import-BrLCZZlL.js";import{$ as de}from"./import-C5ysotpi.js";function z(s){return oe()?s.altKey:s.ctrlKey}function R(s){return ne()?s.metaKey:s.ctrlKey}const ye=1e3;function he(s){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=s,a=g.useRef({search:"",timeout:null}).current,n=r=>{let u=ge(r.key);if(!u||r.ctrlKey||r.metaKey||!r.currentTarget.contains(r.target))return;u===" "&&a.search.trim().length>0&&(r.preventDefault(),"continuePropagation"in r||r.stopPropagation()),a.search+=u;let d=e.getKeyForSearch(a.search,t.focusedKey);d==null&&(d=e.getKeyForSearch(a.search)),d!=null&&(t.setFocusedKey(d),l&&l(d)),clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},ye)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?n:null}}}function ge(s){return s.length===1||!/^[A-Z]/i.test(s)?s:""}function pe(s){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:a=!1,shouldFocusWrap:n=!1,disallowEmptySelection:r=!1,disallowSelectAll:u=!1,selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:p=!1,shouldUseVirtualFocus:K,allowsTabNavigation:v=!1,isVirtualized:b,scrollRef:f=l,linkBehavior:F="action"}=s,{direction:m}=se(),h=Z(),k=i=>{if(i.altKey&&i.key==="Tab"&&i.preventDefault(),!l.current.contains(i.target))return;const y=(c,A)=>{if(c!=null){if(e.isLink(c)&&F==="selection"&&d&&!z(i)){Q.flushSync(()=>{e.setFocusedKey(c,A)});let I=f.current.querySelector(`[data-key="${CSS.escape(c.toString())}"]`);h.open(I,i);return}if(e.setFocusedKey(c,A),e.isLink(c)&&F==="override")return;i.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(c):d&&!z(i)&&e.replaceSelection(c)}};switch(i.key){case"ArrowDown":if(t.getKeyBelow){var S,$;i.preventDefault();let c=e.focusedKey!=null?t.getKeyBelow(e.focusedKey):(S=t.getFirstKey)===null||S===void 0?void 0:S.call(t);c==null&&n&&(c=($=t.getFirstKey)===null||$===void 0?void 0:$.call(t,e.focusedKey)),y(c)}break;case"ArrowUp":if(t.getKeyAbove){var w,P;i.preventDefault();let c=e.focusedKey!=null?t.getKeyAbove(e.focusedKey):(w=t.getLastKey)===null||w===void 0?void 0:w.call(t);c==null&&n&&(c=(P=t.getLastKey)===null||P===void 0?void 0:P.call(t,e.focusedKey)),y(c)}break;case"ArrowLeft":if(t.getKeyLeftOf){var N,o;i.preventDefault();let c=t.getKeyLeftOf(e.focusedKey);c==null&&n&&(c=m==="rtl"?(N=t.getFirstKey)===null||N===void 0?void 0:N.call(t,e.focusedKey):(o=t.getLastKey)===null||o===void 0?void 0:o.call(t,e.focusedKey)),y(c,m==="rtl"?"first":"last")}break;case"ArrowRight":if(t.getKeyRightOf){var O,U;i.preventDefault();let c=t.getKeyRightOf(e.focusedKey);c==null&&n&&(c=m==="rtl"?(O=t.getLastKey)===null||O===void 0?void 0:O.call(t,e.focusedKey):(U=t.getFirstKey)===null||U===void 0?void 0:U.call(t,e.focusedKey)),y(c,m==="rtl"?"last":"first")}break;case"Home":if(t.getFirstKey){i.preventDefault();let c=t.getFirstKey(e.focusedKey,R(i));e.setFocusedKey(c),R(i)&&i.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(c):d&&e.replaceSelection(c)}break;case"End":if(t.getLastKey){i.preventDefault();let c=t.getLastKey(e.focusedKey,R(i));e.setFocusedKey(c),R(i)&&i.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(c):d&&e.replaceSelection(c)}break;case"PageDown":if(t.getKeyPageBelow){i.preventDefault();let c=t.getKeyPageBelow(e.focusedKey);y(c)}break;case"PageUp":if(t.getKeyPageAbove){i.preventDefault();let c=t.getKeyPageAbove(e.focusedKey);y(c)}break;case"a":R(i)&&e.selectionMode==="multiple"&&u!==!0&&(i.preventDefault(),e.selectAll());break;case"Escape":i.preventDefault(),r||e.clearSelection();break;case"Tab":if(!v){if(i.shiftKey)l.current.focus();else{let c=re(l.current,{tabbable:!0}),A,I;do I=c.lastChild(),I&&(A=I);
1while(I);A&&!A.contains(document.activeElement)&&X(A)}break}}},x=g.useRef({top:0,left:0});_(f,"scroll",b?null:()=>{x.current={top:f.current.scrollTop,left:f.current.scrollLeft}});let E=i=>{if(e.isFocused){i.currentTarget.contains(i.target)||e.setFocused(!1);return}if(i.currentTarget.contains(i.target)){if(e.setFocused(!0),e.focusedKey==null){let $=P=>{P!=null&&(e.setFocusedKey(P),d&&e.replaceSelection(P))},w=i.relatedTarget;var y,S;w&&i.currentTarget.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?$((y=e.lastSelectedKey)!==null&&y!==void 0?y:t.getLastKey()):$((S=e.firstSelectedKey)!==null&&S!==void 0?S:t.getFirstKey())}else b||(f.current.scrollTop=x.current.top,f.current.scrollLeft=x.current.left);if(!b&&e.focusedKey!=null){let $=f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);$&&($.contains(document.activeElement)||X($),Y()==="keyboard"&&W($,{containingElement:l.current}))}}},T=i=>{i.currentTarget.contains(i.relatedTarget)||e.setFocused(!1)};const D=g.useRef(a);g.useEffect(()=>{if(D.current){let i=null;a==="first"&&(i=t.getFirstKey()),a==="last"&&(i=t.getLastKey());let y=e.selectedKeys;if(y.size){for(let S of y)if(e.canSelectItem(S)){i=S;break}}e.setFocused(!0),e.setFocusedKey(i),i==null&&!K&&V(l.current)}},[]);let M=g.useRef(e.focusedKey);g.useEffect(()=>{let i=Y();if(e.isFocused&&e.focusedKey!=null&&(f!=null&&f.current)){let y=f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);y&&(i==="keyboard"||D.current)&&(b||ee(f.current,y),i!=="virtual"&&W(y,{containingElement:l.current}))}e.isFocused&&e.focusedKey==null&&M.current!=null&&V(l.current),M.current=e.focusedKey,D.current=!1},[b,f,e.focusedKey,e.isFocused,l]);let C={onKeyDown:k,onFocus:E,onBlur:T,onMouseDown(i){f.current===i.target&&i.preventDefault()}},{typeSelectProps:L}=he({keyboardDelegate:t,selectionManager:e});p||(C=J(L,C));let B;return K||(B=e.focusedKey==null?0:-1),{collectionProps:{...C,tabIndex:B}}}function Pe(s){let{selectionManager:e,key:t,ref:l,shouldSelectOnPressUp:a,shouldUseVirtualFocus:n,focus:r,isDisabled:u,onAction:d,allowsDifferentPressOrigin:p,linkBehavior:K="action"}=s,v=Z(),b=o=>{if(o.pointerType==="keyboard"&&z(o))e.toggleSelection(t);else{if(e.selectionMode==="none")return;if(e.isLink(t)){if(K==="selection"){v.open(l.current,o),e.setSelectedKeys(e.selectedKeys);return}else if(K==="override"||K==="none")return}e.selectionMode==="single"?e.isSelected(t)&&!e.disallowEmptySelection?e.toggleSelection(t):e.replaceSelection(t):o&&o.shiftKey?e.extendSelection(t):e.selectionBehavior==="toggle"||o&&(R(o)||o.pointerType==="touch"||o.pointerType==="virtual")?e.toggleSelection(t):e.replaceSelection(t)}};g.useEffect(()=>{t===e.focusedKey&&e.isFocused&&!n&&(r?r():document.activeElement!==l.current&&V(l.current))},[l,t,e.focusedKey,e.childFocusStrategy,e.isFocused,n]),u=u||e.isDisabled(t);let f={};!n&&!u?f={tabIndex:t===e.focusedKey?0:-1,onFocus(o){o.target===l.current&&e.setFocusedKey(t)}}:u&&(f.onMouseDown=o=>{o.preventDefault()});let F=e.isLink(t)&&K==="override",m=e.isLink(t)&&K!=="selection"&&K!=="none",h=!u&&e.canSelectItem(t)&&!F,k=(d||m)&&!u,x=k&&(e.selectionBehavior==="replace"?!h:!h||e.isEmpty),E=k&&h&&e.selectionBehavior==="replace",T=x||E,D=g.useRef(null),M=T&&h,C=g.useRef(!1),L=g.useRef(!1),B=o=>{d&&d(),m&&v.open(l.current,o)},i={};a?(i.onPressStart=o=>{D.current=o.pointerType,C.current=M,o.pointerType==="keyboard"&&(!T||j())&&b(o)},p?(i.onPressUp=x?null:o=>{o.pointerType!=="keyboard"&&h&&b(o)},i.onPress=x?B:null):i.onPress=o=>{if(x||E&&o.pointerType!=="mouse"){if(o.pointerType==="keyboard"&&!H())return;B(o)}else o.pointerType!=="keyboard"&&h&&b(o)}):(i.onPressStart=o=>{D.current=o.pointerType,C.current=M,L.current=x,h&&(o.pointerType==="mouse"&&!x||o.pointerType==="keyboard"&&(!k||j()))&&b(o)},i.onPress=o=>{(o.pointerType==="touch"||o.pointerType==="pen"||o.pointerType==="virtual"||o.pointerType==="keyboard"&&T&&H()||o.pointerType==="mouse"&&L.current)&&(T?B(o):h&&b(o))}),f["data-key"]=t,i.preventFocusOnPress=n;let{pressProps:y,isPressed:S}=te(i),$=E?o=>{D.current==="mouse"&&(o.stopPropagation(),o.preventDefault(),B(o))}:void 0,{longPressProps:w}=le({isDisabled:!M,onLongPress(o){o.pointerType==="touch"&&(b(o),e.setSelectionBehavior("toggle"))}}),P=o=>{D.current==="touch"&&C.current&&o.preventDefault()},N=e.isLink(t)?o=>{ie.isOpening||o.preventDefault()}:void 0;return{itemProps:J(f,h||x?y:{},M?w:{},{onDoubleClick:$,onDragStartCapture:P,onClick:N}),isPressed:S,isSelected:e.isSelected(t),isFocused:e.isFocused&&e.focusedKey===t,isDisabled:u,allowsSelection:h,hasAction:T}}function H(){let s=window.event;return(s==null?void 0:s.key)==="Enter"}function j(){let s=window.event;return(s==null?void 0:s.key)===" "||(s==null?void 0:s.code)==="Space"}class Ke{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,l){let a=this.getItem(e);if(!a)return null;let n=a.getBoundingClientRect();do e=t(e),a=this.getItem(e);while(a&&l(n,a.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}
1getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,t=>this.getNextColumn(t,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,t=>this.getNextColumn(t,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let t=this.collection.getItem(e);if((t==null?void 0:t.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let t=this.ref.current,l=this.getItem(e);if(!l)return null;if(!q(t))return this.getFirstKey();let a=t.getBoundingClientRect(),n=l.getBoundingClientRect();if(this.orientation==="horizontal"){let r=a.x-t.scrollLeft,u=Math.max(0,n.x-r+n.width-a.width);for(;l&&n.x-r>u;)e=this.getKeyAbove(e),l=e==null?null:this.getItem(e),n=l==null?void 0:l.getBoundingClientRect()}else{let r=a.y-t.scrollTop,u=Math.max(0,n.y-r+n.height-a.height);for(;l&&n.y-r>u;)e=this.getKeyAbove(e),l=e==null?null:this.getItem(e),n=l==null?void 0:l.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.getItem(e);if(!l)return null;if(!q(t))return this.getLastKey();let a=t.getBoundingClientRect(),n=l.getBoundingClientRect();if(this.orientation==="horizontal"){let r=a.x-t.scrollLeft,u=Math.min(t.scrollWidth,n.x-r-n.width+a.width);for(;l&&n.x-r<u;)e=this.getKeyBelow(e),l=e==null?null:this.getItem(e),n=l==null?void 0:l.getBoundingClientRect()}else{let r=a.y-t.scrollTop,u=Math.min(t.scrollHeight,n.y-r-n.height+a.height);for(;l&&n.y-r<u;)e=this.getKeyBelow(e),l=e==null?null:this.getItem(e),n=l==null?void 0:l.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,a=t||this.getFirstKey();for(;a!=null;){let n=l.getItem(a),r=n.textValue.slice(0,e.length);if(n.textValue&&this.collator.compare(r,e)===0)return a;a=this.getKeyBelow(a)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.orientation=t.orientation,this.direction=t.direction,this.layout=t.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Fe(s){let{selectionManager:e,collection:t,disabledKeys:l,ref:a,keyboardDelegate:n}=s,r=ae({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,d=g.useMemo(()=>n||new Ke(t,u==="selection"?new Set:l,a,r),[n,t,l,a,r,u]),{collectionProps:p}=pe({...s,ref:a,selectionManager:e,keyboardDelegate:d});return{listProps:p}}class G{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t=n=>{if(this.keyMap.set(n.key,n),n.childNodes&&n.type==="section")for(let r of n.childNodes)t(r)};for(let n of e)t(n);let l,a=0;for(let[n,r]of this.keyMap)l?(l.nextKey=n,r.prevKey=l.key):(this.firstKey=n,r.prevKey=void 0),r.type==="item"&&(r.index=a++),l=r,l.nextKey=void 0;this.lastKey=l==null?void 0:l.key}}function be(s){let{filter:e}=s,t=ce(s),l=g.useMemo(()=>s.disabledKeys?new Set(s.disabledKeys):new Set,[s.disabledKeys]),a=g.useCallback(p=>e?new G(e(p)):new G(p),[e]),n=g.useMemo(()=>({suppressTextValueWarning:s.suppressTextValueWarning}),[s.suppressTextValueWarning]),r=ue(s,a,n),u=g.useMemo(()=>new fe(r,t),[r,t]);const d=g.useRef(null);return g.useEffect(()=>{if(t.focusedKey!=null&&!r.getItem(t.focusedKey)){const p=d.current.getItem(t.focusedKey),K=[...d.current.getKeys()].map(m=>{const h=d.current.getItem(m);return h.type==="item"?h:null}).filter(m=>m!==null),v=[...r.getKeys()].map(m=>{const h=r.getItem(m);return h.type==="item"?h:null}).filter(m=>m!==null),b=K.length-v.length;let f=Math.min(b>1?Math.max(p.index-b+1,0):p.index,v.length-1),F;for(;f>=0;){if(!u.isDisabled(v[f].key)){F=v[f];break}f<v.length-1?f++:(f>p.index&&(f=p.index),f--)}t.setFocusedKey(F?F.key:null)}d.current=r},[r,u,t,t.focusedKey]),{collection:r,disabledKeys:l,selectionManager:u}}function De(s){var e;let[t,l]=de(s.selectedKey,(e=s.defaultSelectedKey)!==null&&e!==void 0?e:null,s.onSelectionChange),a=g.useMemo(()=>t!=null?[t]:[],[t]),{collection:n,disabledKeys:r,selectionManager:u}=be({...s,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:a,onSelectionChange:p=>{var K;let v=(K=p.values().next().value)!==null&&K!==void 0?K:null;v===t&&s.onSelectionChange&&s.onSelectionChange(v),l(v)}}),d=t!=null?n.getItem(t):null;return{collection:n,disabledKeys:r,selectionManager:u,selectedKey:t,setSelectedKey:l,selectedItem:d}}export{De as $,G as a,Ke as b,pe as c,Pe as d,be as e,he as f,Fe as 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.