import{isProperty as e}from"../../utils/isProperty.mjs";import{checkEmptyLineBefore as o}from"./checkEmptyLineBefore.mjs";import{checkEmptyLineBeforeFirstProp as t}from"./checkEmptyLineBeforeFirstProp.mjs";import{getNodeData as r}from"./getNodeData.mjs";function n({node:n,context:p,emptyLineBeforeUnspecified:i,emptyLineMinimumPropertyThreshold:m,expectedOrder:s,primaryOption:d,result:f}){let a=n.nodes.filter(o=>e(o)).length,c=n.nodes.map(e=>r(e,s));c.forEach(function(t,r){let n=c[r-1];n&&"comment"===n.node.type&&!n.node.raw("before").includes("\n")&&(n=c[r-2]),n&&e(n.node)&&e(t.node)&&o({firstPropData:n,secondPropData:t,propsCount:a,lastKnownSeparatedGroup:1,context:p,emptyLineBeforeUnspecified:i,emptyLineMinimumPropertyThreshold:m,primaryOption:d,result:f})}),e(c[0].node)&&t({propData:c[0],primaryOption:d,emptyLineBeforeUnspecified:i,context:p,result:f})}export{n as checkNodeForEmptyLines};