{"ast":null,"code":"// handle border collapse\nfunction compactItemBorder(token, parentCls, options, prefixCls) {\n  const {\n    focusElCls,\n    focus,\n    borderElCls\n  } = options;\n  const childCombinator = borderElCls ? '> *' : '';\n  const hoverEffects = ['hover', focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n  return {\n    [`&-item:not(${parentCls}-last-item)`]: {\n      marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal()\n    },\n    [`&-item:not(${prefixCls}-status-success)`]: {\n      zIndex: 2\n    },\n    '&-item': Object.assign(Object.assign({\n      [hoverEffects]: {\n        zIndex: 3\n      }\n    }, focusElCls ? {\n      [`&${focusElCls}`]: {\n        zIndex: 3\n      }\n    } : {}), {\n      [`&[disabled] ${childCombinator}`]: {\n        zIndex: 0\n      }\n    })\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, parentCls, options) {\n  const {\n    borderElCls\n  } = options;\n  const childCombinator = borderElCls ? `> ${borderElCls}` : '';\n  return {\n    [`&-item:not(${parentCls}-first-item):not(${parentCls}-last-item) ${childCombinator}`]: {\n      borderRadius: 0\n    },\n    [`&-item:not(${parentCls}-last-item)${parentCls}-first-item`]: {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartEndRadius: 0,\n        borderEndEndRadius: 0\n      }\n    },\n    [`&-item:not(${parentCls}-first-item)${parentCls}-last-item`]: {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartStartRadius: 0,\n        borderEndStartRadius: 0\n      }\n    }\n  };\n}\nexport function genCompactItemStyle(token, options = {\n  focus: true\n}) {\n  const {\n    componentCls\n  } = token;\n  const {\n    componentCls: customizePrefixCls\n  } = options;\n  const mergedComponentCls = customizePrefixCls || componentCls;\n  const compactCls = `${mergedComponentCls}-compact`;\n  return {\n    [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options, mergedComponentCls)), compactItemBorderRadius(mergedComponentCls, compactCls, options))\n  };\n}","map":{"version":3,"names":["compactItemBorder","token","parentCls","options","prefixCls","focusElCls","focus","borderElCls","childCombinator","hoverEffects","filter","Boolean","map","n","join","marginInlineEnd","calc","lineWidth","mul","equal","zIndex","Object","assign","compactItemBorderRadius","borderRadius","borderStartEndRadius","borderEndEndRadius","borderStartStartRadius","borderEndStartRadius","genCompactItemStyle","componentCls","customizePrefixCls","mergedComponentCls","compactCls"],"sources":["/Users/nili/Documents/trae_projects/client/node_modules/antd/es/style/compact-item.js"],"sourcesContent":["// handle border collapse\nfunction compactItemBorder(token, parentCls, options, prefixCls) {\n  const {\n    focusElCls,\n    focus,\n    borderElCls\n  } = options;\n  const childCombinator = borderElCls ? '> *' : '';\n  const hoverEffects = ['hover', focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n  return {\n    [`&-item:not(${parentCls}-last-item)`]: {\n      marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal()\n    },\n    [`&-item:not(${prefixCls}-status-success)`]: {\n      zIndex: 2\n    },\n    '&-item': Object.assign(Object.assign({\n      [hoverEffects]: {\n        zIndex: 3\n      }\n    }, focusElCls ? {\n      [`&${focusElCls}`]: {\n        zIndex: 3\n      }\n    } : {}), {\n      [`&[disabled] ${childCombinator}`]: {\n        zIndex: 0\n      }\n    })\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, parentCls, options) {\n  const {\n    borderElCls\n  } = options;\n  const childCombinator = borderElCls ? `> ${borderElCls}` : '';\n  return {\n    [`&-item:not(${parentCls}-first-item):not(${parentCls}-last-item) ${childCombinator}`]: {\n      borderRadius: 0\n    },\n    [`&-item:not(${parentCls}-last-item)${parentCls}-first-item`]: {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartEndRadius: 0,\n        borderEndEndRadius: 0\n      }\n    },\n    [`&-item:not(${parentCls}-first-item)${parentCls}-last-item`]: {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartStartRadius: 0,\n        borderEndStartRadius: 0\n      }\n    }\n  };\n}\nexport function genCompactItemStyle(token, options = {\n  focus: true\n}) {\n  const {\n    componentCls\n  } = token;\n  const {\n    componentCls: customizePrefixCls\n  } = options;\n  const mergedComponentCls = customizePrefixCls || componentCls;\n  const compactCls = `${mergedComponentCls}-compact`;\n  return {\n    [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options, mergedComponentCls)), compactItemBorderRadius(mergedComponentCls, compactCls, options))\n  };\n}"],"mappings":"AAAA;AACA,SAASA,iBAAiBA,CAACC,KAAK,EAAEC,SAAS,EAAEC,OAAO,EAAEC,SAAS,EAAE;EAC/D,MAAM;IACJC,UAAU;IACVC,KAAK;IACLC;EACF,CAAC,GAAGJ,OAAO;EACX,MAAMK,eAAe,GAAGD,WAAW,GAAG,KAAK,GAAG,EAAE;EAChD,MAAME,YAAY,GAAG,CAAC,OAAO,EAAEH,KAAK,GAAG,OAAO,GAAG,IAAI,EAAE,QAAQ,CAAC,CAACI,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAACC,CAAC,IAAI,KAAKA,CAAC,IAAIL,eAAe,EAAE,CAAC,CAACM,IAAI,CAAC,GAAG,CAAC;EAChI,OAAO;IACL,CAAC,cAAcZ,SAAS,aAAa,GAAG;MACtCa,eAAe,EAAEd,KAAK,CAACe,IAAI,CAACf,KAAK,CAACgB,SAAS,CAAC,CAACC,GAAG,CAAC,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC;IAC7D,CAAC;IACD,CAAC,cAAcf,SAAS,kBAAkB,GAAG;MAC3CgB,MAAM,EAAE;IACV,CAAC;IACD,QAAQ,EAAEC,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC;MACpC,CAACb,YAAY,GAAG;QACdW,M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