@forbespro/lead-agent
Version:
Lead Chat Agent React Component
2 lines (1 loc) • 732 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index161.js"),x=require("./index146.js"),c={tokenize:g};function g(n){const i=n.attempt(this.parser.constructs.contentInitial,a,l);let r;return i;function a(t){if(t===null){n.consume(t);return}return n.enter("lineEnding"),n.consume(t),n.exit("lineEnding"),p.factorySpace(n,i,"linePrefix")}function l(t){return n.enter("paragraph"),e(t)}function e(t){const o=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=o),r=o,u(t)}function u(t){if(t===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(t);return}return x.markdownLineEnding(t)?(n.consume(t),n.exit("chunkText"),e):(n.consume(t),u)}}exports.content=c;