(this.webpackJsonp=this.webpackJsonp||[]).push([[167],{ejHd:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,n,r=g(a("2/Rp")),u=g(a("kaz8")),d=g(a("9yH6")),c=g(a("5rEg")),f=g(a("Vl3Y")),o=g(a("2fM7")),s=(l=["{\n  padding:0px 30px\n}"],n=["{\n  padding:0px 30px\n}"],Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(n)}})));a("+L6B"),a("sRBo"),a("7Kak"),a("5NDa"),a("y8nQ"),a("OaEy");var p=a("cDcd"),i=g(p),m=a("eO8H"),b=a("spEH"),E=g(a("ess8")),y=g(a("vOnD"));function g(e){return e&&e.__esModule?e:{default:e}}var v=o.default.Option,h=y.default.div(s),x={display:"block",height:"30px",lineHeight:"30px"};t.default=f.default.create()((0,p.forwardRef)((function(e){var t=e.form.getFieldDecorator,a=(0,p.useCallback)((function(e,a,l,n,r){return i.default.createElement(i.default.Fragment,null,i.default.createElement("span",{className:r?"required":""},e),i.default.createElement(f.default.Item,null,t(a,{rules:l,validateFirst:!0})(n)))}),[]);return i.default.createElement(b.WhiteBack,{className:"hooksNew"},i.default.createElement(E.default,null,i.default.createElement("span",null,"管理web钩子")),i.default.createElement(h,null,i.default.createElement("p",{className:"mt15 mb15 color-grey-8"},"Gitea 将向目标 URL 发送具有指定内容类型的 POST 请求。在 ",i.default.createElement(m.Link,{to:"",className:"color-blue"},"webhooks 指南")," 中阅读更多内容。"),a("目标URL","URL",[{required:!0,message:"请输入目标URL"}],i.default.createElement(c.default,{placeholder:"目标URL"}),!0),a("HTTP方法","HTTP",[],i.default.createElement(o.default,{placeholder:"HTTP方法"},i.default.createElement(v,{value:"0"},"请选择HTTP方法"))),a("POST Content Type","Type",[],i.default.createElement(o.default,{placeholder:"POST Content Type"},i.default.createElement(v,{value:"0"},"请选择POST Content Type"))),a("秘钥文本","passwordtext",[],i.default.createElement(c.default,{type:"password"})),a("触发条件：","condition",[],i.default.createElement(d.default.Group,null,i.default.createElement(d.default,{value:"0",style:x},"推送事件"),i.default.createElement(d.default,{value:"1",style:x},"所有事件"),i.default.createElement(d.default,{value:"2",style:x},"自定义事件"))),a("分支过滤","branch",[],i.default.createElement(c.default,{type:"password"})),i.default.createElement("p",{className:"font-12 mt10 pb15",style:{borderBottom:"1px solid #eee"}},"推送、创建，删除分支事件白名单，支持匹配符。如果为空或者 *，所有分支的事件均被触发。",i.default.createElement("br",null),"语法参见 ",i.default.createElement("a",{href:"http://github.com/gobwas/glob",className:"color-blue",target:"_blank"},"github.com/gobwas/glob")," 。示例： Master, $","{master,release*}","。"),a("","active",[],i.default.createElement(u.default,null,"激活",i.default.createElement("span",{className:"ml30 color-grey-8"},"触发事件的信息将发送到此 webhook 网址。"))),i.default.createElement("div",{className:"df pb30"},i.default.createElement(r.default,{type:"primary"},"保存"),i.default.createElement(b.Cancel,{className:"ml30"},"取消"))))})))},ess8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,n,r=(l=["{\n  background-color:#fff;\n  padding:20px 30px;\n  border-bottom:1px solid #eee;\n  font-size:18px;\n  color:#333;\n  display:flex;\n  justify-content: space-between;\n  align-items:center;\n}"],n=["{\n  background-color:#fff;\n  padding:20px 30px;\n  border-bottom:1px solid #eee;\n  font-size:18px;\n  color:#333;\n  display:flex;\n  justify-content: space-between;\n  align-items:center;\n}"],Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(n)}}))),u=d(a("cDcd"));function d(e){return e&&e.__esModule?e:{default:e}}var c=d(a("vOnD")).default.div(r);t.default=function(e){var t=e.children;return u.default.createElement(c,null,t)}}}]);