{"ast":null,"code":"export function getPlacementStyle(placement, top, bottom) {\n  let style;\n  switch (placement) {\n    case 'top':\n      style = {\n        left: '50%',\n        transform: 'translateX(-50%)',\n        right: 'auto',\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'topLeft':\n      style = {\n        left: 0,\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'topRight':\n      style = {\n        right: 0,\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'bottom':\n      style = {\n        left: '50%',\n        transform: 'translateX(-50%)',\n        right: 'auto',\n        top: 'auto',\n        bottom\n      };\n      break;\n    case 'bottomLeft':\n      style = {\n        left: 0,\n        top: 'auto',\n        bottom\n      };\n      break;\n    default:\n      style = {\n        right: 0,\n        top: 'auto',\n        bottom\n      };\n      break;\n  }\n  return style;\n}\nexport function getMotion(prefixCls) {\n  return {\n    motionName: `${prefixCls}-fade`\n  };\n}","map":{"version":3,"names":["getPlacementStyle","placement","top","bottom","style","left","transform","right","getMotion","prefixCls","motionName"],"sources":["/Users/shanyi/Desktop/Projects/UC_Trains_Voice/react-demo/node_modules/antd/es/notification/util.js"],"sourcesContent":["export function getPlacementStyle(placement, top, bottom) {\n  let style;\n  switch (placement) {\n    case 'top':\n      style = {\n        left: '50%',\n        transform: 'translateX(-50%)',\n        right: 'auto',\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'topLeft':\n      style = {\n        left: 0,\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'topRight':\n      style = {\n        right: 0,\n        top,\n        bottom: 'auto'\n      };\n      break;\n    case 'bottom':\n      style = {\n        left: '50%',\n        transform: 'translateX(-50%)',\n        right: 'auto',\n        top: 'auto',\n        bottom\n      };\n      break;\n    case 'bottomLeft':\n      style = {\n        left: 0,\n        top: 'auto',\n        bottom\n      };\n      break;\n    default:\n      style = {\n        right: 0,\n        top: 'auto',\n        bottom\n      };\n      break;\n  }\n  return style;\n}\nexport function getMotion(prefixCls) {\n  return {\n    motionName: `${prefixCls}-fade`\n  };\n}"],"mappings":"AAAA,OAAO,SAASA,iBAAiBA,CAACC,SAAS,EAAEC,GAAG,EAAEC,MAAM,EAAE;EACxD,IAAIC,KAAK;EACT,QAAQH,SAAS;IACf,KAAK,KAAK;MACRG,KAAK,GAAG;QACNC,IAAI,EAAE,KAAK;QACXC,SAAS,EAAE,kBAAkB;QAC7BC,KAAK,EAAE,MAAM;QACbL,GAAG;QACHC,MAAM,EAAE;MACV,CAAC;MACD;IACF,KAAK,SAAS;MACZC,KAAK,GAAG;QACNC,IAAI,EAAE,CAAC;QACPH,GAAG;QACHC,MAAM,EAAE;MACV,CAAC;MACD;IACF,KAAK,UAAU;MACbC,KAAK,GAAG;QACNG,KAAK,EAAE,CAAC;QACRL,GAAG;QACHC,MAAM,EAAE;MACV,CAAC;MACD;IACF,KAAK,QAAQ;MACXC,KAAK,GAAG;QACNC,IAAI,EAAE,KAAK;QACXC,SAAS,EAAE,kBAAkB;QAC7BC,KAAK,EAAE,MAAM;QACbL,GAAG,EAAE,MAAM;QACXC;MACF,CAAC;MACD;IACF,KAAK,YAAY;MACfC,KAAK,GAAG;QACNC,IAAI,EAAE,CAAC;QACPH,GAAG,EAAE,MAAM;QACXC;MACF,CAAC;MACD;IACF;MACEC,KAAK,GAAG;QACNG,KAAK,EAAE,CAAC;QACRL,GAAG,EAAE,MAAM;QACXC;MACF,CAAC;MACD;EACJ;EACA,OAAOC,KAAK;AACd;AACA,OAAO,SAASI,SAASA,CAACC,SAAS,EAAE;EACnC,OAAO;IACLC,UAAU,EAAG,GAAED,SAAU;EAC3B,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}