/**
 * @since Last modified: 2024-08-12 21:08:00
 * @constant optSwipe
 * @description  The attrs and props comparison table of Swipe module.
 */
'use strict';
import optBase from './optBase';
import { T_obj } from '../../../types/ax';
import ax from '../ax';
import unique from '../utils/unique';
const optSwipe: T_obj[] = unique([
    {
        attr: 'active',
        prop: 'active',
        value: 0,
    },
    {
        attr: 'duration',
        prop: 'duration',
        value: 500,
    },
    {
        attr: 'throttle',
        prop: 'throttle',
        value: 0,
    },
    {
        attr: 'cols',
        prop: 'cols',
        value: 1,
    },
    {
        attr: 'rows',
        prop: 'rows',
        value: 1,
    },
    {
        attr: 'grouped',
        prop: 'grouped',
        value: false,
    },
    {
        attr: 'loop',
        prop: 'loop',
        value: false,
    },
    {
        attr: 'autoHeight',
        prop: 'autoHeight',
        value: false,
    },
    {
        attr: 'gap',
        prop: 'gap',
        value: 0,
    },
    {
        attr: 'centered',
        prop: 'centered',
        value: {
            enable: false,
            fill: false,
        },
    },
    {
        attr: 'keyboard',
        prop: 'keyboard',
        value: false,
    },
    {
        attr: 'scroll',
        prop: 'scroll',
        value: {},
    },
    {
        attr: 'tools',
        prop: 'tools',
        value: {
            enable: false,
            placement: 'right-top',
            children: [],
        },
    },
    {
        attr: 'total',
        prop: 'total',
        value: {
            enable: false,
            placement: 'right-top',
        },
    },
    {
        attr: 'pagination',
        prop: 'pagination',
        value: {
            enable: false,
            classes: '',
            type: 'lamp',
            selector: '',
            data: [],
            cb: '',
        },
    },
    {
        attr: 'navigation',
        prop: 'navigation',
        value: {
            enable: false,
            classes: '',
            fill: false,
            prev: {
                selector: '',
                classes: '',
                text: '',
            },
            next: {
                selector: '',
                classes: '',
                text: '',
            },
        },
    },
    {
        attr: 'autoplay',
        prop: 'autoplay',
        value: {
            enable:false,
            delay:4000,
        },
    },
    {
        attr: 'integrated',
        prop: 'integrated',
        value: false,
    },
    {
        attr: 'content',
        prop: 'content',
        value: '',
    },
    {
        attr: 'cont-type',
        prop: 'contType',
        value: 'text',
    },
    {
        attr: 'cont-data',
        prop: 'contData',
        value: {},
    },
    {
        attr: 'ajax',
        prop: 'ajax',
        value: {},
    },
    {
        attr: 'hyphen',
        prop: 'hyphen',
        value: ax.config.splitHyphen,
    },
    {
        attr: 'tpl-str',
        prop: 'tplStr',
        value: '',
    },
    {
        attr: 'tpl-eng',
        prop: 'tplEng',
        value: null,
    },
    {
        attr: 'lazy',
        prop: 'lazy',
        value: false,
    },
    {
        attr: 'media',
        prop: 'media',
        value: {
            caption: '',
            brief: '',
        },
    },
    {
        attr: 'classes',
        prop: 'classes',
        value: '', 
    },
    {
        attr: 'on-fold',
        prop: 'onFold',
        value: null,
    },
    {
        attr: 'on-unfold',
        prop: 'onUnfold',
        value: null,
    },
    {
        attr: 'on-updatecont',
        prop: 'onUpdateCont',
        value: null,
    },
    ...optBase
], 'attr');
export default optSwipe;
