import{isRegExp as e,isString as t}from"../../utils/validateTypes.mjs";import{declarationValueIndex as r}from"../../utils/nodeFieldIndices.mjs";import s from"../../utils/matchesStringOrRegExp.mjs";import i from"../../utils/optionsMatches.mjs";import l from"../../utils/report.mjs";import o from"../../utils/ruleMessages.mjs";import m from"../../utils/validateObjectWithArrayProps.mjs";import a from"../../utils/validateOptions.mjs";import p from"../../utils/vendor.mjs";const u="declaration-property-value-disallowed-list",n=o(u,{rejected:(e,t)=>`Unexpected value "${t}" for property "${e}"`}),d=o=>(d,c)=>{if(!a(c,u,{actual:o,possible:[m(t,e)]}))return;const f=Object.keys(o);d.walkDecls(e=>{const{prop:t,value:m}=e,a=p.unprefixed(t),d=f.filter(e=>s(a,e));if(0===d.length)return;if(d.every(e=>!i(o,e,m)))return;const j=r(e),g=j+e.value.length;l({message:n.rejected,messageArgs:[t,m],node:e,index:j,endIndex:g,result:c,ruleName:u})})};d.ruleName=u,d.messages=n,d.meta={url:"https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list"};export{d as default};