PageSourceSearch

https://app.flexiple.com/assets/Autocomplete-B4S55t4C.js

js flexiple.com collected 2026-10-02 04:24:15 UTC 9,709 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d495-3f4a-0000-290a-2c30f385bc4f";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="34e91de2-f07a-5f8c-ac61-9f404ba43e6f")}catch(e){}}();import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{r as t}from"./jsx-runtime-CkaNx6Tr.js";import{A as n,D as r,O as i,Q as a,U as o,V as s,X as c,Y as l,ct as ee,dt as te,et as u,ht as ne,lt as re,ot as d,pt as ie,st as f}from"./Button-DAw2bPaJ.js";import{a as p,c as ae,l as oe,n as se,o as m,r as ce,s as le,t as ue,u as h}from"./useLabels-CwMNtYGA.js";import{i as de,r as fe}from"./animation-CC_iBhNd.js";var g={};g={collectionLabel:`مقترحات`};var _={};_={collectionLabel:`Предложения`};var v={};v={collectionLabel:`Návrhy`};var y={};y={collectionLabel:`Forslag`};var b={};b={collectionLabel:`Empfehlungen`};var x={};x={collectionLabel:`Προτάσεις`};var S={};S={collectionLabel:`Suggestions`};var C={};C={collectionLabel:`Sugerencias`};var w={};w={collectionLabel:`Soovitused`};var T={};T={collectionLabel:`Ehdotukset`};var E={};E={collectionLabel:`Suggestions`};var D={};D={collectionLabel:`הצעות`};var O={};O={collectionLabel:`Prijedlozi`};var k={};k={collectionLabel:`Javaslatok`};var A={};A={collectionLabel:`Suggerimenti`};var j={};j={collectionLabel:`候補`};var M={};M={collectionLabel:`제안`};var N={};N={collectionLabel:`Pasiūlymai`};var P={};P={collectionLabel:`Ieteikumi`};var F={};F={collectionLabel:`Forslag`};var I={};I={collectionLabel:`Suggesties`};var L={};L={collectionLabel:`Sugestie`};var R={};R={collectionLabel:`Sugestões`};var z={};z={collectionLabel:`Sugestões`};var B={};B={collectionLabel:`Sugestii`};var V={};V={collectionLabel:`Предложения`};var H={};H={collectionLabel:`Návrhy`};var U={};U={collectionLabel:`Predlogi`};var W={};W={collectionLabel:`Predlozi`};var G={};G={collectionLabel:`Förslag`};var K={};K={collectionLabel:`Öneriler`};var q={};q={collectionLabel:`Пропозиції`};var J={};J={collectionLabel:`建议`};var Y={};Y={collectionLabel:`建議`};var pe={};pe={"ar-AE":g,"bg-BG":_,"cs-CZ":v,"da-DK":y,"de-DE":b,"el-GR":x,"en-US":S,"es-ES":C,"et-EE":w,"fi-FI":T,"fr-FR":E,"he-IL":D,"hr-HR":O,"hu-HU":k,"it-IT":A,"ja-JP":j,"ko-KR":M,"lt-LT":N,"lv-LV":P,"nb-NO":F,"nl-NL":I,"pl-PL":L,"pt-BR":R,"pt-PT":z,"ro-RO":B,"ru-RU":V,"sk-SK":H,"sl-SI":U,"sr-SP":W,"sv-SE":G,"tr-TR":K,"uk-UA":q,"zh-CN":J,"zh-TW":Y};var me=Symbol.for(`react-aria.i18n.locale`),he=Symbol.for(`react-aria.i18n.strings`),X=void 0,Z=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=ge(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[me];if(X===void 0){let t=window[he];if(!t)return null;X={};for(let r in t)X[r]=new e({[n]:t[r]},n)}let r=X?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function ge(e,t,n=`en-US`){if(t[e])return t[e];let r=_e(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function _e(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}var Q=new Map,ve=new Map,ye=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=Q.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Q.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=ve.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),ve.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},$=e(t(),1),be=new WeakMap;function xe(e){let t=be.get(e);return t||(t=new Z(e),be.set(e,t)),t}function Se(e,t){return t&&Z.getGlobalDictionaryForPackage(t)||xe(e)}function Ce(e,t){let{locale:n}
1=de(),r=Se(e,t);return(0,$.useMemo)(()=>new ye(n,r),[n,r])}function we(e){return e&&e.__esModule?e.default:e}function Te(e,t){let{inputRef:u,collectionRef:d,filter:f,disableAutoFocusFirst:de=!1,disableVirtualFocus:fe=!1}=e,g=ie(),_=(0,$.useRef)(void 0),v=(0,$.useRef)(!1),y=(0,$.useRef)(null),[b,x]=(0,$.useState)(!(i()===`virtual`&&(o()||s()))&&!fe),[S,C]=(0,$.useState)(!1),[w,T]=(0,$.useState)(!1);(0,$.useEffect)(()=>()=>clearTimeout(_.current),[]);let E=r(e=>{!e.isTrusted&&b&&u.current&&l(a(u.current))!==u.current&&n()!==`touch`&&u.current.focus();let r=c(e);e.isTrusted||!r||y.current===r.id||(clearTimeout(_.current),r===d.current?y.current&&!document.getElementById(y.current)&&(y.current=null,t.setFocusedNodeId(null)):v.current?(y.current=r.id,_.current=setTimeout(()=>{t.setFocusedNodeId(r.id)},500)):(y.current=r.id,t.setFocusedNodeId(r.id)),v.current=!1)}),[D,O]=(0,$.useState)(null),k=(0,$.useCallback)(e=>{O(e),e==null?C(!1):(e.getAttribute(`tabindex`)!=null&&x(!1),C(!0))},[]);ne(()=>(D?.addEventListener(`focusin`,E),()=>{D?.removeEventListener(`focusin`,E)}),[D]);let A=ee((0,$.useMemo)(()=>te(d,k),[d,k])),j=(0,$.useCallback)(()=>{if(!d.current){T(!0);return}v.current=!0,d.current?.dispatchEvent(new CustomEvent(h,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))},[d]),M=(0,$.useCallback)(e=>{T(!1),ae(l()),y.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(oe,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(_.current),v.current=!1,d.current?.dispatchEvent(n)},[d,t]),N=(0,$.useRef)(``);se(u,`beforeinput`,e=>{let{inputType:t}=e;N.current=t});let P=e=>{(N.current===`insertText`||N.current===`insertCompositionText`||N.current===`insertFromComposition`)&&!de?j():N.current&&(N.current.includes(`insert`)||N.current.includes(`delete`)||N.current.includes(`history`))&&(M(!0),le(document)===u.current&&p(u.current,null)),t.setInputValue(e)},F=(0,$.useRef)(null),I=e=>{if(F.current=c(e),e.nativeEvent.isComposing)return;let t=y.current;switch(t!==null&&a(u.current).getElementById(t)==null&&(y.current=null,t=null),e.key){case`a`:if(ce(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(h,{cancelable:!0,bubbles:!0});d.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let n=!0;if(d.current!==null)if(t==null)n=d.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let r=document.getElementById(t);r&&(n=r?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}if(n)switch(e.key){case`ArrowLeft`:case`ArrowRight`:M();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent));break}else e.preventDefault()},L=r(e=>{if(c(e)===F.current){e.stopImmediatePropagation();let t=y.current;t==null?d.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});(0,$.useEffect)(()=>(document.addEventListener(`keyup`,L,!0),()=>{document.removeEventListener(`keyup`,L,!0)}),[]);let R=ue({id:g,"aria-label":Ce(we(pe),`@react-aria/autocomplete`).format(`collectionLabel`)}),z=(0,$.useCallback)((e,n)=>!f||f(e,t.inputValue,n),[t.inputValue,f]),B=e=>{if(!e.isTrusted)return;let t=y.current?document.getElementById(y.current):null;t&&m(t,e.relatedTarget)},V=e=>{if(e.isTrusted&&y.current&&document.getElementById(y.current)){let t=c(e);queueMicrotask(()=>{m(t,d.current),p(d.current,t)})}},H=e=>{e.button!==0||e.pointerType===`touch`||y.current==null||u.current==null||c(e)===u.current&&M()},U={value:t.inputValue,onChange:P},W={onKeyDown:I,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:B,onFocus:V,onPointerDown:H};return U={...U,...b&&S&&W,enterKeyHint:`go`,"aria-controls":S?g:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spell
1Check:`false`,autoComplete:`off`},{inputProps:U,collectionProps:re(R,{shouldUseVirtualFocus:b,disallowTypeAhead:b,autoFocus:w?`first`:!1}),collectionRef:A,filter:f==null?void 0:z}}function Ee(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=(0,$.useState)(null),[s,c]=fe(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}var De=(0,$.createContext)(null),Oe=(0,$.createContext)(null),ke=(0,$.createContext)(null),Ae=(0,$.createContext)(null);function je(e){e=re(f(De,e.slot),e);let{filter:t,disableAutoFocusFirst:n}=e,r=Ee(e),i=(0,$.useRef)(null),a=(0,$.useRef)(null),{inputProps:o,collectionProps:s,collectionRef:c,filter:l}=Te({...d(e),filter:t,disableAutoFocusFirst:n,inputRef:i,collectionRef:a},r);return $.createElement(u,{values:[[Oe,r],[Ae,{...o,ref:i}],[ke,{...s,filter:l,ref:c}]]},e.children)}export{ye as a,Ce as i,Ae as n,Z as o,ke as r,je as t};
2//# sourceMappingURL=Autocomplete-B4S55t4C.js.map
3//# chunkId=34e91de2-f07a-5f8c-ac61-9f404ba43e6f

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.