import{isString as e}from"../../utils/validateType.mjs";function o(o){let r={},t=0,i=1,p=-1;function n(e){p+=1,e.properties.forEach(o=>u(o,!1,e))}function u(o,f,s){if(e(o))return f||(t+=1),void(r[o]={separatedGroup:i,groupPosition:p,expectedPosition:t,groupName:s.groupName,noEmptyLineBeforeInsideGroup:s.noEmptyLineBetween});o.emptyLineBefore&&(i+=1),"flexible"===o.order?(t+=1,p+=1,o.properties.forEach(e=>{u(e,!0,o)})):n(o)}return n({properties:o}),r}export{o as createOrderInfo};