{"version":3,"file":"isFlexStyleProp-XQrOn6cR.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAa,YAAY;CACvB,cAAc;CACd,YAAY;CACZ,WAAW;CACX,MAAM;CACN,WAAW;CACX,eAAe;CACf,QAAQ;CACR,KAAK;CACL,WAAW;CACX,UAAU;CACV,YAAY;CACZ,UAAU;CACV,gBAAgB;CAEhB,QAAQ;CACR,cAAc;CACd,WAAW;CACX,YAAY;CACZ,aAAa;CACb,aAAa;CACb,WAAW;CACX,cAAc;CACd,aAAa;CACb,kBAAkB;CAClB,gBAAgB;CAEhB,SAAS;CACT,eAAe;CACf,YAAY;CACZ,aAAa;CACb,cAAc;CACd,cAAc;CACd,YAAY;CACZ,eAAe;CACf,cAAc;CACd,mBAAmB;CACnB,iBAAiB;CAEjB,WAAW;CACX,UAAU;CACV,WAAW;CACX,UAAU;CACV,GAAG;CACH,GAAG;CACH,aAAa;CAEb,SAAS;CACT,UAAU;CACV,KAAK;CACL,MAAM;CACN,OAAO;CACP,QAAQ;CACT;AASD,IAAM,gBAA6B,IAAI,IAAI,OAAO,KAAK,UAAU,CAAC;AAElE,SAAgB,gBAAgB,MAAmD;AACjF,QAAO,OAAO,SAAS,YAAY,cAAc,IAAI,KAAK"}