{"ast":null,"code":"import { genStyleHooks, mergeToken } from '../../theme/internal';\nimport { initComponentToken, initInputToken } from './token';\n// =============================== OTP ================================\nconst genOTPStyle = token => {\n const {\n componentCls,\n paddingXS\n } = token;\n return {\n [componentCls]: {\n display: 'inline-flex',\n alignItems: 'center',\n flexWrap: 'nowrap',\n columnGap: paddingXS,\n '&-rtl': {\n direction: 'rtl'\n },\n [`${componentCls}-input`]: {\n textAlign: 'center',\n paddingInline: token.paddingXXS\n },\n // ================= Size =================\n [`&${componentCls}-sm ${componentCls}-input`]: {\n paddingInline: token.calc(token.paddingXXS).div(2).equal()\n },\n [`&${componentCls}-lg ${componentCls}-input`]: {\n paddingInline: token.paddingXS\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genStyleHooks(['Input', 'OTP'], token => {\n const inputToken = mergeToken(token, initInputToken(token));\n return [genOTPStyle(inputToken)];\n}, initComponentToken);","map":{"version":3,"names":["genStyleHooks","mergeToken","initComponentToken","initInputToken","genOTPStyle","token","componentCls","paddingXS","display","alignItems","flexWrap","columnGap","direction","textAlign","paddingInline","paddingXXS","calc","div","equal","inputToken"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/input/style/otp.js"],"sourcesContent":["import { genStyleHooks, mergeToken } from '../../theme/internal';\nimport { initComponentToken, initInputToken } from './token';\n// =============================== OTP ================================\nconst genOTPStyle = token => {\n const {\n componentCls,\n paddingXS\n } = token;\n return {\n [componentCls]: {\n display: 'inline-flex',\n alignItems: 'center',\n flexWrap: 'nowrap',\n columnGap: paddingXS,\n '&-rtl': {\n direction: 'rtl'\n },\n [`${componentCls}-input`]: {\n textAlign: 'center',\n paddingInline: token.paddingXXS\n },\n // ================= Size =================\n [`&${componentCls}-sm ${componentCls}-input`]: {\n paddingInline: token.calc(token.paddingXXS).div(2).equal()\n },\n [`&${componentCls}-lg ${componentCls}-input`]: {\n paddingInline: token.paddingXS\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genStyleHooks(['Input', 'OTP'], token => {\n const inputToken = mergeToken(token, initInputToken(token));\n return [genOTPStyle(inputToken)];\n}, initComponentToken);"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,SAAS;AAC5D;AACA,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGF,KAAK;EACT,OAAO;IACL,CAACC,YAAY,GAAG;MACdE,OAAO,EAAE,aAAa;MACtBC,UAAU,EAAE,QAAQ;MACpBC,QAAQ,EAAE,QAAQ;MAClBC,SAAS,EAAEJ,SAAS;MACpB,OAAO,EAAE;QACPK,SAAS,EAAE;MACb,CAAC;MACD,CAAC,GAAGN,YAAY,QAAQ,GAAG;QACzBO,SAAS,EAAE,QAAQ;QACnBC,aAAa,EAAET,KAAK,CAACU;MACvB,CAAC;MACD;MACA,CAAC,IAAIT,YAAY,OAAOA,YAAY,QAAQ,GAAG;QAC7CQ,aAAa,EAAET,KAAK,CAACW,IAAI,CAACX,KAAK,CAACU,UAAU,CAAC,CAACE,GAAG,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC;MAC3D,CAAC;MACD,CAAC,IAAIZ,YAAY,OAAOA,YAAY,QAAQ,GAAG;QAC7CQ,aAAa,EAAET,KAAK,CAACE;MACvB;IACF;EACF,CAAC;AACH,CAAC;AACD;AACA,eAAeP,aAAa,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,EAAEK,KAAK,IAAI;EACtD,MAAMc,UAAU,GAAGlB,UAAU,CAACI,KAAK,EAAEF,cAAc,CAACE,KAAK,CAAC,CAAC;EAC3D,OAAO,CAACD,WAAW,CAACe,UAAU,CAAC,CAAC;AAClC,CAAC,EAAEjB,kBAAkB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}