System.register(["./vendor-legacy-2701520b.js","./index-legacy-2b663974.js"],(function(t,e){"use strict";var a,i,n=document.createElement("style");return n.textContent=".item-con[data-v-0ffc8eb2]{display:flex}.item-con:hover .btn[data-v-0ffc8eb2]{display:block}.item-con .item-input[data-v-0ffc8eb2]{width:67%;height:32px;padding:0 10px;line-height:32px;background:#eeeff1}.item-con .transparent[data-v-0ffc8eb2]{background:transparent}.item-con .large[data-v-0ffc8eb2]{height:48px}.item-con .select-con[data-v-0ffc8eb2]{display:flex;width:100%;color:#999}.item-con .item-btn[data-v-0ffc8eb2]{width:100px;padding-left:35px;display:flex}.item-con .btn[data-v-0ffc8eb2]{display:none}.check-item[data-v-51f2d88e]{padding-left:30px;margin:10px 0;line-height:32px}\n",document.head.appendChild(n),{setters:[function(t){a=t.r},function(t){i=t.n}],execute:function(){var e={__name:"FormItem",props:{data:{type:Object,default:function(){}},type:{type:String,default:"input"},showBtn:{type:Boolean,default:!0},status:{type:String,default:"clue"}},emits:["hideFormItem","deleteFormItem","requiredFormItem"],setup:function(t,e){var a=e.emit,i=t;return{__sfc:!0,props:i,emits:a,doHide:function(){a("hideFormItem",i.data)},doDelete:function(){a("deleteFormItem",i.data)},doRequired:function(t){a("requiredFormItem",i.data,t)}}}},n=t("f",i(e,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"item-con"},[e("div",{staticClass:"item-input",class:{transparent:"file"===t.type,large:"text"===t.type}},["select"===t.type?e("div",{staticClass:"select-con"},[e("div",[t._v("请选择")]),t._m(0)]):"file"===t.type?e("div",[e("el-button",[t._v("+ 上传")])],1):t._e()]),t.showBtn?e("div",{staticClass:"item-btn"},[1===t.data.is_custom?e("el-button",{staticClass:"btn",staticStyle:{color:"#ff0015"},attrs:{type:"text"},on:{click:a.doDelete}},[t._v("删除")]):"客户手机"!=t.data.name&&"名称"!==t.data.name&&"客户微信"!==t.data.name?e("el-button",{staticClass:"btn",attrs:{type:"text"},on:{click:a.doHide}},[t._v("隐藏")]):t._e(),0===t.data.is_required&&"客户手机"!=t.data.name&&"客户微信"!==t.data.name&&"名称"!==t.data.name?e("el-button",{staticClass:"btn",attrs:{type:"text"},on:{click:function(t){return a.doRequired(1)}}},[t._v("设为必填")]):1===t.data.is_required&&"客户手机"!=t.data.name&&"客户微信"!==t.data.name&&"名称"!==t.data.name?e("el-button",{staticClass:"btn",attrs:{type:"text"},on:{click:function(t){return a.doRequired(0)}}},[t._v("取消必填")]):t._e()],1):t._e()])}),[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticStyle:{"margin-left":"auto"}},[t("i",{staticClass:"el-icon-caret-bottom"})])}],!1,null,"0ffc8eb2",null,null).exports);t("h",i({__name:"hideDialog",props:{hideItems:{type:Array,default:function(){return[]}}},emits:["showFormItem"],setup:function(t,e){var i=e.expose,o=e.emit,l=t,s=a(!1),c=a([]);function r(){s.value=!0,c.value=[]}return i({init:r}),{__sfc:!0,props:l,emits:o,dialogVisible:s,checkValue:c,init:r,showItem:function(){s.value=!1,o("showFormItem",c.value)},formItem:n}}},(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("el-dialog",{attrs:{title:"已隐藏字段","append-to-body":!0,"close-on-click-modal":!1,visible:a.dialogVisible,width:"500px"},on:{"update:visible":function(t){a.dialogVisible=t}}},[e("div",{staticClass:"field-list"},[e("el-checkbox-group",{model:{value:a.checkValue,callback:function(t){a.checkValue=t},expression:"checkValue"}},t._l(t.hideItems,(function(i,n){return e("el-row",{key:n,staticClass:"check-item"},[e("el-col",{attrs:{span:7}},[e("el-checkbox",{attrs:{label:i.key}},[t._v(t._s(i.name))])],1),e("el-col",{attrs:{span:16}},[e(a.formItem,{attrs:{type:i.type,showBtn:!1,data:i}})],1)],1)})),1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(t){a.dialogVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(t){return a.showItem()}}},[t._v(" 显 示 ")])],1)])}),[],!1,null,"51f2d88e",null,null).exports)}}}));
