"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _default = exports["default"] = {
  wfsSourceUrl: '/geoserver/zhsw/ows',
  wmsSourceUrl: '/geoserver/zhsw/wms',
  jcssSourceUrl: '/geoserver/zhsw/wms',
  fileViewUrl: '/cloudFile/common/download',
  videoViewUrl: '/vortex/rest/cloud/np/file/downloadFile',
  filePdfViewUrl: '/cloudFile/common/downloadPdfFile',
  publicUrlJCSS: '/cloud/zhsw-jcss',
  // 基础设施
  publicUrlJCYJ: '/cloud/zhsw-jcyj',
  // 监测预警
  publicUrlQXJC: '/cloud/zhsw-qxjc',
  // 气象监测
  publicUrlSCGL: '/cloud/zhsw-scgl',
  publicUrlZHSWDEVICE: '/cloud/zhsw-device',
  // 智慧水务-设备管理
  publicUrlDEVICE: '/cloud/device',
  // 设备管理
  publicUrlREBORN: '/cloud/jcss-reborn',
  publicUrlPSFW: '/cloud/zhsw-psfw',
  // 排水服务
  publicUrlGCGL: '/cloud/zhsw-gcgl',
  // 工程管理
  publicUrlGSFW: '/cloud/zhsw-gsfw',
  // 供水服务
  publicUrlXCGL: '/cloud/zhsw-xcgl',
  // 巡查管理
  publicUrlSJGD: '/cloud/zhsw-sjgd',
  // 事件工单
  publicUrlZNFX: '/cloud/zhsw-znfx',
  // 智能分析
  publicUrlZHXT: '/cloud/zhxt',
  // 事件工单相关
  publicUrlGeo: '/geoserver',
  cockpitColor: '#EFF7FF',
  cockpitStyle: {
    textColor: '#FFFFFF',
    bgColor: '#1C5287',
    splitLineColor: '#308DE9'
  },
  reg: {
    lengthMax: function lengthMax(maxLength) {
      return {
        max: maxLength,
        message: "\u4E0D\u8D85\u8FC7".concat(maxLength, "\u5B57\u7B26")
      };
    },
    required: {
      required: true,
      message: '必填'
    },
    phone: {
      // pattern: /^1((3[\d])|(4[\d])|(5[0-3,5-9])|(6[5-7])|(7[0-8])|(8[0-3,5-9])|(9[1,5,8,9]))\d{8}$/,
      pattern: /^1\d{10}$/,
      message: '请填写正确的手机号码'
    },
    phone2: {
      pattern: /^((0\d{2,3}-\d{7,8})|([1-9]\d{4}\b)|(1\d{10}))$/,
      message: '请填写正确的手机或座机号码'
    },
    positiveNumber: {
      pattern: /^\d+(.\d{1,12})?$/,
      message: '请填写正数'
    },
    positiveInteger: {
      pattern: /^[1-9]\d*$/,
      message: '请填写正整数'
    },
    integer: {
      pattern: /^[0-9]\d*$/,
      message: '请填写非负整数'
    },
    interval100: {
      pattern: /^([0-9]{1}|[1-9][0-9]{0,1}|100)$/,
      message: '0-100'
    },
    interval0_999: {
      pattern: /^([0-9]{1}|[1-9][0-9]{0,2}|999)$/,
      message: '0-999的正整数'
    },
    interval0_9999: {
      pattern: /^([0-9]{1}|[1-9][0-9]{0,3}|9999)$/,
      message: '0-9999的正整数'
    },
    interval0_99999: {
      pattern: /^([0-9]{1}|[1-9][0-9]{0,4}|99999)$/,
      message: '0-99999的正整数'
    },
    interval1_999: {
      pattern: /^([1-9]{1}|[1-9][0-9]{0,2}|999)$/,
      message: '1-999的正整数'
    },
    interval1_100: {
      pattern: /^([1-9]{1}|[1-9][0-9]{0,1}|100)$/,
      message: '1-100的正整数'
    },
    interval1_10000: {
      pattern: /^([1-9]{1}|[1-9][0-9]{0,3}|10000)$/,
      message: '1-10000的正整数'
    },
    interval1_100000: {
      pattern: /^([1-9]{1}|[1-9][0-9]{0,4}|100000)$/,
      message: '1-100000的正整数'
    },
    interval0_10000andlong2: {
      pattern: /^([1-9]{1}|[0-9]{1}(\.[0-9]{1,2})|[1-9][0-9]{0,3}|[1-9][0-9]{0,3}(\.[0-9]{1,2})|10000)$/,
      message: '0-10000保留2位小数'
    },
    interval0_99999andlong2: {
      pattern: /^(0|\+?[1-9][0-9]{0,4})(\.\d{1,2})?$/,
      message: '0-99999保留2位小数'
    },
    price: {
      pattern: /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/,
      message: '请填写正确的钱数'
    },
    "long": {
      pattern: /^(-?\d+)(\.\d+)?$/,
      message: '请填写正确的数值'
    },
    space: {
      pattern: /^\S*$/,
      message: '请勿输入空格'
    },
    lengthMax100: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 100,
      message: '超出最大字数限制'
    },
    lengthMax200: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 200,
      message: '超出最大字数限制'
    },
    lengthMax300: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 300,
      message: '超出最大字数限制'
    },
    lengthMax500: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 500,
      message: '超出最大字数限制'
    },
    lengthMax50: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 50,
      message: '超出最大字数限制'
    },
    lengthMax20: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 20,
      message: '超出最大字数限制'
    },
    lengthMax15: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 15,
      message: '超出最大字数（15）限制'
    },
    lengthMax10: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 10,
      message: '超出最大字数（10）限制'
    },
    lengthMax8: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 8,
      message: '超出最大字数（8）限制'
    },
    lengthMax30: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 30,
      message: '超出最大字数限制'
    },
    lengthMax5: {
      transform: function transform(value) {
        return value && String(value);
      },
      max: 5,
      message: '超出最大字数限制'
    },
    absLong: {
      pattern: /^(\d+)(\.\d+)?$/,
      message: '请填写大于等于的0的数字'
    },
    long1: {
      pattern: /^(\-)?\d+(\.\d{1,1})?$/,
      message: '保留一位小数'
    },
    long2: {
      pattern: /^(\-)?\d+(\.\d{1,2})?$/,
      message: '保留两位小数'
    },
    long3: {
      pattern: /^(\-)?\d+(\.\d{1,3})?$/,
      message: '保留三位小数'
    },
    long4: {
      pattern: /^(\-)?\d+(\.\d{1,4})?$/,
      message: '保留四位小数'
    },
    long6: {
      pattern: /^(\-)?\d+(\.\d{1,6})?$/,
      message: '保留六位小数'
    },
    date: {
      pattern: /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/,
      message: '日期格式应为：2018-01-01'
    },
    coordinates: {
      pattern: /^(\-|\+)?\d+(\.\d+)?(,(\-|\+)?\d+(\.\d+)?)$/,
      message: '格式错误,例:‘经度’,‘纬度’'
    },
    three: {
      pattern: /^(\-|\+)?\d+(\.\d+)?(,(\-|\+)?\d+(\.\d+)?)(,(\-|\+)?\d+(\.\d+)?)(,(\-|\+)?\d+(\.\d+)?)$/,
      message: '格式错误,例:‘x’,‘y’,‘z’,‘fov’'
    },
    isURL: {
      pattern: /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,
      message: '网址格式不正确'
    },
    zipCode: {
      pattern: /^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,
      message: '邮编格式不正确'
    },
    email: {
      pattern: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
      message: '邮箱格式不正确'
    },
    idCard: {
      pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
      message: '身份证格式不正确'
    },
    ip: {
      pattern: /\d+\.\d+\.\d+\.\d+/,
      message: 'ip地址格式不正确'
    },
    chinese: {
      pattern: /^[\u4e00-\u9fa5]*$/,
      message: '中文'
    }
  },
  colorMap: {
    red: '#B388FF',
    orange: '#FFCA28',
    blue: '#2979FF',
    green: '#00BCD4',
    gray: '#6989A8'
  },
  gwColorMap: {
    /**
     *雨水管网
     */
    1: '#44D77A',
    /**
     *污水管网
     */
    2: '#FF3A3B',
    /**
     *雨污合流管网/
     */
    3: '#926FF9'
  },
  districtColorMap: {
    /**
     *一级片区
     */
    1: '#44D77A',
    /**
     *二级片区
     */
    2: '#44D77A',
    /**
     *三级片区/
     */
    3: '#926FF9',
    /**
     *四级片区
     */
    4: '#FF3A3B'
  }
};
//# sourceMappingURL=config.js.map
