PromoCursed/node_modules/.cache/babel-loader/d9368572dcb099467ea6c97ec0b1886d095c494af79aed2743b844db9b583550.json
2024-08-20 23:25:37 +04:00

1 line
3.3 KiB
JSON

{"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":["C:/Users/Аришина)/Desktop/promo/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,EAAE,GAAGD,SAAS;EAC1B,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}