1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9525],{39525:function(e,r,t){t.r(r),t.d(r,{default:function(){return FormNumberField}});var n=t(57437),i=t(37658),l=t(75608),u=t(64891);function FormNumberField(e){let{field:r}=e,{id:t,label:a,preferences:o}=r;return(0,n.jsx)(i.Field,{name:t,rules:[{required:o.required,message:"".concat(a," бөглөнө үү")},...(0,l.cS)(o.extra_rule,"number")],children:(e,r)=>(0,n.jsxs)("div",{children:[(0,u.qz)(a,o.required),(0,n.jsx)("input",{...e,id:t,value:e.value||"",type:"number",placeholder:o.placeholder,style:(0,u.RO)(r.errors.length>0)}),o.help_text&&(0,n.jsx)("p",{style:{fontSize:12,color:"#999",marginTop:4},children:o.help_text}),r.errors.map(e=>(0,n.jsx)("p",{style:u.eM,children:e},e))]})})}},75608:function(e,r,t){function extraInputRuleParser(e,r){if(!e)return[];let t=e.split("||").map(e=>(function(e,r){let[t,n]=e.split(":");if(t&&n)switch(t){case"min":{let e=parseInt(n);if(isNaN(e)||e<0)return;return{type:r,min:e}}case"max":{let e=parseInt(n);if(isNaN(e)||e<0)return;return{type:r,max:e}}case"pattern":{let e=new RegExp(n);return{pattern:e}}}})(e,r)).filter(e=>!!e);return t}function parseFileRule(e){if(!e)return{};let r={};return e.split("||").forEach(e=>{let[t,n]=e.split(":");if(t&&n)switch(t){case"filesize":{let e=parseInt(n);if(isNaN(e)||e<0)return;r.filesize=e;return}case"filecount":{let e=parseInt(n);if(isNaN(e)||e<0)return;r.filecount=e;return}}}),r}function parseDateRule(e){if(!e)return{};let r={};return e.split("||").forEach(e=>{let[t,n]=e.split(":");if(t&&n)switch(t){case"min":r.min=n;return;case"max":r.max=n;return}}),r}t.d(r,{cS:function(){return extraInputRuleParser},he:function(){return parseFileRule},jd:function(){return parseDateRule}})},64891:function(e,r,t){t.d(r,{RO:function(){return fieldInput},eM:function(){return i},qz:function(){return fieldLabel}});var n=t(57437);function fieldLabel(e,r){return e?(0,n.jsxs)("label",{style:{display:"block",fontSize:14,fontWeight:500,color:"#333",marginBottom:6},children:[e,r&&(0,n.jsx)("span",{style:{color:"#e53935",marginLeft:4},children:"*"})]}):null}function fieldInput(e){return{width:"100%",padding:"10px 14px",fontSize:14,color:"#1a1a1a",background:"#fafafa",border:"1px solid ".concat(e?"#e53935":"#ddd"),borderRadius:8,outline:"none",transition:"border-color 0.2s, box-shadow 0.2s",boxSizing:"border-box"}}t(2265);let i={fontSize:12,color:"#e53935",marginTop:4}}}]);
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.