Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/bootstrap-vue/src/utils/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { concat } from './array'
import { identity } from './identity'
import { isFunction } from './inspect'
// Note for functional components:
// In functional components, `slots` is a function so it must be called
// first before passing to the below methods. `scopedSlots` is always an
// object and may be undefined (for Vue < 2.6.x)
/**
* Returns true if either scoped or unscoped named slot exists
*
* @param {String, Array} name or name[]
* @param {Object} scopedSlots
* @param {Object} slots
* @returns {Array|undefined} VNodes
*/
export const hasNormalizedSlot = (names, $scopedSlots = {}, $slots = {}) => {
// Ensure names is an array
names = concat(names).filter(identity)
// Returns true if the either a $scopedSlot or $slot exists with the specified name
return names.some(name => $scopedSlots[name] || $slots[name])
}
/**
* Returns VNodes for named slot either scoped or unscoped
*
* @param {String, Array} name or name[]
* @param {String} scope
* @param {Object} scopedSlots
* @param {Object} slots
* @returns {Array|undefined} VNodes
*/
export const normalizeSlot = (names, scope = {}, $scopedSlots = {}, $slots = {}) => {
// Ensure names is an array
names = concat(names).filter(identity)
let slot
for (let i = 0; i < names.length && !slot; i++) {
const name = names[i]
slot = $scopedSlots[name] || $slots[name]
}
// Note: in Vue 2.6.x, all named slots are also scoped slots
return isFunction(slot) ? slot(scope) : slot
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |