PageSourceSearch

https://openlover.ai/_nuxt/D8xveEIG.js

js openlover.ai collected 2026-10-05 12:23:52 UTC 3,525 bytes, 1 lines download raw bytes

1import{B as e}from"./C99-hGBY.js";import{b as a,c as l,e as o,d as n,bu as t,h as s,t as r,f as i,Q as c,F as d,r as u,K as g,B as h,C as p,l as m,m as b,q as v,x as f,bk as _}from"./DQ8Q0yk1.js";import{M as w}from"./DHJDDJB5.js";const k={width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const x={render:function(e,n){return a(),l("svg",k,[...n[0]||(n[0]=[o("path",{d:"m6 6 12 12M6 18 18 6",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}},y={width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const L={render:function(e,n){return a(),l("svg",y,[...n[0]||(n[0]=[o("path",{d:"M12.004 2a9.97 9.97 0 0 1 7.071 2.929A9.97 9.97 0 0 1 22.004 12a9.97 9.97 0 0 1-2.929 7.071A9.97 9.97 0 0 1 12.004 22a9.97 9.97 0 0 1-7.071-2.929A9.97 9.97 0 0 1 2.003 12a9.97 9.97 0 0 1 2.93-7.071A9.97 9.97 0 0 1 12.003 2Zm4.498 6.44a.75.75 0 0 0-1.059.062l-4.773 5.37-2.106-2.37a.75.75 0 1 0-1.12.996l2.666 3a.75.75 0 0 0 1.121 0l5.333-6a.75.75 0 0 0-.062-1.059Z",fill:"#fff"},null,-1)])])}},C=["aria-labelledby"],S={class:"language-selector-modal__header"},M=["id"],A=["aria-label"],j={class:"language-selector-modal__option-label"}
1,F={key:0,class:"language-selector-modal__check","aria-hidden":"true"},B=n({__name:"LanguageSelectorModal",props:{title:{},closeAriaLabel:{},currentLocale:{},items:{},onSelect:{type:Function},onClose:{type:Function}},setup(n){const v=n,f=t(),_=m(null),w=b(()=>null!==_.value);function k(){w.value||v.onClose()}return(t,m)=>(a(),l("section",{class:"language-selector-modal",role:"dialog","aria-modal":"true","aria-labelledby":s(f)},[o("header",S,[o("h2",{id:s(f),class:"language-selector-modal__title"},r(n.title),9,M),i(e,{variant:"ghost",size:"small",shape:"pill",class:"language-selector-modal__close","aria-label":n.closeAriaLabel,disabled:w.value,onClick:k},{default:c(()=>[i(s(x),{"aria-hidden":"true"})]),_:1},8,["aria-label","disabled"])]),o("div",{class:"language-selector-modal__list",role:"radiogroup","aria-label":n.title},[(a(!0),l(d,null,u(n.items,t=>(a(),g(e,{key:t.code,variant:"ghost",size:"large",shape:"rounded",block:"","content-layout":"between",class:p(["language-selector-modal__option",{"language-selector-modal__option--active":t.code===n.currentLocale}]),disabled:w.value,loading:_.value===t.code,role:"radio","aria-checked":t.code===n.currentLocale,onClick:e=>async function(e){if(!w.value&&e!==v.currentLocale){_.value=e;try{await v.onSelect(e),v.onClose()}catch(a){console.error("[LanguageSelectorModal] Failed to switch locale:",a)}finally{_.value=null}}}(t.code)},{default:c(()=>[o("span",j,r(t.label),1),t.code===n.currentLocale?(a(),l("span",F,[i(s(L),{"aria-hidden":"true"})])):h("",!0)]),_:2},1032,["class","disabled","loading","aria-checked","onClick"]))),128))],8,A)],8,C))}}),O=Object.assign(v(B,[["__scopeId","data-v-854850e5"]]),{__name:"ModalLanguageSelectorModal"});async function W(e){const a=f(),l=window.innerWidth<768;return a.open(_(O),l=>({...e,onClose:()=>a.closeById(l)}),{position:l?"bottom":"center",anchor:l?"bottom":"center",closeOnClickOverlay:!1,singletonKey:w.languageSelector,containerStyle:l?{width:"100%",maxWidth:"100vw",height:"auto",maxHeight:"90dvh",margin:"0",padding:"0",background:"transparent",border:"none",borderRadius:"16px 16px 0 0",boxShadow:"none",overflow:"visible"}:{width:"min(480px, calc(100vw - 32px))",maxWidth:"480px",maxHeight:"80dvh",padding:"0",background:"transparent",border:"none",boxShadow:"none",overflow:"visible"}})}export{W as openLanguageSelector};

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.