{"ast":null,"code":"// handle border collapse\nfunction compactItemBorder(token, parentCls, options) {\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': Object.assign(Object.assign({\n [hoverEffects]: {\n zIndex: 2\n }\n }, focusElCls ? {\n [`&${focusElCls}`]: {\n zIndex: 2\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) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n focus: true\n };\n const {\n componentCls\n } = token;\n const compactCls = `${componentCls}-compact`;\n return {\n [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options)), compactItemBorderRadius(componentCls, compactCls, options))\n };\n}","map":{"version":3,"names":["compactItemBorder","token","parentCls","options","focusElCls","focus","borderElCls","childCombinator","hoverEffects","filter","Boolean","map","n","join","marginInlineEnd","calc","lineWidth","mul","equal","Object","assign","zIndex","compactItemBorderRadius","prefixCls","borderRadius","borderStartEndRadius","borderEndEndRadius","borderStartStartRadius","borderEndStartRadius","genCompactItemStyle","arguments","length","undefined","componentCls","compactCls"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/style/compact-item.js"],"sourcesContent":["// handle border collapse\nfunction compactItemBorder(token, parentCls, options) {\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': Object.assign(Object.assign({\n [hoverEffects]: {\n zIndex: 2\n }\n }, focusElCls ? {\n [`&${focusElCls}`]: {\n zIndex: 2\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) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n focus: true\n };\n const {\n componentCls\n } = token;\n const compactCls = `${componentCls}-compact`;\n return {\n [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options)), compactItemBorderRadius(componentCls, compactCls, options))\n };\n}"],"mappings":"AAAA;AACA,SAASA,iBAAiBA,CAACC,KAAK,EAAEC,SAAS,EAAEC,OAAO,EAAE;EACpD,MAAM;IACJC,UAAU;IACVC,KAAK;IACLC;EACF,CAAC,GAAGH,OAAO;EACX,MAAMI,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,cAAcX,SAAS,aAAa,GAAG;MACtCY,eAAe,EAAEb,KAAK,CAACc,IAAI,CAACd,KAAK,CAACe,SAAS,CAAC,CAACC,GAAG,CAAC,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC;IAC7D,CAAC;IACD,QAAQ,EAAEC,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC;MACpC,CAACZ,YAAY,GAAG;QACda,MAAM,EAAE;MACV;IACF,CAAC,EAAEjB,UAAU,GAAG;MACd,CAAC,IAAIA,UAAU,EAAE,GAAG;QAClBiB,MAAM,EAAE;MACV;IACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;MACP,CAAC,eAAed,eAAe,EAAE,GAAG;QAClCc,MAAM,EAAE;MACV;IACF,CAAC;EACH,CAAC;AACH;AACA;AACA,SAASC,uBAAuBA,CAACC,SAAS,EAAErB,SAAS,EAAEC,OAAO,EAAE;EAC9D,MAAM;IACJG;EACF,CAAC,GAAGH,OAAO;EACX,MAAMI,eAAe,GAAGD,WAAW,GAAG,KAAKA,WAAW,EAAE,GAAG,EAAE;EAC7D,OAAO;IAC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