import { isString } from "lodash-es";
import { parseTemplateString, } from "./template-strings.js";
export const getDynamicBindings = (dynamicString) => {
    if (!dynamicString || !isString(dynamicString)) {
        return { stringSegments: [], jsSnippets: [], positionedSnippets: [] };
    }
    const segments = parseTemplateString(dynamicString.trim());
    return {
        stringSegments: segments
            .filter((segment) => segment.type === "string")
            .map((segment) => segment.value),
        jsSnippets: segments
            .filter((segment) => segment.type === "expression")
            .map((segment) => segment.value),
        positionedSnippets: segments,
    };
};
//# sourceMappingURL=extract-embedded-identifiers.js.map