{"version":3,"file":"parseStyleString.mjs","names":[],"sources":["../../../src/parser/parseStyleString.ts"],"sourcesContent":["/**\n * Takes a style string and parses it in one that has only defined values\n * and lowercases properties\n * @param style\n * @param oStyle\n */\nexport function parseStyleString(\n  style: string,\n  oStyle: Record<string, any>,\n): void {\n  style\n    .replace(/;\\s*$/, '')\n    .split(';')\n    .forEach((chunk) => {\n      if (!chunk) return;\n      const [attr, value] = chunk.split(':');\n      oStyle[attr.trim().toLowerCase()] = value.trim();\n    });\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,iBACd,OACA,QACM;AACN,OACG,QAAQ,SAAS,GAAG,CACpB,MAAM,IAAI,CACV,SAAS,UAAU;AAClB,MAAI,CAAC,MAAO;EACZ,MAAM,CAAC,MAAM,SAAS,MAAM,MAAM,IAAI;AACtC,SAAO,KAAK,MAAM,CAAC,aAAa,IAAI,MAAM,MAAM;GAChD"}