/**
 * @since Last modified: 2024-09-10 10:49:50
 * @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';
import config from '../global/config';
const optSwipe: T_obj[] = unique([
    {
        attr: 'axis',
        prop: 'axis',
        value: 'x',
    },
    {
        attr: 'keyboard',
        prop: 'keyboard',
        value: false,
    },
    {
        attr: 'active',
        prop: 'active',
        value: 0,
    },
    {
        attr: 'duration',
        prop: 'duration',
        value: 500,
    },
    {
        attr: 'throttle',
        prop: 'throttle',
        value: 0,
    },
    {
        attr: 'slides',
        prop: 'slides',
        value: 1,
    },
    {
        attr: 'divide',
        prop: 'divide',
        value: 1,
    },
    {
        attr: 'group',
        prop: 'group',
        value: 0,
    },
    {
        attr: 'loop',
        prop: 'loop',
        value: false,
    },
    {
        attr: 'autoHeight',
        prop: 'autoHeight',
        value: false,
    },
    {
        attr: 'countdown',
        prop: 'countdown',
        value: {},
    },
    {
        attr: 'gap',
        prop: 'gap',
        value: 0,
    },
    {
        attr: 'unalign',
        prop: 'unalign',
        value: '[unalignable]',
    },
    {
        attr: 'centered',
        prop: 'centered',
        value: {
            enable: false,
            fill: false,
        },
    },
    {
        attr: 'active',
        prop: 'active',
        value: 0,
    },
    {
        attr: 'keyboard',
        prop: 'keyboard',
        value: false,
    },
    {
        attr: 'resize-reset',
        prop: 'resizeReset',
        value: true,
    },
    {
        attr: 'drift',
        prop: 'drift',
        value: 1,
    },
    {
        attr: 'wheel',
        prop: 'wheel',
        value: 1,
    },
    {
        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',
            hyphen:'/',
        },
    },
    {
        attr: 'pgn',
        prop: 'pgn',
        value: {
            enable: false,
            classes: '',
            type: 'lamp',
            selector: '',
            data: [],
            before: null,
            after:null,
        },
    },
    {
        attr: 'nav',
        prop: 'nav',
        value: {
            enable: true,
            classes: '',
            fill: false,
            intvl:500,
            prev: {
                selector: '',
                classes: '',
                text: '',
            },
            next: {
                selector: '',
                classes: '',
                text: '',
            },
        },
    },
    {
        attr: 'autoplay',
        prop: 'autoplay',
        value: {
            enable:false,
            delay:4000,
            countdown:false,
        },
    },
    {
        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: 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;
