import e from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as r}from"../../utils/ruleUrl.mjs";var a,s;function i(){if(s)return a;s=1;const{utils:i}=e,n=t(),o=r(),l=n("at-if-closing-brace-space-after"),u=i.ruleMessages(l,{expected:'Expected single space after "}" of @if statement',rejected:'Unexpected space after "}" of @if statement'}),m={url:o(l),fixable:!0};function c(e){return(t,r)=>{i.validateOptions(r,l,{actual:e,possible:["always-intermediate","never-intermediate"]})&&f({root:t,result:r,ruleName:l,atRuleName:"if",expectation:e,messages:u})}}function f({root:e,result:t,ruleName:r,atRuleName:a,expectation:s,messages:n}){function o(e,a,s,n){i.report({result:t,ruleName:r,node:e,message:a,index:s,endIndex:s,fix:()=>{e.next().raws.before=n}})}e.walkAtRules(e=>{if(e.name!==a)return;const t=e.next(),r=t&&" "===t.raws.before,i=t&&""!==t.raws.before,l=e.toString().length;t&&"atrule"===t.type&&"else"===t.name&&("always-intermediate"!==s||r?"never-intermediate"===s&&i&&o(e,n.rejected,l,""):o(e,n.expected,l," "))})}return c.ruleName=l,c.messages=u,c.meta=m,c.sassConditionalBraceSpaceAfterChecker=f,a=c}export{i as __require};