{"ast":null,"code":"// ============================ Directory =============================\nexport const genDirectoryStyle = _ref => {\n  let {\n    treeCls,\n    treeNodeCls,\n    directoryNodeSelectedBg,\n    directoryNodeSelectedColor,\n    motionDurationMid,\n    borderRadius,\n    controlItemBgHover\n  } = _ref;\n  return {\n    [`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {\n      // >>> Title\n      [`${treeCls}-node-content-wrapper`]: {\n        position: 'static',\n        [`&:has(${treeCls}-drop-indicator)`]: {\n          position: 'relative'\n        },\n        [`> *:not(${treeCls}-drop-indicator)`]: {\n          position: 'relative'\n        },\n        '&:hover': {\n          background: 'transparent'\n        },\n        // Expand interactive area to whole line\n        '&:before': {\n          position: 'absolute',\n          inset: 0,\n          transition: `background-color ${motionDurationMid}`,\n          content: '\"\"',\n          borderRadius\n        },\n        '&:hover:before': {\n          background: controlItemBgHover\n        }\n      },\n      [`${treeCls}-switcher, ${treeCls}-checkbox, ${treeCls}-draggable-icon`]: {\n        zIndex: 1\n      },\n      // ============= Selected =============\n      '&-selected': {\n        background: directoryNodeSelectedBg,\n        borderRadius,\n        [`${treeCls}-switcher, ${treeCls}-draggable-icon`]: {\n          color: directoryNodeSelectedColor\n        },\n        // >>> Title\n        [`${treeCls}-node-content-wrapper`]: {\n          color: directoryNodeSelectedColor,\n          background: 'transparent',\n          '&, &:hover': {\n            color: directoryNodeSelectedColor\n          },\n          '&:before, &:hover:before': {\n            background: directoryNodeSelectedBg\n          }\n        }\n      }\n    }\n  };\n};","map":{"version":3,"names":["genDirectoryStyle","_ref","treeCls","treeNodeCls","directoryNodeSelectedBg","directoryNodeSelectedColor","motionDurationMid","borderRadius","controlItemBgHover","position","background","inset","transition","content","zIndex","color"],"sources":["/Users/nili/Documents/trae_projects/client/node_modules/antd/es/tree/style/directory.js"],"sourcesContent":["// ============================ Directory =============================\nexport const genDirectoryStyle = ({\n  treeCls,\n  treeNodeCls,\n  directoryNodeSelectedBg,\n  directoryNodeSelectedColor,\n  motionDurationMid,\n  borderRadius,\n  controlItemBgHover\n}) => ({\n  [`${treeCls}${treeCls}-directory ${treeNodeCls}`]: {\n    // >>> Title\n    [`${treeCls}-node-content-wrapper`]: {\n      position: 'static',\n      [`&:has(${treeCls}-drop-indicator)`]: {\n        position: 'relative'\n      },\n      [`> *:not(${treeCls}-drop-indicator)`]: {\n        position: 'relative'\n      },\n      '&:hover': {\n        background: 'transparent'\n      },\n      // Expand interactive area to whole line\n      '&:before': {\n        position: 'absolute',\n        inset: 0,\n        transition: `background-color ${motionDurationMid}`,\n        content: '\"\"',\n        borderRadius\n      },\n      '&:hover:before': {\n        background: controlItemBgHover\n      }\n    },\n    [`${treeCls}-switcher, ${treeCls}-checkbox, ${treeCls}-draggable-icon`]: {\n      zIndex: 1\n    },\n    // ============= Selected =============\n    '&-selected': {\n      background: directoryNodeSelectedBg,\n      borderRadius,\n      [`${treeCls}-switcher, ${treeCls}-draggable-icon`]: {\n        color: directoryNodeSelectedColor\n      },\n      // >>> Title\n      [`${treeCls}-node-content-wrapper`]: {\n        color: directoryNodeSelectedColor,\n        background: 'transparent',\n        '&, &:hover': {\n          color: directoryNodeSelectedColor\n        },\n        '&:before, &:hover:before': {\n          background: directoryNodeSelectedBg\n        }\n      }\n    }\n  }\n});"],"mappings":"AAAA;AACA,OAAO,MAAMA,iBAAiB,GAAGC,IAAA;EAAA,IAAC;IAChCC,OAAO;IACPC,WAAW;IACXC,uBAAuB;IACvBC,0BAA0B;IAC1BC,iBAAiB;IACjBC,YAAY;IACZC;EACF,CAAC,GAAAP,IAAA;EAAA,OAAM;IACL,CAAC,GAAGC,OAAO,GAAGA,OAAO,cAAcC,WAAW,EAAE,GAAG;MACjD;MACA,CAAC,GAAGD,OAAO,uBAAuB,GAAG;QACnCO,QAAQ,EAAE,QAAQ;QAClB,CAAC,SAASP,OAAO,kBAAkB,GAAG;UACpCO,QAAQ,EAAE;QACZ,CAAC;QACD,CAAC,WAAWP,OAAO,kBAAkB,GAAG;UACtCO,QAAQ,EAAE;QACZ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