import{__require as e}from"../../../../postcss-value-parser/lib/index.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/declarationValueIndex.mjs";import{__require as s}from"../../utils/isNativeCssFunction.mjs";import{__require as u}from"../../utils/namespace.mjs";import{__require as a}from"../../utils/ruleUrl.mjs";var i,o;function n(){if(o)return i;o=1;const n=e(),{utils:l}=r,m=t(),c=s(),d=u(),p=a(),f=d("function-quote-no-quoted-strings-inside"),v=l.ruleMessages(f,{rejected:"Quote function used with an already-quoted string"}),_={url:p(f),fixable:!0};function q(e){return(r,t)=>{if(!l.validateOptions(t,f,{actual:e}))return;const s={};r.walkDecls(e=>{"$"===e.prop[0]&&n(e.value).walk(r=>{s[e.prop]=r.type})}),r.walkDecls(e=>{n(e.value).walk(r=>{if("function"===r.type&&!c(r.value)&&""!==r.value&&"quote"===r.value&&(r.nodes[0].quote||"string"===s[r.nodes[0].value])){const s=()=>{e.value=e.value.replace(/quote\((.*)\)/,"$1")},u=m(e)+r.sourceIndex;l.report({message:v.rejected,node:e,index:u,endIndex:u+r.value.length,result:t,ruleName:f,fix:s})}})})}}return q.ruleName=f,q.messages=v,q.meta=_,i=q}export{n as __require};