PageSourceSearch

https://cdn.vialibri.net/static/assets/PriceRange-DGnEs5La.js

js vialibri.net collected 2026-10-01 11:49:54 UTC 3,176 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="84047d69-343d-4d4d-ac0f-1abe3320f020",e._sentryDebugIdIdentifier="sentry-dbid-84047d69-343d-4d4d-ac0f-1abe3320f020")}catch(e){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as e}from"./rolldown-runtime-CynJssAt.js";import{t as r}from"./react-C9jbeexS.js";import{t as a}from"./formatClasses-DEp3Ml96.js";import{K as n,M as t,at as i,t as o}from"./index-eSpJ4TSf.js";import{t as s}from"./FormLayoutContext-DqgM1hDH.js";import{i as l,l as m,o as d}from"./FinalControlGroup-DJcLRrPy.js";import{t as c}from"./InputErrors-DtxTy5YH.js";import{t as p}from"./commonValidators-BuDNBY0d.js";import{n as u}from"./FormField-D-gbEwz2.js";var x=e(r()),j=i(),y=n();var f=(0,j.withTranslators)((function({t:e,hintKey:r="published_date"}){const n=(0,x.useContext)(s).inputs||{},t=m("year_min"),i=m("year_max"),o=!t.input.value&&!i.input.value,f=p.yearMinMax(null,{year_min:t.input.value,year_max:i.input.value}),v=f&&l(t.meta)&&l(i.meta);return(0,y.jsx)(d,{label:(0,y.jsx)(j.T,{message:"Year:"}),hintKey:r,errorMessage:v&&f,invalid:v,children:(0,y.jsxs)("div",{className:a("control-row",{...n,range:!0}),children:[(0,y.jsxs)("div",{className:"control-row__input",children:[(0,y.jsx)(u,{name:"year_min",placeholder:o?e("From Year"):void 0,autocomplete:!1,validate:[p.yearRange,p.yearMinMax],clearField:!0}),!v&&l(t.meta)?(0,y.jsx)(c,{errorToShow:t.meta.error}):null]}),(0,y.jsx)(j.T,{message:"to"}),(0,y.jsxs)("div",{className:"control-row__input",children:[(0,y.jsx)(u,{name:"year_max",placeholder:o?e("To Year"):void 0,autocomplete:!1,validate:[p.yearRange,p.yearMinMax],clearField:!0}),!v&&l(i.meta)?(0,y.jsx)(c,{errorToShow:i.meta.error}):null]})]})})}));var v=(0,j.withTranslators)((function({t:e,hintKey:r="price",notes:n=null}){const{currencies:i}=o(),f=(0,x.useContext)(s).inputs||{},v=m("price_min"),h=m("price_max"),_=1e6,g=m("currency")?.input?.value;let w="$";g&&(w=t(g,i));const M=!v.input.value&&!h.input.value,b=p.priceMinMax(null,{price_min:v.input.value,price_max:h.input.value}),T=b&&l(v.meta)&&l(h.meta);return(0,y.jsx)(d,{label:(0,y.jsx)(j.T,{message:"Price range:"}),hintKey:r,errorMessage:T&&b,invalid:T,notes:n,children:(0,y.jsxs)("div",{className:a("control-row",{...f,range:!0}),children:[(0,y.jsxs)("div",{className:"control-row__input",children:[(0,y.jsx)(u,{name:"price_min",type:"number",step:.01,min:0,max:_,placeholder:M?e("Minimum"):void 0,prepend:w,autocomplete:!1,validate:[p.priceRange,p.priceMinMax],clearField:!0}),!T&&l(v.meta)?(0,y.jsx)(c,{errorToShow:v.meta.error}):null]}),(0,y.jsx)(j.T,{message:"to"}),(0,y.jsxs)("div",{className:"control-row__input",children:[(0,y.jsx)(u,{name:"price_max",type:"number",step:.01,min:0,max:_,placeholder:M?e("Maximum"):void 0,prepend:w,autocomplete:!1,validate:[p.priceRange,p.priceMinMax],clearField:!0}),!T&&l(h.meta)?(0,y.jsx)(c,{errorToShow:h.meta.error}):null]})]})})}));export{f as n,v as t};
2//# sourceMappingURL=PriceRange-DGnEs5La.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.