import{__exports as n}from"../../../../../_virtual/ChildMapping.js_commonjs-exports";export{__exports as default}from"../../../../../_virtual/ChildMapping.js_commonjs-exports";import e from"react";n.__esModule=!0,n.getChildMapping=i,n.mergeChildMappings=r,n.getInitialChildMapping=function(n,e){return i(n.children,(function(i){return(0,t.cloneElement)(i,{onExited:e.bind(null,i),in:!0,appear:l(i,"appear",n),enter:l(i,"enter",n),exit:l(i,"exit",n)})}))},n.getNextChildMapping=function(n,e,o){var a=i(n.children),p=r(e,a);return Object.keys(p).forEach((function(i){var r=p[i];if((0,t.isValidElement)(r)){var u=i in e,c=i in a,f=e[i],d=(0,t.isValidElement)(f)&&!f.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,t.isValidElement)(f)&&(p[i]=(0,t.cloneElement)(r,{onExited:o.bind(null,r),in:f.props.in,exit:l(r,"exit",n),enter:l(r,"enter",n)})):p[i]=(0,t.cloneElement)(r,{in:!1}):p[i]=(0,t.cloneElement)(r,{onExited:o.bind(null,r),in:!0,exit:l(r,"exit",n),enter:l(r,"enter",n)})}})),p};var t=e;function i(n,e){var i=Object.create(null);return n&&t.Children.map(n,(function(n){return n})).forEach((function(n){i[n.key]=function(n){return e&&(0,t.isValidElement)(n)?e(n):n}(n)})),i}function r(n,e){function t(t){return t in e?e[t]:n[t]}n=n||{},e=e||{};var i,r=Object.create(null),l=[];for(var o in n)o in e?l.length&&(r[o]=l,l=[]):l.push(o);var a={};for(var p in e){if(r[p])for(i=0;i<r[p].length;i++){var u=r[p][i];a[r[p][i]]=t(u)}a[p]=t(p)}for(i=0;i<l.length;i++)a[l[i]]=t(l[i]);return a}function l(n,e,t){return null!=t[e]?t[e]:n.props[e]}
//# sourceMappingURL=ChildMapping.js.map
