1(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4993],{88653:function(Be,G,t){"use strict";t.r(G),t.d(G,{default:function(){return Se}});var be=t(34792),p=t(55026),Oe=t(9715),M=t(16579),n=t(2824),d=t(63804),de=t(36596),re=t(62256),ie=t(31026),Ue=t(66456),ne=t(15970),Ve=t(47673),P=t(4107),Ke=t(30887),J=t(28682),oe=t(76570),Q=t(51668),j=t(43581),e=t(85893),le=function(v){var a=(0,j.YB)(),g=v.eventProps,h=(0,d.useState)("1"),c=(0,n.Z)(h,2),f=c[0],x=c[1],R=(0,d.useState)(!1),l=(0,n.Z)(R,2),X=l[0],$=l[1],B=(0,d.useState)(void 0),I=(0,n.Z)(B,2),y=I[0],E=I[1],b=[{title:a.formatMessage({id:"data.ep.profileProperty"}),dataIndex:"name",key:"name",sorter:function(i,u){return i.name.localeCompare(u.name)}},{title:a.formatMessage({id:"data.ep.dataType"}),dataIndex:"dataType",key:"dataType",sorter:function(i,u){return i.dataType-u.dataType},render:function(i,u){return(0,e.jsx)(e.Fragment,{children:(0,Q.Zh)((0,Q.ZU)(i))})}}],F=function(i){x(i.key)},O=function(){var i=g.filter(function(u){return u.category===Number(f)});return y&&(i=i.filter(function(u){return u.name.indexOf(y)>-1})),i};return(0,e.jsxs)("div",{className:"ep-propertyCard",children:[(0,e.jsx)("div",{className:"topMenu",children:(0,e.jsx)(J.Z,{mode:"horizontal",selectedKeys:[f],onSelect:F,children:(0,e.jsx)(J.Z.Item,{children:a.formatMessage({id:"data.ep.profileProperty"})},"1")})}),(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)(P.Z,{placeholder:a.formatMessage({id:"data.ep.profileProperty"}),style:{width:320,marginTop:24,marginBottom:8},suffix:(0,e.jsx)(oe.Z,{style:{color:"#999999"}}),filterVal:y,onInput:function(i){return E(i.target.value)}}),(0,e.jsx)("div",{className:"table-box",children:(0,e.jsx)(ne.Z,{dataSource:O(),columns:b,pagination:!1,showSorterTooltip:!1,scroll:{y:408}})})]})]})},ue=le,Ye=t(43358),W=t(34041),me=t(89409),L=t(96018),ze=P.Z.TextArea,D=W.Z.Option,ce=function(v){var a=(0,j.YB)(),g=v.isDisabled,h=v.pType,c=v.isEdit,f=v.isAdd,x=function(){var l="";switch(h){case 0:l=a.formatMessage({id:"data.ap.add.default"});break;case 1:l=a.formatMessage({id:"data.ap.add.custom"});break;case 2:l=a.formatMessage({id:"data.ap.add.virtual"});break;default:l=""}return l};return(0,e.jsxs)("div",{className:"et-basicInformation",children:[(0,e.jsx)(M.Z.Item,{label:(0,e.jsx)(L.Z,{title:"".concat(f?a.formatMessage({id:"data.pp.add.virtual"}):"")+a.formatMessage({id:"data.pp.add.virtualProfilePropertyName"})}),name:"name",rules:[{required:!0,message:a.formatMessage({id:"data.pp.add.tips1-1"})+x()+"".concat(f?a.formatMessage({id:"data.pp.add.virtual"}):"")+a.formatMessage({id:"data.pp.add.tips1-1"})}],children:h===2?(0,e.jsx)(P.Z,{addonBefore:(0,e.jsx)(e.Fragment,{children:"#vp@"}),showCount:!0,maxLength:96,style:{width:408},disabled:g||c}):(0,e.jsx)(P.Z,{showCount:!0,maxLength:100,style:{width:408},disabled:g||c})}),(0,e.jsx)(M.Z.Item,{label:(0,e.jsx)(L.Z,{title:"".concat(f?a.formatMessage({id:"data.pp.add.virtual"}):"")+a.formatMessage({id:"data.pp.add.virtualProfilePropertyDisplayName"})}),name:"display",rules:[{required:!0,message:a.formatMessage({id:"data.pp.add.tips2-1"})+"".concat(f?a.formatMessage({id:"data.pp.add.virtual"}):"")+a.formatMessage({id:"data.pp.add.tips2-2"})}],children:(0,e.jsx)(P.Z,{showCount:!0,maxLength:100,style:{width:408},disabled:g})}),(0,e.jsx)(M.Z.Item,{label:(0,e.jsx)(L.Z,{title:a.formatMessage({id:"data.ep.dataType"})}),name:"dataType",rules:[{required:!0,message:a.formatMessage({id:"data.ep.add.tips4"})}],children:(0,e.jsxs)(W.Z,{style:{width:408},disabled:g||h!==2,children:[(0,e.jsx)(D,{value:1,children:"Number"}),(0,e.jsx)(D,{value:2,children:"String"}),(0,e.jsx)(D,{value:3,children:"Date"})]})})]})},fe=(0,me.Z)(ce,752,"32px auto"),C=t(27840),pe=t(72458),ve=t(41797),ge=t(1391),ye=(0,d.forwardRef)(function(o,v){var a=(0,j.YB)(),g=M.Z.useForm(),h=(0,n.Z)(g,1),c=h[0],f=(0,j.tT)("useAppItemsModel"),x=f.curSelectedApp,R=(0,d.useState)([]),l=(0,n.Z)(R,2),X=l[0],$=l[1],B=(0,d.useState)(""),I=(0,n.Z)(B,2),y=I[0],E=I[1],b=(0,d.useState)(""),F=(0,n.Z)(b,2),O=F[0],S=F[1],i=(0,d.useState)([]),u=(0,n.Z)(i,2),U=u[0],he=u[1],xe=(0,d.useState)(!1),w=(0,n.Z)(xe,2),He=w[0],k=w[1],je=(0,d.useState)(0),q=(0,n.Z)(je,2),V=q[0],Ze=q[1],Me=(0,d.useState)({}),_=(0,n.Z)(Me,2),Pe=_[0],Ie=_[1],Te=(0,d.useState)(0),ee=(0,n.Z)(Te,2),K=ee[0],Ne=ee[1],Ae=(0,d.useState)(0),ae=(0,n.Z)(Ae,2),Ce=ae[0],Re=ae[1],Ee=(0,d.useState)(-1),te=(0,n.Z)(Ee,2),T=te[0],Y=te[1];(0,d.useEffect)(function(){var N=o.location.query.id?Number(o.location.query.id):0,s=o.location.query.type?Number(o.location.query.type):-1,m=(0,ve.h$)(o.location.query.auto)?Number(o.location.query.auto):-1,r=o.location.query.add?Number(o.location.query.add):0,se=o.location.query.view?Number(o.location.query.view):0;if(s>-1&&m>-1&&(m===1?Y(0):m===0&&(s===0||s===1?Y(1):s===2&&Y(2))),se&&Ne(se),r&&Re(r),N){var z;Ze(N);var De={pubAppId:x.id,ids:N,category:1,propSource:((z=o.location.query)===null||z===void 0?void 0:z.propSource)||0};k(!0),(0,C.RL)(De).then(function(A){if(A.code===0&&A.data&&A.data.length){Ie(A.data[0]);var Z=A.data[0],H=Z.name;s===2&&(H=H.replace(new RegExp("#vp@"),"")),c.setFieldsValue({name:H,display:(0,ge.aM)()==="cn"?Z.display:Z.displayEn||Z.display,dataType:Z.dataType}),E(Z.virtualSql)}}).finally(function(){k(!1)})}Fe()},[]);var Fe=function(){(0,C.RL)({pubAppId:x.id,category:1}).then(function(s){s.code===0&&(s.data=s.data.filter(function(m){return!(m.auto===0&&m.type===2)}),$(s.data))})};(0,d.useImperativeHandle)(v,function(){return{onSave:Le}});var Le=function(){var s=new FormData;s.append("pubAppId",x.id.toString()),y||S(a.formatMessage({id:"data.event.add.noData"})),c.validateFields().then(function(m){(y||T!==2)&&(T===2?(s.append("virtualSql",y),s.append("name","#vp@"+m.name)):s.append("name",m.name),s.append("display",m.display),s.append("dataType",m.dataType),s.append("category","1"),U.length&&U.forEac
1h(function(r){s.append("virtualRelatedProps",r.name)}),V?(s.append("id",V.toString()),s.append("type",Pe.type),(0,C.IU)(s).then(function(r){r.code===0?r.msg.toUpperCase()==="OK"?(j.m8.go(-1),p.default.success(a.formatMessage({id:"common.editing_ok"}))):p.default.error(r.msg):p.default.error(r.msg||a.formatMessage({id:"common.editing_no"}))}).catch(function(r){p.default.error(a.formatMessage({id:"common.editing_no"}))})):(0,C.Ej)(s).then(function(r){r.code===0?r.msg.toUpperCase()==="OK"?(j.m8.go(-1),p.default.success(a.formatMessage({id:"common.saving_ok"}))):p.default.error(r.msg):p.default.error(r.msg||a.formatMessage({id:"common.saving_no"}))}).catch(function(r){p.default.error(a.formatMessage({id:"common.saving_no"}))}))})};return(0,e.jsxs)("div",{className:"addEventProperties",children:[(0,e.jsx)(ie.Z,{}),(0,e.jsxs)("div",{className:"ep-container",children:[!K&&T===2?(0,e.jsx)("div",{className:"ep-left-container",children:(0,e.jsx)(ue,{eventProps:X})}):"",(0,e.jsxs)("div",{className:"ep-right-container",children:[(0,e.jsx)(M.Z,{form:c,colon:!1,children:(0,e.jsxs)("div",{className:"ap-card",children:[(0,e.jsx)("div",{className:"ap-card-title",children:a.formatMessage({id:"data.event.add.basicInformation"})}),(0,e.jsx)(fe,{isDisabled:K,pType:T,isEdit:!!V,isAdd:Ce})]})}),T===2?(0,e.jsxs)("div",{className:"ap-card",children:[(0,e.jsx)("div",{className:"ap-card-title",children:a.formatMessage({id:"data.ep.add.setUp.tips1"})}),(0,e.jsx)("p",{className:"ap-card-tips",children:a.formatMessage({id:"data.ep.add.setUp.tips3"})}),(0,e.jsx)(pe.Z,{rule:y,setRule:E,sqlRuleError:O,setSqlRuleError:S,columnResult:U,setColumnResult:he,isDisabled:K,category:"1"})]}):""]})]})]})}),Se=(0,de.Z)((0,re.Z)(ye),{isSave:!0})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.