'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const findHooksRx = /\{\{(.*?)\}\}/g;
function compileHooks(programSrc) {
  const parts = {};
  const partMatches = programSrc.match(findHooksRx)?.map((hook) => hook.replace(/[{()}]/g, "")) ?? [];
  partMatches.forEach((hook) => {
    parts[hook] = [];
  });
  return parts;
}

exports.compileHooks = compileHooks;
exports.findHooksRx = findHooksRx;
//# sourceMappingURL=compileHooks.js.map
