You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.0 KiB
1 line
3.0 KiB
2 years ago
|
{"ast":null,"code":"import bindActionCreators from '../utils/bindActionCreators';\nimport { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\nexport function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\nexport function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {\n return {\n dispatch: dispatch\n };\n }) : undefined;\n}\nexport function whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {\n return bindActionCreators(mapDispatchToProps, dispatch);\n }) : undefined;\n}\nexport default [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];","map":{"version":3,"names":["bindActionCreators","wrapMapToPropsConstant","wrapMapToPropsFunc","whenMapDispatchToPropsIsFunction","mapDispatchToProps","undefined","whenMapDispatchToPropsIsMissing","dispatch","whenMapDispatchToPropsIsObject"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-redux/es/connect/mapDispatchToProps.js"],"sourcesContent":["import bindActionCreators from '../utils/bindActionCreators';\nimport { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\nexport function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\nexport function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {\n return {\n dispatch: dispatch\n };\n }) : undefined;\n}\nexport function whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {\n return bindActionCreators(mapDispatchToProps, dispatch);\n }) : undefined;\n}\nexport default [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];"],"mappings":"AAAA,OAAOA,kBAAP,MAA+B,6BAA/B;AACA,SAASC,sBAAT,EAAiCC,kBAAjC,QAA2D,kBAA3D;AACA,OAAO,SAASC,gCAAT,CAA0CC,kBAA1C,EAA8D;EACnE,OAAO,OAAOA,kBAAP,KAA8B,UAA9B,GAA2CF,kBAAkB,CAACE,kBAAD,EAAqB,oBAArB,CAA7D,GAA0GC,SAAjH;AACD;AACD,OAAO,SAASC,+BAAT,CAAyCF,kBAAzC,EAA6D;EAClE,OAAO,CAACA,kBAAD,GAAsBH,sBAAsB,CAAC,UAAUM,QAAV,EAAoB;IACtE,OAAO;MACLA,QAAQ,EAAEA;IADL,CAAP;EAGD,CAJkD,CAA5C,GAIFF,SAJL;AAKD;AACD,OAAO,SAASG,8BAAT,CAAwCJ,kBAAxC,EAA4D;EACjE,OAAOA,kBAAkB,IAAI,OAAOA,kBAAP,KAA8B,QAApD,GAA+DH,sBAAsB,CAAC,UAAUM,QAAV,EAAoB;IAC/G,OAAOP,kBAAkB,CAACI,kBAAD,EAAqBG,QAArB,CAAzB;EACD,CAF2F,CAArF,GAEFF,SAFL;AAGD;AACD,eAAe,CAACF,gCAAD,EAAmCG,+BAAnC,EAAoEE,8BAApE,CAAf"},"metadata":{},"sourceType":"module"}
|