{"version":3,"file":"isFlexStyleProp-UJyf3StX.cjs","names":[],"sources":["../src/util/isFlexStyleProp.ts"],"sourcesContent":["import type { LightningViewElementStyle } from '@plextv/react-lightning';\n\nexport const flexProps = {\n  alignContent: true,\n  alignItems: true,\n  alignSelf: true,\n  flex: true,\n  flexBasis: true,\n  flexDirection: true,\n  rowGap: true,\n  gap: true,\n  columnGap: true,\n  flexGrow: true,\n  flexShrink: true,\n  flexWrap: true,\n  justifyContent: true,\n\n  margin: true,\n  marginBottom: true,\n  marginEnd: true,\n  marginLeft: true,\n  marginRight: true,\n  marginStart: true,\n  marginTop: true,\n  marginInline: true,\n  marginBlock: true,\n  marginHorizontal: true,\n  marginVertical: true,\n\n  padding: true,\n  paddingBottom: true,\n  paddingEnd: true,\n  paddingLeft: true,\n  paddingRight: true,\n  paddingStart: true,\n  paddingTop: true,\n  paddingInline: true,\n  paddingBlock: true,\n  paddingHorizontal: true,\n  paddingVertical: true,\n\n  maxHeight: true,\n  maxWidth: true,\n  minHeight: true,\n  minWidth: true,\n  w: true,\n  h: true,\n  aspectRatio: true,\n\n  display: true,\n  position: true,\n  top: true,\n  left: true,\n  right: true,\n  bottom: true,\n} as const;\n\nflexProps satisfies Partial<Record<keyof LightningViewElementStyle, boolean>>;\n\nexport type FlexProps = keyof typeof flexProps;\n\n// `Set.has` is faster than the `in` operator (which walks the prototype\n// chain — `'toString' in flexProps` returns true, etc.) and runs on every\n// style key during transformProps and the worker proxy's applyStyle.\nconst _flexPropsSet: Set<string> = new Set(Object.keys(flexProps));\n\nexport function isFlexStyleProp(prop: number | string | symbol): prop is FlexProps {\n  return typeof prop === 'string' && _flexPropsSet.has(prop);\n}\n"],"mappings":"orBAEA,IAAa,EAAY,CACvB,aAAc,GACd,WAAY,GACZ,UAAW,GACX,KAAM,GACN,UAAW,GACX,cAAe,GACf,OAAQ,GACR,IAAK,GACL,UAAW,GACX,SAAU,GACV,WAAY,GACZ,SAAU,GACV,eAAgB,GAEhB,OAAQ,GACR,aAAc,GACd,UAAW,GACX,WAAY,GACZ,YAAa,GACb,YAAa,GACb,UAAW,GACX,aAAc,GACd,YAAa,GACb,iBAAkB,GAClB,eAAgB,GAEhB,QAAS,GACT,cAAe,GACf,WAAY,GACZ,YAAa,GACb,aAAc,GACd,aAAc,GACd,WAAY,GACZ,cAAe,GACf,aAAc,GACd,kBAAmB,GACnB,gBAAiB,GAEjB,UAAW,GACX,SAAU,GACV,UAAW,GACX,SAAU,GACV,EAAG,GACH,EAAG,GACH,YAAa,GAEb,QAAS,GACT,SAAU,GACV,IAAK,GACL,KAAM,GACN,MAAO,GACP,OAAQ,GACT,CASK,EAA6B,IAAI,IAAI,OAAO,KAAK,EAAU,CAAC,CAElE,SAAgB,EAAgB,EAAmD,CACjF,OAAO,OAAO,GAAS,UAAY,EAAc,IAAI,EAAK"}