"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getRuleContentFromValidConf=exports.getDefaultValueFromValidConf=void 0;const e=t(require("../vaildateAndRestore/RepoDefaultValidationConfig.json"));exports.getDefaultValueFromValidConf=function(t){for(const o of e.default)if(o.attrName===t)return o.defaultValue||void 0;throw new Error(`The attribute ${t} cannot be found in the validate configuration.`)},exports.getRuleContentFromValidConf=function(t,o){const n=[];for(const o of e.default)if(o.attrName===t){n.push(...o.configs);break}for(const t of n)if(t.ruleType===o)return t.ruleContent||void 0;throw new Error(`The ${o} rule of the ${t} attribute cannot be found in the validate configuration.`)};