{
  "version": 3,
  "sources": ["../../../src/hooks/push-changes-to-global-styles/style-labels.js"],
  "sourcesContent": ["import { capitalCase } from 'change-case';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Readable labels for style paths, keyed by `path.join( '.' )`.\n *\n * The block style config (`__EXPERIMENTAL_STYLE_PROPERTY`) has no labels of its\n * own, so they live here. A path with no entry falls back to a readable version\n * of its last part (see `getStyleLabel`).\n *\n * @type {Record<string, string>}\n */\nexport const STYLE_LABELS = {\n\t// Typography.\n\t'typography.fontFamily': __( 'Font family' ),\n\t'typography.fontSize': __( 'Font size' ),\n\t'typography.fontStyle': __( 'Font style' ),\n\t'typography.fontWeight': __( 'Font weight' ),\n\t'typography.lineHeight': __( 'Line height' ),\n\t'typography.letterSpacing': __( 'Letter spacing' ),\n\t'typography.textDecoration': __( 'Text decoration' ),\n\t'typography.textTransform': __( 'Letter case' ),\n\t'typography.textColumns': __( 'Text columns' ),\n\t'typography.writingMode': __( 'Orientation' ),\n\n\t// Color.\n\t'color.text': __( 'Text color' ),\n\t'color.background': __( 'Background color' ),\n\t'color.gradient': __( 'Gradient' ),\n\t'elements.link.color.text': __( 'Link color' ),\n\n\t// Spacing.\n\t'spacing.padding': __( 'Padding' ),\n\t'spacing.margin': __( 'Margin' ),\n\t'spacing.blockGap': __( 'Block spacing' ),\n\n\t// Border.\n\tborder: __( 'Border' ),\n\t'border.top': __( 'Border top' ),\n\t'border.right': __( 'Border right' ),\n\t'border.bottom': __( 'Border bottom' ),\n\t'border.left': __( 'Border left' ),\n\t'border.color': __( 'Border color' ),\n\t'border.width': __( 'Border width' ),\n\t'border.style': __( 'Border style' ),\n\t'border.radius': __( 'Border radius' ),\n\n\t// Dimensions.\n\t'dimensions.minHeight': __( 'Minimum height' ),\n\t'dimensions.aspectRatio': __( 'Aspect ratio' ),\n};\n\n/**\n * Returns a readable label for a style path.\n *\n * When the path has no label of its own, it falls back to a readable version of\n * the path's last part so nothing shows up blank.\n *\n * @param {string[]} path Style path, e.g. `[ 'color', 'background' ]`.\n *\n * @return {string} A readable label.\n */\nexport function getStyleLabel( path ) {\n\tconst key = path.join( '.' );\n\tif ( STYLE_LABELS[ key ] ) {\n\t\treturn STYLE_LABELS[ key ];\n\t}\n\treturn capitalCase( path[ path.length - 1 ] ?? '' );\n}\n"],
  "mappings": ";AAAA,SAAS,mBAAmB;AAC5B,SAAS,UAAU;AAWZ,IAAM,eAAe;AAAA;AAAA,EAE3B,yBAAyB,GAAI,aAAc;AAAA,EAC3C,uBAAuB,GAAI,WAAY;AAAA,EACvC,wBAAwB,GAAI,YAAa;AAAA,EACzC,yBAAyB,GAAI,aAAc;AAAA,EAC3C,yBAAyB,GAAI,aAAc;AAAA,EAC3C,4BAA4B,GAAI,gBAAiB;AAAA,EACjD,6BAA6B,GAAI,iBAAkB;AAAA,EACnD,4BAA4B,GAAI,aAAc;AAAA,EAC9C,0BAA0B,GAAI,cAAe;AAAA,EAC7C,0BAA0B,GAAI,aAAc;AAAA;AAAA,EAG5C,cAAc,GAAI,YAAa;AAAA,EAC/B,oBAAoB,GAAI,kBAAmB;AAAA,EAC3C,kBAAkB,GAAI,UAAW;AAAA,EACjC,4BAA4B,GAAI,YAAa;AAAA;AAAA,EAG7C,mBAAmB,GAAI,SAAU;AAAA,EACjC,kBAAkB,GAAI,QAAS;AAAA,EAC/B,oBAAoB,GAAI,eAAgB;AAAA;AAAA,EAGxC,QAAQ,GAAI,QAAS;AAAA,EACrB,cAAc,GAAI,YAAa;AAAA,EAC/B,gBAAgB,GAAI,cAAe;AAAA,EACnC,iBAAiB,GAAI,eAAgB;AAAA,EACrC,eAAe,GAAI,aAAc;AAAA,EACjC,gBAAgB,GAAI,cAAe;AAAA,EACnC,gBAAgB,GAAI,cAAe;AAAA,EACnC,gBAAgB,GAAI,cAAe;AAAA,EACnC,iBAAiB,GAAI,eAAgB;AAAA;AAAA,EAGrC,wBAAwB,GAAI,gBAAiB;AAAA,EAC7C,0BAA0B,GAAI,cAAe;AAC9C;AAYO,SAAS,cAAe,MAAO;AACrC,QAAM,MAAM,KAAK,KAAM,GAAI;AAC3B,MAAK,aAAc,GAAI,GAAI;AAC1B,WAAO,aAAc,GAAI;AAAA,EAC1B;AACA,SAAO,YAAa,KAAM,KAAK,SAAS,CAAE,KAAK,EAAG;AACnD;",
  "names": []
}
