{"version":3,"file":"is-another-wrap-point-coming.cjs","sources":["../../../src/utils/is-another-wrap-point-coming.ts"],"sourcesContent":["import { isPunctuation } from \"./is-punctuation.js\";\n\nexport function isAnotherWrapPointComing(\n  currentLength: number,\n  maxLength: number,\n  wordsToCome: string[],\n): boolean {\n  for (const word of wordsToCome) {\n    if (isPunctuation(word.at(-1)) && word.length > 1) {\n      return true;\n    }\n    currentLength += word.length + 1;\n    if (currentLength >= maxLength) {\n      return false;\n    }\n  }\n  return false;\n}\n"],"names":["isPunctuation"],"mappings":";;;;AAEO,SAAS,wBAAA,CACd,aAAA,EACA,SAAA,EACA,WAAA,EACS;AACT,EAAA,KAAA,MAAW,QAAQ,WAAA,EAAa;AAC9B,IAAA,IAAIA,2BAAA,CAAc,KAAK,EAAA,CAAG,EAAE,CAAC,CAAA,IAAK,IAAA,CAAK,SAAS,CAAA,EAAG;AACjD,MAAA,OAAO,IAAA;AAAA,IACT;AACA,IAAA,aAAA,IAAiB,KAAK,MAAA,GAAS,CAAA;AAC/B,IAAA,IAAI,iBAAiB,SAAA,EAAW;AAC9B,MAAA,OAAO,KAAA;AAAA,IACT;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;;;;"}