{"version":3,"file":"createLeading.cjs","sources":["../../src/themes/createLeading.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\ntype Leading = {\n  NONE: number\n  TIGHT: number\n  NORMAL: number\n  RELAXED: number\n}\n\nexport type LeadingProperty = Partial<Omit<Leading, 'NONE'>>\nexport type CreatedLeading = Leading\n\nexport type Leadings = keyof Leading\n\nexport const defaultLeading: CreatedLeading = {\n  NONE: 1,\n  TIGHT: 1.25,\n  NORMAL: 1.5,\n  RELAXED: 1.75,\n}\n\nexport const createLeading = (userLeading?: LeadingProperty): CreatedLeading => {\n  if (!userLeading) {\n    return defaultLeading\n  }\n\n  return merge({ ...defaultLeading }, userLeading)\n}\n"],"names":["merge"],"mappings":";;;;AAcO,MAAM,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,OAAO,EAAE,IAAI;;AAGR,MAAM,aAAa,GAAG,CAAC,WAA6B,KAAoB;IAC7E,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,cAAc;IACvB;IAEA,OAAOA,iBAAK,CAAC,EAAE,GAAG,cAAc,EAAE,EAAE,WAAW,CAAC;AAClD;;;;;"}