Buckets:
| import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from "./chain.mjs"; | |
| import {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629} from "./useId.mjs"; | |
| import $7jXr9$clsx from "clsx"; | |
| /* | |
| * Copyright 2020 Adobe. All rights reserved. | |
| * This file is licensed to you under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. You may obtain a copy | |
| * of the License at http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software distributed under | |
| * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | |
| * OF ANY KIND, either express or implied. See the License for the specific language | |
| * governing permissions and limitations under the License. | |
| */ | |
| function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) { | |
| // Start with a base clone of the first argument. This is a lot faster than starting | |
| // with an empty object and adding properties as we go. | |
| let result = { | |
| ...args[0] | |
| }; | |
| for(let i = 1; i < args.length; i++){ | |
| let props = args[i]; | |
| for(let key in props){ | |
| let a = result[key]; | |
| let b = props[key]; | |
| // Chain events | |
| if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex. | |
| key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b); | |
| else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b); | |
| else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b); | |
| else result[key] = b !== undefined ? b : a; | |
| } | |
| } | |
| return result; | |
| } | |
| export {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps}; | |
| //# sourceMappingURL=mergeProps.module.js.map | |
Xet Storage Details
- Size:
- 2.05 kB
- Xet hash:
- d253f10654627c3279e936443ed814d606f6d1d5e41b3ddd04d7486e94a9d7f5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.