PageSourceSearch

https://www.splav.ru/_nuxt/FilterRange.d71688d3.js

js splav.ru collected 2026-10-03 20:38:36 UTC 2,331 bytes, 2 lines download raw bytes

1import{z as b,A as w}from"./entry.9c752da3.js";import B from"./BrndField.a1d7bb10.js";import{d as i,l as A,m as z,A as f,G as p,u as s,D as _,E as R,i as k,Y as E}from"./_vueform/slider.db378d7f.js";import{f as v}from"./content.185b832c.js";import"./floating-vue/dist.a50cb737.js";import"./_vueuse.90c89c65.js";const N=E(()=>w(()=>import("./AppRange.9dec33ea.js"),["./AppRange.9dec33ea.js","./_vueform/slider.db378d7f.js","./slider.9c563d2b.css","./AppRange.a5ce4abb.css"],import.meta.url).then(m=>m.default||m)),K={class:"grid grid-cols-2 gap-2"},O={class:"w-[96%]"},S={__name:"FilterRange",props:{min:{type:Object,default:()=>({})},max:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},type:{type:String,default:"integer"},code:{type:String,default:""},modelValue:{type:Array,default:()=>[]}},emits:["change"],setup(m,{emit:c}){const l=m,n=i({get:()=>{var t,e,o,u;return[((t=l.modelValue[0])==null?void 0:t.min)||((e=l.min)==null?void 0:e.value),((o=l.modelValue[0])==null?void 0:o.max)||((u=l.max)==null?void 0:u.value)]},set:([t,e])=>{t!==n.value[0]&&c("change",{value:t,code:"min",key:l.code}),e!==n.value[1]&&c("change",{value:e,code:"max",key:l.code})}}),x=i({get:()=>v(n.value[0])}),g=i({get:()=>v(n.value[1])}),y=i(()=>{var t;return(t=l.min)==null?void 0:t.value}),V=i(()=>{var t;return(t=l.max)==null?void 0:t.value}),r=(t,e)=>{const o=Number(e.target.value.replace(/\s/g,"")),[u,d]=n.value,a=o>=l.min.value&&o<=l.max.value;t==="min"?a?n.value=[+o,+d]:e.target.value=v(u):t==="max"&&(a?n.value=[+u,+o]:e.target.value=v(d))};return(t,e)=>{const o=B,u=N,d=b;return A(),z("div",null,[f("div",K,[p(o,{"model-value":s(x),prefix:"от",size:"xs",placeholder:"0",pattern:"[0-9]*",inputmode:"numeric",onBlur:e[0]||(e[0]=a=>r("min",a)),onKeydown:e[1]||(e[1]=_(a=>r("min",a),["enter"]))},null,8,["model-value"]),p(o,{"model-value":s(g),prefix:"до",size:"xs",placeholder:"0",pattern:"[0-9]*",inputmode:"numeric",onBlur:e[2]||(e[2]=a=>r("max",a)),onKeydown:e[3]||(e[3]=_(a=>r("max",a),["enter"]))},null,8,["model-value"])]),f("div",O,[p(d,null,{default:R(()=>[p(u,{modelValue:s(n),"onUpdate:modelValue":e[4]||(e[4]=a=>k(n)?n.value=a:null),min:s(y),max:s(V),step:m.type==="double"?.01:1},null,8,["modelValue","min","max","step"])]),_:1})])])}}};export{S as default};
2//# sourceMappingURL=FilterRange.d71688d3.js.map

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.