1import{$ as e,C as t,Mt as n,Vt as r,_t as i,b as a,d as o,f as s,h as c,ln as l,m as u,mt as d,on as f,p,q as m,v as h,x as g}from"./Bfd45UcT.js";import{t as _}from"./BtX2LyKP2.js";import{n as v,t as y}from"./DZ0T89zs2.js";import{t as b}from"./CSGUGPtG.js";var x={class:`flex flex-col gap-12px`},S={key:0,class:`text-sm-medium text-gray-600`},C={class:`flex items-start gap-12px`},w={class:`flex flex-1 flex-col gap-4px`},T={class:`text-xs-regular text-gray-500`},E={class:`text-xxs-semibold text-gray-400`},D={key:0,class:`flex items-start gap-4px text-xxs-regular text-error-500`},O={class:`flex flex-1 flex-col gap-4px`},k={class:`text-xs-regular text-gray-500`},A={class:`text-xxs-semibold text-gray-400`},j={key:0,class:`flex items-start gap-4px text-xxs-regular text-error-500`},M=Object.assign(t({__name:`RangeInputV2`,props:{title:{},minValue:{},maxValue:{},minLabel:{},maxLabel:{},unit:{},placeholder:{},minName:{},maxName:{},error:{},format:{type:Boolean},prefix:{},maxDigits:{}},emits:[`change`,`invalid`],setup(e,{emit:t}){let p=e,{minLabel:_=`Min`,maxLabel:y=`Max`,placeholder:M=`Enter value`}=p,N=o(()=>`w-full [&_input]:h-32px [&_input]:px-10px [&_input]:py-6px [&_input]:rounded-6px [&_input]:text-left sm:[&_input]:text-center [&_input]:text-gray-700 [&_input]:shadow-[0px_1px_3px_0px_#1018281A,0px_1px_2px_0px_#1018280F] ${p.format?`[&_input]:text-sm-medium [&_input::placeholder]:font-normal`:`[&_input]:text-sm-regular`}`);function P(e){let t=e==null?``:String(e).replace(/\D/g,``);return t?`${p.prefix??``}${Number(t).toLocaleString(`en-US`)}`:``}let F=n(`max`);function I(e){let t=e==null?``:String(e).replace(/\D/g,``);return t===``?null:Number(t)}let L=o(()=>{let e=I(p.minValue),t=I(p.maxValue);return e===null||t===null||e<=t?``:F.value===`min`?`Minimum value cannot be greater than the maximum value.`:`Maximum value cannot be less than the minimum value.`}),R=o(()=>F.value===`min`?p.error||L.value:``),z=o(()=>F.value===`max`?p.error||L.value:``),B=t;d(()=>!!(p.error||L.value),e=>B(`invalid`,e),{immediate:!0});function V(e,t){if(F.value=t===p.maxName?`max`:`min`,!p.format){if(p.maxDigits){let n=e.target,r=(n.value||``).replace(/\D/g,``).slice(0,p.maxDigits);n.value=r,B(`change`,{target:{name:t,value:r}});return}B(`change`,e);return}let n=e.target,r=(n.value||``).replace(/\D/g,``);p.maxDigits&&(r=r.slice(0,p.maxDigits)),n.value=P(r),B(`change`,{target:{name:t,value:r}})}return(e,t)=>{let n=b,o=v;return m(),c(`div`,x,[e.title?(m(),c(`p`,S,l(e.title),1)):u(``,!0),s(`div`,C,[s(`div`,w,[s(`p`,T,l(r(_)),1),g(n,{class:f(r(N)),placeholder:r(M),name:e.minName,"model-value":e.format?P(e.minValue):e.minValue,onInput:t[0]||=t=>V(t,e.minName)},h({_:2},[e.unit?{name:`trailing`,fn:i(()=>[s(`span`,E,l(e.unit),1)]),key:`0`}:void 0]),1032,[`class`,`placeholder`,`name`,`model-value`]),r(R)?(m(),c(`p`,D,[g(o,{class:`size-12px shrink-0`}),a(` `+l(r(R)),1)])):u(``,!0)]),s(`div`,O,[s(`p`,k,l(r(y)),1),g(n,{class:f(r(N)),placeholder:r(M),name:e.maxName,"model-value":e.format?P(e.maxValue):e.maxValue,onInput:t[1]||=t=>V(t,e.maxName)},h({_:2},[e.unit?{name:`trailing`,fn:i(()=>[s(`span`,A,l(e.unit),1)]),key:`0`}:void 0]),1032,[`class`,`placeholder`,`name`,`model-value`]),r(z)?(m(),c(`p`,j,[g(o,{class:`size-12px shrink-0`}),a(` `+l(r(z)),1)])):u(``,!0)])])])}}}),{__name:`LibraryFormRangeInputV2`}),N=Object.assign(t({__name:`ToggleButtonV2`,props:{isSelected:{type:Boolean},multiple:{type:Boolean,default:!0}},setup(t){return(t,n)=>{let r=y,a=_;return m(),p(a,{color:`white`,class:f([`!px-10px !py-6px !rounded-6px !gap-x-6px !ring-0`,t.isSelected?`!bg-blue-E9F4FF !border !border-blue-700 !text-sm-semibold !text-blue-700`:`!bg-white !border !border-gray-300 !text-sm-medium !text-gray-700`])},{default:i(()=>[t.isSelected&&t.multiple?(m(),p(r,{key:0,class:`size-[16px] text-blue-700`})):u(``,!0),e(t.$slots,`default`)]),_:3},8,[`class`])}}}),{__name:`LibraryFormToggleButtonV2`});export{M as n,N as t};
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.