1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5191,5504],{5191:function(e,r,o){o.r(r);var t=o(95504);function n(e){return"string"==typeof e&&!isNaN(Number(e))&&!isNaN(parseFloat(e))}let i={[t.FormConditionRuleOperatorType.Contains]:e=>r=>Array.isArray(r)?r.some(r=>r.indexOf(e)>-1):r.indexOf(e)>-1,[t.FormConditionRuleOperatorType.ContainsIgnoreCase]:e=>r=>Array.isArray(r)?r.some(r=>r.indexOf(e.toLowerCase())>-1):r.indexOf(e.toLowerCase())>-1,[t.FormConditionRuleOperatorType.EndsWith]:e=>r=>Array.isArray(r)?r.some(r=>r.endsWith(e)):r.endsWith(e),[t.FormConditionRuleOperatorType.EndsWithIgnoreCase]:e=>r=>Array.isArray(r)?r.some(r=>r.endsWith(e.toLowerCase())):r.endsWith(e.toLowerCase()),[t.FormConditionRuleOperatorType.Is]:e=>r=>"true"===e.toLowerCase()||"false"===e.toLowerCase()?"true"===e.toLowerCase():Array.isArray(r)?r.includes(e):e===r,[t.FormConditionRuleOperatorType.IsNot]:e=>r=>"true"===e.toLowerCase()||"false"===e.toLowerCase()?"true"!==e.toLowerCase():Array.isArray(r)?!r.includes(e):e!==r,[t.FormConditionRuleOperatorType.GreaterThen]:e=>r=>{if(!Array.isArray(r))return n(e)&&n(r)?Number(r)>Number(e):r>e},[t.FormConditionRuleOperatorType.LessThen]:e=>r=>{if(!Array.isArray(r))return n(e)&&n(r)?Number(r)<Number(e):r<e},[t.FormConditionRuleOperatorType.StartsWith]:e=>r=>Array.isArray(r)?r.some(r=>r.endsWith(e)):r.startsWith(e),[t.FormConditionRuleOperatorType.StartsWithIgnoreCase]:e=>r=>Array.isArray(r)?r.some(r=>r.endsWith(e.toLowerCase())):r.startsWith(e.toLowerCase())},s={[t.FormConditionLogicType.All]:(e,r)=>e.every(e=>{let o=r[e.field];return!!o&&i[e.operator](e.value)(o)}),[t.FormConditionLogicType.Any]:(e,r)=>e.some(e=>{let o=r[e.field];return!!o&&i[e.operator](e.value)(o)})};r.default=(e,r)=>{if(!r)return!0;let o=s[r.logicType](r.rules,e);return r.actionType===t.FormConditionActionType.Show?o:!o}},95504:function(e,r,o){var t,n,i,s,a,u;o.r(r),o.d(r,{FormConditionActionType:function(){return t},FormConditionLogicType:function(){return n},FormConditionRuleOperatorType:function(){return i}}),(s=t||(t={})).Show="Show",s.Hide="Hide",(a=n||(n={})).All="All",a.Any="Any",(u=i||(i={})).Is="Is",u.IsNot="IsNot",u.GreaterThen="GreaterThen",u.LessThen="LessThen",u.Contains="Contains",u.ContainsIgnoreCase="ContainsIgnoreCase",u.StartsWith="StartsWith",u.StartsWithIgnoreCase="StartsWithIgnoreCase",u.EndsWith="EndsWith",u.EndsWithIgnoreCase="EndsWithIgnoreCase"}}]);
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.