PageSourceSearch

https://skabandy.ru/local/client-app/dist/scripts/BaseDropdown-chunk-BmiCo9xg.js

js skabandy.ru collected 2026-10-02 17:09:17 UTC 2,086 bytes, 1 lines download raw bytes

1import{I as o}from"./IconSVG-chunk-DZ6eoNR-.js";import{d,_ as n,g as e,l as s,i as t,o as i,c as r,a as w,h as p,n as a,j as l,m as h,p as c,w as u,v as m,T as _}from"./index-CBUZHXhO.js";const v=d({name:"BaseDropdown",components:{IconSVG:o},props:{showOnClick:{type:Boolean,default:!1},theme:{type:String,default:"default"},selected:{type:Boolean,default:!1}},data:()=>({dropdownWillHide:!1,dropdownHideTimeout:null,dropdownShown:!1,isActive:!1}),computed:{showEvents(){return this.showOnClick?"click":"mouseenter"},hideEvents(){return this.showOnClick?"":"mouseleave"}},methods:{showDropdown(){this.dropdownShown?this.dropdownWillHide=!1:this.dropdownShown=!0},startHidingDropdown(){this.dropdownWillHide=!0,this.dropdownHideTimeout&&clearTimeout(this.dropdownHideTimeout),this.dropdownHideTimeout=setTimeout((()=>{this.dropdownWillHide&&this.hideDropdown()}),500)},hideDropdown(){this.dropdownWillHide=!1,this.dropdownShown=!1}}}),f={class:"btn dropdown__btn"},H={class:"dropdown__body"},S={class:"dropdown__content"},D={class:"dropdown__items"};const g=n(v,[["render",function(o,d,n,v,g,T){const b=e("IconSVG"),k=s("click-outside");return t((i(),r("div",{class:a(["dropdown",[{"dropdown--shown":o.dropdownShown},{"dropdown--active":o.isActive},`dropdown--style-${o.theme}`]])},[w("div",h({class:"dropdown__trigger"},{[c(o.showEvents)]:d[0]||(d[0]=(...d)=>o.showDropdown&&o.showDropdown(...d))},{[c(o.hideEvents)]:d[1]||(d[1]=(...d)=>o.startHidingDropdown&&o.startHidingDropdown(...d))}),[p(o.$slots,"trigger",{dropdownShown:o.dropdownShown},(()=>[w("button",f,[w("span",{class:a(["btn__text dropdown__placeholder",[o.selected?"dropdown__placeholder-selected":""]])},[p(o.$slots,"default")],2),l(b,{name:"chevron-down",class:"btn__icon dropdown__icon"})])]))],16),l(_,{name:"dropdown",onBeforeEnter:d[2]||(d[2]=d=>o.isActive=!0),onAfterLeave:d[3]||(d[3]=d=>o.isActive=!1)},{default:u((()=>[t(w("div",H,[w("div",S,[p(o.$slots,"dropdown",{},(()=>[w("div",D,[p(o.$slots,"dropdown-items")])]))])],512),[[m,o.dropdownShown]])])),_:3})],2)),[[k,o.hideDropdown]])}]]);export{g as default};

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.