/******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	// The require scope
/******/ 	var __webpack_require__ = {};
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": function() { return /* binding */ opinion_list_oa_collapse; }
});

;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/opinion-list-oa-collapse/src/main.vue?vue&type=template&id=35b75ed1&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c,
    _setup = _vm._self._setupProxy;
  return _c("div", {
    staticClass: "jdf-opinion-list-oa-collapse jdf-opinion-list-oa jdf-opinion-list jdf-form-collapse"
  }, [_c("el-collapse", {
    model: {
      value: _setup.activeName,
      callback: function callback($$v) {
        _setup.activeName = $$v;
      },
      expression: "activeName"
    }
  }, [_c("el-collapse-item", {
    attrs: {
      id: _setup.props.id,
      name: "1"
    }
  }, [_c("template", {
    slot: "title"
  }, [_c("div", {
    staticClass: "head-title"
  }, [_c("span", {
    staticClass: "head-title-text"
  }, [_c("span", {
    staticClass: "collapse-title"
  }, [_vm._v(_vm._s(_setup.props.collapseTitle))])]), _vm.notice ? _c("span", {
    staticClass: "notice"
  }, [_vm._v(_vm._s(_setup.props.notice))]) : _vm._e()]), _c("div", {
    staticClass: "head-operate",
    on: {
      click: function click($event) {
        $event.stopPropagation();
      },
      keyup: function keyup($event) {
        $event.stopPropagation();
      }
    }
  }, [_c("el-form", {
    staticClass: "search-container",
    nativeOn: {
      submit: function submit($event) {
        $event.preventDefault();
      }
    },
    model: {
      value: _setup.searchData,
      callback: function callback($$v) {
        _setup.searchData = $$v;
      },
      expression: "searchData"
    }
  }, [_c("el-form-item", {
    attrs: {
      label: ""
    }
  }, [_setup.props.showSearchInput ? _c("el-input", _vm._b({
    attrs: {
      size: "small",
      clearable: ""
    },
    model: {
      value: _setup.searchData.filterText,
      callback: function callback($$v) {
        _vm.$set(_setup.searchData, "filterText", $$v);
      },
      expression: "searchData.filterText"
    }
  }, "el-input", _setup.props.searchInputAttrs, false)) : _vm._e()], 1), _c("el-form-item", {
    attrs: {
      label: ""
    }
  }, [_setup.props.showHideRead ? _c("el-checkbox", {
    staticClass: "hide-readed jdf-ml30",
    model: {
      value: _setup.searchData.hideReaded,
      callback: function callback($$v) {
        _vm.$set(_setup.searchData, "hideReaded", $$v);
      },
      expression: "searchData.hideReaded"
    }
  }, [_vm._v("\n                隐藏已阅\n              ")]) : _vm._e()], 1), _c("el-form-item", {
    attrs: {
      label: ""
    }
  }, [_setup.props.showFilterDept ? _c("el-checkbox", {
    staticClass: "filter-dept jdf-ml30",
    model: {
      value: _setup.searchData.filterDept,
      callback: function callback($$v) {
        _vm.$set(_setup.searchData, "filterDept", $$v);
      },
      expression: "searchData.filterDept"
    }
  }, [_vm._v("\n                仅本部门意见\n              ")]) : _vm._e()], 1)], 1)], 1)]), _c("div", {
    staticClass: "opinion-container"
  }, [_c("el-descriptions", {
    attrs: {
      column: 1,
      border: ""
    }
  }, _vm._l(_setup.showList, function (item, index) {
    return _c("el-descriptions-item", {
      key: index,
      attrs: {
        label: item.opinionFieldName,
        labelClassName: "opinion-label ".concat(item.opinionFieldCode, " ").concat(item.opinionFieldDesc),
        contentClassName: "opinion-con ".concat(item.opinionFieldCode, " ").concat(item.opinionFieldDesc)
      }
    }, _vm._l(item.formOpinionList, function (opinionItem, opinionIndex) {
      return _c("div", {
        key: opinionIndex,
        staticClass: "opinion-item",
        class: {
          "leader-opinion": !opinionItem.orgCode
        }
      }, [_c("div", {
        staticClass: "opinion-content"
      }, [_vm._v("\n                " + _vm._s(opinionItem.opnContent) + "\n              ")]), _c("div", {
        staticClass: "opinion-sign"
      }, [_c("div", {
        domProps: {
          innerHTML: _vm._s(_setup.getSignText(opinionItem))
        }
      })])]);
    }), 0);
  }), 1), _c("transition", {
    attrs: {
      name: "el-fade-in-linear"
    }
  }, [_setup.showMore ? _c("el-descriptions", {
    attrs: {
      column: 1,
      border: ""
    }
  }, _vm._l(_setup.collapseList, function (item, index) {
    return _c("el-descriptions-item", {
      key: index,
      attrs: {
        label: item.opinionFieldName,
        labelClassName: "opinion-label ".concat(item.opinionFieldCode, " ").concat(item.opinionFieldDesc),
        contentClassName: "opinion-con ".concat(item.opinionFieldCode, " ").concat(item.opinionFieldDesc)
      }
    }, _vm._l(item.formOpinionList, function (opinionItem, opinionIndex) {
      return _c("div", {
        key: opinionIndex,
        staticClass: "opinion-item",
        class: {
          "leader-opinion": !opinionItem.orgCode
        }
      }, [_c("div", {
        staticClass: "opinion-content"
      }, [_vm._v("\n                  " + _vm._s(opinionItem.opnContent) + "\n                ")]), _c("div", {
        staticClass: "opinion-sign"
      }, [_c("div", {
        domProps: {
          innerHTML: _vm._s(_setup.getSignText(opinionItem))
        }
      })])]);
    }), 0);
  }), 1) : _vm._e()], 1), _vm.collapse && !_setup.isEmpty(_setup.originMoreList) ? _c("div", {
    staticClass: "view-more"
  }, [_setup.showMore ? _c("el-link", {
    attrs: {
      type: "info",
      underline: false
    },
    nativeOn: {
      click: function click($event) {
        return _setup.hideMore.apply(null, arguments);
      }
    }
  }, [_vm._v("\n            折叠意见信息"), _c("i", {
    staticClass: "el-icon-arrow-up"
  })]) : _c("el-link", {
    attrs: {
      type: "info",
      underline: false
    },
    nativeOn: {
      click: function click($event) {
        return _setup.viewMore.apply(null, arguments);
      }
    }
  }, [_vm._v("\n            查看全部意见"), _c("i", {
    staticClass: "el-icon-arrow-down"
  })])], 1) : _vm._e()], 1)], 2)], 1)], 1);
};
var staticRenderFns = [];
render._withStripped = true;

;// CONCATENATED MODULE: ./packages/opinion-list-oa-collapse/src/main.vue?vue&type=template&id=35b75ed1&

;// CONCATENATED MODULE: external "@babel/runtime/helpers/defineProperty"
var defineProperty_namespaceObject = require("@babel/runtime/helpers/defineProperty");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/helpers/extends"
var extends_namespaceObject = require("@babel/runtime/helpers/extends");
var extends_default = /*#__PURE__*/__webpack_require__.n(extends_namespaceObject);
;// CONCATENATED MODULE: external "vue"
var external_vue_namespaceObject = require("vue");
;// CONCATENATED MODULE: external "lodash/isEmpty"
var isEmpty_namespaceObject = require("lodash/isEmpty");
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_namespaceObject);
;// CONCATENATED MODULE: external "pinyin-pro"
var external_pinyin_pro_namespaceObject = require("pinyin-pro");
;// CONCATENATED MODULE: external "lodash/isArray"
var isArray_namespaceObject = require("lodash/isArray");
var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray_namespaceObject);
;// CONCATENATED MODULE: external "lodash/take"
var take_namespaceObject = require("lodash/take");
var take_default = /*#__PURE__*/__webpack_require__.n(take_namespaceObject);
;// CONCATENATED MODULE: external "lodash/drop"
var drop_namespaceObject = require("lodash/drop");
var drop_default = /*#__PURE__*/__webpack_require__.n(drop_namespaceObject);
;// CONCATENATED MODULE: external "lodash/toLower"
var toLower_namespaceObject = require("lodash/toLower");
var toLower_default = /*#__PURE__*/__webpack_require__.n(toLower_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isFunction"
var isFunction_namespaceObject = require("lodash/isFunction");
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_namespaceObject);
;// CONCATENATED MODULE: external "lodash/map"
var map_namespaceObject = require("lodash/map");
var map_default = /*#__PURE__*/__webpack_require__.n(map_namespaceObject);
;// CONCATENATED MODULE: external "dayjs"
var external_dayjs_namespaceObject = require("dayjs");
var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_namespaceObject);
;// CONCATENATED MODULE: ./src/utils/day-util.js
/*
 * @Author: lirl
 * @Date: 2020-04-21 10:08:54
 * @LastEditTime: 2022-04-21 09:40:22
 * @Description: 日期转换工具方法
 */


/**
 * 将毫秒值的时间格式化为format格式.
 * @param {Number} millisecond 毫秒
 * @param {String} format 要转换的格式
 */
var formatMillisecondToString = function formatMillisecondToString(millisecond) {
  var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';
  return millisecond ? external_dayjs_default()(millisecond).format(format) : '';
};

/**
 * 获取当前时间的毫秒值
 */
var getCurrentMillisecond = function getCurrentMillisecond() {
  return dayjs().valueOf();
};

;// CONCATENATED MODULE: external "lodash/slice"
var slice_namespaceObject = require("lodash/slice");
var slice_default = /*#__PURE__*/__webpack_require__.n(slice_namespaceObject);
;// CONCATENATED MODULE: ./src/composables-api/opinion/useOpinionCommon.js

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }




/*
 * @Author: lirl
 * @Date: 2023-04-19 23:21:21
 * @Description: 意见组件公共api
 */
function useOpinionCommon(timeFormatter) {
  // 意见签名
  var defaultOpnFlowNodeSign = {
    nameIsDisplay: 1,
    nameIsHigh: 1,
    orgStartRank: 1,
    orgEndRank: 10,
    orgIsDisplay: 1,
    sortRule: '["name","org","time"]',
    timeIsDisplay: 1,
    timeType: 'YYYY-MM-DD HH:mm:ss',
    useSign: 1
  };

  /**
   * 构建单条意见对象
   * @param {Object} opinion 单条意见对象
   */
  var buildOpinionItem = function buildOpinionItem(opinion) {
    // 意见签名
    var opnFlowNodeSign = opinion.opnFlowNodeSign;
    // 如果该意见是外出授权处理人填写的意见，则用户名显示为A代B，否则显示原本的用户名
    var userName = opinion.outAuthUserName ? "".concat(opinion.userName, "\u4EE3").concat(opinion.outAuthUserName) : opinion.userName;
    return _objectSpread(_objectSpread({}, opinion), {}, {
      userName: userName,
      paths: JSON.parse(opinion.orgPath),
      formatterCreateTime: formatMillisecondToString(opinion.createTime, opnFlowNodeSign !== null && opnFlowNodeSign !== void 0 && opnFlowNodeSign.useSign ? opnFlowNodeSign.timeType : timeFormatter)
    });
  };

  /**
   * 获取签名配置
   * @param {Object} opinionItem 单条意见信息
   */
  var getSignText = function getSignText(opinionItem) {
    var _signConf;
    var signConf = opinionItem.opnFlowNodeSign;
    if (!((_signConf = signConf) !== null && _signConf !== void 0 && _signConf.useSign)) {
      signConf = defaultOpnFlowNodeSign;
    }
    var signTextConf = {
      name: function name(isHigh) {
        return "<span class=\"opinion-sign-text opinion-sign-user ".concat(isHigh ? 'name-high' : '', "\">\n              <span>").concat(opinionItem.userName, "</span>\n            </span>");
      },
      time: function time() {
        return "<span class=\"opinion-sign-text opinion-time-text\"><span>".concat(opinionItem.formatterCreateTime, "</span></span>");
      },
      org: function org(path) {
        return "<span class=\"opinion-sign-text opinion-sign-dept\">\n              <span class=\"left-brackets\">(</span><span class=\"center-path\">".concat(path, "</span><span class=\"right-brackets\">)</span>\n            </span>");
      }
    };
    var sortRule = JSON.parse(signConf.sortRule);
    return map_default()(sortRule, function (v) {
      var show = signConf["".concat(v, "IsDisplay")];
      if (!show) {
        return '';
      }
      if (v === 'org') {
        var path = slice_default()(opinionItem.paths, signConf.orgStartRank, signConf.orgEndRank).join('/');
        return path ? signTextConf.org(path) : '';
      }
      return signTextConf[v](signConf["".concat(v, "IsHigh")]);
    }).join('');
  };
  return {
    buildOpinionItem: buildOpinionItem,
    getSignText: getSignText
  };
}
;// CONCATENATED MODULE: ./src/composables-api/opinion/useOpinion.js

function useOpinion_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function useOpinion_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? useOpinion_ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : useOpinion_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }











/*
 * @Author: lirl
 * @Date: 2023-04-18 15:05:20
 * @Description: 意见相关公共api
 */
function useOpinion(props, _this) {
  // 查询参数
  var searchData = (0,external_vue_namespaceObject.ref)({
    filterText: '',
    hideReaded: false,
    filterDept: false
  });
  // 是否显示更多
  var showMore = (0,external_vue_namespaceObject.ref)(false);
  // 更多意见
  var moreOpinionList = (0,external_vue_namespaceObject.ref)([]);
  // 展示的意见
  var opinionList = (0,external_vue_namespaceObject.ref)([]);
  // 原更多意见
  var originMoreList = (0,external_vue_namespaceObject.ref)([]);
  // 隐藏已阅时匹配的字段
  var hideTexts = (0,external_vue_namespaceObject.computed)(function () {
    var _this$$JDF$hideReadTe;
    return (_this$$JDF$hideReadTe = _this.$JDF.hideReadTexts) !== null && _this$$JDF$hideReadTe !== void 0 ? _this$$JDF$hideReadTe : ['已阅', '已阅。', '已阅知', '已阅知。'];
  });

  /**
   * 将意见中的用户名转拼音
   * @param {String} pinyinName 已存在的拼音
   * @param {String} userName 用户姓名
   * @returns pinyin
   */
  var getPinyinName = function getPinyinName(pinyinName, userName) {
    var _translate$replace;
    // 用户名转拼音
    if (pinyinName) {
      return pinyinName;
    }
    var translate = (0,external_pinyin_pro_namespaceObject.pinyin)(userName, {
      toneType: 'none'
    });
    return (_translate$replace = translate === null || translate === void 0 ? void 0 : translate.replace(/\s/g, '')) !== null && _translate$replace !== void 0 ? _translate$replace : '';
  };

  /**
   * 构建意见
   */
  var buildOpinion = function buildOpinion(data) {
    var opinionConfig = data.opinionConfig,
      _data$opinionList = data.opinionList,
      list = _data$opinionList === void 0 ? [] : _data$opinionList;
    return map_default()(opinionConfig, function (v) {
      // 意见域id
      var id = v.id;
      // 根据意见域id，过滤出意见列表
      var oList = list.filter(function (o) {
        return o.opnDefId === id;
      });
      return useOpinion_objectSpread(useOpinion_objectSpread({}, v), {}, {
        formOpinionList: oList
      });
    });
  };
  var _useOpinionCommon = useOpinionCommon(props.timeFormatter),
    buildOpinionItem = _useOpinionCommon.buildOpinionItem,
    getSignText = _useOpinionCommon.getSignText;

  /**
   * 构建单条意见对象，包含用户名转拼音
   * @param {Object} opinion 单条意见对象
   * @param {Boolean} isPinyin 是否转拼音
   */
  var buildOpinionItemWithPinyin = function buildOpinionItemWithPinyin(opinion) {
    var data = buildOpinionItem(opinion);
    return useOpinion_objectSpread(useOpinion_objectSpread({}, data), {}, {
      pinyinName: getPinyinName(opinion.pinyinName, data.userName)
    });
  };

  /**
   * 重构意见列表
   * @param {Array} list 意见列表
   */
  var buildOpinionList = function buildOpinionList(list) {
    return map_default()(list, function (v) {
      var _v$opinionFieldDesc;
      return useOpinion_objectSpread(useOpinion_objectSpread({}, v), {}, {
        opinionFieldDesc: (_v$opinionFieldDesc = v.opinionFieldDesc) !== null && _v$opinionFieldDesc !== void 0 ? _v$opinionFieldDesc : '',
        formOpinionList: map_default()(v.formOpinionList, buildOpinionItemWithPinyin)
      });
    });
  };

  /**
   * 构建要展示的意见列表
   * @param {Array} data 意见列表数据
   */
  var getOpinionList = function getOpinionList(data) {
    var list = isArray_default()(data) ? data : buildOpinion(data);
    if (props.collapse) {
      var collapseNum = props.collapseNum;
      opinionList.value = buildOpinionList(take_default()(list, collapseNum));
      originMoreList.value = drop_default()(list, collapseNum);
    } else {
      opinionList.value = buildOpinionList(list);
    }
  };

  /**
   * 构建意见过滤方法
   */
  var filterFunc = function filterFunc(filterText, hideReaded, filterDept) {
    var deptName = props.deptName;
    // 判断意见是否展示的方法
    var condition = function condition(opn) {
      var opnContent = opn.opnContent;
      // 取三个条件的交集
      return !(hideReaded && hideTexts.value.includes(opnContent)) && (!filterText || opnContent.includes(filterText) || opn.userName.includes(filterText) || opn.orgName.includes(filterText) || opn.formatterCreateTime.includes(filterText) || opn.pinyinName.includes(toLower_default()(filterText))) && (!filterDept || opn.paths.includes(deptName));
    };
    return condition;
  };

  /**
   * 根据条件过滤
   */
  var filterByCondition = function filterByCondition(searchInfo, list) {
    var filterFn = filterFunc(searchInfo.filterText, searchInfo.hideReaded, searchInfo.filterDept);
    var leaderOpinionMark = props.leaderOpinionMark;
    // 根据条件过滤意见
    return map_default()(list, function (t) {
      return useOpinion_objectSpread(useOpinion_objectSpread({}, t), {}, {
        formOpinionList: t.opinionFieldDesc.includes(leaderOpinionMark) ? t.formOpinionList : t.formOpinionList.filter(filterFn)
      });
    });
  };

  /**
   * 折叠意见
   */
  var hideMore = function hideMore() {
    showMore.value = false;
  };

  /**
   * 查看更多信息
   */
  var viewMore = function viewMore(callback) {
    showMore.value = true;
    (0,external_vue_namespaceObject.nextTick)(function () {
      isFunction_default()(callback) && callback();
    });
  };

  /**
   * 展开查看更多意见
   */
  var expand = function expand() {
    if (isEmpty_default()(moreOpinionList.value)) {
      moreOpinionList.value = buildOpinionList(originMoreList.value);
    }
  };

  /**
   * 根据条件过滤的展示的意见
   */
  var showList = (0,external_vue_namespaceObject.computed)(function () {
    return filterByCondition(searchData.value, opinionList.value);
  });

  /**
   * 根据条件过滤的折叠的意见
   */
  var collapseList = (0,external_vue_namespaceObject.computed)(function () {
    return filterByCondition(searchData.value, moreOpinionList.value);
  });
  (0,external_vue_namespaceObject.watch)(searchData, function (value) {
    if (props.rememberCheck) {
      localStorage.setItem('hideReaded', value.hideReaded);
      localStorage.setItem('filterDept', value.filterDept);
    }
  }, {
    deep: true
  });
  (0,external_vue_namespaceObject.watchEffect)(function () {
    if (showMore.value) {
      expand();
    }
  });
  (0,external_vue_namespaceObject.onMounted)(function () {
    if (props.rememberCheck) {
      searchData.value.hideReaded = localStorage.getItem('hideReaded') === 'true';
      searchData.value.filterDept = localStorage.getItem('filterDept') === 'true';
    }
  });
  return {
    showMore: showMore,
    opinionList: opinionList,
    originMoreList: originMoreList,
    searchData: searchData,
    showList: showList,
    collapseList: collapseList,
    getOpinionList: getOpinionList,
    getSignText: getSignText,
    hideMore: hideMore,
    viewMore: viewMore
  };
}
;// CONCATENATED MODULE: ./src/composables-api/opinion/useOpinionProps.js
/*
 * @Author: lirl
 * @Date: 2023-04-19 23:45:39
 * @Description: 意见组件公共属性
 */
function useOpinionProps() {
  return {
    /**
     * 意见对象数组
     */
    data: {
      type: [Object, Array],
      default: function _default() {
        return [];
      }
    },
    // 是否折叠
    collapse: {
      type: Boolean,
      default: false
    },
    // 折叠条数
    collapseNum: {
      type: Number,
      default: 2
    },
    // 是否显示搜索框
    showSearchInput: {
      type: Boolean,
      default: true
    },
    // 搜索输入框属性
    searchInputAttrs: {
      type: Object,
      default: function _default() {
        return {
          placeholder: '搜索：姓名（汉字/拼音）、组织、意见',
          'prefix-icon': 'el-icon-search'
        };
      }
    },
    // 是否显示隐藏已阅
    showHideRead: {
      type: Boolean,
      default: true
    },
    // 是否显示过滤本部门意见
    showFilterDept: {
      type: Boolean,
      default: true
    },
    // 是否记住用户的选择
    rememberCheck: {
      type: Boolean,
      default: true
    },
    // 根据部门过滤时部门名称
    deptName: String,
    // 领导意见域标识，过滤时不过滤领导意见
    leaderOpinionMark: {
      type: String,
      default: 'leader-opinion'
    },
    // 日期格式
    timeFormatter: {
      type: String,
      default: 'YYYY-MM-DD HH:mm:ss'
    }
  };
}
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/opinion-list-oa-collapse/src/main.vue?vue&type=script&setup=true&lang=js&


function mainvue_type_script_setup_true_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function mainvue_type_script_setup_true_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? mainvue_type_script_setup_true_lang_js_ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : mainvue_type_script_setup_true_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var __default__ = {
  name: 'JdfOpinionListOaCollapse'
};




/* harmony default export */ var mainvue_type_script_setup_true_lang_js_ = (/*#__PURE__*/extends_default()(__default__, {
  props: mainvue_type_script_setup_true_lang_js_objectSpread(mainvue_type_script_setup_true_lang_js_objectSpread({}, useOpinionProps()), {}, {
    /**
     * 组件id
     */
    id: String,
    /**
     * 组件的title
     */
    collapseTitle: {
      type: String,
      default: '审批意见'
    },
    /**
     * 副标题
     */
    notice: String
  }),
  setup: function setup(__props, _ref) {
    var expose = _ref.expose;
    var props = __props;

    // eslint-disable-next-line no-underscore-dangle
    var _this = (0,external_vue_namespaceObject.getCurrentInstance)().proxy;
    var _useOpinion = useOpinion(props, _this),
      showMore = _useOpinion.showMore,
      searchData = _useOpinion.searchData,
      showList = _useOpinion.showList,
      collapseList = _useOpinion.collapseList,
      originMoreList = _useOpinion.originMoreList,
      getSignText = _useOpinion.getSignText,
      getOpinionList = _useOpinion.getOpinionList,
      hideMore = _useOpinion.hideMore,
      viewMore = _useOpinion.viewMore;
    var activeName = (0,external_vue_namespaceObject.ref)('1');

    // 监听意见列表，构建意见数据
    (0,external_vue_namespaceObject.watchEffect)(function () {
      if (!isEmpty_default()(props.data)) {
        getOpinionList(props.data);
      }
    });
    expose({
      viewMore: viewMore
    });
    return {
      __sfc: true,
      props: props,
      _this: _this,
      showMore: showMore,
      searchData: searchData,
      showList: showList,
      collapseList: collapseList,
      originMoreList: originMoreList,
      getSignText: getSignText,
      getOpinionList: getOpinionList,
      hideMore: hideMore,
      viewMore: viewMore,
      activeName: activeName,
      isEmpty: (isEmpty_default())
    };
  }
}));
;// CONCATENATED MODULE: ./packages/opinion-list-oa-collapse/src/main.vue?vue&type=script&setup=true&lang=js&
 /* harmony default export */ var src_mainvue_type_script_setup_true_lang_js_ = (mainvue_type_script_setup_true_lang_js_); 
;// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}

;// CONCATENATED MODULE: ./packages/opinion-list-oa-collapse/src/main.vue





/* normalize component */
;
var component = normalizeComponent(
  src_mainvue_type_script_setup_true_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var main = (component.exports);
;// CONCATENATED MODULE: ./packages/opinion-list-oa-collapse/index.js

main.install = function (Vue) {
  Vue.component(main.name, main);
};
/* harmony default export */ var opinion_list_oa_collapse = (main);
module.exports = __webpack_exports__;
/******/ })()
;