{"version":3,"file":"babel-helper-vue-jsx-merge-props-DHoaL3Vy.js","sources":["../../../node_modules/babel-helper-vue-jsx-merge-props/index.js"],"sourcesContent":["var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/\n\nmodule.exports = function mergeJSXProps (objs) {\n return objs.reduce(function (a, b) {\n var aa, bb, key, nestedKey, temp\n for (key in b) {\n aa = a[key]\n bb = b[key]\n if (aa && nestRE.test(key)) {\n // normalize class\n if (key === 'class') {\n if (typeof aa === 'string') {\n temp = aa\n a[key] = aa = {}\n aa[temp] = true\n }\n if (typeof bb === 'string') {\n temp = bb\n b[key] = bb = {}\n bb[temp] = true\n }\n }\n if (key === 'on' || key === 'nativeOn' || key === 'hook') {\n // merge functions\n for (nestedKey in bb) {\n aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])\n }\n } else if (Array.isArray(aa)) {\n a[key] = aa.concat(bb)\n } else if (Array.isArray(bb)) {\n a[key] = [aa].concat(bb)\n } else {\n for (nestedKey in bb) {\n aa[nestedKey] = bb[nestedKey]\n }\n }\n } else {\n a[key] = b[key]\n }\n }\n return a\n }, {})\n}\n\nfunction mergeFn (a, b) {\n return function () {\n a && a.apply(this, arguments)\n b && b.apply(this, arguments)\n }\n}\n"],"names":["nestRE","babelHelperVueJsxMergeProps","objs","a","b","aa","bb","key","nestedKey","temp","mergeFn"],"mappings":"uCAAA,IAAIA,EAAS,+CAEbC,EAAiB,SAAwBC,EAAM,CAC7C,OAAOA,EAAK,OAAO,SAAUC,EAAGC,EAAG,CACjC,IAAIC,EAAIC,EAAIC,EAAKC,EAAWC,EAC5B,IAAKF,KAAOH,EAGV,GAFAC,EAAKF,EAAEI,CAAG,EACVD,EAAKF,EAAEG,CAAG,EACNF,GAAML,EAAO,KAAKO,CAAG,EAcvB,GAZIA,IAAQ,UACN,OAAOF,GAAO,WAChBI,EAAOJ,EACPF,EAAEI,CAAG,EAAIF,EAAK,CAAE,EAChBA,EAAGI,CAAI,EAAI,IAET,OAAOH,GAAO,WAChBG,EAAOH,EACPF,EAAEG,CAAG,EAAID,EAAK,CAAE,EAChBA,EAAGG,CAAI,EAAI,KAGXF,IAAQ,MAAQA,IAAQ,YAAcA,IAAQ,OAEhD,IAAKC,KAAaF,EAChBD,EAAGG,CAAS,EAAIE,EAAQL,EAAGG,CAAS,EAAGF,EAAGE,CAAS,CAAC,UAE7C,MAAM,QAAQH,CAAE,EACzBF,EAAEI,CAAG,EAAIF,EAAG,OAAOC,CAAE,UACZ,MAAM,QAAQA,CAAE,EACzBH,EAAEI,CAAG,EAAI,CAACF,CAAE,EAAE,OAAOC,CAAE,MAEvB,KAAKE,KAAaF,EAChBD,EAAGG,CAAS,EAAIF,EAAGE,CAAS,OAIhCL,EAAEI,CAAG,EAAIH,EAAEG,CAAG,EAGlB,OAAOJ,CACR,EAAE,EAAE,CACN,EAED,SAASO,EAASP,EAAGC,EAAG,CACtB,OAAO,UAAY,CACjBD,GAAKA,EAAE,MAAM,KAAM,SAAS,EAC5BC,GAAKA,EAAE,MAAM,KAAM,SAAS,CAC7B,CACH","x_google_ignoreList":[0]}