function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
import classNames from 'classnames';
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import PisellCards from "../PisellCards";
import SuperTabs from "../PisellSuperTabs";
import Iconfont from "../iconfont";
import { PisellFind } from "../pisellFind";
import "./PisellTabbar.less";
import { DEFAULT_LEVEL_CONFIG, LEVEL_ADD_ITEMS, getExpandConfig } from "./constants";
import { useActiveKey, useExpand } from "./hooks";
import mock from "./mock";
import { addDataSourceItemsByKey, getDefaultActiveKey } from "./utils";
import { useMemoizedFn } from 'ahooks';
/** Tabbar 内 SuperTabs 共用的 ScrollView 内边距样式。 */
var TABBAR_SCROLL_VIEW_PADDING_STYLE = {
  padding: '4px 8px'
};

/** Tabbar 内 ScrollView 左右箭头配置（模块级常量）。 */
var TABBAR_SCROLL_ACTIONS_CONFIG = {
  type: 'lrArrows',
  show: true
};

/**
 * 按层级展开态生成稳定的 scrollViewProps 配置。
 *
 * @example
 * buildTabbarScrollViewProps(false); // overflow: 'x'
 */
var buildTabbarScrollViewProps = function buildTabbarScrollViewProps(isExpanded) {
  return {
    style: TABBAR_SCROLL_VIEW_PADDING_STYLE,
    overflow: isExpanded ? 'hidden' : 'x',
    scrollbarStyle: 'none',
    scrollActionsConfig: TABBAR_SCROLL_ACTIONS_CONFIG
  };
};

/**
 * 生成 Tabbar 实例 ID，隔离多实例下的面板挂载容器。
 *
 * @example
 * const tabbarId = createTabbarId();
 */
function createTabbarId() {
  return "tabbar-".concat(Date.now(), "-").concat(Math.random().toString(36).slice(2, 8));
}

/**
 * PisellTabbar - 多层级 Tabbar 组件
 *
 * 支持最多 3 层级的 Tab 导航，每层级可独立展开/收起
 *
 * @component
 * @example
 * ```tsx
 * <PisellTabbar
 *   dataSource={categoryData}
 *   value={[1, 10, 100]}
 *   onChange={(value) => console.log('当前选中:', value)}
 * />
 * ```
 */
var PisellTabbar = /*#__PURE__*/forwardRef(function (props, ref) {
  var _props$dataSource = props.dataSource,
    dataSource = _props$dataSource === void 0 ? props !== null && props !== void 0 && props.__designMode ? mock : mock : _props$dataSource,
    value = props.value,
    onChange = props.onChange,
    className = props.className,
    style = props.style,
    customLevelConfig = props.levelConfig,
    customExpandConfig = props.expandConfig,
    _props$maxLevel = props.maxLevel,
    maxLevel = _props$maxLevel === void 0 ? 3 : _props$maxLevel,
    _onSearch = props.onSearch,
    searchProps = props.searchProps;
  var containerRef = useRef(null);
  var tabbarIdRef = useRef(createTabbarId());
  var searchRef = useRef(null);

  // 激活的 key 管理
  var _useActiveKey = useActiveKey({
      initialActiveKey: value || getDefaultActiveKey(dataSource, 'id'),
      onChange: onChange
    }),
    activeKey = _useActiveKey.activeKey,
    setActiveKey = _useActiveKey.setActiveKey,
    getActiveKey = _useActiveKey.getActiveKey,
    _setActiveKey = _useActiveKey._setActiveKey,
    setCacheActiveKey = _useActiveKey.setCacheActiveKey,
    resetActiveKey = _useActiveKey.resetActiveKey,
    getCacheActiveKey = _useActiveKey.getCacheActiveKey;
  var level1Value = useMemo(function () {
    return getActiveKey(0);
  }, [activeKey]);
  var level2Value = useMemo(function () {
    return getActiveKey(1);
  }, [activeKey]);
  var level3Value = useMemo(function () {
    return getActiveKey(2);
  }, [activeKey]);

  // 展开状态管理
  var _useExpand = useExpand(),
    expand = _useExpand.expand,
    toggleExpand = _useExpand.toggleExpand,
    getExpand = _useExpand.getExpand;

  // 展开配置
  var expandConfigData = customExpandConfig || getExpandConfig();

  /**
   * 搜索弹层是否展开：展开时隐藏分类切换，仅保留搜索入口。
   */
  var _useState = useState(false),
    _useState2 = _slicedToArray(_useState, 2),
    isSearchOpen = _useState2[0],
    setIsSearchOpen = _useState2[1];

  /**
   * 打开搜索模式
   *
   * @example
   * openSearchMode();
   */
  var openSearchMode = useMemoizedFn(function () {
    setCacheActiveKey(activeKey);
    _setActiveKey([]);
    onChange === null || onChange === void 0 || onChange([]);
    setIsSearchOpen(true);
  });

  /**
   * 关闭搜索模式
   *
   * @example
   * closeSearchMode();
   */
  var closeSearchMode = useMemoizedFn(function () {
    _onSearch === null || _onSearch === void 0 || _onSearch('');
    resetActiveKey();
    setIsSearchOpen(false);
  });

  //@ts-ignore
  useImperativeHandle(ref, function () {
    var _searchRef$current;
    if (props !== null && props !== void 0 && props.__designMode) {
      return containerRef.current;
    }
    return {
      closeSearchMode: searchRef === null || searchRef === void 0 || (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.close
    };
  });

  /**
   * 同步外部 value 到内部状态
   */
  useEffect(function () {
    if (value) {
      _setActiveKey(value);
    }
  }, [JSON.stringify(value)]);

  /**
   * 获取层级配置
   */
  var getLevelConfig = useCallback(function (level) {
    return _objectSpread(_objectSpread({}, DEFAULT_LEVEL_CONFIG[level]), customLevelConfig === null || customLevelConfig === void 0 ? void 0 : customLevelConfig[level]);
  }, [customLevelConfig]);

  /**
   * 处理一级 Tab 切换
   */
  var handleLevel1Change = useCallback(function (key, item) {
    var _item$children;
    setActiveKey(0, key, item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? 0 : undefined);
  }, [setActiveKey]);

  /**
   * 处理二级 Tab 切换
   */
  var handleLevel2Change = useCallback(function (key, item) {
    var _item$children2;
    setActiveKey(1, key, item !== null && item !== void 0 && (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? 0 : undefined);
  }, [setActiveKey]);

  /**
   * 处理三级 Tab 切换
   */
  var handleLevel3Change = useCallback(function (key) {
    setActiveKey(2, key);
  }, [setActiveKey]);

  /**
   * 渲染 level2/level3 自定义点击卡片（如展开按钮）
   */
  var renderLevelNCard = useCallback(function (cardProps, level) {
    var _cardProps$active;
    var itemData = cardProps.dataSource;
    var levelConfig = getLevelConfig(level);
    return /*#__PURE__*/React.createElement(PisellCards.TextCard, _extends({
      text: itemData.text
    }, cardProps, {
      variant: "outlined",
      widthMode: "fixed",
      textConfig: {
        textAlign: 'center',
        color: '#FFF',
        flex: 'none'
      },
      style: {
        borderRadius: '8px',
        background: 'rgba(0, 0, 0, 0.50)',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        height: levelConfig.cardHeight
      },
      width: levelConfig.cardWidth,
      active: _objectSpread(_objectSpread({}, cardProps.active), {}, {
        style: _objectSpread(_objectSpread({}, (_cardProps$active = cardProps.active) === null || _cardProps$active === void 0 ? void 0 : _cardProps$active.style), {}, {
          color: '#000000',
          background: '#ffffff'
        })
      })
    }));
  }, [activeKey, getLevelConfig, getExpand, expandConfigData]);

  /**
   * 渲染 level2/level3 普通卡片
   */
  var renderLevelNNormalCard = useCallback(function (cardProps, level) {
    var _cardProps$active2;
    var itemData = cardProps.dataSource;
    var levelConfig = getLevelConfig(level);
    return /*#__PURE__*/React.createElement(PisellCards.TextCard, _extends({}, cardProps, {
      text: itemData.name,
      variant: "outlined",
      widthMode: "fixed",
      textConfig: {
        textAlign: 'center',
        color: '#FFF',
        maxLines: 2,
        ellipsis: true
      },
      style: {
        height: levelConfig.cardHeight,
        borderRadius: '8px',
        background: 'rgba(0, 0, 0, 0.50)'
      },
      width: levelConfig.cardWidth,
      active: _objectSpread(_objectSpread({}, cardProps.active), {}, {
        style: _objectSpread(_objectSpread({}, (_cardProps$active2 = cardProps.active) === null || _cardProps$active2 === void 0 ? void 0 : _cardProps$active2.style), {}, {
          color: '#000000',
          background: '#ffffff'
        })
      })
    }));
  }, [activeKey, getLevelConfig]);

  /**
   * 一级数据源
   */
  var level1DataSource = useMemo(function () {
    var full = addDataSourceItemsByKey(dataSource, LEVEL_ADD_ITEMS.level1);
    // 搜索弹层展开时，隐藏分类切换（普通分类 / 全部 / 展开），仅保留搜索入口本身。
    if (isSearchOpen) {
      return full.filter(function (item) {
        return (item === null || item === void 0 ? void 0 : item.key) === 'search';
      });
    }
    return full;
  }, [dataSource, isSearchOpen]);
  var level2Expand = getExpand('level2');
  var level3Expand = getExpand('level3');
  var level3ScrollViewProps = useMemo(function () {
    return buildTabbarScrollViewProps(level3Expand);
  }, [level3Expand]);
  var level2ScrollViewProps = useMemo(function () {
    return buildTabbarScrollViewProps(level2Expand);
  }, [level2Expand]);

  /**
   * 渲染三级 Tabbar
   */
  var renderLevel3 = useCallback(function (panelProps2) {
    if (maxLevel < 3) return null;
    var _dataSource2 = panelProps2.dataSource.children || [];
    if (_dataSource2.length) {
      _dataSource2 = addDataSourceItemsByKey(_dataSource2, LEVEL_ADD_ITEMS.level3);
    }
    var level3Config = getLevelConfig('level3');

    /**
     * 渲染三级 Tab 项
     */
    var renderLevel3Item = function renderLevel3Item(itemProps) {
      var itemData = itemProps.dataSource;

      // 处理自定义点击事件的项（如展开按钮）
      if (itemData !== null && itemData !== void 0 && itemData.customClick) {
        if (itemProps.dataSource.key === 'expand') {
          return renderExpand(itemProps, 'level3');
        }
      }

      // 普通项
      return /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
        card: function card(cardProps) {
          return renderLevelNNormalCard(cardProps, 'level3');
        },
        panelContainer: function panelContainer() {
          var selector = ".pisell-super-tabs-slot-bottom-".concat(tabbarIdRef.current, "-").concat(panelProps2.dataSource.id);
          return document.querySelector(selector);
        }
      }));
    };
    return /*#__PURE__*/React.createElement(SuperTabs, {
      id: "".concat(tabbarIdRef.current, "-").concat(panelProps2.dataSource.id),
      tabItemStyle: {},
      isControlled: true,
      dataSource: _dataSource2,
      value: level3Value,
      onChange: handleLevel3Change,
      rowKey: "id",
      style: {
        flex: 1,
        background: level3Config.superTabsBg
      },
      gridProps: {
        direction: 'horizontal',
        gap: 4,
        wrap: level3Expand ? 'wrap' : 'nowrap',
        startSlot: /*#__PURE__*/React.createElement("div", {
          style: {
            paddingLeft: level3Config.paddingLeft
          }
        }, /*#__PURE__*/React.createElement(Iconfont, {
          type: "pisell2-trend-down-01",
          style: {
            color: '#fff',
            fontSize: 24,
            marginRight: 8
          }
        }))
      },
      scrollViewProps: level3ScrollViewProps,
      renderItem: renderLevel3Item
    });
  }, [activeKey, maxLevel, getActiveKey, handleLevel3Change, level3Expand, level3ScrollViewProps, toggleExpand, getLevelConfig, renderLevelNCard, renderLevelNNormalCard]);

  /**
   * 渲染二级 Tabbar
   */
  var renderLevel2 = useCallback(function (panelProps) {
    if (maxLevel < 2) return null;
    var _dataSource = panelProps.dataSource.children || [];
    if (_dataSource.length) {
      _dataSource = addDataSourceItemsByKey(_dataSource, LEVEL_ADD_ITEMS.level2);
    }
    var level2Config = getLevelConfig('level2');

    /**
     * 渲染二级 Tab 项
     */
    var renderLevel2Item = function renderLevel2Item(itemProps) {
      var itemData = itemProps.dataSource;

      // 处理自定义点击事件的项（如展开按钮）
      if (itemData !== null && itemData !== void 0 && itemData.customClick) {
        if (itemProps.dataSource.key === 'expand') {
          return renderExpand(itemProps, 'level2');
        }
      }

      // 普通项
      return /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
        card: function card(cardProps) {
          return renderLevelNNormalCard(cardProps, 'level2');
        },
        panel: function panel(innerPanelProps) {
          var _innerPanelProps$data;
          if (innerPanelProps !== null && innerPanelProps !== void 0 && (_innerPanelProps$data = innerPanelProps.dataSource) !== null && _innerPanelProps$data !== void 0 && (_innerPanelProps$data = _innerPanelProps$data.children) !== null && _innerPanelProps$data !== void 0 && _innerPanelProps$data.length) {
            return renderLevel3(innerPanelProps);
          }
          return null;
        },
        panelContainer: function panelContainer() {
          var selector = ".pisell-super-tabs-slot-bottom-".concat(tabbarIdRef.current, "-").concat(panelProps.dataSource.id);
          return document.querySelector(selector);
        }
      }));
    };
    return /*#__PURE__*/React.createElement(SuperTabs, {
      id: "".concat(tabbarIdRef.current, "-").concat(panelProps.dataSource.id),
      tabItemStyle: {},
      dataSource: _dataSource,
      value: level2Value,
      isControlled: true,
      onChange: handleLevel2Change,
      rowKey: "id",
      style: {
        flex: 1,
        background: level2Config.superTabsBg
      },
      gridProps: {
        direction: 'horizontal',
        gap: 4,
        wrap: level2Expand ? 'wrap' : 'nowrap',
        startSlot: /*#__PURE__*/React.createElement("div", {
          style: {
            paddingLeft: level2Config.paddingLeft
          }
        }, /*#__PURE__*/React.createElement(Iconfont, {
          type: "pisell2-trend-down-01",
          style: {
            color: '#fff',
            fontSize: 24,
            marginRight: 8
          }
        }))
      },
      scrollViewProps: level2ScrollViewProps,
      renderItem: renderLevel2Item
    });
  }, [activeKey, maxLevel, getActiveKey, handleLevel2Change, level2Expand, level2ScrollViewProps, toggleExpand, getLevelConfig, renderLevelNCard, renderLevelNNormalCard, renderLevel3]);
  var renderExpand = useCallback(function (itemProps, level) {
    return /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
      card: function card(cardProps) {
        var _cardProps = _objectSpread({}, cardProps);
        var isExpand = getExpand(level);
        _cardProps.text = expandConfigData[isExpand ? 'active' : 'inactive'].text;
        _cardProps.prefixIcon = /*#__PURE__*/React.createElement(Iconfont, {
          type: expandConfigData[isExpand ? 'active' : 'inactive'].icon,
          style: {
            color: '#fff',
            fontSize: 20
          }
        });
        return renderLevelNCard(_cardProps, level);
      },
      onClick: function onClick() {
        toggleExpand(level);
      }
    }));
  }, [expand]);
  var renderSearch = useCallback(function (itemProps, level) {
    return /*#__PURE__*/React.createElement(PisellFind, _extends({
      showHistory: false,
      modalWidth: '100%'
    }, searchProps, {
      /** 仅在搜索弹层打开时才开启扫码监听：tabbar 的 Find 常驻挂载，关闭时不应长期占用扫码焦点 */
      enableScanner: Boolean(searchProps === null || searchProps === void 0 ? void 0 : searchProps.enableScanner) && isSearchOpen,
      ref: searchRef,
      onSearch: function onSearch(e) {
        _onSearch === null || _onSearch === void 0 || _onSearch(e);
      },
      getContainer: function getContainer() {
        return document.querySelector("#".concat(tabbarIdRef.current)) || document.body;
      },
      modalStyle: {
        width: '100%'
      },
      onOpen: openSearchMode,
      onClose: closeSearchMode,
      trigger: /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
        card: function card(cardProps) {
          var _cardProps = _objectSpread(_objectSpread({}, cardProps), {}, {
            text: /*#__PURE__*/React.createElement("div", {
              style: {
                display: 'flex',
                alignItems: 'center',
                gap: 4
              }
            }, /*#__PURE__*/React.createElement(Iconfont, {
              type: "pisell2-search-lg",
              style: {
                color: '#fff',
                fontSize: 20
              }
            }), /*#__PURE__*/React.createElement(Iconfont, {
              type: "pisell2-scan",
              style: {
                color: '#fff',
                fontSize: 20
              }
            }), /*#__PURE__*/React.createElement("span", null, "Find"))
          });
          return renderLevelNCard(_cardProps, level);
        }
      }))
    }));
  }, [activeKey, isSearchOpen]);
  /**
   * 渲染一级 Tab 项
   */
  var renderLevel1Item = useMemoizedFn(function (itemProps) {
    var itemData = itemProps.dataSource;
    // 处理自定义点击事件的项（如展开按钮）
    if (itemData !== null && itemData !== void 0 && itemData.customClick) {
      if (itemProps.dataSource.key === 'search') {
        return renderSearch(itemProps, 'level1');
      }
      if (itemProps.dataSource.key === 'expand') {
        return renderExpand(itemProps, 'level1');
      }
      return null;
    }

    // 普通项
    return /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
      card: function card(cardProps) {
        return renderLevelNNormalCard(cardProps, 'level1');
      },
      panel: function panel(panelProps) {
        var _panelProps$dataSourc;
        if (panelProps !== null && panelProps !== void 0 && (_panelProps$dataSourc = panelProps.dataSource) !== null && _panelProps$dataSourc !== void 0 && (_panelProps$dataSourc = _panelProps$dataSourc.children) !== null && _panelProps$dataSourc !== void 0 && _panelProps$dataSourc.length) {
          return renderLevel2(panelProps);
        }
        return null;
      },
      panelContainer: function panelContainer() {
        var selector = ".pisell-super-tabs-slot-bottom-".concat(tabbarIdRef.current);
        return document.querySelector(selector);
      }
    }));
  });
  var level1Config = useMemo(function () {
    return getLevelConfig('level1');
  }, [getLevelConfig]);
  var level1Expand = getExpand('level1');
  var level1ScrollViewProps = useMemo(function () {
    return buildTabbarScrollViewProps(level1Expand);
  }, [level1Expand]);

  /**
   * 一级 Tabbar DOM；依赖仅含展示与交互相关数据，减少无关父级重渲染带来的重建。
   *
   * @example
   * // activeKey / expand 未变时复用同一 SuperTabs 元素
   */
  var tabbarDom = useMemo(function () {
    return dataSource.length ? /*#__PURE__*/React.createElement("div", {
      className: classNames('pisell-tabbar', className),
      style: style,
      ref: containerRef
    }, /*#__PURE__*/React.createElement(SuperTabs, {
      isControlled: true,
      id: tabbarIdRef.current,
      tabItemStyle: {},
      dataSource: level1DataSource,
      value: level1Value,
      onChange: handleLevel1Change,
      rowKey: "id",
      style: {
        flex: 1,
        background: level1Config.superTabsBg
      },
      gridProps: {
        direction: 'horizontal',
        gap: 4,
        wrap: level1Expand ? 'wrap' : 'nowrap'
      },
      scrollViewProps: level1ScrollViewProps,
      renderItem: renderLevel1Item
    })) : null;
  }, [dataSource.length, className, style, level1DataSource, activeKey, expand, maxLevel, level1Value, handleLevel1Change, level1Config, level1Expand, level1ScrollViewProps, renderLevel1Item]);
  return tabbarDom;
});
PisellTabbar.displayName = 'PisellTabbar';
export default PisellTabbar;