PageSourceSearch

https://rososmotr.ru/_nuxt/D-rHv-0a.js

js rososmotr.ru collected 2026-10-02 00:24:32 UTC 2,581 bytes, 1 lines download raw bytes

1import{_ as I}from"./UsejekQK.js";import{f as O,ai as R,ao as H,aB as F,U as S,R as L,Y as l,k as r,q as b,aE as M,a9 as h,j as i,N as d,aI as x,F as T,a3 as U,h as q,i as z,e as A,b as P,J as D,M as G,a2 as f,g as W}from"./CS9danzX.js";const $={key:0,class:"-label"},j={key:1,class:"-placeholder"},J=["onClick"],E="240px",C=5,X={__name:"VaDropdown",props:D({options:{type:Array,required:!0},leftIcon:{type:String,default:""},rightIcon:{type:String,default:"caret-down"},placeholder:{type:String,required:!1},kind:{type:String,required:!1,default:"primary"},preselectFirst:{type:Boolean,default:!1},showError:{type:Boolean,default:!1},viewportOffset:{type:Number,default:12}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(v){R(e=>({v2df95e74:E}));const n=v,o=H(v,"modelValue");!o.value&&n.preselectFirst&&(o.value=n.options?.[0]??null);const u=f(null),p=f(null),t=f(!1),m=f(!1),B=W(()=>Number(E.replace("px",""))),k=n.viewportOffset,g=()=>{if(!u.value||!p.value)return;const e=u.value.getBoundingClientRect(),s=p.value.scrollHeight,_=Math.min(s,B.value),c=Math.max(window.innerHeight-e.bottom-k-C,0),a=Math.max(e.top-k-C,0);m.value=c<_&&a>c},N=async()=>{if(!t.value){t.value=!0,await G(),g();return}t.value=!1},V=e=>{o.value=e,t.value=!1},w=e=>{u.value&&!u.value.contains(e.target)&&(t.value=!1)},y=()=>{t.value&&g()};return F(t,e=>{e||(m.value=!1)}),S(()=>{document.addEventListener("click",w),window.addEventListener("resize",y)}),L(()=>{document.removeEventListener("click",w),window.removeEventListener("resize",y)}),(e,s)=>{const _=I,c=A;return l(),r("div",{ref_key:"dropdownRef",ref:u,class:d(["va-dropdown",`--${n.kind}`]),onClick:s[1]||(s[1]=x(()=>{},["stop"]))},[b(_,{theme:"secondary",class:d(["-button",{"--error":n.showError,"--open":t.value}]),"left-icon":n.leftIcon,"right-icon":n.rightIcon,onClick:N,expanded:""},{default:M(()=>[o.value?.label?(l(),r("span",$,h(o.value.label),1)):i("",!0),o.value?.label?i("",!0):(l(),r("span",j,h(n.placeholder),1))]),_:1},8,["class","left-icon","right-icon"]),b(P,{name:"bouncy-slide-fade"},{default:M(()=>[t.value?(l(),r("ul",{key:0,ref_key:"menuRef",ref:p,class:d(["-menu",{"--open-up":m.value}]),onClick:s[0]||(s[0]=x(()=>{},["stop"]))},[(l(!0),r(T,null,U(v.options,a=>(l(),r("li",{key:a.value,class:d(["-item",{"--active":a.value&&a.value===o.value?.value}]),onClick:Y=>V(a)},[q("span",null,h(a.label),1),a.value&&a.value===o.value?.value?(l(),z(c,{key:0,class:"-icon",name:"ph:check-bold"})):i("",!0)],10,J))),128))],2)):i("",!0)]),_:1})],2)}}},Z=O(X,[["__scopeId","data-v-83352fdc"]]);export{Z as _};

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.