@nocobase/app 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,6 @@
18
18
  </head>
19
19
  <body>
20
20
  <div id="root"></div>
21
- <script src="/umi.14ea5688.js"></script>
21
+ <script src="/umi.cc106afc.js"></script>
22
22
 
23
23
  </body></html>
@@ -18,6 +18,6 @@
18
18
  </head>
19
19
  <body>
20
20
  <div id="root"></div>
21
- <script src="/umi.14ea5688.js"></script>
21
+ <script src="/umi.cc106afc.js"></script>
22
22
 
23
23
  </body></html>
@@ -700,7 +700,7 @@ https://requirejs.org/docs/errors.html#`+we);return i.requireType=we,i.requireMo
700
700
  padding: 2px 7px;
701
701
  border-radius: 10px;
702
702
  }
703
- `])));mt.ReadPretty=function(At){var Dt=At.value,Tt=At.delimiters,Nt=Tt===void 0?["{{","}}"]:Tt,Vt=typeof At.scope=="function"?At.scope():At.scope,kt=w(),Pn=kt.wrapSSR,Fn=kt.hashId,wn=kt.componentCls,eo=(0,i.useState)([]),Zn=r()(eo,2),Vn=Zn[0],ao=Zn[1],Ut=(0,i.useMemo)(function(){return st(Vn)},[Vn]),nt=(0,i.useMemo)(function(){return Ue(Dt??"",Ut,Nt)},[Nt,Ut,Dt]),ht=Bt(Dt,Nt);(0,i.useEffect)(function(){Wt(Vt,ht).then(function(xt){ao(xt)}).catch(P.error)},[Vt,ht]);var yt=Pn((0,q.jsx)("span",{dangerouslySetInnerHTML:{__html:nt},className:(0,g.cx)(wn,Fn,Jt)}));return(0,q.jsx)(he.BQs,{ellipsis:!0,popoverContent:yt,children:yt})};var ln=(0,i.createContext)([]);ln.displayName="VariableScopeContext";function dn(gt){var At=gt.scope,Dt=At===void 0?[]:At,Tt=gt.children;return(0,q.jsx)(ln.Provider,{value:Dt,children:Tt})}function Ft(){return(0,i.useContext)(ln)}function bn(){return null}bn.Input=(0,H.connect)(_e),bn.TextArea=(0,G.t)((0,H.connect)(mt,(0,H.mapReadPretty)(mt.ReadPretty))),bn.RawTextArea=(0,H.connect)(Te),bn.JSON=(0,H.connect)(Ae);var mn=null},88969:function(we,ne,e){"use strict";e.d(ne,{m:function(){return V}});var H=e(15009),i=e.n(H),G=e(19632),l=e.n(G),I=e(99289),x=e.n(I),K=e(5574),o=e.n(K),$=e(97133),m=e(38089),A=e(67294),f=e(26793),O=e(60094),n=e(9783),r=e.n(n),u=(0,O.l6)("nb-variable-select",function(k){var L=k.componentCls;return r()({},L,{position:"relative",".ant-select.ant-cascader":{position:"absolute",top:"-1px",right:"-1px",minWidth:"auto",width:"calc(100% + 2px)",height:"calc(100% + 2px)",overflow:"hidden",opacity:0},".variable-btn":{fontStyle:"italic",fontFamily:"'New York', 'Times New Roman', Times, serif"},".Cascader-popupClassName":{".ant-cascader-menu":{marginBottom:0}}})}),D=u,S=e(2876),C=e(85893);function V(k){var L=k.options,M=k.setOptions,v=k.onInsert,g=k.changeOnSelect,P=g===void 0?!1:g,a=k.fieldNames,Z=a===void 0?{}:a,b=k.className,y=(0,f.$)(),c=y.t,d=(0,A.useState)([]),p=o()(d,2),h=p[0],B=p[1],t=D(),j=t.wrapSSR,U=t.componentCls,z=t.hashId,W=(0,O.dQ)(),N=W.token;function E(Y){return w.apply(this,arguments)}function w(){return w=x()(i()().mark(function Y(q){var ee,R;return i()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(R=q[q.length-1],!(!((ee=R.children)!==null&&ee!==void 0&&ee.length)&&!R.isLeaf&&R.loadChildren)){oe.next=5;break}return oe.next=4,R.loadChildren(R);case 4:M(function(ve){return l()(ve)});case 5:case"end":return oe.stop()}},Y)})),w.apply(this,arguments)}return j((0,C.jsx)(S.R,{className:(0,$.cx)("x-button",U,z,b),children:(0,C.jsx)(m.Z,{placeholder:c("Select a variable"),value:[],options:L,fieldNames:Z,loadData:E,onChange:function(){var q,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(B(ee),!!ee.length){var Q=R[R.length-1];(!(Q!=null&&(q=Q.children)!==null&&q!==void 0&&q.length)&&!(Q!=null&&Q.loadChildren)||Q!=null&&Q.isLeaf)&&v(ee)}},changeOnSelect:P,onClick:function(q){if(!(q.detail!==2||!P))for(var ee=q.target;ee&&ee!==q.currentTarget;ee=ee.parentNode){var R;Array.from((R=ee.classList)!==null&&R!==void 0?R:[]).includes("ant-cascader-menu-item")&&v(h)}},popupClassName:"Cascader-popupClassName",dropdownRender:P?function(Y){return(0,C.jsxs)(C.Fragment,{children:[Y,(0,C.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(N.colorBorder),color:N.colorTextDescription},children:c("Double click to choose entire object")})]})}:null})}))}},2876:function(we,ne,e){"use strict";e.d(ne,{R:function(){return x}});var H=e(97857),i=e.n(H),G=e(15867),l=e(67294),I=e(85893),x=(0,l.forwardRef)(function(K,o){var $=(0,l.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,I.jsxs)(G.ZP,i()(i()({"aria-label":"variable-button",ref:o,style:$},K),{},{children:["x",K.children]}))});x.displayName="XButton"},72724:function(we,ne,e){"use strict";e.d(ne,{L:function(){return O}});var H=e(97857),i=e.n(H),G=e(5574),l=e.n(G),I=e(23861),x=e(80844),K=e(67294),o=e(26793),$=e(21143),m=e(84577),A=e(85893),f=function(r){var u=(0,m.ng)(),D=u.refresh,S=(0,$.useAPIClient)(),C=(0,o.$)(),V=C.t;return(0,K.useCallback)(function(k){var L,M,v,g,P,a,Z,b,y=k.active,c=k.over,d=y==null||(L=y.data)===null||L===void 0||(L=L.current)===null||L===void 0?void 0:L.schema,p=c==null||(M=c.data)===null||M===void 0||(M=M.current)===null||M===void 0?void 0:M.schema,h=c==null||(v=c.data)===null||v===void 0||(v=v.current)===null||v===void 0?void 0:v.insertAdjacent,B=c==null||(g=c.data)===null||g===void 0||(g=g.current)===null||g===void 0?void 0:g.breakRemoveOn,t=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.wrapSchema,j=c==null||(a=c.data)===null||a===void 0||(a=a.current)===null||a===void 0?void 0:a.onSuccess,U=(Z=c==null||(b=c.data)===null||b===void 0||(b=b.current)===null||b===void 0?void 0:b.removeParentsIfNoChildren)!==null&&Z!==void 0?Z:!0;if(!d||!p){r==null||r(k);return}if(d===p){r==null||r(k);return}if(d.parent===p&&h==="beforeEnd"){r==null||r(k);return}var z=(0,m.Pl)({t:V,api:S,refresh:D,current:p});if(z.loadAPIClientEvents(),d.parent===p.parent){z.insertBeforeBeginOrAfterEnd(d),r==null||r(k);return}if(h){z.insertAdjacent(h,d,{wrap:t,breakRemoveOn:B,removeParentsIfNoChildren:U,onSuccess:j}),r==null||r(k);return}},[r])},O=(0,x.observer)(function(n){var r=(0,o.$)(),u=r.t,D=(0,K.useState)(!0),S=l()(D,2),C=S[0],V=S[1],k=(0,K.useCallback)(function(M){var v,g=M.active,P=g==null||(v=g.data)===null||v===void 0||(v=v.current)===null||v===void 0?void 0:v.schema;if(V(!!P),n!=null&&n.onDragStart){var a;n==null||(a=n.onDragStart)===null||a===void 0||a.call(n,M)}},[n==null?void 0:n.onDragStart]),L=f(n==null?void 0:n.onDragEnd);return(0,A.jsxs)(I.DndContext,i()(i()({collisionDetection:I.rectIntersection},n),{},{onDragStart:k,onDragEnd:L,children:[(0,A.jsx)(I.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:C&&(0,A.jsx)("span",{style:{whiteSpace:"nowrap"},children:u("Dragging")})}),n.children]}))},{displayName:"DndContext"})},14896:function(we,ne,e){"use strict";e.r(ne),e.d(ne,{DndContext:function(){return H.L},DragHandler:function(){return i.IW},DraggableContext:function(){return i.LC},ShowFormData:function(){return x},Sortable:function(){return i.bt},SortableContext:function(){return i.Fo},SortableItem:function(){return i.TR},SortableProvider:function(){return i.OR},getRenderContent:function(){return K.I9}});var H=e(72724),i=e(20493),G=e(67294),l=e(80844),I=e(85893),x=(0,l.observer)(function(o){var $=o.children,m=(0,l.useForm)();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),$]})}),K=e(34588)},20493:function(we,ne,e){"use strict";e.d(ne,{IW:function(){return k},LC:function(){return n},bt:function(){return D},Fo:function(){return r},TR:function(){return V},OR:function(){return u}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(10274),x=e(23861),K=e(97133),o=e(80844),$=e(67294),m=e(60094),A=e(85893),f=["component","overStyle","style","children","openMode"],O=["schema","id","eid","removeParentsIfNoChildren"],n=(0,$.createContext)(null);n.displayName="DraggableContext";var r=(0,$.createContext)(null);r.displayName="SortableContext";var u=function(M){var v=M.id,g=M.data,P=M.children,a=(0,x.useDraggable)({id:v,data:g}),Z=(0,x.useDroppable)({id:v,data:g});return(0,A.jsx)(r.Provider,{value:{draggable:a,droppable:Z},children:P})},D=function(M){var v,g,P=M.component,a=M.overStyle,Z=M.style,b=M.children,y=M.openMode,c=l()(M,f),d=(0,m.dQ)(),p=d.token,h=(0,$.useContext)(r),B=h.draggable,t=h.droppable,j=t.isOver,U=t.setNodeRef,z=i()({},Z);return j&&(B==null||(v=B.active)===null||v===void 0?void 0:v.id)!==(t==null||(g=t.over)===null||g===void 0?void 0:g.id)&&(z[P==="a"?"color":"background"]=new I.C(p.colorSettings).setAlpha(.15).toHex8String(),Object.assign(z,a)),$.createElement(P||"div",i()(i()({role:"none"},c),{},{className:(0,K.cx)("nb-sortable-designer",M.className),ref:U,style:z}),b)},S=function(M){var v=C(M),g=(0,o.useFieldSchema)();return M.schema?i()(i()({},M),{},{id:v}):i()(i()({},M),{},{id:v,schema:g})},C=function(M){var v=(0,o.useField)();return M.id?M.id:v.address.toString()},V=(0,o.observer)(function(L){var M=S(L),v=M.schema,g=M.id,P=M.eid,a=M.removeParentsIfNoChildren,Z=l()(M,O),b=(0,$.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:v,removeParentsIfNoChildren:a??!0}},[v,a]);return(0,A.jsx)(u,{id:g,data:b,children:(0,A.jsx)(D,i()(i()({id:P},Z),{},{children:L.children}))})},{displayName:"SortableItem"}),k=function(M){var v=(0,$.useContext)(r),g=v.draggable,P=g.attributes,a=g.listeners,Z=g.setNodeRef;return(0,A.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,A.jsx)("div",i()(i()(i()({ref:Z,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),P),{},{role:"none",children:(0,A.jsx)("span",{style:{cursor:"move",fontSize:14},children:M.children})}))})}},34588:function(we,ne,e){"use strict";e.d(ne,{jC:function(){return c},od:function(){return Z},I9:function(){return h},Rq:function(){return b},e7:function(){return a}});var H=e(97857),i=e.n(H),G=e(15009),l=e.n(G),I=e(9783),x=e.n(I),K=e(5574),o=e.n(K),$=e(99289),m=e.n($),A=e(52677),f=e.n(A),O=e(84157),n=e(96486),r=e.n(n),u=e(10097),D=e(76690),S=e(65565),C=e(61341),V=e(27484);function k(){"use strict";Array.isArray||(Array.isArray=function(W){return Object.prototype.toString.call(W)==="[object Array]"});function t(W){for(var N=[],E=0,w=W.length;E<w;E++)N.indexOf(W[E])===-1&&N.push(W[E]);return N}function j(W,N){return JSON.stringify(W)===JSON.stringify(N)}var U={},z={$is:function(N,E){return N===E},$match:function(N,E){return Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return(w==null?void 0:w.length)===E.length&&(w==null?void 0:w.every(function(Y,q){return Y===E[q]}))}):JSON.stringify(N)===JSON.stringify(E)},$eq:function(N,E){return Array.isArray(N)&&Array.isArray(E)?j(N,E):Array.isArray(N)?N.includes(E):N==E},$ne:function(N,E){return N!=E},"!==":function(N,E){return N!==E},$gt:function(N,E){return Array.isArray(N)?N.some(function(w){return w>E}):N>E},$gte:function(N,E){return N>=E},$lt:function(N,E,w){return Array.isArray(N)?N.some(function(Y){return Y<E}):w===void 0?N<E:N<E&&E<w},$lte:function(N,E,w){return w===void 0?N<=E:N<=E&&E<=w},$exists:function(N){return U.truthy(N)},$notEmpty:function(N){return U.truthy(N)},$empty:function(N){return Array.isArray(N)?N.some(function(E){return!U.truthy(E)}):!U.truthy(N)},$notExists:function(N){return!U.truthy(N)},"%":function(N,E){return N%E},log:function(N){return N},$in:function(N,E){return!E||typeof E.indexOf>"u"?!1:Array.isArray(N)&&Array.isArray(E)?E.some(function(w){return N.includes(w)}):E.indexOf(N)!==-1},$notIn:function(N,E){return!E||typeof E.indexOf>"u"?!1:E.indexOf(N)===-1},$includes:function(N,E){return!N||typeof N.indexOf>"u"?!1:Array.isArray(N)?N.some(function(w){return w==null?void 0:w.includes(E)}):N.indexOf(E)!==-1},$notIncludes:function(N,E){return Array.isArray(N)?!N.some(function(w){return(w||"").includes(E)}):(N=N||"",!N.includes(E))},$anyOf:function(N,E){return N.length===0?!1:Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return w.some(function(Y){return E.includes(Y)})}):N.some(function(w){return E.includes(w)})},$noneOf:function(N,E){return!N||(N==null?void 0:N.length)===0?!0:Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return w.every(function(Y){return!E.some(function(q){return Y.includes(q)})})}):E.some(function(w){return!N.includes(w)})},$notMatch:function(N,E){if(N.length!==E.length)return!0;for(var w=0;w<N.length;w++)if(N[w]!==E[w])return!0;return!1},$dateOn:function(N,E){return!N||!E?!1:N===E},$dateBefore:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w<Y},$dateNotBefore:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w>=Y},$dateAfter:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);return w>Y},$dateNotAfter:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w<=Y},$dateBetween:function(N,E){if(!N||!E)return!1;var w=L(N),Y=L(E[0]),q=L(E[1]);if(!w||!Y||!q)throw new Error("Invalid date format");return w>=Y&&w<=q},$dateNotOn:function(N,E){return!N||!E?!1:N!==E},$isTruly:function(N){return Array.isArray(N)?N.some(function(E){return E===!0||E===1}):N===!0||N===1},$isFalsy:function(N){return Array.isArray(N)?N.some(function(E){return!U.truthy(E)}):!U.truthy(N)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(N,E,w){if(w<0){var Y=String(N).substr(E);return Y.substr(0,Y.length+w)}return String(N).substr(E,w)},"+":function(){return Array.prototype.reduce.call(arguments,function(N,E){return parseFloat(N,10)+parseFloat(E,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(N,E){return parseFloat(N,10)*parseFloat(E,10)})},"-":function(N,E){return E===void 0?-N:N-E},"/":function(N,E){return N/E},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(N,E){return N.concat(E)},[])},var:function(N,E){var w=E===void 0?null:E,Y=this;if(typeof N>"u"||N===""||N===null)return Y;for(var q=String(N).split("."),ee=0;ee<q.length;ee++)if(Y==null||(Y=Y[q[ee]],Y===void 0))return w;return Y},missing:function(){for(var N=[],E=Array.isArray(arguments[0])?arguments[0]:arguments,w=0;w<E.length;w++){var Y=E[w],q=U.apply({var:Y},this);(q===null||q==="")&&N.push(Y)}return N},missing_some:function(N,E){var w=U.apply({missing:E},this);return E.length-w.length>=N?[]:w}};return U.is_logic=function(W){return f()(W)==="object"&&W!==null&&!Array.isArray(W)&&Object.keys(W).length===1},U.truthy=function(W){return Array.isArray(W)&&W.length===0?!1:!!W},U.get_operator=function(W){return Object.keys(W)[0]},U.get_values=function(W){return W[U.get_operator(W)]},U.apply=function(W,N){if(Array.isArray(W))return W.map(function(ue){return U.apply(ue,N)});if(!U.is_logic(W))return W;var E=U.get_operator(W),w=W[E],Y,q,ee,R,Q;if(Array.isArray(w)||(w=[w]),E==="if"||E=="?:"){for(Y=0;Y<w.length-1;Y+=2)if(U.truthy(U.apply(w[Y],N)))return U.apply(w[Y+1],N);return w.length===Y+1?U.apply(w[Y],N):null}else if(E==="$and"){for(Y=0;Y<w.length;Y+=1)if(q=U.apply(w[Y],N),!U.truthy(q))return q;return q}else if(E==="or"){for(Y=0;Y<w.length;Y+=1)if(q=U.apply(w[Y],N),U.truthy(q))return q;return q}else{if(E==="filter")return R=U.apply(w[0],N),ee=w[1],Array.isArray(R)?R.filter(function(ue){return U.truthy(U.apply(ee,ue))}):[];if(E==="map")return R=U.apply(w[0],N),ee=w[1],Array.isArray(R)?R.map(function(ue){return U.apply(ee,ue)}):[];if(E==="reduce")return R=U.apply(w[0],N),ee=w[1],Q=typeof w[2]<"u"?w[2]:null,Array.isArray(R)?R.reduce(function(ue,ge){return U.apply(ee,{current:ge,accumulator:ue})},Q):Q;if(E==="all"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!1;for(Y=0;Y<R.length;Y+=1)if(!U.truthy(U.apply(ee,R[Y])))return!1;return!0}else if(E==="none"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!0;for(Y=0;Y<R.length;Y+=1)if(U.truthy(U.apply(ee,R[Y])))return!1;return!0}else if(E==="some"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!1;for(Y=0;Y<R.length;Y+=1)if(U.truthy(U.apply(ee,R[Y])))return!0;return!1}}if(w=w.map(function(ue){return U.apply(ue,N)}),z.hasOwnProperty(E)&&typeof z[E]=="function")return z[E].apply(N,w);if(E.indexOf(".")>0){var oe=String(E).split("."),ve=z;for(Y=0;Y<oe.length;Y++){if(!ve.hasOwnProperty(oe[Y]))throw new Error("Unrecognized operation "+E+" (failed at "+oe.slice(0,Y+1).join(".")+")");ve=ve[oe[Y]]}return ve.apply(N,w)}throw new Error("Unrecognized operation "+E)},U.uses_data=function(W){var N=[];if(U.is_logic(W)){var E=U.get_operator(W),w=W[E];Array.isArray(w)||(w=[w]),E==="var"?N.push(w[0]):w.forEach(function(Y){N.push.apply(N,U.uses_data(Y))})}return t(N)},U.add_operation=function(W,N){z[W]=N},U.rm_operation=function(W){delete z[W]},U.rule_like=function(W,N){if(N===W||N==="@")return!0;if(N==="number")return typeof W=="number";if(N==="string")return typeof W=="string";if(N==="array")return Array.isArray(W)&&!U.is_logic(W);if(U.is_logic(N)){if(U.is_logic(W)){var E=U.get_operator(N),w=U.get_operator(W);if(E==="@"||E===w)return U.rule_like(U.get_values(W,!1),U.get_values(N,!1))}return!1}if(Array.isArray(N))if(Array.isArray(W)){if(N.length!==W.length)return!1;for(var Y=0;Y<N.length;Y+=1)if(!U.rule_like(W[Y],N[Y]))return!1;return!0}else return!1;return!1},U}function L(t){return new Date(t)}function M(t){var j=t.split("-").map(Number),U=o()(j,2),z=U[0],W=U[1];return new Date(z,W-1)}function v(t){var j=parseInt(t.slice(0,4)),U=parseInt(t.slice(5,6)),z=(U-1)*3;return new Date(j,z)}function g(t){var j=parseInt(t);return new Date(j,0)}function P(t){var j=Array.isArray(t)?t[1]:t;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(j)?new Date(j):/^\d{4}-\d{2}-\d{2}$/.test(j)?L(j):/^\d{4}-\d{2}$/.test(j)?M(j):/^\d{4}Q[1-4]$/.test(j)?v(j):/^\d{4}$/.test(j)?g(j):null}var a=function(j,U){var z,W=/{{(.*?)}}/,N=j==null||(z=j.match)===null||z===void 0?void 0:z.call(j,W);if(N){var E=r().get(U,N[1]);return r().isFunction(E)?E():E}else return j};function Z(t){if(f()(t)!=="object"||t===null)return null;for(var j in t)if(Object.prototype.hasOwnProperty.call(t,j))return Object.prototype.toString.call(t[j])==="[object Object]"&&t[j]!==null?Z(t[j]):{key:j,value:t[j]};return null}var b=function(j){var U=y(j),z=(0,n.findIndex)(U,function(N,E,w){if(N.includes("$")&&E>0)return!0}),W=U.slice(0,z);return W};function y(t){var j=[];function U(z){Object.keys(z).sort().forEach(function(W){j.push(W),z[W]&&f()(z[W])==="object"&&U(z[W])})}return U(t),j}var c=function(){var t=m()(l()().mark(function j(U){var z,W,N,E,w,Y,q;return l()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return z=U.ruleGroup,W=U.variables,N=U.localVariables,E=U.variableNameOfLeftCondition,w=Object.keys(z)[0]||"$and",Y=z[w],q=Y.map(function(){var Q=m()(l()().mark(function oe(ve){var ue,ge,Ie,Oe,Ce,De,_e,re,ce,ie,X,me,xe,Pe,Te;return l()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!("$and"in ve||"$or"in ve)){Ae.next=4;break}return Ae.next=3,c({ruleGroup:ve,variables:W,localVariables:N});case 3:return Ae.abrupt("return",Ae.sent);case 4:if(ue=Z(ve),ge=ue==null?void 0:ue.key,ge){Ae.next=8;break}return Ae.abrupt("return",!0);case 8:return Ie=d(b(ve),E),Oe=W.parseVariable(Ie,N,{doNotRequest:!0}).then(function(Se){var Fe=Se.value;return Fe}),Ce=(0,D.cG)(ue==null?void 0:ue.value)?[W.parseVariable(ue==null?void 0:ue.value,N).then(function(Se){var Fe=Se.value;return Fe}),Oe]:[ue==null?void 0:ue.value,Oe],Ae.prev=11,De=k(),Ae.next=15,Promise.all(Ce);case 15:return _e=Ae.sent,re=o()(_e,2),ce=re[0],ie=re[1],Ae.next=21,W.getCollectionField(Ie,N);case 21:return X=Ae.sent,me=(0,S.J)(ie,{targetCollectionField:X}),xe=(0,S.J)(ce,{targetCollectionField:X}),X!=null&&X.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(X.type)&&me&&(Pe=(0,C.CE)(xe),Te=(0,O.getPickerFormat)(Pe),me=(0,O.dayjs)(me).format(Te)),Ae.abrupt("return",De.apply(x()({},ge,[me,xe])));case 28:throw Ae.prev=28,Ae.t0=Ae.catch(11),Ae.t0;case 31:case"end":return Ae.stop()}},oe,null,[[11,28]])}));return function(oe){return Q.apply(this,arguments)}}()),R.next=6,Promise.all(q);case 6:if(q=R.sent,w!=="$and"){R.next=11;break}return R.abrupt("return",(0,n.every)(q,function(Q){return Q}));case 11:return R.abrupt("return",(0,n.some)(q,function(Q){return Q}));case 12:case"end":return R.stop()}},j)}));return function(U){return t.apply(this,arguments)}}();function d(t){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(j,".").concat(t.join(".")," }}")}var p=function(j){var U={};return j.map(function(z){U[z.name]=z.ctx}),U};function h(t,j,U,z,W){return B.apply(this,arguments)}function B(){return B=m()(l()().mark(function t(j,U,z,W,N){var E,w,Y,q,ee,R,Q,oe,ve;return l()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!(U&&j==="handlebars")){ge.next=19;break}return ge.prev=1,Y=O.Handlebars.compile(U),q=p(W),ee=(z==null||(E=z.ctxRef)===null||E===void 0?void 0:E.current)||{},R=ee.$nDate,Q={},Object.keys(R||{}).map(function(Ie){Q[Ie]=R[Ie]()}),oe=Y(i()(i()(i()({},z==null||(w=z.ctxRef)===null||w===void 0?void 0:w.current),q),{},{$nDate:Q})),ge.next=10,N(oe);case 10:return ge.abrupt("return",ge.sent);case 13:return ge.prev=13,ge.t0=ge.catch(1),console.log(ge.t0),ge.abrupt("return",U);case 17:ge.next=32;break;case 19:return ge.prev=19,ge.next=22,(0,u.replaceVariableValue)(U,z,W);case 22:return ve=ge.sent,ge.next=25,N(ve);case 25:return ge.abrupt("return",ge.sent);case 28:return ge.prev=28,ge.t1=ge.catch(19),console.log(ge.t1),ge.abrupt("return",U);case 32:case"end":return ge.stop()}},t,null,[[1,13],[19,28]])})),B.apply(this,arguments)}},61736:function(we,ne,e){"use strict";e.d(ne,{D:function(){return i}});var H=e(67294),i=(0,H.createContext)({});i.displayName="SchemaComponentContext.Provider"},44245:function(we,ne,e){"use strict";e.d(ne,{R:function(){return n}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(86201),x=e(80844),K=e(67294),o=e(47844),$=e(85893),m=["children","form"],A=["children"],f=function(u){var D=u.children,S=u.form,C=l()(u,m),V=(0,K.useContext)(x.SchemaOptionsContext),k=(0,K.useContext)(x.SchemaExpressionScopeContext),L=i()(i()({},V==null?void 0:V.scope),k),M=i()({},V==null?void 0:V.components);return(0,$.jsx)(x.FormProvider,i()(i()({},C),{},{form:S,children:(0,$.jsx)(o.G,{components:M,scope:L,children:D})}))},O=function(u){var D=u.children,S=l()(u,A),C=(0,K.useContext)(x.SchemaOptionsContext),V=(0,K.useContext)(x.SchemaExpressionScopeContext),k=i()(i()({},C==null?void 0:C.scope),V),L=i()({},C==null?void 0:C.components),M=(0,K.useMemo)(function(){return(0,I.createForm)()},[]);return(0,$.jsx)(x.FormProvider,i()(i()({},S),{},{form:M,children:(0,$.jsx)(o.G,{components:L,scope:k,children:D})}))},n=function(u){return u.form?(0,$.jsx)(f,i()({},u)):(0,$.jsx)(O,i()({},u))}},93587:function(we,ne,e){"use strict";e.d(ne,{m:function(){return n}});var H=e(97857),i=e.n(H),G=e(86201),l=e(57953),I=e(67294),x=e(84577),K=e(44245),o=e(93323),$=e(12174),m=function(u){var D=u.uid,S=u.type,C=S===void 0?"getJsonSchema":S,V=u.onSuccess,k={url:"/uiSchemas:".concat(C,"/").concat(D)},L=(0,$.QT)(k,{refreshDeps:[D],onSuccess:function(P){V&&V(P)}}),M=L.data,v=L.loading;return{schema:M==null?void 0:M.data,loading:v}},A=e(85893),f=function(u){return u},O=function(u){var D=u.noForm,S=u.onlyRenderProperties,C=u.hidden,V=u.scope,k=u.uid,L=u.memoized,M=L===void 0?!0:L,v=u.components,g=u.onSuccess,P=u.NotFoundPage,a=u.schemaTransform,Z=a===void 0?f:a,b=u.onPageNotFind,y=(0,x.Dm)(),c=y.reset,d=S?"getProperties":"getJsonSchema",p={url:"/uiSchemas:".concat(d,"/").concat(k)},h=(0,I.useMemo)(function(){return(0,G.createForm)()},[k]),B=m({uid:k,type:d,onSuccess:function(W){g&&g(W),c&&c()}}),t=B.schema,j=B.loading,U=(0,x.Co)(P);return j||C?(0,A.jsx)("div",{style:{textAlign:"center",marginTop:20},children:(0,A.jsx)(l.Z,{})}):!t||Object.keys(t).length===0?(b&&b(),U?(0,A.jsx)(U,{}):null):D?(0,A.jsx)(o.n,{components:v,scope:V,schema:Z(t||{})}):(0,A.jsx)(K.R,{form:h,children:(0,A.jsx)(o.n,{components:v,scope:V,schema:Z(t||{})})})},n=(0,I.memo)(function(r){return r.uid?(0,A.jsx)(O,i()({},r)):null});n.displayName="RemoteSchemaComponent"},93323:function(we,ne,e){"use strict";e.d(ne,{n:function(){return V}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(9783),x=e.n(I),K=e(80844),o=e(90105),$=e(67294),m=e(61736),A=e(47844),f=e(85893),O=["components","scope","schema","distributed"],n=["schema"],r=["memoized"];function u(k){return K.Schema.isSchemaInstance(k)?k:k!=null&&k.name?new K.Schema({type:"object",properties:x()({},k.name,k)}):new K.Schema(k)}var D=function(L){return(0,$.useMemo)(function(){return u(L)},[])},S=(0,$.memo)(function(k){var L=k.components,M=k.scope,v=k.schema,g=k.distributed,P=l()(k,O),a=(0,$.useContext)(m.D),Z=(0,$.useMemo)(function(){return u(v)},[v]),b=(0,o.Z)();return(0,f.jsx)(m.D.Provider,{value:i()(i()({},a),{},{distributed:a.distributed==!1?!1:g,refresh:function(){var c;if(b(),a.distributed===!1||g===!1){var d;(d=a.refresh)===null||d===void 0||d.call(a)}(c=k.onChange)===null||c===void 0||c.call(k,Z)}}),children:(0,f.jsx)(A.G,{inherit:!0,components:L,scope:M,children:(0,f.jsx)(K.RecursionField,i()(i()({},P),{},{schema:Z}))})})}),C=(0,$.memo)(function(k){var L=k.schema,M=l()(k,n),v=D(L);return(0,f.jsx)(S,i()(i()({},M),{},{schema:v}))}),V=(0,$.memo)(function(k){var L=k.memoized,M=l()(k,r);return L?(0,f.jsx)(C,i()({},M)):(0,f.jsx)(S,i()({},M))})},47844:function(we,ne,e){"use strict";e.d(ne,{B:function(){return x},G:function(){return K}});var H=e(97857),i=e.n(H),G=e(80844),l=e(67294),I=e(85893),x=function(){var $=(0,l.useContext)(G.SchemaOptionsContext);return $||{}},K=(0,l.memo)(function(o){var $=o.children,m=x(),A=(0,l.useMemo)(function(){return i()(i()({},m.components),o.components)},[m.components,o.components]),f=(0,l.useMemo)(function(){return i()(i()({},m.scope),o.scope)},[m.scope,o.scope]),O=(0,l.useMemo)(function(){return{scope:f,components:A}},[f,A]);return(0,I.jsx)(G.SchemaOptionsContext.Provider,{value:O,children:(0,I.jsx)(G.SchemaComponentsContext.Provider,{value:A,children:(0,I.jsx)(G.ExpressionScope,{value:f,children:$})})})});K.displayName="SchemaComponentOptions"},70993:function(we,ne,e){"use strict";e.d(ne,{_b:function(){return L},RV:function(){return M.R},m1:function(){return v.m},n6:function(){return g.n},G0:function(){return P.G},a$:function(){return N},Tz:function(){return z},Bs:function(){return P.B}});var H=e(15009),i=e.n(H),G=e(99289),l=e.n(G),I=e(12444),x=e.n(I),K=e(72004),o=e.n(K),$=e(31996),m=e.n($),A=e(26037),f=e.n(A),O=e(51947),n=e(83062),r=e(15867),u=e(67294),D=e(49218),S=e(26793),C=e(35304),V=e(68230),k=e(85893),L=function(){var Y=(0,C.ngQ)(),q=Y.designable,ee=Y.setDesignable,R=(0,S.$)(),Q=R.t,oe=(0,V.d)(),ve=oe.token,ue={};return q?ue.backgroundColor="var(--colorSettings)":ue.backgroundColor="transparent",(0,D.y1)("Ctrl+Shift+U",function(){return ee(!q)},[q]),(0,k.jsx)(n.Z,{title:Q("UI Editor"),children:(0,k.jsx)(r.ZP,{"data-testid":"ui-editor-button",icon:(0,k.jsx)(O.Z,{style:{color:ve.colorTextHeaderMenu}}),title:Q("UI Editor"),style:ue,onClick:function(){ee(!q)}})})},M=e(44245),v=e(93587),g=e(93323),P=e(47844),a=e(97857),Z=e.n(a),b=e(5574),y=e.n(b),c=e(86201),d=e(80844),p=e(84327),h=e(90105),B=e(61736),t=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Y).concat((0,p.uid)())};d.Schema.silent(!0);var j={},U={silent:!0,compile:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=function(){if(U.silent)try{return new Function("$root","with($root) { return (".concat(Y,"); }"))(q)}catch{return"{{".concat(Y,"}}")}else return new Function("$root","with($root) { return (".concat(Y,"); }"))(q)};return j[Y]?j[Y]:Y.trim().startsWith("t(")?(j[Y]=ee(),j[Y]):ee()}};d.Schema.registerCompiler(U.compile);var z=function(Y){var q=Y.designable,ee=Y.onDesignableChange,R=Y.components,Q=Y.children,oe=(0,u.useContext)(B.D),ve=(0,P.B)(),ue=(0,h.Z)(),ge=(0,u.useState)((0,p.uid)()),Ie=y()(ge,2),Oe=Ie[0],Ce=Ie[1],De=(0,u.useMemo)(function(){return Y.form||(0,c.createForm)()},[Oe]),_e=(0,S.$)(),re=_e.t,ce=(0,u.useMemo)(function(){return Z()(Z()({},Y.scope),{},{t:re,randomString:t})},[Y.scope,re,ve==null?void 0:ve.scope]),ie=(0,u.useState)(q),X=y()(ie,2),me=X[0],xe=X[1],Pe=(0,u.useMemo)(function(){return typeof q=="boolean"?q:me},[q,me,oe.designable]),Te=(0,u.useMemo)(function(){return function(Ae){typeof Pe!="boolean"&&xe(Ae),ee==null||ee(Ae)}},[Pe,ee]),Re=(0,u.useCallback)(function(){Ce((0,p.uid)())},[]);return(0,k.jsx)(B.D.Provider,{value:{scope:ce,components:R,reset:Re,refresh:ue,designable:Pe,setDesignable:Te},children:(0,k.jsx)(d.FormProvider,{form:De,children:(0,k.jsx)(P.G,{inherit:!0,scope:ce,components:R,children:Q})})})};z.displayName="SchemaComponentProvider";var W=e(31601),N=function(w){m()(q,w);var Y=f()(q);function q(){return x()(this,q),Y.apply(this,arguments)}return o()(q,[{key:"load",value:function(){var ee=l()(i()().mark(function Q(){return i()().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:this.addComponents();case 1:case"end":return ve.stop()}},Q,this)}));function R(){return ee.apply(this,arguments)}return R}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:L})}}]),q}(W.S),E=null},84577:function(we,ne,e){"use strict";e.d(ne,{zz:function(){return K.zz},Pl:function(){return K.Pl},oB:function(){return K.oB},lI:function(){return i},hi:function(){return k.hi},eJ:function(){return G.e},Co:function(){return x},aZ:function(){return k.aZ},ng:function(){return K.ng},et:function(){return o.e},cL:function(){return u},fd:function(){return L},Cl:function(){return A},vH:function(){return C},sR:function(){return K.sR},wN:function(){return V.w},Dm:function(){return O},fM:function(){return k.fM}});var H=e(67294),i=function(v){var g=(0,H.useRef)(null);return(0,H.useEffect)(function(){return g.current&&v!==g.current&&g.current.onUnmount(),g.current=v,v.onMount(),function(){v.onUnmount()}},[v]),v},G=e(96365),l=e(80844),I=e(96486),x=function(v,g){var P=(0,H.useContext)(l.SchemaOptionsContext),a=P.components;return v?typeof v!="string"?v:(0,I.get)(a,v)||g:g},K=e(94516),o=e(98146),$=e(97857),m=e.n($),A=function(v){var g=(0,H.useContext)(l.SchemaOptionsContext),P=(0,H.useContext)(l.SchemaExpressionScopeContext),a=(0,H.useRef)();return a.current=P,v.toFieldProps(m()(m()({},g),{},{get scope(){return m()(m()({},g.scope),a.current)}}))},f=e(61736);function O(){return(0,H.useContext)(f.D)}var n=e(26793),r=e(6145),u=function(){var v,g=(0,r.useCollectionManager_deprecated)(),P=g.getCollectionJoinField,a=g.getCollection,Z=(0,l.useFieldSchema)(),b=(0,r.useCollection_deprecated)(),y=b.getField,c=y(Z.name)||P(Z["x-collection-field"]),d=(0,n.$)(),p=d.t,h=((v=Z["x-component-props"])===null||v===void 0?void 0:v.fieldNames)||{},B=h.label,t=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var j=a(c.target);if((j==null?void 0:j.template)==="file")return[{label:p("Record picker"),value:"CollectionField"},{label:p("Select"),value:"AssociationSelect"}];switch(c.interface){case"o2m":return[{label:p("Record picker"),value:"CollectionField"},{label:p("Subtable"),value:"TableField"},{label:p("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:p("Record picker"),value:"CollectionField"},{label:p("Select"),value:"AssociationSelect"}];default:return[{label:p("Record picker"),value:"CollectionField"},{label:p("Subform"),value:"FormField"},{label:p("Select"),value:"AssociationSelect"}]}}},[p,c==null?void 0:c.interface,B]);return t},D=e(35746),S=e(58837),C=function(){var v,g=(0,l.useField)(),P=(0,l.useFieldSchema)(),a=(0,S.Kx)(),Z=(0,D.d9)(),b=(a==null?void 0:a.getField(P.name))||(Z==null?void 0:Z.getCollectionField(P["x-collection-field"])),y=(0,G.e)();(0,H.useEffect)(function(){if(!(g!=null&&g.title)){var c;g.title=y(b==null||(c=b.uiSchema)===null||c===void 0?void 0:c.title)}},[b==null||(v=b.uiSchema)===null||v===void 0?void 0:v.title])},V=e(9780),k=e(18686),L=function(v){var g,P=(0,n.$)(),a=P.t,Z=(0,r.useCollectionManager_deprecated)(),b=Z.getCollectionJoinField,y=Z.getCollection,c=(0,l.useFieldSchema)(),d=(v==null?void 0:v.fieldSchema)||c,p=(0,l.useField)(),h=(0,l.useForm)(),B=(d==null?void 0:d["x-read-pretty"])||p.readPretty||h.readPretty,t=v==null?void 0:v.fieldSchema,j=(0,r.useCollection_deprecated)(),U=j.getField,z=(v==null?void 0:v.collectionField)||U(d.name)||b(d["x-collection-field"]),W=((g=d["x-component-props"])===null||g===void 0?void 0:g.fieldNames)||{},N=W.label,E=(0,H.useMemo)(function(){if(!(!z||!(z!=null&&z.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(z.interface)){var w=y(z.target);if((w==null?void 0:w.template)==="file")return B?[{label:a("Title"),value:"Select"},{label:a("File manager"),value:"FileManager"},{label:a("Tag"),value:"Tag"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},{label:a("File manager"),value:"FileManager"}];if((w==null?void 0:w.template)==="tree"&&["m2m","o2m","m2o"].includes(z.interface))return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"},!t&&{label:a("Sub-table"),value:"SubTable"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&["m2m","o2m"].includes(z.interface)&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Cascade Select"),value:"CascadeSelect"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];switch(z.interface){case"o2m":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"},!t&&{label:a("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"},!t&&{label:a("Sub-table"),value:"SubTable"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];default:return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}]}}},[a,z==null?void 0:z.interface,N]);return(E||[]).filter(Boolean)}},18686:function(we,ne,e){"use strict";e.d(ne,{aZ:function(){return L},fM:function(){return v},hi:function(){return M}});var H=e(5574),i=e.n(H),G=e(97857),l=e.n(G),I=e(80844),x=e(83204),K=e(9361),o=e(96486),$=e.n(o),m=e(67294),A=e(35304),f=e(21143),O=e(10097),n=e(1892),r=e(28561),u=function(a,Z,b,y){return a?y.paddingContentHorizontalLG:b?Z?y.controlPaddingHorizontal+3*y.controlPaddingHorizontalSM+22+y.paddingContentHorizontalLG:y.paddingContentHorizontalLG+12:Z?y.paddingSM+y.controlHeight+y.marginXS+2*y.controlPaddingHorizontalSM+22+y.paddingContentHorizontalLG:y.controlHeight+y.marginXS+(y.paddingXXS+2)*2+y.paddingContentHorizontalLG},D=function(a){var Z=K.Z.useToken(),b=Z.token,y=(0,A.ngQ)(),c=y.designable,d=(0,O.useBlockHeightProps)(),p=d.heightProps,h=a||p||{},B=h.disablePageHeader,t=h.enablePageTabs,j=h.hidePageTitle,U=b.sizeXXL-2,z=c?b.controlHeight+2*b.paddingContentHorizontalLG:1*b.paddingContentHorizontalLG,W=u(B,t,j,b);return U+W+z},S=function(){var a=K.Z.useToken(),Z=a.token,b=(0,A.ngQ)(),y=b.designable,c=Z.paddingContentVerticalLG+Z.margin+2*Z.paddingContentVertical+24,d=y?Z.controlHeight+2*Z.paddingContentHorizontalLG:1*Z.paddingContentHorizontalLG;return c+d},C=function(a){var Z=(0,I.useFieldSchema)(),b=g(Z),y=D(a),c=S();return b?c:y},V=["users_jobs","approvals","approvalRecords"],k=function(){var a,Z,b=K.Z.useToken(),y=b.token,c=(0,O.useBlockHeightProps)(),d=c.heightProps,p=(0,n.Si)(),h=p.heightProps,B=(0,A.ngQ)(),t=B.designable,j=(0,I.useFieldSchema)(),U=h||d,z=C(U),W=(a=(0,f.useDataBlockRequest)())!==null&&a!==void 0?a:{},N=W.data,E=(0,f.useCollection)(),w=E.name,Y=(N==null?void 0:N.meta)||{},q=Y.count,ee=Y.pageSize,R=q>ee,Q=U.heightMode,oe=U.height,ve=U.title;if(!(!(U!=null&&U.heightMode)||Q===r.j.DEFAULT)){var ue=Object.keys(((Z=j.parent.properties.actions)===null||Z===void 0?void 0:Z.properties)||{}).length>0,ge=R?y.controlHeight+y.padding+y.marginLG:y.marginLG,Ie=ue||t?y.controlHeight+2*y.marginLG:y.marginLG,Oe=(t&&!V.includes(w)?y.controlHeight:22)+2*y.padding+1,Ce=ve?y.fontSizeLG*y.lineHeightLG+y.padding*2-1:0;return Q===r.j.FULL_HEIGHT?window.innerHeight-z-Ce-Oe-Ie-ge:oe-Ce-Ie-Oe-ge}},L=function(a){var Z=(0,O.useBlockHeightProps)(),b=Z.heightProps,y=C(),c=K.Z.useToken(),d=c.token,p=b||{},h=p.heightMode,B=p.height,t=p.title,j=t?d.fontSizeLG*d.lineHeightLG+d.padding*2-1:0;if(!(!(b!=null&&b.heightMode)||h===r.j.DEFAULT)){if(h===r.j.FULL_HEIGHT){var U=window.innerHeight-y;return a!=null&&a.removeBlockHeaderHeight&&(U=U-j),a!=null&&a.innerExtraHeight&&(U=U-a.innerExtraHeight),U}return B}},M=function(){var a=(0,I.useFieldSchema)(),Z=(0,m.useMemo)(function(){return(0,O.getPageSchema)(a)},[]),b=(Z==null?void 0:Z["x-component-props"])||{},y=b.disablePageHeader,c=b.enablePageTabs,d=b.hidePageTitle,p=l()(l()({},a==null?void 0:a["x-component-props"]),{},{disablePageHeader:y,enablePageTabs:c,hidePageTitle:d}),h=C(p),B=p||{},t=B.heightMode,j=B.height;if(!(!(p!=null&&p.heightMode)||t===r.j.DEFAULT))return t===r.j.FULL_HEIGHT?window.innerHeight-h:j},v=function(){var a=(0,m.useState)(),Z=i()(a,2),b=Z[0],y=Z[1],c=(0,m.useRef)(null),d=k(),p=(0,m.useCallback)((0,o.debounce)(function(){var B;if(c.current){var t=c.current.getBoundingClientRect(),j=(B=c.current.querySelector(".ant-table"))===null||B===void 0?void 0:B.getBoundingClientRect();j&&y(t.width)}},100),[d]),h=(0,m.useCallback)(function(B){c.current=B&&B.children?B.children[0]:null,p()},[p]);return(0,x.Z)("resize",p),{height:d,width:b,tableSizeRefCallback:h}},g=function P(a){return a?a["x-component"]==="Action.Container"?!0:P(a.parent):null}},96365:function(we,ne,e){"use strict";e.d(ne,{e:function(){return $}});var H=e(97857),i=e.n(H),G=e(52677),l=e.n(G),I=e(80844),x=e(67294),K={},o=function(A){var f=/{{.*?}}/g;return f.test(A)},$=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=A.noCache,O=(0,x.useContext)(I.SchemaOptionsContext),n=(0,x.useContext)(I.SchemaExpressionScopeContext);return function(r,u){var D=!1,S;if(typeof r=="string"&&r.startsWith("{{")&&(D=!0,S=r),r&&l()(r)==="object"&&!(0,x.isValidElement)(r)&&(S=JSON.stringify(r),D=o(S)),Array.isArray(r)&&(D=o(JSON.stringify(r))),D){var C=i()(i()(i()({},O.scope),n),u);if(!S)return I.Schema.compile(r,C);try{return f?I.Schema.compile(r,C):(K[S]=K[S]||I.Schema.compile(r,C),K[S])}catch(V){return console.log("useCompile error",r,V),I.Schema.compile(r,C)}}return r}}},94516:function(we,ne,e){"use strict";e.d(ne,{zz:function(){return z},Pl:function(){return p},oB:function(){return j},ng:function(){return N},sR:function(){return W}});var H=e(5574),i=e.n(H),G=e(19632),l=e.n(G),I=e(15009),x=e.n(I),K=e(99289),o=e.n(K),$=e(12444),m=e.n($),A=e(72004),f=e.n(A),O=e(9783),n=e.n(O),r=e(97857),u=e.n(r),D=e(80844),S=e(84327),C=e(45360),V=e(50361),k=e.n(V),L=e(27361),M=e.n(L),v=e(36968),g=e.n(v),P=e(67294),a=e(26793),Z=e(12174),b=e(61736);function y(E,w){if(E)return E["x-app-version"]||(E["x-app-version"]=w),Object.keys(E.properties||{}).forEach(function(Y){var q;y((q=E.properties)===null||q===void 0?void 0:q[Y],w)}),E}var c={i8:"1.4.13"},d=e(85893);function p(E){return new z(E)}var h=function E(w){w&&(w["x-uid"]||(w["x-uid"]=(0,S.uid)()),Object.keys(w.properties||{}).forEach(function(Y){E(w.properties[Y])}))},B=function(w){return w},t=function(w,Y){if(!(!w||!Y)){for(var q in Y)if(Object.prototype.hasOwnProperty.call(Y,q)){var ee=Y[q];if(ee!==(w==null?void 0:w[q]))return!1}return!0}},j=function(w,Y){if(w["x-uid"]&&w["x-uid"]===Y["x-uid"])return[null,w.toJSON()];var q=w.toJSON(),ee=u()(u()({},q),{},{properties:{}}),R=null,Q=function oe(ve,ue){Object.keys(ve||{}).forEach(function(ge){var Ie=ve[ge];if(Ie["x-uid"]===Y["x-uid"]){R=ve[ge];return}else ue.properties[ge]=u()(u()({},Ie),{},{properties:{}}),oe(Ie==null?void 0:Ie.properties,ue.properties[ge])})};return Q(q.properties,ee),[ee,R]},U=function(w){return w},z=function(){function E(w){m()(this,E),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=w,this.current=w.current,this.appVersion=w.appVersion}return f()(E,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Y=this,q=this.options,ee=q.api,R=q.t,Q=R===void 0?U:R;if(ee){var oe=function(ue){if(!ue)return[];var ge=Object.values(ue.properties).length,Ie=[];return ue.mapProperties(function(Oe){Oe["x-component-props"]=Oe["x-component-props"]||{},Oe["x-component-props"].width=100/ge,Oe["x-uid"]&&Ie.push({"x-uid":Oe["x-uid"],"x-component-props":Oe["x-component-props"]})}),ue["x-uid"]&&Ie.length?Ie:[]};this.on("insertAdjacent",function(){var ve=o()(x()().mark(function ue(ge){var Ie,Oe,Ce,De,_e,re,ce,ie,X,me;return x()().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Oe=ge.onSuccess,Ce=ge.current,De=ge.position,_e=ge.schema,re=ge.wrap,ce=ge.wrapped,ie=ge.removed,X=[],(ce==null?void 0:ce["x-component"])==="Grid.Col"&&(X=X.concat(oe(ce.parent))),(ie==null?void 0:ie["x-component"])==="Grid.Col"&&(X=X.concat(oe(ie.parent))),Y.refresh(),Ce["x-uid"]){Pe.next=7;break}return Pe.abrupt("return");case 7:return Pe.next=9,ee.request({url:"/uiSchemas:insertAdjacent/".concat(Ce["x-uid"],"?position=").concat(De),method:"post",data:{schema:y(_e,Y.appVersion),wrap:re}});case 9:if(me=Pe.sent,!X.length){Pe.next=13;break}return Pe.next=13,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:X});case 13:if(!(ie!=null&&ie["x-uid"])){Pe.next=16;break}return Pe.next=16,ee.request({url:"/uiSchemas:remove/".concat(ie["x-uid"]),method:"post"});case 16:Oe==null||Oe(me==null||(Ie=me.data)===null||Ie===void 0?void 0:Ie.data),C.ZP.success(Q("Saved successfully"),.2);case 18:case"end":return Pe.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("patch",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ie=ge.schema,Y.refresh(),Ie!=null&&Ie["x-uid"]){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.next=6,ee.request({url:"/uiSchemas:patch",method:"post",data:u()({},Ie)});case 6:C.ZP.success(Q("Saved successfully"),.2);case 7:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ie=ge.schema,Y.refresh(),Ie!=null&&Ie["x-uid"]){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.next=6,ee.request({url:"/uiSchemas:initializeActionContext",method:"post",data:u()({},Ie)});case 6:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("batchPatch",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ie=ge.schemas,Y.refresh(),Ce.next=4,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:Ie});case 4:C.ZP.success(Q("Saved successfully"),.2);case 5:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("remove",function(){var ve=o()(x()().mark(function ue(ge){var Ie,Oe;return x()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Ie=ge.removed,Oe=[],(Ie==null?void 0:Ie["x-component"])==="Grid.Col"&&(Oe=oe(Ie.parent)),Y.refresh(),Ie!=null&&Ie["x-uid"]){De.next=6;break}return De.abrupt("return");case 6:return De.next=8,ee.request({url:"/uiSchemas:remove/".concat(Ie["x-uid"]),method:"post"});case 8:if(!Oe.length){De.next=11;break}return De.next=11,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:Oe});case 11:C.ZP.success(Q("Saved successfully"),.2);case 12:case"end":return De.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Y){Y.type||(Y.type="void"),Y.name||(Y.name=(0,S.uid)()),this.current["x-uid"]&&h(Y)}},{key:"on",value:function(Y,q){this.events[Y]||(this.events[Y]=[]),this.events[Y].push(q)}},{key:"emit",value:function(){var w=o()(x()().mark(function q(ee){var R=this,Q,oe,ve,ue,ge,Ie=arguments;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(this.events[ee]){Ce.next=2;break}return Ce.abrupt("return");case 2:for(Q=Ie.length,oe=new Array(Q>1?Q-1:0),ve=1;ve<Q;ve++)oe[ve-1]=Ie[ve];return ue=oe[0],ge=oe.slice(1),Ce.abrupt("return",Promise.all(this.events[ee].map(function(De){return De.bind(R).apply(void 0,[u()({current:R.current},ue)].concat(l()(ge)))})));case 5:case"end":return Ce.stop()}},q,this)}));function Y(q){return w.apply(this,arguments)}return Y}()},{key:"parentsIn",value:function(Y){if(!Y||!D.Schema.isSchemaInstance(Y))return!1;for(var q=this.current;(ee=q)!==null&&ee!==void 0&&ee.parent;){var ee;if(q.parent===Y)return!0;q=q.parent}return!1}},{key:"refresh",value:function(){var Y=this.options.refresh;return Y==null?void 0:Y()}},{key:"deepMerge",value:function(Y){var q=this,ee={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},R={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(Q){ee[Q]?(q.current[Q]=Y[Q],q.updateModel(ee[Q],Y[Q])):R[Q]?Object.keys(Y[Q]).forEach(function(oe){g()(q.current,[Q,oe],Y[Q][oe]),q.updateModel([R[Q],oe],Y[Q][oe])}):q.current[Q]=Y[Q]}),this.emit("patch",{schema:Y})}},{key:"getSchemaAttribute",value:function(Y,q){return M()(this.current,Y,q)}},{key:"shallowMerge",value:function(Y){var q=this,ee={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(R){q.current[R]=Y[R],ee[R]&&q.updateModel(ee[R],Y[R])}),this.emit("patch",{schema:Y})}},{key:"updateModel",value:function(Y,q){var ee=function(Q){g()(Q,Y,q)};this.model&&ee(this.model),this.query&&this.query.take(ee)}},{key:"insertAdjacent",value:function(Y,q){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Y){case"beforeBegin":return this.insertBeforeBegin(q,ee);case"afterBegin":return this.insertAfterBegin(q,ee);case"beforeEnd":return this.insertBeforeEnd(q,ee);case"afterEnd":return this.insertAfterEnd(q,ee)}}},{key:"recursiveRemoveIfNoChildren",value:function(Y,q){if(Y){for(var ee=Y,R,Q=q==null?void 0:q.breakRemoveOn;ee;){if(typeof Q=="function"){if(Q(ee))break}else if(t(ee,Q))break;var oe=Object.keys(ee.properties||{}).length;if(oe>0)break;ee.parent&&(R=ee.parent.removeProperty(ee.name)),ee=ee.parent}return R}}},{key:"remove",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.breakRemoveOn,R=q.removeParentsIfNoChildren,Q=Y||this.current,oe=Q.parent.removeProperty(Q.name);if(R){var ve=this.recursiveRemoveIfNoChildren(Q.parent,{breakRemoveOn:ee});ve&&(oe=ve)}return this.emit("remove",{removed:oe})}},{key:"removeWithoutEmit",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.breakRemoveOn,R=q.removeParentsIfNoChildren,Q=Y||this.current,oe=Q.parent.removeProperty(Q.name);if(R){var ve=this.recursiveRemoveIfNoChildren(Q.parent,{breakRemoveOn:ee});ve&&(oe=ve)}return oe}},{key:"insertBeforeBeginOrAfterEnd",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)&&D.Schema.isSchemaInstance(Y)&&this.current.parent===Y.parent){var R=0,Q=0;return this.current.parent.mapProperties(function(oe,ve,ue){q.current.name===ve&&(Q=ue),Y.name===ve&&(R=ue)}),R>Q?this.insertBeforeBegin(Y,ee):this.insertAfterEnd(Y,ee)}}},{key:"insertBeforeBegin",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var R={onSuccess:ee.onSuccess},Q=ee.wrap,oe=Q===void 0?B:Q,ve=ee.breakRemoveOn,ue=ee.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ue&&(R.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ve}))}else Y&&(Y=k()(Y));var ge={},Ie=!1,Oe=0,Ce=0;this.current.parent.mapProperties(function(me,xe){xe===q.current.name&&(Ce=Oe,Ie=!0,++Oe),me["x-index"]=Oe,++Oe,Ie&&(ge[xe]=me,q.current.parent.removeProperty(xe))}),this.prepareProperty(Y);var De=oe(Y),_e=this.current.parent.addProperty(De.name||(0,S.uid)(),De);_e["x-index"]=Ce,_e.parent=this.current.parent,this.current.parent.setProperties(ge);var re=j(_e,Y),ce=i()(re,2),ie=ce[0],X=ce[1];this.emit("insertAdjacent",u()({position:"beforeBegin",schema:X,wrapped:De,wrap:ie},R))}}},{key:"insertAfterBegin",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var ee={onSuccess:q.onSuccess},R=q.wrap,Q=R===void 0?B:R,oe=q.breakRemoveOn,ve=q.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ve&&(ee.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:oe}))}else Y&&(Y=k()(Y));var ue={},ge=1;this.current.mapProperties(function(ce,ie){ce["x-index"]=ge,++ge,ue[ie]=ce}),this.current.properties={},this.prepareProperty(Y);var Ie=Q(Y),Oe=this.current.addProperty(Ie.name||(0,S.uid)(),Ie);Oe["x-index"]=0,Oe.parent=this.current,this.current.setProperties(ue);var Ce=j(Oe,Y),De=i()(Ce,2),_e=De[0],re=De[1];this.emit("insertAdjacent",u()({position:"afterBegin",schema:re,wrap:_e,wrapped:Ie},ee))}}},{key:"insertBeforeEnd",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){delete Y["x-index"];var ee={onSuccess:q.onSuccess},R=q.wrap,Q=R===void 0?B:R,oe=q.breakRemoveOn,ve=q.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ve&&(ee.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:oe}))}else Y&&(Y=k()(Y));this.prepareProperty(Y);var ue=Q(Y),ge=this.current.addProperty(ue.name||(0,S.uid)(),ue);ge.parent=this.current;var Ie=j(ge,Y),Oe=i()(Ie,2),Ce=Oe[0],De=Oe[1];return this.emit("insertAdjacent",u()({position:"beforeEnd",schema:De,wrap:Ce,wrapped:ue},ee))}}},{key:"insertAfterEnd",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var R={onSuccess:ee==null?void 0:ee.onSuccess},Q=ee.wrap,oe=Q===void 0?B:Q,ve=ee.breakRemoveOn,ue=ee.removeParentsIfNoChildren,ge=0,Ie=0,Oe=!1,Ce={};if(this.current.parent.mapProperties(function(me,xe){me["x-index"]=ge,xe===q.current.name&&(++ge,Ie=ge,Oe=!0),++ge,Oe&&xe!==q.current.name&&(Ce[xe]=me,q.current.parent.removeProperty(xe))}),D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ue&&(R.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ve})),Y.parent=null}else Y&&(Y=k()(Y));this.prepareProperty(Y);var De=oe(Y),_e=this.current.parent.addProperty(De.name||(0,S.uid)(),De);_e.parent=this.current.parent,_e["x-index"]=Ie,this.current.parent.setProperties(Ce);var re=j(_e,Y),ce=i()(re,2),ie=ce[0],X=ce[1];this.emit("insertAdjacent",u()({position:"afterEnd",schema:X,wrap:ie,wrapped:De},R))}}}]),E}();function W(){var E=(0,P.useContext)(D.SchemaOptionsContext),w=(0,P.useMemo)(function(){return(E==null?void 0:E.components)||{}},[E]),Y=function(ee){if(!ee)return null;if(typeof ee!="string")return ee;var R=M()(w,ee);return R||console.error('[nocobase]: Component "'.concat(ee,'" not found')),R};return Y}function N(){var E=(0,P.useContext)(b.D),w=E.designable,Y=E.setDesignable,q=E.refresh,ee=E.reset,R=(0,P.useContext)(D.SchemaOptionsContext),Q=(0,P.useMemo)(function(){return(R==null?void 0:R.components)||{}},[R]),oe=(0,P.useMemo)(function(){return function(){return(0,d.jsx)(d.Fragment,{})}},[]),ve=(0,D.useField)(),ue=(0,D.useFieldSchema)(),ge=(0,Z.LY)(),Ie=(0,a.$)(),Oe=Ie.t,Ce=(0,P.useMemo)(function(){return p({t:Oe,api:ge,refresh:q,current:ue,model:ve,appVersion:c.i8})},[Oe,ge,q,ue,ve]);return(0,P.useEffect)(function(){Ce.loadAPIClientEvents()},[Ce]),{dn:Ce,designable:w,reset:ee,refresh:q,setDesignable:Y,DesignableBar:oe,findComponent:(0,P.useCallback)(function(De){return De?typeof De!="string"?De:M()(Q,De):null},[M()]),on:Ce.on.bind(Ce),patch:(0,P.useCallback)(function(De,_e){var re=function(X){Object.keys(X).forEach(function(me){var xe=X[me];me==="title"&&(ve.title=xe,ue.title=xe),me==="x-decorator-props"&&(ve.decoratorProps||(ve.decoratorProps={}),ue["x-decorator-props"]||(ue["x-decorator-props"]={}),Object.keys(xe).forEach(function(Pe){ve.decoratorProps[Pe]=xe[Pe],ue["x-decorator-props"][Pe]=xe[Pe]})),me==="x-component-props"&&(ve.componentProps||(ve.componentProps={}),ue["x-component-props"]||(ue["x-component-props"]={}),Object.keys(xe).forEach(function(Pe){ve.componentProps[Pe]=xe[Pe],ue["x-component-props"][Pe]=xe[Pe]}))})};if(typeof De=="string"){var ce={};return g()(ce,De,_e),re(ce)}re(De),q()},[Ce]),shallowMerge:(0,P.useCallback)(function(De){Ce.shallowMerge(De)},[Ce]),deepMerge:(0,P.useCallback)(function(De){Ce.deepMerge(De)},[Ce]),remove:(0,P.useCallback)(function(De,_e){Ce.remove(De,_e)},[Ce]),insertAdjacent:(0,P.useCallback)(function(De,_e,re){Ce.insertAdjacent(De,_e,re)},[Ce]),insertBeforeBegin:(0,P.useCallback)(function(De){Ce.insertBeforeBegin(De)},[Ce]),insertAfterBegin:(0,P.useCallback)(function(De){Ce.insertAfterBegin(De)},[Ce]),insertBeforeEnd:(0,P.useCallback)(function(De){Ce.insertBeforeEnd(De)},[Ce]),insertAfterEnd:(0,P.useCallback)(function(De){Ce.insertAfterEnd(De)},[Ce])}}},98146:function(we,ne,e){"use strict";e.d(ne,{e:function(){return x}});var H=e(80844),i=e(84577),G=e(67294),l=e(78545),I=function(){return null},x=function(){var o=(0,i.ng)(),$=o.designable,m=(0,H.useFieldSchema)(),A=(0,G.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?l.Mf:I},[m]),f=(0,i.Co)(A);return $&&f||I}},9780:function(we,ne,e){"use strict";e.d(ne,{w:function(){return K}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=["useProps"],x=function(){return{}},K=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=$.useProps,A=m===void 0?x:m,f=l()($,I),O=A;typeof A!="function"&&(O=x);var n=O();return i()(i()({},f),n)}},35304:function(we,ne,e){"use strict";e.d(ne,{aUM:function(){return L.aU},olz:function(){return L.ol},N0i:function(){return L.N0},fWn:function(){return L.fW},EIK:function(){return L.EI},$Lt:function(){return L.$L},$b8:function(){return L.$b},HTy:function(){return Tr},lkv:function(){return Er},rDu:function(){return ri},eYL:function(){return L.eY},Rat:function(){return Yr},oAt:function(){return Zo},E7E:function(){return Mr},$SD:function(){return Pi},fUi:function(){return Lr.fU},QcG:function(){return es},MLy:function(){return xo.M},gOu:function(){return Is},jYG:function(){return ma.jY},PuU:function(){return ma.Pu},C1I:function(){return L.C1},Ssf:function(){return ns},vTp:function(){return as},XZJ:function(){return ea},Tt2:function(){return us},zH8:function(){return ps},Q5L:function(){return gs},Pok:function(){return yi},Vm0:function(){return bs},xI_:function(){return ds},Lip:function(){return cs},WN4:function(){return ji.W},Mtg:function(){return ta.Mt},iNu:function(){return ta.iN},zzt:function(){return Ft.zz},_bl:function(){return C._b},POi:function(){return Ps},AOY:function(){return ge},izJ:function(){return Uu},LBT:function(){return S.DndContext},IWB:function(){return S.DragHandler},LCt:function(){return S.DraggableContext},FyH:function(){return oe.Fy},Nir:function(){return oe.Ni},q8U:function(){return oe.q8},HGA:function(){return oe.HG},QTe:function(){return oe.QT},JEX:function(){return oe.JE},fAH:function(){return gl},$w$:function(){return oe.$w},nBj:function(){return oe.nB},Oct:function(){return oe.Oc},zdw:function(){return oe.zd},CXR:function(){return fl},BQs:function(){return Pr.BQ},Hj5:function(){return pn.H},M0b:function(){return Si},Dnz:function(){return ji.D},wn$:function(){return Kn.wn},GzZ:function(){return Kn.Gz},tJZ:function(){return Kn.tJ},fox:function(){return Kn.fo},VTd:function(){return Kn.VT},XsZ:function(){return Kn.Xs},AsW:function(){return Mo},cLM:function(){return Xo},m__:function(){return ko},l09:function(){return ee},D_t:function(){return ol.D},WiK:function(){return ho},xJW:function(){return oe.xJ},RVL:function(){return C.RV},Bc8:function(){return St},hG9:function(){return Di},DCh:function(){return Ei},rjZ:function(){return na.rj},Cqo:function(){return Qa},jg7:function(){return na.jg},gsn:function(){return Pr.gs},$18:function(){return Ks},IIB:function(){return Pr.II},RnZ:function(){return il},mX2:function(){return Pr.mX},zDC:function(){return ur.zD},Phs:function(){return Pr.Ph},aVo:function(){return Xa},UGj:function(){return sl},yq5:function(){return ul},v2r:function(){return pa},HIW:function(){return Lu},T3C:function(){return rn},d97:function(){return To.d9},hGv:function(){return Ln},tlE:function(){return iu},rop:function(){return su},gGi:function(){return uu},DBW:function(){return Cr.D},MBS:function(){return cu.M},pGO:function(){return mu},Y8K:function(){return Fi},iVT:function(){return Pr.iV},ODP:function(){return ur.OD},lbb:function(){return ur.lb},b7w:function(){return ur.b7},sUk:function(){return ur.sU},x1j:function(){return L.x1},m1v:function(){return C.m1},glM:function(){return Xt},xZD:function(){return L.xZ},IuH:function(){return Kn.Iu},MkN:function(){return L.Mk},Hof:function(){return pu},n6:function(){return C.n6},DDd:function(){return jv.D},G0E:function(){return C.G0},a$w:function(){return C.a$},TzZ:function(){return C.Tz},y00:function(){return L.y0},PhF:function(){return xt},Cqv:function(){return S.ShowFormData},cof:function(){return L.co},bts:function(){return S.Sortable},Fop:function(){return S.SortableContext},TRI:function(){return S.SortableItem},ORg:function(){return S.SortableProvider},TaI:function(){return fu},qHe:function(){return Bn.q},iA_:function(){return Nr},gvM:function(){return Du},SnY:function(){return Cl},ASv:function(){return Iu},bwk:function(){return Xr},mQc:function(){return ti},c__:function(){return ei.c},QZ3:function(){return Tn},L39:function(){return ma.L3},jII:function(){return _l},mPs:function(){return ju},tgM:function(){return Bu},gqx:function(){return Lr.gq},Qm7:function(){return Lr.Qm},_wD:function(){return Ba._w},rjl:function(){return Ba.rj},Fjw:function(){return L.Fj},SLL:function(){return L.SL},sBv:function(){return L.sB},iTm:function(){return oe.iT},BDK:function(){return Lr.BD},Pls:function(){return Ft.Pl},Oxq:function(){return Pn},WLi:function(){return Ot},$9M:function(){return oe.$9},nCn:function(){return qa},iNG:function(){return Fa},tD8:function(){return Ii},pg9:function(){return po},Ofb:function(){return oe.Of},ibf:function(){return yo},WyG:function(){return Q},l6$:function(){return Ue.l6},WGR:function(){return eo},C$H:function(){return ur.C$},SET:function(){return zr.SE},cNQ:function(){return ur.cN},NCb:function(){return Vo.NC},I9l:function(){return S.getRenderContent},XQ2:function(){return Vo.XQ},MDU:function(){return zr.MD},CEH:function(){return zr.CE},ZZb:function(){return oe.ZZ},elO:function(){return ur.el},CfU:function(){return Do},LPx:function(){return zr.LP},fY6:function(){return zr.fY},w_o:function(){return zr.w_},SJF:function(){return So},_Ko:function(){return bo},Mev:function(){return sr},i2K:function(){return zn},WmO:function(){return Kn.Wm},oBi:function(){return Ft.oB},hKP:function(){return Vo.hK},DU1:function(){return L.DU},XCj:function(){return L.XC},KyD:function(){return qo.Ky},Vpg:function(){return mr},lIL:function(){return Ft.lI},KxP:function(){return xo.K},hi9:function(){return Ft.hi},p27:function(){return L.p2},z9d:function(){return hl.z9},eJW:function(){return Ft.eJ},Cor:function(){return Ft.Co},Zmk:function(){return To.Zm},aZq:function(){return Ft.aZ},P1D:function(){return ta.P1},ngQ:function(){return Ft.ng},ett:function(){return Ft.et},ySm:function(){return pn.y},Zd$:function(){return oe.Zd},cLh:function(){return Ft.cL},baz:function(){return oe.b},fde:function(){return Ft.fd},Xdt:function(){return ur.Xd},Cld:function(){return Ft.Cl},vH8:function(){return Ft.vH},PLH:function(){return Kn.PL},V8t:function(){return Kn.V8},tMk:function(){return Kn.tM},xQm:function(){return Kn.xQ},sRe:function(){return Ft.sR},frb:function(){return mo},$N2:function(){return Bo},U1u:function(){return yn},HS$:function(){return L.HS},vBu:function(){return L.vB},QYZ:function(){return L.QY},t9d:function(){return L.t9},Kgy:function(){return Kn.Kg},aJ2:function(){return Kn.aJ},n14:function(){return na.n1},DiB:function(){return na.Di},l1O:function(){return oe.l1},w5o:function(){return oe.w5},p3Q:function(){return oe.p3},G5e:function(){return oe.G5},xj2:function(){return oe.xj},rxY:function(){return oe.rx},Ils:function(){return ur.Il},zCB:function(){return L.zC},a4r:function(){return Cr.a},wNf:function(){return Ft.wN},Dmu:function(){return Ft.Dm},Bsl:function(){return C.Bs},yKv:function(){return au.y},fMB:function(){return Ft.fM},gCg:function(){return ei.g},eT6:function(){return oe.eT},$SN:function(){return Lr.$S},q4O:function(){return oe.q4},ymE:function(){return Ba.ym},uqQ:function(){return L.uq},Q3P:function(){return Vo.Q3},K5K:function(){return L.K5}});var H={};e.r(H),e.d(H,{Action:function(){return L.aU},ActionBar:function(){return L.ol},ActionBarProvider:function(){return L.N0},ActionContext:function(){return L.fW},ActionContextProvider:function(){return L.EI},ActionDesigner:function(){return L.$L},AfterSuccess:function(){return L.$b},AntdSchemaComponentPlugin:function(){return Tr},AntdSchemaComponentProvider:function(){return Er},AppendsTreeSelect:function(){return ri},AssignedFieldValues:function(){return L.eY},AssociationField:function(){return Yr},AssociationFieldMode:function(){return Zo},AssociationFieldModeProvider:function(){return Mr},AssociationSelect:function(){return Pi},AttachmentList:function(){return Lr.fU},AutoComplete:function(){return es},BackButtonUsedInSubPage:function(){return xo.M},Block:function(){return Is},BlockItem:function(){return ma.jY},BlockItemCard:function(){return ma.Pu},ButtonEditor:function(){return L.C1},CardItem:function(){return ns},Cascader:function(){return as},Checkbox:function(){return ea},CollectionSelect:function(){return us},ColorPicker:function(){return ps},ColorSelect:function(){return gs},Cron:function(){return yi},CronSet:function(){return bs},DataSourceCollectionCascader:function(){return ds},DataSourceSelect:function(){return cs},DateFormatCom:function(){return ji.W},DatePicker:function(){return ta.Mt},DatePickerProvider:function(){return ta.iN},Details:function(){return Ps},DetailsDesigner:function(){return ge},Divider:function(){return Uu},EditComponent:function(){return oe.Fy},EditDefaultValue:function(){return oe.Ni},EditDescription:function(){return oe.q8},EditOperator:function(){return oe.HG},EditPattern:function(){return oe.QT},EditRequired:function(){return oe.JE},EditSortField:function(){return gl},EditTitle:function(){return oe.$w},EditTitleField:function(){return oe.nB},EditTooltip:function(){return oe.Oc},EditValidationRules:function(){return oe.zd},Editable:function(){return fl},EllipsisWithTooltip:function(){return Pr.BQ},ErrorFallback:function(){return pn.H},Expand:function(){return Si},ExpiresRadio:function(){return ji.D},Filter:function(){return Kn.wn},FilterAction:function(){return Kn.Gz},FilterActionContext:function(){return Kn.tJ},FilterContext:function(){return Kn.fo},FilterDynamicComponent:function(){return Kn.VT},FilterLogicContext:function(){return Kn.Xs},FixedBlock:function(){return Mo},FixedBlockDesignerItem:function(){return Xo},FixedBlockWrapper:function(){return ko},Form:function(){return ee},FormDialog:function(){return ol.D},FormField:function(){return ho},FormItem:function(){return oe.xJ},FormV2:function(){return St},G2Plot:function(){return Di},G2PlotRenderer:function(){return Ei},Grid:function(){return na.rj},GridCard:function(){return Qa},GridRowContext:function(){return na.jg},HTMLEncode:function(){return Pr.gs},IconPicker:function(){return Ks},Input:function(){return Pr.II},InputNumber:function(){return il},InputReadPretty:function(){return Pr.mX},InputRecordPicker:function(){return ur.zD},Json:function(){return Pr.Ph},List:function(){return Xa},Markdown:function(){return sl},MarkdownReadPretty:function(){return ul},Menu:function(){return pa},NanoIDInput:function(){return Lu},Page:function(){return rn},PagePopups:function(){return To.d9},PageTabs:function(){return Ln},Pagination:function(){return iu},Password:function(){return su},Percent:function(){return uu},PopupSettingsProvider:function(){return Cr.D},Preview:function(){return cu.M},QuickEdit:function(){return mu},Radio:function(){return Fi},ReadPretty:function(){return Pr.iV},ReadPrettyRecordPicker:function(){return ur.OD},RecordPicker:function(){return ur.lb},RecordPickerContext:function(){return ur.b7},RecordPickerProvider:function(){return ur.sU},RefreshDataBlockRequest:function(){return L.x1},RemoteSelect:function(){return Xt},RemoveButton:function(){return L.xZ},RemoveConditionContext:function(){return Kn.Iu},RequestSettings:function(){return L.Mk},RichText:function(){return pu},SecondConFirm:function(){return L.y0},Select:function(){return xt},SkipValidation:function(){return L.co},Space:function(){return fu},StablePopover:function(){return Bn.q},Table:function(){return Nr},TableBlockDesigner:function(){return Du},TableField:function(){return Cl},TableSelectorDesigner:function(){return Iu},TableV2:function(){return Xr},Tabs:function(){return ti},TabsContextProvider:function(){return ei.c},Templates:function(){return Tn},TestDesigner:function(){return ma.L3},TimePicker:function(){return _l},TreeSelect:function(){return ju},UnixTimestamp:function(){return Bu},Upload:function(){return Lr.gq},Uploader:function(){return Lr.Qm},Variable:function(){return Ba._w},VariableScopeProvider:function(){return Ba.rj},WorkflowConfig:function(){return L.Fj},actionSettings:function(){return L.SL},actionSettingsItems:function(){return L.sB},allowAddNew:function(){return oe.iT},attachmentFileTypes:function(){return Lr.BD},defaultFieldNames:function(){return Pn},fetchTemplateData:function(){return Ot},filterFormItemSettings:function(){return oe.$9},findByUid:function(){return qa},findKeysByUid:function(){return Fa},findMenuItem:function(){return Ii},formDetailsSettings:function(){return po},formItemSettings:function(){return oe.Of},formSettings:function(){return yo},formV1Settings:function(){return Q},genStyleHook:function(){return Ue.l6},getCurrentOptions:function(){return eo},getDatePickerLabels:function(){return ur.C$},getDateRanges:function(){return zr.SE},getLabelFormatValue:function(){return ur.cN},getPopupPathFromParams:function(){return Vo.NC},getStoredPopupContext:function(){return Vo.XQ},handleDateChangeOnForm:function(){return zr.MD},inferPickerType:function(){return zr.CE},isFileCollection:function(){return oe.ZZ},isShowFilePicker:function(){return ur.el},isTabPage:function(){return Do},mapDatePicker:function(){return zr.LP},mapRangePicker:function(){return zr.fY},moment2str:function(){return zr.w_},navigateToTab:function(){return So},pageSettings:function(){return bo},pageTabSettings:function(){return sr},readPrettyFormSettings:function(){return zn},removeNullCondition:function(){return Kn.Wm},storePopupContext:function(){return Vo.hK},useActionBarContext:function(){return L.DU},useActionContext:function(){return L.XC},useAssociationFieldContext:function(){return qo.Ky},useAssociationFieldModeContext:function(){return mr},useBackButton:function(){return xo.K},useCloseAction:function(){return L.p2},useColumnSchema:function(){return hl.z9},useCurrentPopupContext:function(){return To.Zm},useDatePickerContext:function(){return ta.P1},useDownloadLogs:function(){return pn.y},useEnsureOperatorsValid:function(){return oe.Zd},useFieldMode:function(){return oe.b},useFieldNames:function(){return ur.Xd},useFilterActionProps:function(){return Kn.PL},useFilterFieldOptions:function(){return Kn.V8},useFilterFieldProps:function(){return Kn.tM},useFilterOptions:function(){return Kn.xQ},useFixedBlock:function(){return mo},useFixedSchema:function(){return Bo},useFormDataTemplates:function(){return yn},useGetAriaLabelOfAction:function(){return L.HS},useGetAriaLabelOfDrawer:function(){return L.vB},useGetAriaLabelOfModal:function(){return L.QY},useGetAriaLabelOfPopover:function(){return L.t9},useGetFilterFieldOptions:function(){return Kn.Kg},useGetFilterOptions:function(){return Kn.aJ},useGridContext:function(){return na.n1},useGridRowContext:function(){return na.Di},useIsAddNewForm:function(){return oe.l1},useIsAssociationField:function(){return oe.w5},useIsFieldReadPretty:function(){return oe.p3},useIsFileField:function(){return oe.G5},useIsFormReadPretty:function(){return oe.xj},useIsSelectFieldMode:function(){return oe.rx},useLabelUiSchema:function(){return ur.Il},useLinkageAction:function(){return L.zC},usePopupSettings:function(){return Cr.a},useStyles:function(){return au.y},useTabsContext:function(){return ei.g},useTitleFieldOptions:function(){return oe.eT},useUploadStyles:function(){return Lr.$S},useValidateSchema:function(){return oe.q4},useVariableScope:function(){return Ba.ym},useZIndexContext:function(){return L.uq},withSearchParams:function(){return Vo.Q3},zIndexContext:function(){return L.K5}});var i=e(15009),G=e.n(i),l=e(99289),I=e.n(l),x=e(12444),K=e.n(x),o=e(72004),$=e.n(o),m=e(31996),A=e.n(m),f=e(26037),O=e.n(f),n=e(97857),r=e.n(n),u=e(67294),D=e(31601),S=e(14896),C=e(70993),V=e(89127),k=function(T){return I()(G()().mark(function ae(){var de,pe;return G()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.prev=0,Ee.next=3,this.api.request(T);case 3:return pe=Ee.sent,Ee.abrupt("return",pe==null||(de=pe.data)===null||de===void 0?void 0:de.data);case 7:return Ee.prev=7,Ee.t0=Ee.catch(0),Ee.abrupt("return",[]);case 10:case"end":return Ee.stop()}},ae,this,[[0,7]])}))},L=e(76157),M=e(13769),v=e.n(M),g=e(5552),P=e(86201),a=e(80844),Z=e(28459),b=e(57953),y=e(12174),c=e(6145),d=e(78545),p=e(64016),h=e(15195),B=e(23461),t=e(85893),j=["form","children"],U=["form","children","disabled"],z=["request","effects","initialValue","useValues"],W=function(T){var ae=T.form,de=T.children,pe=v()(T,j),Me=(0,a.useField)(),Ee=(0,a.useFieldSchema)(),We=(0,Ft.lI)(ae.createVoidField(r()(r()({},Me.props),{},{basePath:""})));return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:"vertical"},pe),{},{children:(0,t.jsx)(a.RecursionField,{basePath:We.address,schema:Ee,onlyRenderProperties:!0})}))})})},N=function(T){return T.children},E=function(T){var ae=T.form,de=T.children,pe=T.disabled,Me=v()(T,U),Ee=(0,a.useField)(),We=(0,a.useFieldSchema)(),$e=(0,Ft.lI)(ae.createVoidField(r()(r()({},Ee.props),{},{basePath:""}))),Ze=(0,Ft.Co)(We["x-component"],N);return(0,u.useEffect)(function(){ae.disabled=pe||Ee.disabled},[pe,Ee.disabled]),(0,t.jsx)(Z.ZP,{componentDisabled:pe,children:(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:"vertical"},Me),{},{children:(0,t.jsx)(a.FieldContext.Provider,{value:$e,children:(0,t.jsx)(Ze,r()(r()({},Ee.componentProps),{},{children:(0,t.jsx)(a.RecursionField,{basePath:$e.address,schema:We,onlyRenderProperties:!0})}))})}))})})})},w=function(T){var ae=T.request,de=T.initialValue;return ae||function(){return Promise.resolve({data:de})}},Y=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,y.QT)(w(ae),T)},q=(0,u.createContext)(null);q.displayName="FormBlockContext";var ee=(0,a.observer)(function(J){var T=J.request,ae=J.effects,de=J.initialValue,pe=J.useValues,Me=pe===void 0?Y:pe,Ee=v()(J,z),We=(0,a.useFieldSchema)(),$e=(0,a.useField)(),Ze=(0,u.useMemo)(function(){return(0,P.createForm)({effects:ae})},[]),Ye=Me({uid:We["x-uid"],onSuccess:function(qe){return I()(G()().mark(function dt(){return G()().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Ze.reset();case 2:Ze.setValues(qe==null?void 0:qe.data),Ze.setInitialValues(qe==null?void 0:qe.data);case 4:case"end":return rt.stop()}},dt)}))()}},J),Qe=(0,u.useContext)(q);return(0,t.jsx)(q.Provider,{value:{parent:Qe,form:Ze,result:Ye,field:$e,fieldSchema:We},children:(0,t.jsx)(b.Z,{spinning:(Ye==null?void 0:Ye.loading)||!1,children:We["x-decorator"]==="Form"?(0,t.jsx)(E,r()({form:Ze},Ee)):(0,t.jsx)(W,r()({form:Ze},Ee))})})},{displayName:"Form"});ee.Designer=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)(),Me=(0,B.rE)(),Ee=Me.componentNamePrefix;return(0,t.jsxs)(d.aN,{template:pe,title:de||ae,children:[(0,t.jsx)(p.G,{componentName:"".concat(Ee,"Form"),collectionName:ae}),(0,t.jsx)(d.Z5,{}),(0,t.jsx)(d.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var R=e(5537),Q=new R.F5({name:"FormV1Settings",items:[{name:"template",Component:p.G,useComponentProps:function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=(0,B.rE)(),pe=de.componentNamePrefix;return{componentName:"".concat(pe,"Form"),collectionName:ae}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),oe=e(54801),ve=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"FormSettings",template:pe,title:de||ae})},ue=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"ReadPrettyFormSettings",template:pe,title:de||ae})},ge=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"FormDetailsSettings",template:pe,title:de||ae})},Ie=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"blockSettings:filterForm",template:pe,title:de||ae})},Oe=e(7340),Ce=e(15503),De=e(68230),_e=e(68400),re=e.n(_e),ce=e(97133),ie=e(84327),X=e(9361),me=e(31019),xe=e(22229),Pe=e(43321),Te=e(24107),Re=e(9780),Ae=e(18686),Se=e(94804),Fe=e(5574),se=e.n(Fe),fe=e(84157),he=e(42075),F=e(34041),te=e(96486),be=e.n(te),le=e(26793),Je=e(32268),Ue=e(60094),st=e(9783),ke=e.n(st),Lt=e(52677),et=e.n(Lt),Kt=e(50888),Bt=e(66309),mt=e(96074),Wt=e(27484),bt=e.n(Wt),Jt=e(44990),ln=e(8341),dn=e(87714),Ft=e(84577),bn=e(4340),mn=e(97937),gt=e(32983),At=e(67668),Dt=e(58812),Tt=e(96695),Nt=e.n(Tt),Vt=e(19632),kt=e.n(Vt),Pn={label:"label",value:"value",color:"color",options:"children"};function Fn(J,T){var ae=[];if(!Array.isArray(J))return ae;for(var de=0;de<J.length;de++){var pe=J[de][T.options];Array.isArray(pe)&&ae.push.apply(ae,kt()(Fn(pe,T))),ae.push(r()({},J[de]))}return ae}function wn(J,T,ae){if(!J)return[];var de=[],pe=Nt()(ae),Me;try{var Ee=function(){var $e=Me.value,Ze=J.find(function(Ye){return Ye[T.value]==$e})||{value:$e,label:$e&&$e.toString()};de.push(Ze)};for(pe.s();!(Me=pe.n()).done;)Ee()}catch(We){pe.e(We)}finally{pe.f()}return de}function eo(J,T,ae){var de=Fn(T,ae),pe=(0,te.castArray)(J).map(function(Me){return(0,fe.isPlainObject)(Me)?Me[ae.value]:Me});return wn(de,ae,pe)}var Zn=(0,a.observer)(function(J){var T=(0,u.useState)(!0),ae=se()(T,2),de=ae[0],pe=ae[1],Me=(0,u.useState)([]),Ee=se()(Me,2),We=Ee[0],$e=Ee[1],Ze=(0,a.useField)(),Ye=(0,At.Hy)();return(0,u.useEffect)(function(){var Qe,Ct=r()(r()({},Pn),J.fieldNames),qe=Ze.dataSource||J.options||(Ye==null?void 0:Ye.uiSchema.enum)||[],dt=eo(Ze.value,qe,Ct);if(!(!(0,ie.isValid)(J.value)&&!dt.length)&&!((0,P.isArrayField)(Ze)&&(Ze==null||(Qe=Ze.value)===null||Qe===void 0?void 0:Qe.length)===0)){var ct=Ze.value!==null&&dt.map(function(rt,It){return(0,t.jsx)(Bt.Z,{color:rt[Ct.color],icon:rt.icon,children:rt[Ct.label]},It)});$e(ct),pe(!1)}},[Ye==null?void 0:Ye.uiSchema.enum,Ze,Ze.dataSource,Ze.value,J.fieldNames,J.options,J.value]),de?null:(0,t.jsx)(Dt.B,{ellipsis:J.ellipsis,children:We})},{displayName:"SelectReadPretty"}),Vn=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],ao=["objectValue","loading","value","rawOptions","defaultValue"],Ut=function(T){return!(0,ie.isValid)(T)||et()(T)==="object"&&Object.keys(T).length===0},nt=function(T){var ae=T.value,de=T.options,pe=T.onChange,Me=T.fieldNames,Ee=T.mode,We=T.loading,$e=T.rawOptions,Ze=T.defaultValue,Ye=v()(T,Vn),Qe=function(qe){var dt;if(!Ut(qe)){var ct=(0,ie.toArr)(qe).filter(function(It){return It}).map(function(It){return(0,fe.isPlainObject)(It)?It[Me.value]:It}),rt=(dt=eo(ct,de,Me))===null||dt===void 0?void 0:dt.map(function(It){return{label:It[Me.label],value:It[Me.value]}});return["tags","multiple"].includes(Ee)||T.multiple?rt:rt.shift()}};return(0,t.jsx)(F.default,r()({role:"button","data-testid":"select-object-".concat(Ee||"single"),value:Qe(ae),defaultValue:Qe(Ze),allowClear:{clearIcon:(0,t.jsx)(bn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:We?(0,t.jsx)(b.Z,{}):(0,t.jsx)(gt.Z,{image:gt.Z.PRESENTED_IMAGE_SIMPLE}),options:de,fieldNames:Me,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(qe,dt){var ct;return((ct=dt==null?void 0:dt[Me.label||"label"])!==null&&ct!==void 0?ct:"").includes(qe)},filterSort:function(qe,dt){var ct,rt;return((ct=qe==null?void 0:qe[Me.label||"label"])!==null&&ct!==void 0?ct:"").toLowerCase().localeCompare(((rt=dt==null?void 0:dt[Me.label||"label"])!==null&&rt!==void 0?rt:"").toLowerCase())},onChange:function(qe){var dt=eo((0,ie.toArr)(qe).map(function(ct){return ct.value}),$e||de,Me);["tags","multiple"].includes(Ee)||T.multiple?pe==null||pe(dt):pe==null||pe(dt.shift()||null)},mode:Ee,tagRender:function(qe){return(0,t.jsx)(Bt.Z,r()(r()({role:"button","aria-label":qe.label,closeIcon:(0,t.jsx)(mn.Z,{role:"button","aria-label":"icon-close-tag"})},qe),{},{children:qe.label}))}},Ye))},ht=function(T,ae){var de;return((de=ae==null?void 0:ae.label)!==null&&de!==void 0?de:"").toLowerCase().includes((T||"").toLowerCase())},yt=(0,a.connect)(function(J){var T=J.objectValue,ae=J.loading,de=J.value,pe=J.rawOptions,Me=J.defaultValue,Ee=v()(J,ao),We=J.multiple?"multiple":J.mode;if(We&&!["multiple","tags"].includes(We)&&(We=void 0),T)return(0,t.jsx)(nt,r()(r()({rawOptions:pe},Ee),{},{defaultValue:Me,value:de,mode:We,loading:ae}));var $e=function(Ye){return["tags","multiple"].includes(J.mode)||J.multiple?Ye?(0,ie.toArr)(Ye):void 0:Ye};return(0,t.jsx)(F.default,r()(r()({role:"button","data-testid":"select-".concat(We||"single"),showSearch:!0,filterOption:ht,allowClear:{clearIcon:(0,t.jsx)(bn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:ae?(0,t.jsx)(b.Z,{}):(0,t.jsx)(gt.Z,{image:gt.Z.PRESENTED_IMAGE_SIMPLE}),value:$e(de),defaultValue:$e(Me),tagRender:function(Ye){return(0,t.jsx)(Bt.Z,r()(r()({role:"button","aria-label":Ye.label,closeIcon:(0,t.jsx)(mn.Z,{role:"button","aria-label":"icon-close-tag"})},Ye),{},{children:Ye.label}))}},Ee),{},{onChange:function(Ye){var Qe;(Qe=J.onChange)===null||Qe===void 0||Qe.call(J,Ye===void 0?null:Ye)},mode:We}))},(0,a.mapProps)({dataSource:"options"},function(J,T){return r()(r()({},J),{},{fieldNames:r()(r()({},Pn),J.fieldNames),suffixIcon:T!=null&&T.loading||T!=null&&T.validating?(0,t.jsx)(Kt.Z,{}):J.suffixIcon})}),(0,a.mapReadPretty)(Zn)),xt=yt;xt.ReadPretty=Zn;var jt=xt,Rt=e(36586),Yt=function(T,ae){return(0,te.castArray)(T).filter(function(de){return de!=null}).map(function(de){return et()(de)==="object"?de[ae.value]:de})},on=(0,a.observer)(function(J){var T=r()(r()({},Pn),J.fieldNames),ae=(0,a.useField)(),de=(0,a.useFieldSchema)(),pe=(0,Rt.a)(),Me=(0,L.XC)(),Ee=Me.snapshot,We=(0,y.QT)(Ee?I()(G()().mark(function Ze(){return G()().wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",{data:pe[de.name]});case 1:case"end":return Qe.stop()}},Ze)})):r()(r()({action:"list"},J.service),{},{params:{paginate:!1,filter:ke()({},T.value,{$in:Yt(ae.value,T)})}}),{refreshDeps:[J.service,ae.value]}),$e=We.data;return(0,t.jsx)(xt.ReadPretty,r()(r()({},J),{},{options:$e==null?void 0:$e.data}))},{displayName:"ReadPretty"}),tn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],vn="N/A",_n=(0,Ce.t)((0,a.connect)(function(J){var T,ae,de=J.fieldNames,pe=de===void 0?{}:de,Me=J.service,Ee=Me===void 0?{}:Me,We=J.wait,$e=We===void 0?300:We,Ze=J.value,Ye=J.defaultValue,Qe=J.objectValue,Ct=J.manual,qe=Ct===void 0?!0:Ct,dt=J.mapOptions,ct=J.targetField,rt=J.CustomDropdownRender,It=J.optionFilter,Et=J.dataSource,hn=J.toOptionsItem,sn=hn===void 0?function(er){return er}:hn,Dn=J.popupMatchSelectWidth,Nn=Dn===void 0?!1:Dn,wt=v()(J,tn),xn=(0,Jt.FC)(),Sn=(0,ln.FE)(Et||xn),kn=(0,u.useState)(!1),On=se()(kn,2),Mn=On[0],Gn=On[1],An=(0,u.useRef)(!1),Ro=(0,a.useFieldSchema)(),vo=((T=Ro["x-component-props"])===null||T===void 0?void 0:T.addMode)==="quickAdd",_o=(0,c.useCollection_deprecated)(),oo=_o.getField,io=(0,u.useRef)(null),Wn=(0,c.useCollectionManager_deprecated)(),Rn=Wn.getCollectionJoinField,qn=Wn.getInterface,uo=Ro["x-collection-field"]||Ro.name,Yn=oo(uo)||Rn(uo),Qn=ct||(Yn==null?void 0:Yn.target)&&(pe==null?void 0:pe.label)&&Rn("".concat(Yn.target,".").concat(pe.label)),so=(0,u.useMemo)(function(){if(Qn!=null&&Qn.interface){var er,wo=qn(Qn.interface),xr=(wo==null||(er=wo.filterable)===null||er===void 0?void 0:er.operators[0].value)||"$includes";return Qn.type==="string"?"$includes":xr}return"$includes"},[Qn]),Hn=(0,Ft.eJ)(),Jn=(0,u.useCallback)(function(er){try{return er.filter(function(wo){return["number","string"].includes(et()(wo[pe.value]))||!wo[pe.value]}).map(function(wo){var xr,br,hr=Hn(wo[pe.label]);if(Qn!=null&&(xr=Qn.uiSchema)!==null&&xr!==void 0&&xr.enum)if(Array.isArray(hr))hr=hr.map(function(ra,La){var fa=Qn.uiSchema.enum.find(function(xl){return xl.value===ra});return fa?(0,t.jsx)(Bt.Z,{role:"button",color:fa.color,style:{marginRight:3},children:(fa==null?void 0:fa.label)||ra},La):(0,t.jsx)(Bt.Z,{role:"button",children:ra},ra)}).reverse();else{var Fr=Qn.uiSchema.enum.find(function(ra){return ra.value===hr});Fr&&(hr=(0,t.jsx)(Bt.Z,{role:"button",color:Fr.color,children:Fr.label}))}if((Qn==null?void 0:Qn.type)==="date"&&(hr=bt()(hr).format("YYYY-MM-DD")),dt){var oa;return dt((oa={},ke()(oa,pe.label,hr||vn),ke()(oa,pe.value,wo[pe.value]),oa))}return r()(r()({},wo),{},(br={},ke()(br,pe.label,hr||vn),ke()(br,pe.value,wo[pe.value]),br))}).filter(Boolean)}catch(wo){return console.error(wo),er}},[Qn==null?void 0:Qn.uiSchema,pe]),jo=(0,y.QT)(r()(r()({action:"list"},Ee),{},{headers:Sn,params:r()(r()({pageSize:200},Ee==null?void 0:Ee.params),{},{filter:Ee==null||(ae=Ee.params)===null||ae===void 0?void 0:ae.filter})}),r()({manual:qe,debounceWait:$e},Ee.defaultParams?{defaultParams:[Ee.defaultParams]}:{})),co=jo.data,Yo=jo.run,tr=jo.loading,rr=(0,u.useMemo)(function(){return JSON.stringify({service:Ee,fieldNames:pe})},[Ee,pe]),fr=(0,u.useCallback)(function(){return io.current&&rt?(0,t.jsx)(rt,{search:io.current,callBack:function(){io.current=null,Gn(!1)}}):null},[io.current]);(0,u.useEffect)(function(){An.current&&Yo()},[rr]);var $r=function(){var er=I()(G()().mark(function wo(xr){var br;return G()().wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:Yo({filter:(0,dn.EO)([xr?ke()({},pe.label,ke()({},so,xr)):{},Ee==null||(br=Ee.params)===null||br===void 0?void 0:br.filter])}),io.current=xr;case 2:case"end":return Fr.stop()}},wo)}));return function(xr){return er.apply(this,arguments)}}(),kr=(0,u.useMemo)(function(){var er,wo=Ze||Ye;if(!(co!=null&&(er=co.data)!==null&&er!==void 0&&er.length))return wo!=null?Array.isArray(wo)?wo:[wo]:[];var xr=wo!=null&&(Array.isArray(wo)?wo.map(function(hr){return r()(r()({},hr),{},ke()({},pe.value,hr[pe.value]||hr))}):[r()(r()({},wo),{},ke()({},pe.value,wo[pe.value]||wo))])||[],br=typeof It=="function"?co.data.filter(It):co.data;return(0,te.uniqBy)(br.concat(xr??[]),pe.value)},[Ze,Ye,co==null?void 0:co.data,pe.value,It]),wr=function(wo){Gn(wo),io.current=null,wo&&Yo(),An.current=!0};return(0,t.jsx)(xt,r()(r()({open:Mn,popupMatchSelectWidth:Nn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:pe,onSearch:$r,onDropdownVisibleChange:wr,objectValue:Qe,value:Ze,defaultValue:Ye},wt),{},{loading:co?tr:!0,options:sn(Jn(kr)),rawOptions:kr,dropdownRender:function(wo){var xr=kr.some(function(br){return br[pe.label]===io.current});return(0,t.jsx)(t.Fragment,{children:vo?(0,t.jsxs)(t.Fragment,{children:[!((co==null?void 0:co.data.length)===0&&io!==null&&io!==void 0&&io.current)&&wo,(co==null?void 0:co.data.length)>0&&(io==null?void 0:io.current)&&!xr&&(0,t.jsx)(mt.Z,{style:{margin:0}}),!xr&&(0,t.jsx)(fr,{})]}):wo})}}))},(0,a.mapProps)({dataSource:"options"},function(J,T){var ae,de=(0,a.useFieldSchema)();return r()(r()({},J),{},{fieldNames:r()(r()(r()(r()({},Pn),J.fieldNames),T.componentProps.fieldNames),(ae=de["x-component-props"])===null||ae===void 0?void 0:ae.fieldNames),suffixIcon:T!=null&&T.loading||T!=null&&T.validating?(0,t.jsx)(Kt.Z,{}):J.suffixIcon})}),(0,a.mapReadPretty)(on))),Xt=_n;Xt.ReadPretty=on;var nn=null,yn=function(){var T=(0,a.useFieldSchema)(),ae=(0,le.$)(),de=ae.t,pe=(0,Oe.bz)(),Me=pe.duplicateData,Ee=(0,c.useCollectionManager_deprecated)(),We=Ee.getCollectionJoinField;if(Me)return Me;var $e=Ht(T),Ze=$e.items,Ye=Ze===void 0?[]:Ze,Qe=$e.display,Ct=Qe===void 0?!0:Qe;Ye.forEach(function(ct){try{var rt;ct.fields=(rt=ct.fields)===null||rt===void 0?void 0:rt.map(function(It){var Et=We("".concat(ct.collection,".").concat(It));return Et?It:""}).filter(Boolean)}catch(It){(0,fe.error)(It),ct.fields=[]}});var qe=[{key:"none",title:de("None")}].concat(Ye.map(function(ct,rt){return r()(r()({key:rt},ct),{},{isLeaf:ct.dataId!==null&&ct.dataId!==void 0,titleCollectionField:(ct==null?void 0:ct.titleField)&&We("".concat(ct.collection,".").concat(ct.titleField))})})),dt=Ye.find(function(ct){return ct.default});return{templates:qe,display:Ct,defaultTemplate:dt,enabled:Ye.length>0&&Ye.every(function(ct){return ct.dataId||ct.dataScope})}},Tn=function(T){var ae=T.style,de=ae===void 0?{}:ae,pe=T.form,Me=(0,Ue.dQ)(),Ee=Me.token,We=yn(),$e=We.templates,Ze=We.display,Ye=We.enabled,Qe=We.defaultTemplate,Ct=(0,c.useCollectionManager_deprecated)(),qe=Ct.getCollectionJoinField,dt=(0,Je.ss)($e),ct=(0,u.useState)((Qe==null?void 0:Qe.key)||"none"),rt=se()(ct,2),It=rt[0],Et=rt[1],hn=(0,u.useState)(null),sn=se()(hn,2),Dn=sn[0],Nn=sn[1],wt=(0,y.LY)(),xn=(0,le.$)(),Sn=xn.t,kn=(0,Se.FC)(),On=(0,Se.on)(kn);(0,u.useEffect)(function(){Ye&&Qe&&pe&&(pe.__template=!0,Qe.key==="duplicate"&&Ro(Qe.dataId,Qe,On))},[]),(0,u.useEffect)(function(){dt!=null&&dt.some(function(_o){return _o.key===It})||An("none")},[dt]);var Mn=(0,u.useMemo)(function(){return r()({display:"flex",alignItems:"center",backgroundColor:Ee.colorFillAlter,padding:Ee.padding},de)},[de,Ee.colorFillAlter]),Gn=(0,u.useMemo)(function(){return{fontSize:Ee.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:Ee.marginXS}},[Ee.fontSize,Ee.marginXS]),An=(0,u.useCallback)(function(){var _o=I()(G()().mark(function oo(io){return G()().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:Et(io),Nn(null),pe==null||pe.reset();case 3:case"end":return Rn.stop()}},oo)}));return function(oo){return _o.apply(this,arguments)}}(),[]),Ro=(0,u.useCallback)(function(){var _o=I()(G()().mark(function oo(io,Wn,Rn){var qn;return G()().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:qn=r()(r()({},Wn),{},{dataId:io}),Nn(Wn),Ot(wt,qn,Rn).then(function(Qn){return pe&&Qn&&(pe.reset(),pe.__template=!0,(0,fe.forEach)(Qn,function(so,Hn){if(so){var Jn;pe.values[Hn]=so,pe==null||(Jn=pe.setInitialValuesIn)===null||Jn===void 0||Jn.call(pe,Hn,so)}})),Qn}).catch(function(Qn){console.error(Qn)});case 3:case"end":return Yn.stop()}},oo)}));return function(oo,io,Wn){return _o.apply(this,arguments)}}(),[]);if(!Ye||!Ze)return null;var vo=dt==null?void 0:dt.find(function(_o){return _o.key===It});return(0,t.jsx)("div",{style:Mn,children:(0,t.jsxs)(he.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Gn,children:[Sn("Data template"),": "]}),(0,t.jsx)(F.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:dt,fieldNames:{label:"title",value:"key"},value:It,onChange:An}),It!=="none"&&vo&&(0,t.jsx)(Xt,{style:{width:220},fieldNames:{label:vo==null?void 0:vo.titleField,value:"id"},target:vo==null?void 0:vo.collection,value:Dn,objectValue:!0,service:{resource:vo==null?void 0:vo.collection,params:{filter:vo==null?void 0:vo.dataScope}},onChange:function(oo){return Ro(oo==null?void 0:oo.id,r()(r()({},oo),vo),On)},targetField:qe("".concat(vo==null?void 0:vo.collection,".").concat(vo.titleField))})]})})};function Ht(J){var T=(0,Oe.Fi)(J);return T?be().cloneDeep(T["x-data-templates"])||{}:{}}function Ot(J,T,ae){return Ne.apply(this,arguments)}function Ne(){return Ne=I()(G()().mark(function J(T,ae,de){return G()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!(ae.fields.length===0||!ae.dataId)){Me.next=2;break}return Me.abrupt("return");case 2:return Me.abrupt("return",T.resource(ae.collection,void 0,de).get({filterByTk:ae.dataId,fields:ae.fields,isTemplate:!0}).then(function(Ee){var We;return(We=Ee.data)===null||We===void 0?void 0:We.data}));case 3:case"end":return Me.stop()}},J)})),Ne.apply(this,arguments)}var Ve=e(3192),Be=function(){var T,ae,de=(0,Ae.aZ)(),pe=(0,a.useFieldSchema)(),Me=X.Z.useToken(),Ee=Me.token,We=(0,Ft.ng)(),$e=We.designable,Ze=(0,Ve.gp)()||{},Ye=Ze.heightProps,Qe=Ye||{},Ct=Qe.title,qe=yn(),dt=qe.display,ct=qe.enabled,rt=pe.reduceProperties(function(Gn,An){return An["x-component"]==="ActionBar"?An:Gn}),It=Object.keys((rt==null?void 0:rt.properties)||{}).length>0,Et=pe==null||(T=pe.parent)===null||T===void 0||(T=T["x-decorator"])===null||T===void 0||(ae=T.includes)===null||ae===void 0?void 0:ae.call(T,"FormBlockProvider"),hn=It||$e?Ee.controlHeight+(Et?1:2)*Ee.marginLG:Ee.marginLG,sn=Ct?Ee.fontSizeLG*Ee.lineHeightLG+Ee.padding*2-1:0,Dn=(0,Se.hS)()||{},Nn=Dn.data,wt=(Nn==null?void 0:Nn.meta)||{},xn=wt.count,Sn=wt.pageSize,kn=xn>Sn,On=kn?Ee.controlHeightSM+1*Ee.paddingLG:0,Mn=dt&&ct?Ee.controlHeight+2*Ee.padding+Ee.margin:0;return de-hn-Ee.paddingLG-sn-On-Mn},ye=e(88756),ze,tt,Ge=["form","children"],Ke=["form","children","disabled"],je=["form","disabled"],Xe=function(T){var ae=T.form,de=T.children,pe=v()(T,Ge),Me=(0,a.useField)(),Ee=(0,a.useFieldSchema)(),We=ye.Gn===null||ye.Gn===void 0?void 0:(0,ye.Gn)(Ee),$e=(0,Ft.lI)(ae.createVoidField(r()(r()({},Me.props),{},{basePath:""}))),Ze=Be(),Ye=X.Z.useToken(),Qe=Ye.token,Ct=(We==null?void 0:We["x-component-props"])||{},qe=Ct.layout,dt=qe===void 0?"vertical":qe,ct=Ct.labelAlign,rt=ct===void 0?"left":ct,It=Ct.labelWidth,Et=It===void 0?120:It,hn=Ct.labelWrap,sn=hn===void 0?!0:hn;return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:dt},pe),{},{labelAlign:rt,labelWidth:dt==="horizontal"?Et:null,labelWrap:sn,children:(0,t.jsx)("div",{className:(0,ce.css)(ze||(ze=re()([`
703
+ `])));mt.ReadPretty=function(At){var Dt=At.value,Tt=At.delimiters,Nt=Tt===void 0?["{{","}}"]:Tt,Vt=typeof At.scope=="function"?At.scope():At.scope,kt=w(),Pn=kt.wrapSSR,Fn=kt.hashId,wn=kt.componentCls,eo=(0,i.useState)([]),Zn=r()(eo,2),Vn=Zn[0],ao=Zn[1],Ut=(0,i.useMemo)(function(){return st(Vn)},[Vn]),nt=(0,i.useMemo)(function(){return Ue(Dt??"",Ut,Nt)},[Nt,Ut,Dt]),ht=Bt(Dt,Nt);(0,i.useEffect)(function(){Wt(Vt,ht).then(function(xt){ao(xt)}).catch(P.error)},[Vt,ht]);var yt=Pn((0,q.jsx)("span",{dangerouslySetInnerHTML:{__html:nt},className:(0,g.cx)(wn,Fn,Jt)}));return(0,q.jsx)(he.BQs,{ellipsis:!0,popoverContent:yt,children:yt})};var ln=(0,i.createContext)([]);ln.displayName="VariableScopeContext";function dn(gt){var At=gt.scope,Dt=At===void 0?[]:At,Tt=gt.children;return(0,q.jsx)(ln.Provider,{value:Dt,children:Tt})}function Ft(){return(0,i.useContext)(ln)}function bn(){return null}bn.Input=(0,H.connect)(_e),bn.TextArea=(0,G.t)((0,H.connect)(mt,(0,H.mapReadPretty)(mt.ReadPretty))),bn.RawTextArea=(0,H.connect)(Te),bn.JSON=(0,H.connect)(Ae);var mn=null},88969:function(we,ne,e){"use strict";e.d(ne,{m:function(){return V}});var H=e(15009),i=e.n(H),G=e(19632),l=e.n(G),I=e(99289),x=e.n(I),K=e(5574),o=e.n(K),$=e(97133),m=e(38089),A=e(67294),f=e(26793),O=e(60094),n=e(9783),r=e.n(n),u=(0,O.l6)("nb-variable-select",function(k){var L=k.componentCls;return r()({},L,{position:"relative",".ant-select.ant-cascader":{position:"absolute",top:"-1px",right:"-1px",minWidth:"auto",width:"calc(100% + 2px)",height:"calc(100% + 2px)",overflow:"hidden",opacity:0},".variable-btn":{fontStyle:"italic",fontFamily:"'New York', 'Times New Roman', Times, serif"},".Cascader-popupClassName":{".ant-cascader-menu":{marginBottom:0}}})}),D=u,S=e(2876),C=e(85893);function V(k){var L=k.options,M=k.setOptions,v=k.onInsert,g=k.changeOnSelect,P=g===void 0?!1:g,a=k.fieldNames,Z=a===void 0?{}:a,b=k.className,y=(0,f.$)(),c=y.t,d=(0,A.useState)([]),p=o()(d,2),h=p[0],B=p[1],t=D(),j=t.wrapSSR,U=t.componentCls,z=t.hashId,W=(0,O.dQ)(),N=W.token;function E(Y){return w.apply(this,arguments)}function w(){return w=x()(i()().mark(function Y(q){var ee,R;return i()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(R=q[q.length-1],!(!((ee=R.children)!==null&&ee!==void 0&&ee.length)&&!R.isLeaf&&R.loadChildren)){oe.next=5;break}return oe.next=4,R.loadChildren(R);case 4:M(function(ve){return l()(ve)});case 5:case"end":return oe.stop()}},Y)})),w.apply(this,arguments)}return j((0,C.jsx)(S.R,{className:(0,$.cx)("x-button",U,z,b),children:(0,C.jsx)(m.Z,{placeholder:c("Select a variable"),value:[],options:L,fieldNames:Z,loadData:E,onChange:function(){var q,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(B(ee),!!ee.length){var Q=R[R.length-1];(!(Q!=null&&(q=Q.children)!==null&&q!==void 0&&q.length)&&!(Q!=null&&Q.loadChildren)||Q!=null&&Q.isLeaf)&&v(ee)}},changeOnSelect:P,onClick:function(q){if(!(q.detail!==2||!P))for(var ee=q.target;ee&&ee!==q.currentTarget;ee=ee.parentNode){var R;Array.from((R=ee.classList)!==null&&R!==void 0?R:[]).includes("ant-cascader-menu-item")&&v(h)}},popupClassName:"Cascader-popupClassName",dropdownRender:P?function(Y){return(0,C.jsxs)(C.Fragment,{children:[Y,(0,C.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(N.colorBorder),color:N.colorTextDescription},children:c("Double click to choose entire object")})]})}:null})}))}},2876:function(we,ne,e){"use strict";e.d(ne,{R:function(){return x}});var H=e(97857),i=e.n(H),G=e(15867),l=e(67294),I=e(85893),x=(0,l.forwardRef)(function(K,o){var $=(0,l.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,I.jsxs)(G.ZP,i()(i()({"aria-label":"variable-button",ref:o,style:$},K),{},{children:["x",K.children]}))});x.displayName="XButton"},72724:function(we,ne,e){"use strict";e.d(ne,{L:function(){return O}});var H=e(97857),i=e.n(H),G=e(5574),l=e.n(G),I=e(23861),x=e(80844),K=e(67294),o=e(26793),$=e(21143),m=e(84577),A=e(85893),f=function(r){var u=(0,m.ng)(),D=u.refresh,S=(0,$.useAPIClient)(),C=(0,o.$)(),V=C.t;return(0,K.useCallback)(function(k){var L,M,v,g,P,a,Z,b,y=k.active,c=k.over,d=y==null||(L=y.data)===null||L===void 0||(L=L.current)===null||L===void 0?void 0:L.schema,p=c==null||(M=c.data)===null||M===void 0||(M=M.current)===null||M===void 0?void 0:M.schema,h=c==null||(v=c.data)===null||v===void 0||(v=v.current)===null||v===void 0?void 0:v.insertAdjacent,B=c==null||(g=c.data)===null||g===void 0||(g=g.current)===null||g===void 0?void 0:g.breakRemoveOn,t=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.wrapSchema,j=c==null||(a=c.data)===null||a===void 0||(a=a.current)===null||a===void 0?void 0:a.onSuccess,U=(Z=c==null||(b=c.data)===null||b===void 0||(b=b.current)===null||b===void 0?void 0:b.removeParentsIfNoChildren)!==null&&Z!==void 0?Z:!0;if(!d||!p){r==null||r(k);return}if(d===p){r==null||r(k);return}if(d.parent===p&&h==="beforeEnd"){r==null||r(k);return}var z=(0,m.Pl)({t:V,api:S,refresh:D,current:p});if(z.loadAPIClientEvents(),d.parent===p.parent){z.insertBeforeBeginOrAfterEnd(d),r==null||r(k);return}if(h){z.insertAdjacent(h,d,{wrap:t,breakRemoveOn:B,removeParentsIfNoChildren:U,onSuccess:j}),r==null||r(k);return}},[r])},O=(0,x.observer)(function(n){var r=(0,o.$)(),u=r.t,D=(0,K.useState)(!0),S=l()(D,2),C=S[0],V=S[1],k=(0,K.useCallback)(function(M){var v,g=M.active,P=g==null||(v=g.data)===null||v===void 0||(v=v.current)===null||v===void 0?void 0:v.schema;if(V(!!P),n!=null&&n.onDragStart){var a;n==null||(a=n.onDragStart)===null||a===void 0||a.call(n,M)}},[n==null?void 0:n.onDragStart]),L=f(n==null?void 0:n.onDragEnd);return(0,A.jsxs)(I.DndContext,i()(i()({collisionDetection:I.rectIntersection},n),{},{onDragStart:k,onDragEnd:L,children:[(0,A.jsx)(I.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:C&&(0,A.jsx)("span",{style:{whiteSpace:"nowrap"},children:u("Dragging")})}),n.children]}))},{displayName:"DndContext"})},14896:function(we,ne,e){"use strict";e.r(ne),e.d(ne,{DndContext:function(){return H.L},DragHandler:function(){return i.IW},DraggableContext:function(){return i.LC},ShowFormData:function(){return x},Sortable:function(){return i.bt},SortableContext:function(){return i.Fo},SortableItem:function(){return i.TR},SortableProvider:function(){return i.OR},getRenderContent:function(){return K.I9}});var H=e(72724),i=e(20493),G=e(67294),l=e(80844),I=e(85893),x=(0,l.observer)(function(o){var $=o.children,m=(0,l.useForm)();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),$]})}),K=e(34588)},20493:function(we,ne,e){"use strict";e.d(ne,{IW:function(){return k},LC:function(){return n},bt:function(){return D},Fo:function(){return r},TR:function(){return V},OR:function(){return u}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(10274),x=e(23861),K=e(97133),o=e(80844),$=e(67294),m=e(60094),A=e(85893),f=["component","overStyle","style","children","openMode"],O=["schema","id","eid","removeParentsIfNoChildren"],n=(0,$.createContext)(null);n.displayName="DraggableContext";var r=(0,$.createContext)(null);r.displayName="SortableContext";var u=function(M){var v=M.id,g=M.data,P=M.children,a=(0,x.useDraggable)({id:v,data:g}),Z=(0,x.useDroppable)({id:v,data:g});return(0,A.jsx)(r.Provider,{value:{draggable:a,droppable:Z},children:P})},D=function(M){var v,g,P=M.component,a=M.overStyle,Z=M.style,b=M.children,y=M.openMode,c=l()(M,f),d=(0,m.dQ)(),p=d.token,h=(0,$.useContext)(r),B=h.draggable,t=h.droppable,j=t.isOver,U=t.setNodeRef,z=i()({},Z);return j&&(B==null||(v=B.active)===null||v===void 0?void 0:v.id)!==(t==null||(g=t.over)===null||g===void 0?void 0:g.id)&&(z[P==="a"?"color":"background"]=new I.C(p.colorSettings).setAlpha(.15).toHex8String(),Object.assign(z,a)),$.createElement(P||"div",i()(i()({role:"none"},c),{},{className:(0,K.cx)("nb-sortable-designer",M.className),ref:U,style:z}),b)},S=function(M){var v=C(M),g=(0,o.useFieldSchema)();return M.schema?i()(i()({},M),{},{id:v}):i()(i()({},M),{},{id:v,schema:g})},C=function(M){var v=(0,o.useField)();return M.id?M.id:v.address.toString()},V=(0,o.observer)(function(L){var M=S(L),v=M.schema,g=M.id,P=M.eid,a=M.removeParentsIfNoChildren,Z=l()(M,O),b=(0,$.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:v,removeParentsIfNoChildren:a??!0}},[v,a]);return(0,A.jsx)(u,{id:g,data:b,children:(0,A.jsx)(D,i()(i()({id:P},Z),{},{children:L.children}))})},{displayName:"SortableItem"}),k=function(M){var v=(0,$.useContext)(r),g=v.draggable,P=g.attributes,a=g.listeners,Z=g.setNodeRef;return(0,A.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,A.jsx)("div",i()(i()(i()({ref:Z,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),P),{},{role:"none",children:(0,A.jsx)("span",{style:{cursor:"move",fontSize:14},children:M.children})}))})}},34588:function(we,ne,e){"use strict";e.d(ne,{jC:function(){return c},od:function(){return Z},I9:function(){return h},Rq:function(){return b},e7:function(){return a}});var H=e(97857),i=e.n(H),G=e(15009),l=e.n(G),I=e(9783),x=e.n(I),K=e(5574),o=e.n(K),$=e(99289),m=e.n($),A=e(52677),f=e.n(A),O=e(84157),n=e(96486),r=e.n(n),u=e(10097),D=e(76690),S=e(65565),C=e(61341),V=e(27484);function k(){"use strict";Array.isArray||(Array.isArray=function(W){return Object.prototype.toString.call(W)==="[object Array]"});function t(W){for(var N=[],E=0,w=W.length;E<w;E++)N.indexOf(W[E])===-1&&N.push(W[E]);return N}function j(W,N){return JSON.stringify(W)===JSON.stringify(N)}var U={},z={$is:function(N,E){return N===E},$match:function(N,E){return Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return(w==null?void 0:w.length)===E.length&&(w==null?void 0:w.every(function(Y,q){return Y===E[q]}))}):JSON.stringify(N)===JSON.stringify(E)},$eq:function(N,E){return Array.isArray(N)&&Array.isArray(E)?j(N,E):Array.isArray(N)?N.includes(E):N==E},$ne:function(N,E){return N!=E},"!==":function(N,E){return N!==E},$gt:function(N,E){return Array.isArray(N)?N.some(function(w){return w>E}):N>E},$gte:function(N,E){return N>=E},$lt:function(N,E,w){return Array.isArray(N)?N.some(function(Y){return Y<E}):w===void 0?N<E:N<E&&E<w},$lte:function(N,E,w){return w===void 0?N<=E:N<=E&&E<=w},$exists:function(N){return U.truthy(N)},$notEmpty:function(N){return U.truthy(N)},$empty:function(N){return Array.isArray(N)?N.some(function(E){return!U.truthy(E)}):!U.truthy(N)},$notExists:function(N){return!U.truthy(N)},"%":function(N,E){return N%E},log:function(N){return N},$in:function(N,E){return!E||typeof E.indexOf>"u"?!1:Array.isArray(N)&&Array.isArray(E)?E.some(function(w){return N.includes(w)}):E.indexOf(N)!==-1},$notIn:function(N,E){return!E||typeof E.indexOf>"u"?!1:E.indexOf(N)===-1},$includes:function(N,E){return!N||typeof N.indexOf>"u"?!1:Array.isArray(N)?N.some(function(w){return w==null?void 0:w.includes(E)}):N.indexOf(E)!==-1},$notIncludes:function(N,E){return Array.isArray(N)?!N.some(function(w){return(w||"").includes(E)}):(N=N||"",!N.includes(E))},$anyOf:function(N,E){return N.length===0?!1:Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return w.some(function(Y){return E.includes(Y)})}):N.some(function(w){return E.includes(w)})},$noneOf:function(N,E){return!N||(N==null?void 0:N.length)===0?!0:Array.isArray(N)&&Array.isArray(E)&&N.some(function(w){return Array.isArray(w)})?N.some(function(w){return w.every(function(Y){return!E.some(function(q){return Y.includes(q)})})}):E.some(function(w){return!N.includes(w)})},$notMatch:function(N,E){if(N.length!==E.length)return!0;for(var w=0;w<N.length;w++)if(N[w]!==E[w])return!0;return!1},$dateOn:function(N,E){return!N||!E?!1:N===E},$dateBefore:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w<Y},$dateNotBefore:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w>=Y},$dateAfter:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);return w>Y},$dateNotAfter:function(N,E){if(!N||!E)return!1;var w=P(N),Y=P(E);if(!w||!Y)throw new Error("Invalid date format");return w<=Y},$dateBetween:function(N,E){if(!N||!E)return!1;var w=L(N),Y=L(E[0]),q=L(E[1]);if(!w||!Y||!q)throw new Error("Invalid date format");return w>=Y&&w<=q},$dateNotOn:function(N,E){return!N||!E?!1:N!==E},$isTruly:function(N){return Array.isArray(N)?N.some(function(E){return E===!0||E===1}):N===!0||N===1},$isFalsy:function(N){return Array.isArray(N)?N.some(function(E){return!U.truthy(E)}):!U.truthy(N)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(N,E,w){if(w<0){var Y=String(N).substr(E);return Y.substr(0,Y.length+w)}return String(N).substr(E,w)},"+":function(){return Array.prototype.reduce.call(arguments,function(N,E){return parseFloat(N,10)+parseFloat(E,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(N,E){return parseFloat(N,10)*parseFloat(E,10)})},"-":function(N,E){return E===void 0?-N:N-E},"/":function(N,E){return N/E},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(N,E){return N.concat(E)},[])},var:function(N,E){var w=E===void 0?null:E,Y=this;if(typeof N>"u"||N===""||N===null)return Y;for(var q=String(N).split("."),ee=0;ee<q.length;ee++)if(Y==null||(Y=Y[q[ee]],Y===void 0))return w;return Y},missing:function(){for(var N=[],E=Array.isArray(arguments[0])?arguments[0]:arguments,w=0;w<E.length;w++){var Y=E[w],q=U.apply({var:Y},this);(q===null||q==="")&&N.push(Y)}return N},missing_some:function(N,E){var w=U.apply({missing:E},this);return E.length-w.length>=N?[]:w}};return U.is_logic=function(W){return f()(W)==="object"&&W!==null&&!Array.isArray(W)&&Object.keys(W).length===1},U.truthy=function(W){return Array.isArray(W)&&W.length===0?!1:!!W},U.get_operator=function(W){return Object.keys(W)[0]},U.get_values=function(W){return W[U.get_operator(W)]},U.apply=function(W,N){if(Array.isArray(W))return W.map(function(ue){return U.apply(ue,N)});if(!U.is_logic(W))return W;var E=U.get_operator(W),w=W[E],Y,q,ee,R,Q;if(Array.isArray(w)||(w=[w]),E==="if"||E=="?:"){for(Y=0;Y<w.length-1;Y+=2)if(U.truthy(U.apply(w[Y],N)))return U.apply(w[Y+1],N);return w.length===Y+1?U.apply(w[Y],N):null}else if(E==="$and"){for(Y=0;Y<w.length;Y+=1)if(q=U.apply(w[Y],N),!U.truthy(q))return q;return q}else if(E==="or"){for(Y=0;Y<w.length;Y+=1)if(q=U.apply(w[Y],N),U.truthy(q))return q;return q}else{if(E==="filter")return R=U.apply(w[0],N),ee=w[1],Array.isArray(R)?R.filter(function(ue){return U.truthy(U.apply(ee,ue))}):[];if(E==="map")return R=U.apply(w[0],N),ee=w[1],Array.isArray(R)?R.map(function(ue){return U.apply(ee,ue)}):[];if(E==="reduce")return R=U.apply(w[0],N),ee=w[1],Q=typeof w[2]<"u"?w[2]:null,Array.isArray(R)?R.reduce(function(ue,ge){return U.apply(ee,{current:ge,accumulator:ue})},Q):Q;if(E==="all"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!1;for(Y=0;Y<R.length;Y+=1)if(!U.truthy(U.apply(ee,R[Y])))return!1;return!0}else if(E==="none"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!0;for(Y=0;Y<R.length;Y+=1)if(U.truthy(U.apply(ee,R[Y])))return!1;return!0}else if(E==="some"){if(R=U.apply(w[0],N),ee=w[1],!Array.isArray(R)||!R.length)return!1;for(Y=0;Y<R.length;Y+=1)if(U.truthy(U.apply(ee,R[Y])))return!0;return!1}}if(w=w.map(function(ue){return U.apply(ue,N)}),z.hasOwnProperty(E)&&typeof z[E]=="function")return z[E].apply(N,w);if(E.indexOf(".")>0){var oe=String(E).split("."),ve=z;for(Y=0;Y<oe.length;Y++){if(!ve.hasOwnProperty(oe[Y]))throw new Error("Unrecognized operation "+E+" (failed at "+oe.slice(0,Y+1).join(".")+")");ve=ve[oe[Y]]}return ve.apply(N,w)}throw new Error("Unrecognized operation "+E)},U.uses_data=function(W){var N=[];if(U.is_logic(W)){var E=U.get_operator(W),w=W[E];Array.isArray(w)||(w=[w]),E==="var"?N.push(w[0]):w.forEach(function(Y){N.push.apply(N,U.uses_data(Y))})}return t(N)},U.add_operation=function(W,N){z[W]=N},U.rm_operation=function(W){delete z[W]},U.rule_like=function(W,N){if(N===W||N==="@")return!0;if(N==="number")return typeof W=="number";if(N==="string")return typeof W=="string";if(N==="array")return Array.isArray(W)&&!U.is_logic(W);if(U.is_logic(N)){if(U.is_logic(W)){var E=U.get_operator(N),w=U.get_operator(W);if(E==="@"||E===w)return U.rule_like(U.get_values(W,!1),U.get_values(N,!1))}return!1}if(Array.isArray(N))if(Array.isArray(W)){if(N.length!==W.length)return!1;for(var Y=0;Y<N.length;Y+=1)if(!U.rule_like(W[Y],N[Y]))return!1;return!0}else return!1;return!1},U}function L(t){return new Date(t)}function M(t){var j=t.split("-").map(Number),U=o()(j,2),z=U[0],W=U[1];return new Date(z,W-1)}function v(t){var j=parseInt(t.slice(0,4)),U=parseInt(t.slice(5,6)),z=(U-1)*3;return new Date(j,z)}function g(t){var j=parseInt(t);return new Date(j,0)}function P(t){var j=Array.isArray(t)?t[1]:t;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(j)?new Date(j):/^\d{4}-\d{2}-\d{2}$/.test(j)?L(j):/^\d{4}-\d{2}$/.test(j)?M(j):/^\d{4}Q[1-4]$/.test(j)?v(j):/^\d{4}$/.test(j)?g(j):null}var a=function(j,U){var z,W=/{{(.*?)}}/,N=j==null||(z=j.match)===null||z===void 0?void 0:z.call(j,W);if(N){var E=r().get(U,N[1]);return r().isFunction(E)?E():E}else return j};function Z(t){if(f()(t)!=="object"||t===null)return null;for(var j in t)if(Object.prototype.hasOwnProperty.call(t,j))return Object.prototype.toString.call(t[j])==="[object Object]"&&t[j]!==null?Z(t[j]):{key:j,value:t[j]};return null}var b=function(j){var U=y(j),z=(0,n.findIndex)(U,function(N,E,w){if(N.includes("$")&&E>0)return!0}),W=U.slice(0,z);return W};function y(t){var j=[];function U(z){Object.keys(z).sort().forEach(function(W){j.push(W),z[W]&&f()(z[W])==="object"&&U(z[W])})}return U(t),j}var c=function(){var t=m()(l()().mark(function j(U){var z,W,N,E,w,Y,q;return l()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return z=U.ruleGroup,W=U.variables,N=U.localVariables,E=U.variableNameOfLeftCondition,w=Object.keys(z)[0]||"$and",Y=z[w],q=Y.map(function(){var Q=m()(l()().mark(function oe(ve){var ue,ge,Ie,Oe,Ce,De,_e,re,ce,ie,X,me,xe,Pe,Te;return l()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!("$and"in ve||"$or"in ve)){Ae.next=4;break}return Ae.next=3,c({ruleGroup:ve,variables:W,localVariables:N});case 3:return Ae.abrupt("return",Ae.sent);case 4:if(ue=Z(ve),ge=ue==null?void 0:ue.key,ge){Ae.next=8;break}return Ae.abrupt("return",!0);case 8:return Ie=d(b(ve),E),Oe=W.parseVariable(Ie,N,{doNotRequest:!0}).then(function(Se){var Fe=Se.value;return Fe}),Ce=(0,D.cG)(ue==null?void 0:ue.value)?[W.parseVariable(ue==null?void 0:ue.value,N).then(function(Se){var Fe=Se.value;return Fe}),Oe]:[ue==null?void 0:ue.value,Oe],Ae.prev=11,De=k(),Ae.next=15,Promise.all(Ce);case 15:return _e=Ae.sent,re=o()(_e,2),ce=re[0],ie=re[1],Ae.next=21,W.getCollectionField(Ie,N);case 21:return X=Ae.sent,me=(0,S.J)(ie,{targetCollectionField:X}),xe=(0,S.J)(ce,{targetCollectionField:X}),X!=null&&X.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(X.type)&&me&&(Pe=(0,C.CE)(xe),Te=(0,O.getPickerFormat)(Pe),me=(0,O.dayjs)(me).format(Te)),Ae.abrupt("return",De.apply(x()({},ge,[me,xe])));case 28:throw Ae.prev=28,Ae.t0=Ae.catch(11),Ae.t0;case 31:case"end":return Ae.stop()}},oe,null,[[11,28]])}));return function(oe){return Q.apply(this,arguments)}}()),R.next=6,Promise.all(q);case 6:if(q=R.sent,w!=="$and"){R.next=11;break}return R.abrupt("return",(0,n.every)(q,function(Q){return Q}));case 11:return R.abrupt("return",(0,n.some)(q,function(Q){return Q}));case 12:case"end":return R.stop()}},j)}));return function(U){return t.apply(this,arguments)}}();function d(t){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(j,".").concat(t.join(".")," }}")}var p=function(j){var U={};return j.map(function(z){U[z.name]=z.ctx}),U};function h(t,j,U,z,W){return B.apply(this,arguments)}function B(){return B=m()(l()().mark(function t(j,U,z,W,N){var E,w,Y,q,ee,R,Q,oe,ve;return l()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!(U&&j==="handlebars")){ge.next=19;break}return ge.prev=1,Y=O.Handlebars.compile(U),q=p(W),ee=(z==null||(E=z.ctxRef)===null||E===void 0?void 0:E.current)||{},R=ee.$nDate,Q={},Object.keys(R||{}).map(function(Ie){Q[Ie]=R[Ie]()}),oe=Y(i()(i()(i()({},z==null||(w=z.ctxRef)===null||w===void 0?void 0:w.current),q),{},{$nDate:Q})),ge.next=10,N(oe);case 10:return ge.abrupt("return",ge.sent);case 13:return ge.prev=13,ge.t0=ge.catch(1),console.log(ge.t0),ge.abrupt("return",U);case 17:ge.next=32;break;case 19:return ge.prev=19,ge.next=22,(0,u.replaceVariableValue)(U,z,W);case 22:return ve=ge.sent,ge.next=25,N(ve);case 25:return ge.abrupt("return",ge.sent);case 28:return ge.prev=28,ge.t1=ge.catch(19),console.log(ge.t1),ge.abrupt("return",U);case 32:case"end":return ge.stop()}},t,null,[[1,13],[19,28]])})),B.apply(this,arguments)}},61736:function(we,ne,e){"use strict";e.d(ne,{D:function(){return i}});var H=e(67294),i=(0,H.createContext)({});i.displayName="SchemaComponentContext.Provider"},44245:function(we,ne,e){"use strict";e.d(ne,{R:function(){return n}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(86201),x=e(80844),K=e(67294),o=e(47844),$=e(85893),m=["children","form"],A=["children"],f=function(u){var D=u.children,S=u.form,C=l()(u,m),V=(0,K.useContext)(x.SchemaOptionsContext),k=(0,K.useContext)(x.SchemaExpressionScopeContext),L=i()(i()({},V==null?void 0:V.scope),k),M=i()({},V==null?void 0:V.components);return(0,$.jsx)(x.FormProvider,i()(i()({},C),{},{form:S,children:(0,$.jsx)(o.G,{components:M,scope:L,children:D})}))},O=function(u){var D=u.children,S=l()(u,A),C=(0,K.useContext)(x.SchemaOptionsContext),V=(0,K.useContext)(x.SchemaExpressionScopeContext),k=i()(i()({},C==null?void 0:C.scope),V),L=i()({},C==null?void 0:C.components),M=(0,K.useMemo)(function(){return(0,I.createForm)()},[]);return(0,$.jsx)(x.FormProvider,i()(i()({},S),{},{form:M,children:(0,$.jsx)(o.G,{components:L,scope:k,children:D})}))},n=function(u){return u.form?(0,$.jsx)(f,i()({},u)):(0,$.jsx)(O,i()({},u))}},93587:function(we,ne,e){"use strict";e.d(ne,{m:function(){return n}});var H=e(97857),i=e.n(H),G=e(86201),l=e(57953),I=e(67294),x=e(84577),K=e(44245),o=e(93323),$=e(12174),m=function(u){var D=u.uid,S=u.type,C=S===void 0?"getJsonSchema":S,V=u.onSuccess,k={url:"/uiSchemas:".concat(C,"/").concat(D)},L=(0,$.QT)(k,{refreshDeps:[D],onSuccess:function(P){V&&V(P)}}),M=L.data,v=L.loading;return{schema:M==null?void 0:M.data,loading:v}},A=e(85893),f=function(u){return u},O=function(u){var D=u.noForm,S=u.onlyRenderProperties,C=u.hidden,V=u.scope,k=u.uid,L=u.memoized,M=L===void 0?!0:L,v=u.components,g=u.onSuccess,P=u.NotFoundPage,a=u.schemaTransform,Z=a===void 0?f:a,b=u.onPageNotFind,y=(0,x.Dm)(),c=y.reset,d=S?"getProperties":"getJsonSchema",p={url:"/uiSchemas:".concat(d,"/").concat(k)},h=(0,I.useMemo)(function(){return(0,G.createForm)()},[k]),B=m({uid:k,type:d,onSuccess:function(W){g&&g(W),c&&c()}}),t=B.schema,j=B.loading,U=(0,x.Co)(P);return j||C?(0,A.jsx)("div",{style:{textAlign:"center",marginTop:20},children:(0,A.jsx)(l.Z,{})}):!t||Object.keys(t).length===0?(b&&b(),U?(0,A.jsx)(U,{}):null):D?(0,A.jsx)(o.n,{components:v,scope:V,schema:Z(t||{})}):(0,A.jsx)(K.R,{form:h,children:(0,A.jsx)(o.n,{components:v,scope:V,schema:Z(t||{})})})},n=(0,I.memo)(function(r){return r.uid?(0,A.jsx)(O,i()({},r)):null});n.displayName="RemoteSchemaComponent"},93323:function(we,ne,e){"use strict";e.d(ne,{n:function(){return V}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=e(9783),x=e.n(I),K=e(80844),o=e(90105),$=e(67294),m=e(61736),A=e(47844),f=e(85893),O=["components","scope","schema","distributed"],n=["schema"],r=["memoized"];function u(k){return K.Schema.isSchemaInstance(k)?k:k!=null&&k.name?new K.Schema({type:"object",properties:x()({},k.name,k)}):new K.Schema(k)}var D=function(L){return(0,$.useMemo)(function(){return u(L)},[])},S=(0,$.memo)(function(k){var L=k.components,M=k.scope,v=k.schema,g=k.distributed,P=l()(k,O),a=(0,$.useContext)(m.D),Z=(0,$.useMemo)(function(){return u(v)},[v]),b=(0,o.Z)();return(0,f.jsx)(m.D.Provider,{value:i()(i()({},a),{},{distributed:a.distributed==!1?!1:g,refresh:function(){var c;if(b(),a.distributed===!1||g===!1){var d;(d=a.refresh)===null||d===void 0||d.call(a)}(c=k.onChange)===null||c===void 0||c.call(k,Z)}}),children:(0,f.jsx)(A.G,{inherit:!0,components:L,scope:M,children:(0,f.jsx)(K.RecursionField,i()(i()({},P),{},{schema:Z}))})})}),C=(0,$.memo)(function(k){var L=k.schema,M=l()(k,n),v=D(L);return(0,f.jsx)(S,i()(i()({},M),{},{schema:v}))}),V=(0,$.memo)(function(k){var L=k.memoized,M=l()(k,r);return L?(0,f.jsx)(C,i()({},M)):(0,f.jsx)(S,i()({},M))})},47844:function(we,ne,e){"use strict";e.d(ne,{B:function(){return x},G:function(){return K}});var H=e(97857),i=e.n(H),G=e(80844),l=e(67294),I=e(85893),x=function(){var $=(0,l.useContext)(G.SchemaOptionsContext);return $||{}},K=(0,l.memo)(function(o){var $=o.children,m=x(),A=(0,l.useMemo)(function(){return i()(i()({},m.components),o.components)},[m.components,o.components]),f=(0,l.useMemo)(function(){return i()(i()({},m.scope),o.scope)},[m.scope,o.scope]),O=(0,l.useMemo)(function(){return{scope:f,components:A}},[f,A]);return(0,I.jsx)(G.SchemaOptionsContext.Provider,{value:O,children:(0,I.jsx)(G.SchemaComponentsContext.Provider,{value:A,children:(0,I.jsx)(G.ExpressionScope,{value:f,children:$})})})});K.displayName="SchemaComponentOptions"},70993:function(we,ne,e){"use strict";e.d(ne,{_b:function(){return L},RV:function(){return M.R},m1:function(){return v.m},n6:function(){return g.n},G0:function(){return P.G},a$:function(){return N},Tz:function(){return z},Bs:function(){return P.B}});var H=e(15009),i=e.n(H),G=e(99289),l=e.n(G),I=e(12444),x=e.n(I),K=e(72004),o=e.n(K),$=e(31996),m=e.n($),A=e(26037),f=e.n(A),O=e(51947),n=e(83062),r=e(15867),u=e(67294),D=e(49218),S=e(26793),C=e(35304),V=e(68230),k=e(85893),L=function(){var Y=(0,C.ngQ)(),q=Y.designable,ee=Y.setDesignable,R=(0,S.$)(),Q=R.t,oe=(0,V.d)(),ve=oe.token,ue={};return q?ue.backgroundColor="var(--colorSettings)":ue.backgroundColor="transparent",(0,D.y1)("Ctrl+Shift+U",function(){return ee(!q)},[q]),(0,k.jsx)(n.Z,{title:Q("UI Editor"),children:(0,k.jsx)(r.ZP,{"data-testid":"ui-editor-button",icon:(0,k.jsx)(O.Z,{style:{color:ve.colorTextHeaderMenu}}),title:Q("UI Editor"),style:ue,onClick:function(){ee(!q)}})})},M=e(44245),v=e(93587),g=e(93323),P=e(47844),a=e(97857),Z=e.n(a),b=e(5574),y=e.n(b),c=e(86201),d=e(80844),p=e(84327),h=e(90105),B=e(61736),t=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Y).concat((0,p.uid)())};d.Schema.silent(!0);var j={},U={silent:!0,compile:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=function(){if(U.silent)try{return new Function("$root","with($root) { return (".concat(Y,"); }"))(q)}catch{return"{{".concat(Y,"}}")}else return new Function("$root","with($root) { return (".concat(Y,"); }"))(q)};return j[Y]?j[Y]:Y.trim().startsWith("t(")?(j[Y]=ee(),j[Y]):ee()}};d.Schema.registerCompiler(U.compile);var z=function(Y){var q=Y.designable,ee=Y.onDesignableChange,R=Y.components,Q=Y.children,oe=(0,u.useContext)(B.D),ve=(0,P.B)(),ue=(0,h.Z)(),ge=(0,u.useState)((0,p.uid)()),Ie=y()(ge,2),Oe=Ie[0],Ce=Ie[1],De=(0,u.useMemo)(function(){return Y.form||(0,c.createForm)()},[Oe]),_e=(0,S.$)(),re=_e.t,ce=(0,u.useMemo)(function(){return Z()(Z()({},Y.scope),{},{t:re,randomString:t})},[Y.scope,re,ve==null?void 0:ve.scope]),ie=(0,u.useState)(q),X=y()(ie,2),me=X[0],xe=X[1],Pe=(0,u.useMemo)(function(){return typeof q=="boolean"?q:me},[q,me,oe.designable]),Te=(0,u.useMemo)(function(){return function(Ae){typeof Pe!="boolean"&&xe(Ae),ee==null||ee(Ae)}},[Pe,ee]),Re=(0,u.useCallback)(function(){Ce((0,p.uid)())},[]);return(0,k.jsx)(B.D.Provider,{value:{scope:ce,components:R,reset:Re,refresh:ue,designable:Pe,setDesignable:Te},children:(0,k.jsx)(d.FormProvider,{form:De,children:(0,k.jsx)(P.G,{inherit:!0,scope:ce,components:R,children:Q})})})};z.displayName="SchemaComponentProvider";var W=e(31601),N=function(w){m()(q,w);var Y=f()(q);function q(){return x()(this,q),Y.apply(this,arguments)}return o()(q,[{key:"load",value:function(){var ee=l()(i()().mark(function Q(){return i()().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:this.addComponents();case 1:case"end":return ve.stop()}},Q,this)}));function R(){return ee.apply(this,arguments)}return R}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:L})}}]),q}(W.S),E=null},84577:function(we,ne,e){"use strict";e.d(ne,{zz:function(){return K.zz},Pl:function(){return K.Pl},oB:function(){return K.oB},lI:function(){return i},hi:function(){return k.hi},eJ:function(){return G.e},Co:function(){return x},aZ:function(){return k.aZ},ng:function(){return K.ng},et:function(){return o.e},cL:function(){return u},fd:function(){return L},Cl:function(){return A},vH:function(){return C},sR:function(){return K.sR},wN:function(){return V.w},Dm:function(){return O},fM:function(){return k.fM}});var H=e(67294),i=function(v){var g=(0,H.useRef)(null);return(0,H.useEffect)(function(){return g.current&&v!==g.current&&g.current.onUnmount(),g.current=v,v.onMount(),function(){v.onUnmount()}},[v]),v},G=e(96365),l=e(80844),I=e(96486),x=function(v,g){var P=(0,H.useContext)(l.SchemaOptionsContext),a=P.components;return v?typeof v!="string"?v:(0,I.get)(a,v)||g:g},K=e(94516),o=e(98146),$=e(97857),m=e.n($),A=function(v){var g=(0,H.useContext)(l.SchemaOptionsContext),P=(0,H.useContext)(l.SchemaExpressionScopeContext),a=(0,H.useRef)();return a.current=P,v.toFieldProps(m()(m()({},g),{},{get scope(){return m()(m()({},g.scope),a.current)}}))},f=e(61736);function O(){return(0,H.useContext)(f.D)}var n=e(26793),r=e(6145),u=function(){var v,g=(0,r.useCollectionManager_deprecated)(),P=g.getCollectionJoinField,a=g.getCollection,Z=(0,l.useFieldSchema)(),b=(0,r.useCollection_deprecated)(),y=b.getField,c=y(Z.name)||P(Z["x-collection-field"]),d=(0,n.$)(),p=d.t,h=((v=Z["x-component-props"])===null||v===void 0?void 0:v.fieldNames)||{},B=h.label,t=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var j=a(c.target);if((j==null?void 0:j.template)==="file")return[{label:p("Record picker"),value:"CollectionField"},{label:p("Select"),value:"AssociationSelect"}];switch(c.interface){case"o2m":return[{label:p("Record picker"),value:"CollectionField"},{label:p("Subtable"),value:"TableField"},{label:p("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:p("Record picker"),value:"CollectionField"},{label:p("Select"),value:"AssociationSelect"}];default:return[{label:p("Record picker"),value:"CollectionField"},{label:p("Subform"),value:"FormField"},{label:p("Select"),value:"AssociationSelect"}]}}},[p,c==null?void 0:c.interface,B]);return t},D=e(35746),S=e(58837),C=function(){var v,g=(0,l.useField)(),P=(0,l.useFieldSchema)(),a=(0,S.Kx)(),Z=(0,D.d9)(),b=(a==null?void 0:a.getField(P.name))||(Z==null?void 0:Z.getCollectionField(P["x-collection-field"])),y=(0,G.e)();(0,H.useEffect)(function(){if(!(g!=null&&g.title)){var c;g.title=y(b==null||(c=b.uiSchema)===null||c===void 0?void 0:c.title)}},[b==null||(v=b.uiSchema)===null||v===void 0?void 0:v.title])},V=e(9780),k=e(18686),L=function(v){var g,P=(0,n.$)(),a=P.t,Z=(0,r.useCollectionManager_deprecated)(),b=Z.getCollectionJoinField,y=Z.getCollection,c=(0,l.useFieldSchema)(),d=(v==null?void 0:v.fieldSchema)||c,p=(0,l.useField)(),h=(0,l.useForm)(),B=(d==null?void 0:d["x-read-pretty"])||p.readPretty||h.readPretty,t=v==null?void 0:v.fieldSchema,j=(0,r.useCollection_deprecated)(),U=j.getField,z=(v==null?void 0:v.collectionField)||U(d.name)||b(d["x-collection-field"]),W=((g=d["x-component-props"])===null||g===void 0?void 0:g.fieldNames)||{},N=W.label,E=(0,H.useMemo)(function(){if(!(!z||!(z!=null&&z.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(z.interface)){var w=y(z.target);if((w==null?void 0:w.template)==="file")return B?[{label:a("Title"),value:"Select"},{label:a("File manager"),value:"FileManager"},{label:a("Tag"),value:"Tag"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},{label:a("File manager"),value:"FileManager"}];if((w==null?void 0:w.template)==="tree"&&["m2m","o2m","m2o"].includes(z.interface))return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"},!t&&{label:a("Sub-table"),value:"SubTable"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&["m2m","o2m"].includes(z.interface)&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Cascade Select"),value:"CascadeSelect"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];switch(z.interface){case"o2m":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"},!t&&{label:a("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"},!t&&{label:a("Sub-table"),value:"SubTable"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-table"),value:"SubTable"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}];default:return B?[{label:a("Title"),value:"Select"},{label:a("Tag"),value:"Tag"},!t&&{label:a("Sub-details"),value:"Nester"}]:[{label:a("Select"),value:"Select"},{label:a("Record picker"),value:"Picker"},!t&&{label:a("Sub-form"),value:"Nester"},{label:a("Sub-form(Popover)"),value:"PopoverNester"}]}}},[a,z==null?void 0:z.interface,N]);return(E||[]).filter(Boolean)}},18686:function(we,ne,e){"use strict";e.d(ne,{aZ:function(){return L},fM:function(){return v},hi:function(){return M}});var H=e(5574),i=e.n(H),G=e(97857),l=e.n(G),I=e(80844),x=e(83204),K=e(9361),o=e(96486),$=e.n(o),m=e(67294),A=e(35304),f=e(21143),O=e(10097),n=e(1892),r=e(28561),u=function(a,Z,b,y){return a?y.paddingContentHorizontalLG:b?Z?y.controlPaddingHorizontal+3*y.controlPaddingHorizontalSM+22+y.paddingContentHorizontalLG:y.paddingContentHorizontalLG+12:Z?y.paddingSM+y.controlHeight+y.marginXS+2*y.controlPaddingHorizontalSM+22+y.paddingContentHorizontalLG:y.controlHeight+y.marginXS+(y.paddingXXS+2)*2+y.paddingContentHorizontalLG},D=function(a){var Z=K.Z.useToken(),b=Z.token,y=(0,A.ngQ)(),c=y.designable,d=(0,O.useBlockHeightProps)(),p=d.heightProps,h=a||p||{},B=h.disablePageHeader,t=h.enablePageTabs,j=h.hidePageTitle,U=b.sizeXXL-2,z=c?b.controlHeight+2*b.paddingContentHorizontalLG:1*b.paddingContentHorizontalLG,W=u(B,t,j,b);return U+W+z},S=function(){var a=K.Z.useToken(),Z=a.token,b=(0,A.ngQ)(),y=b.designable,c=Z.paddingContentVerticalLG+Z.margin+2*Z.paddingContentVertical+24,d=y?Z.controlHeight+2*Z.paddingContentHorizontalLG:1*Z.paddingContentHorizontalLG;return c+d},C=function(a){var Z=(0,I.useFieldSchema)(),b=g(Z),y=D(a),c=S();return b?c:y},V=["users_jobs","approvals","approvalRecords"],k=function(){var a,Z,b=K.Z.useToken(),y=b.token,c=(0,O.useBlockHeightProps)(),d=c.heightProps,p=(0,n.Si)(),h=p.heightProps,B=(0,A.ngQ)(),t=B.designable,j=(0,I.useFieldSchema)(),U=h||d,z=C(U),W=(a=(0,f.useDataBlockRequest)())!==null&&a!==void 0?a:{},N=W.data,E=(0,f.useCollection)(),w=E.name,Y=(N==null?void 0:N.meta)||{},q=Y.count,ee=Y.pageSize,R=q>ee,Q=U.heightMode,oe=U.height,ve=U.title;if(!(!(U!=null&&U.heightMode)||Q===r.j.DEFAULT)){var ue=Object.keys(((Z=j.parent.properties.actions)===null||Z===void 0?void 0:Z.properties)||{}).length>0,ge=R?y.controlHeight+y.padding+y.marginLG:y.marginLG,Ie=ue||t?y.controlHeight+2*y.marginLG:y.marginLG,Oe=(t&&!V.includes(w)?y.controlHeight:22)+2*y.padding+1,Ce=ve?y.fontSizeLG*y.lineHeightLG+y.padding*2-1:0;return Q===r.j.FULL_HEIGHT?window.innerHeight-z-Ce-Oe-Ie-ge:oe-Ce-Ie-Oe-ge}},L=function(a){var Z=(0,O.useBlockHeightProps)(),b=Z.heightProps,y=C(),c=K.Z.useToken(),d=c.token,p=b||{},h=p.heightMode,B=p.height,t=p.title,j=t?d.fontSizeLG*d.lineHeightLG+d.padding*2-1:0;if(!(!(b!=null&&b.heightMode)||h===r.j.DEFAULT)){if(h===r.j.FULL_HEIGHT){var U=window.innerHeight-y;return a!=null&&a.removeBlockHeaderHeight&&(U=U-j),a!=null&&a.innerExtraHeight&&(U=U-a.innerExtraHeight),U}return B}},M=function(){var a=(0,I.useFieldSchema)(),Z=(0,m.useMemo)(function(){return(0,O.getPageSchema)(a)},[]),b=(Z==null?void 0:Z["x-component-props"])||{},y=b.disablePageHeader,c=b.enablePageTabs,d=b.hidePageTitle,p=l()(l()({},a==null?void 0:a["x-component-props"]),{},{disablePageHeader:y,enablePageTabs:c,hidePageTitle:d}),h=C(p),B=p||{},t=B.heightMode,j=B.height;if(!(!(p!=null&&p.heightMode)||t===r.j.DEFAULT))return t===r.j.FULL_HEIGHT?window.innerHeight-h:j},v=function(){var a=(0,m.useState)(),Z=i()(a,2),b=Z[0],y=Z[1],c=(0,m.useRef)(null),d=k(),p=(0,m.useCallback)((0,o.debounce)(function(){var B;if(c.current){var t=c.current.getBoundingClientRect(),j=(B=c.current.querySelector(".ant-table"))===null||B===void 0?void 0:B.getBoundingClientRect();j&&y(t.width)}},100),[d]),h=(0,m.useCallback)(function(B){c.current=B&&B.children?B.children[0]:null,p()},[p]);return(0,x.Z)("resize",p),{height:d,width:b,tableSizeRefCallback:h}},g=function P(a){return a?a["x-component"]==="Action.Container"?!0:P(a.parent):null}},96365:function(we,ne,e){"use strict";e.d(ne,{e:function(){return $}});var H=e(97857),i=e.n(H),G=e(52677),l=e.n(G),I=e(80844),x=e(67294),K={},o=function(A){var f=/{{.*?}}/g;return f.test(A)},$=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=A.noCache,O=(0,x.useContext)(I.SchemaOptionsContext),n=(0,x.useContext)(I.SchemaExpressionScopeContext);return function(r,u){var D=!1,S;if(typeof r=="string"&&r.startsWith("{{")&&(D=!0,S=r),r&&l()(r)==="object"&&!(0,x.isValidElement)(r)&&(S=JSON.stringify(r),D=o(S)),Array.isArray(r)&&(D=o(JSON.stringify(r))),D){var C=i()(i()(i()({},O.scope),n),u);if(!S)return I.Schema.compile(r,C);try{return f?I.Schema.compile(r,C):(K[S]=K[S]||I.Schema.compile(r,C),K[S])}catch(V){return console.log("useCompile error",r,V),I.Schema.compile(r,C)}}return r}}},94516:function(we,ne,e){"use strict";e.d(ne,{zz:function(){return z},Pl:function(){return p},oB:function(){return j},ng:function(){return N},sR:function(){return W}});var H=e(5574),i=e.n(H),G=e(19632),l=e.n(G),I=e(15009),x=e.n(I),K=e(99289),o=e.n(K),$=e(12444),m=e.n($),A=e(72004),f=e.n(A),O=e(9783),n=e.n(O),r=e(97857),u=e.n(r),D=e(80844),S=e(84327),C=e(45360),V=e(50361),k=e.n(V),L=e(27361),M=e.n(L),v=e(36968),g=e.n(v),P=e(67294),a=e(26793),Z=e(12174),b=e(61736);function y(E,w){if(E)return E["x-app-version"]||(E["x-app-version"]=w),Object.keys(E.properties||{}).forEach(function(Y){var q;y((q=E.properties)===null||q===void 0?void 0:q[Y],w)}),E}var c={i8:"1.4.14"},d=e(85893);function p(E){return new z(E)}var h=function E(w){w&&(w["x-uid"]||(w["x-uid"]=(0,S.uid)()),Object.keys(w.properties||{}).forEach(function(Y){E(w.properties[Y])}))},B=function(w){return w},t=function(w,Y){if(!(!w||!Y)){for(var q in Y)if(Object.prototype.hasOwnProperty.call(Y,q)){var ee=Y[q];if(ee!==(w==null?void 0:w[q]))return!1}return!0}},j=function(w,Y){if(w["x-uid"]&&w["x-uid"]===Y["x-uid"])return[null,w.toJSON()];var q=w.toJSON(),ee=u()(u()({},q),{},{properties:{}}),R=null,Q=function oe(ve,ue){Object.keys(ve||{}).forEach(function(ge){var Ie=ve[ge];if(Ie["x-uid"]===Y["x-uid"]){R=ve[ge];return}else ue.properties[ge]=u()(u()({},Ie),{},{properties:{}}),oe(Ie==null?void 0:Ie.properties,ue.properties[ge])})};return Q(q.properties,ee),[ee,R]},U=function(w){return w},z=function(){function E(w){m()(this,E),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=w,this.current=w.current,this.appVersion=w.appVersion}return f()(E,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Y=this,q=this.options,ee=q.api,R=q.t,Q=R===void 0?U:R;if(ee){var oe=function(ue){if(!ue)return[];var ge=Object.values(ue.properties).length,Ie=[];return ue.mapProperties(function(Oe){Oe["x-component-props"]=Oe["x-component-props"]||{},Oe["x-component-props"].width=100/ge,Oe["x-uid"]&&Ie.push({"x-uid":Oe["x-uid"],"x-component-props":Oe["x-component-props"]})}),ue["x-uid"]&&Ie.length?Ie:[]};this.on("insertAdjacent",function(){var ve=o()(x()().mark(function ue(ge){var Ie,Oe,Ce,De,_e,re,ce,ie,X,me;return x()().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Oe=ge.onSuccess,Ce=ge.current,De=ge.position,_e=ge.schema,re=ge.wrap,ce=ge.wrapped,ie=ge.removed,X=[],(ce==null?void 0:ce["x-component"])==="Grid.Col"&&(X=X.concat(oe(ce.parent))),(ie==null?void 0:ie["x-component"])==="Grid.Col"&&(X=X.concat(oe(ie.parent))),Y.refresh(),Ce["x-uid"]){Pe.next=7;break}return Pe.abrupt("return");case 7:return Pe.next=9,ee.request({url:"/uiSchemas:insertAdjacent/".concat(Ce["x-uid"],"?position=").concat(De),method:"post",data:{schema:y(_e,Y.appVersion),wrap:re}});case 9:if(me=Pe.sent,!X.length){Pe.next=13;break}return Pe.next=13,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:X});case 13:if(!(ie!=null&&ie["x-uid"])){Pe.next=16;break}return Pe.next=16,ee.request({url:"/uiSchemas:remove/".concat(ie["x-uid"]),method:"post"});case 16:Oe==null||Oe(me==null||(Ie=me.data)===null||Ie===void 0?void 0:Ie.data),C.ZP.success(Q("Saved successfully"),.2);case 18:case"end":return Pe.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("patch",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ie=ge.schema,Y.refresh(),Ie!=null&&Ie["x-uid"]){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.next=6,ee.request({url:"/uiSchemas:patch",method:"post",data:u()({},Ie)});case 6:C.ZP.success(Q("Saved successfully"),.2);case 7:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ie=ge.schema,Y.refresh(),Ie!=null&&Ie["x-uid"]){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.next=6,ee.request({url:"/uiSchemas:initializeActionContext",method:"post",data:u()({},Ie)});case 6:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("batchPatch",function(){var ve=o()(x()().mark(function ue(ge){var Ie;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ie=ge.schemas,Y.refresh(),Ce.next=4,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:Ie});case 4:C.ZP.success(Q("Saved successfully"),.2);case 5:case"end":return Ce.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}()),this.on("remove",function(){var ve=o()(x()().mark(function ue(ge){var Ie,Oe;return x()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Ie=ge.removed,Oe=[],(Ie==null?void 0:Ie["x-component"])==="Grid.Col"&&(Oe=oe(Ie.parent)),Y.refresh(),Ie!=null&&Ie["x-uid"]){De.next=6;break}return De.abrupt("return");case 6:return De.next=8,ee.request({url:"/uiSchemas:remove/".concat(Ie["x-uid"]),method:"post"});case 8:if(!Oe.length){De.next=11;break}return De.next=11,ee.request({url:"/uiSchemas:batchPatch",method:"post",data:Oe});case 11:C.ZP.success(Q("Saved successfully"),.2);case 12:case"end":return De.stop()}},ue)}));return function(ue){return ve.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Y){Y.type||(Y.type="void"),Y.name||(Y.name=(0,S.uid)()),this.current["x-uid"]&&h(Y)}},{key:"on",value:function(Y,q){this.events[Y]||(this.events[Y]=[]),this.events[Y].push(q)}},{key:"emit",value:function(){var w=o()(x()().mark(function q(ee){var R=this,Q,oe,ve,ue,ge,Ie=arguments;return x()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(this.events[ee]){Ce.next=2;break}return Ce.abrupt("return");case 2:for(Q=Ie.length,oe=new Array(Q>1?Q-1:0),ve=1;ve<Q;ve++)oe[ve-1]=Ie[ve];return ue=oe[0],ge=oe.slice(1),Ce.abrupt("return",Promise.all(this.events[ee].map(function(De){return De.bind(R).apply(void 0,[u()({current:R.current},ue)].concat(l()(ge)))})));case 5:case"end":return Ce.stop()}},q,this)}));function Y(q){return w.apply(this,arguments)}return Y}()},{key:"parentsIn",value:function(Y){if(!Y||!D.Schema.isSchemaInstance(Y))return!1;for(var q=this.current;(ee=q)!==null&&ee!==void 0&&ee.parent;){var ee;if(q.parent===Y)return!0;q=q.parent}return!1}},{key:"refresh",value:function(){var Y=this.options.refresh;return Y==null?void 0:Y()}},{key:"deepMerge",value:function(Y){var q=this,ee={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},R={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(Q){ee[Q]?(q.current[Q]=Y[Q],q.updateModel(ee[Q],Y[Q])):R[Q]?Object.keys(Y[Q]).forEach(function(oe){g()(q.current,[Q,oe],Y[Q][oe]),q.updateModel([R[Q],oe],Y[Q][oe])}):q.current[Q]=Y[Q]}),this.emit("patch",{schema:Y})}},{key:"getSchemaAttribute",value:function(Y,q){return M()(this.current,Y,q)}},{key:"shallowMerge",value:function(Y){var q=this,ee={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(R){q.current[R]=Y[R],ee[R]&&q.updateModel(ee[R],Y[R])}),this.emit("patch",{schema:Y})}},{key:"updateModel",value:function(Y,q){var ee=function(Q){g()(Q,Y,q)};this.model&&ee(this.model),this.query&&this.query.take(ee)}},{key:"insertAdjacent",value:function(Y,q){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Y){case"beforeBegin":return this.insertBeforeBegin(q,ee);case"afterBegin":return this.insertAfterBegin(q,ee);case"beforeEnd":return this.insertBeforeEnd(q,ee);case"afterEnd":return this.insertAfterEnd(q,ee)}}},{key:"recursiveRemoveIfNoChildren",value:function(Y,q){if(Y){for(var ee=Y,R,Q=q==null?void 0:q.breakRemoveOn;ee;){if(typeof Q=="function"){if(Q(ee))break}else if(t(ee,Q))break;var oe=Object.keys(ee.properties||{}).length;if(oe>0)break;ee.parent&&(R=ee.parent.removeProperty(ee.name)),ee=ee.parent}return R}}},{key:"remove",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.breakRemoveOn,R=q.removeParentsIfNoChildren,Q=Y||this.current,oe=Q.parent.removeProperty(Q.name);if(R){var ve=this.recursiveRemoveIfNoChildren(Q.parent,{breakRemoveOn:ee});ve&&(oe=ve)}return this.emit("remove",{removed:oe})}},{key:"removeWithoutEmit",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.breakRemoveOn,R=q.removeParentsIfNoChildren,Q=Y||this.current,oe=Q.parent.removeProperty(Q.name);if(R){var ve=this.recursiveRemoveIfNoChildren(Q.parent,{breakRemoveOn:ee});ve&&(oe=ve)}return oe}},{key:"insertBeforeBeginOrAfterEnd",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)&&D.Schema.isSchemaInstance(Y)&&this.current.parent===Y.parent){var R=0,Q=0;return this.current.parent.mapProperties(function(oe,ve,ue){q.current.name===ve&&(Q=ue),Y.name===ve&&(R=ue)}),R>Q?this.insertBeforeBegin(Y,ee):this.insertAfterEnd(Y,ee)}}},{key:"insertBeforeBegin",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var R={onSuccess:ee.onSuccess},Q=ee.wrap,oe=Q===void 0?B:Q,ve=ee.breakRemoveOn,ue=ee.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ue&&(R.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ve}))}else Y&&(Y=k()(Y));var ge={},Ie=!1,Oe=0,Ce=0;this.current.parent.mapProperties(function(me,xe){xe===q.current.name&&(Ce=Oe,Ie=!0,++Oe),me["x-index"]=Oe,++Oe,Ie&&(ge[xe]=me,q.current.parent.removeProperty(xe))}),this.prepareProperty(Y);var De=oe(Y),_e=this.current.parent.addProperty(De.name||(0,S.uid)(),De);_e["x-index"]=Ce,_e.parent=this.current.parent,this.current.parent.setProperties(ge);var re=j(_e,Y),ce=i()(re,2),ie=ce[0],X=ce[1];this.emit("insertAdjacent",u()({position:"beforeBegin",schema:X,wrapped:De,wrap:ie},R))}}},{key:"insertAfterBegin",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var ee={onSuccess:q.onSuccess},R=q.wrap,Q=R===void 0?B:R,oe=q.breakRemoveOn,ve=q.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ve&&(ee.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:oe}))}else Y&&(Y=k()(Y));var ue={},ge=1;this.current.mapProperties(function(ce,ie){ce["x-index"]=ge,++ge,ue[ie]=ce}),this.current.properties={},this.prepareProperty(Y);var Ie=Q(Y),Oe=this.current.addProperty(Ie.name||(0,S.uid)(),Ie);Oe["x-index"]=0,Oe.parent=this.current,this.current.setProperties(ue);var Ce=j(Oe,Y),De=i()(Ce,2),_e=De[0],re=De[1];this.emit("insertAdjacent",u()({position:"afterBegin",schema:re,wrap:_e,wrapped:Ie},ee))}}},{key:"insertBeforeEnd",value:function(Y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){delete Y["x-index"];var ee={onSuccess:q.onSuccess},R=q.wrap,Q=R===void 0?B:R,oe=q.breakRemoveOn,ve=q.removeParentsIfNoChildren;if(D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ve&&(ee.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:oe}))}else Y&&(Y=k()(Y));this.prepareProperty(Y);var ue=Q(Y),ge=this.current.addProperty(ue.name||(0,S.uid)(),ue);ge.parent=this.current;var Ie=j(ge,Y),Oe=i()(Ie,2),Ce=Oe[0],De=Oe[1];return this.emit("insertAdjacent",u()({position:"beforeEnd",schema:De,wrap:Ce,wrapped:ue},ee))}}},{key:"insertAfterEnd",value:function(Y){var q=this,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.Schema.isSchemaInstance(this.current)){var R={onSuccess:ee==null?void 0:ee.onSuccess},Q=ee.wrap,oe=Q===void 0?B:Q,ve=ee.breakRemoveOn,ue=ee.removeParentsIfNoChildren,ge=0,Ie=0,Oe=!1,Ce={};if(this.current.parent.mapProperties(function(me,xe){me["x-index"]=ge,xe===q.current.name&&(++ge,Ie=ge,Oe=!0),++ge,Oe&&xe!==q.current.name&&(Ce[xe]=me,q.current.parent.removeProperty(xe))}),D.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ue&&(R.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ve})),Y.parent=null}else Y&&(Y=k()(Y));this.prepareProperty(Y);var De=oe(Y),_e=this.current.parent.addProperty(De.name||(0,S.uid)(),De);_e.parent=this.current.parent,_e["x-index"]=Ie,this.current.parent.setProperties(Ce);var re=j(_e,Y),ce=i()(re,2),ie=ce[0],X=ce[1];this.emit("insertAdjacent",u()({position:"afterEnd",schema:X,wrap:ie,wrapped:De},R))}}}]),E}();function W(){var E=(0,P.useContext)(D.SchemaOptionsContext),w=(0,P.useMemo)(function(){return(E==null?void 0:E.components)||{}},[E]),Y=function(ee){if(!ee)return null;if(typeof ee!="string")return ee;var R=M()(w,ee);return R||console.error('[nocobase]: Component "'.concat(ee,'" not found')),R};return Y}function N(){var E=(0,P.useContext)(b.D),w=E.designable,Y=E.setDesignable,q=E.refresh,ee=E.reset,R=(0,P.useContext)(D.SchemaOptionsContext),Q=(0,P.useMemo)(function(){return(R==null?void 0:R.components)||{}},[R]),oe=(0,P.useMemo)(function(){return function(){return(0,d.jsx)(d.Fragment,{})}},[]),ve=(0,D.useField)(),ue=(0,D.useFieldSchema)(),ge=(0,Z.LY)(),Ie=(0,a.$)(),Oe=Ie.t,Ce=(0,P.useMemo)(function(){return p({t:Oe,api:ge,refresh:q,current:ue,model:ve,appVersion:c.i8})},[Oe,ge,q,ue,ve]);return(0,P.useEffect)(function(){Ce.loadAPIClientEvents()},[Ce]),{dn:Ce,designable:w,reset:ee,refresh:q,setDesignable:Y,DesignableBar:oe,findComponent:(0,P.useCallback)(function(De){return De?typeof De!="string"?De:M()(Q,De):null},[M()]),on:Ce.on.bind(Ce),patch:(0,P.useCallback)(function(De,_e){var re=function(X){Object.keys(X).forEach(function(me){var xe=X[me];me==="title"&&(ve.title=xe,ue.title=xe),me==="x-decorator-props"&&(ve.decoratorProps||(ve.decoratorProps={}),ue["x-decorator-props"]||(ue["x-decorator-props"]={}),Object.keys(xe).forEach(function(Pe){ve.decoratorProps[Pe]=xe[Pe],ue["x-decorator-props"][Pe]=xe[Pe]})),me==="x-component-props"&&(ve.componentProps||(ve.componentProps={}),ue["x-component-props"]||(ue["x-component-props"]={}),Object.keys(xe).forEach(function(Pe){ve.componentProps[Pe]=xe[Pe],ue["x-component-props"][Pe]=xe[Pe]}))})};if(typeof De=="string"){var ce={};return g()(ce,De,_e),re(ce)}re(De),q()},[Ce]),shallowMerge:(0,P.useCallback)(function(De){Ce.shallowMerge(De)},[Ce]),deepMerge:(0,P.useCallback)(function(De){Ce.deepMerge(De)},[Ce]),remove:(0,P.useCallback)(function(De,_e){Ce.remove(De,_e)},[Ce]),insertAdjacent:(0,P.useCallback)(function(De,_e,re){Ce.insertAdjacent(De,_e,re)},[Ce]),insertBeforeBegin:(0,P.useCallback)(function(De){Ce.insertBeforeBegin(De)},[Ce]),insertAfterBegin:(0,P.useCallback)(function(De){Ce.insertAfterBegin(De)},[Ce]),insertBeforeEnd:(0,P.useCallback)(function(De){Ce.insertBeforeEnd(De)},[Ce]),insertAfterEnd:(0,P.useCallback)(function(De){Ce.insertAfterEnd(De)},[Ce])}}},98146:function(we,ne,e){"use strict";e.d(ne,{e:function(){return x}});var H=e(80844),i=e(84577),G=e(67294),l=e(78545),I=function(){return null},x=function(){var o=(0,i.ng)(),$=o.designable,m=(0,H.useFieldSchema)(),A=(0,G.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?l.Mf:I},[m]),f=(0,i.Co)(A);return $&&f||I}},9780:function(we,ne,e){"use strict";e.d(ne,{w:function(){return K}});var H=e(97857),i=e.n(H),G=e(13769),l=e.n(G),I=["useProps"],x=function(){return{}},K=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=$.useProps,A=m===void 0?x:m,f=l()($,I),O=A;typeof A!="function"&&(O=x);var n=O();return i()(i()({},f),n)}},35304:function(we,ne,e){"use strict";e.d(ne,{aUM:function(){return L.aU},olz:function(){return L.ol},N0i:function(){return L.N0},fWn:function(){return L.fW},EIK:function(){return L.EI},$Lt:function(){return L.$L},$b8:function(){return L.$b},HTy:function(){return Tr},lkv:function(){return Er},rDu:function(){return ri},eYL:function(){return L.eY},Rat:function(){return Yr},oAt:function(){return Zo},E7E:function(){return Mr},$SD:function(){return Pi},fUi:function(){return Lr.fU},QcG:function(){return es},MLy:function(){return xo.M},gOu:function(){return Is},jYG:function(){return ma.jY},PuU:function(){return ma.Pu},C1I:function(){return L.C1},Ssf:function(){return ns},vTp:function(){return as},XZJ:function(){return ea},Tt2:function(){return us},zH8:function(){return ps},Q5L:function(){return gs},Pok:function(){return yi},Vm0:function(){return bs},xI_:function(){return ds},Lip:function(){return cs},WN4:function(){return ji.W},Mtg:function(){return ta.Mt},iNu:function(){return ta.iN},zzt:function(){return Ft.zz},_bl:function(){return C._b},POi:function(){return Ps},AOY:function(){return ge},izJ:function(){return Uu},LBT:function(){return S.DndContext},IWB:function(){return S.DragHandler},LCt:function(){return S.DraggableContext},FyH:function(){return oe.Fy},Nir:function(){return oe.Ni},q8U:function(){return oe.q8},HGA:function(){return oe.HG},QTe:function(){return oe.QT},JEX:function(){return oe.JE},fAH:function(){return gl},$w$:function(){return oe.$w},nBj:function(){return oe.nB},Oct:function(){return oe.Oc},zdw:function(){return oe.zd},CXR:function(){return fl},BQs:function(){return Pr.BQ},Hj5:function(){return pn.H},M0b:function(){return Si},Dnz:function(){return ji.D},wn$:function(){return Kn.wn},GzZ:function(){return Kn.Gz},tJZ:function(){return Kn.tJ},fox:function(){return Kn.fo},VTd:function(){return Kn.VT},XsZ:function(){return Kn.Xs},AsW:function(){return Mo},cLM:function(){return Xo},m__:function(){return ko},l09:function(){return ee},D_t:function(){return ol.D},WiK:function(){return ho},xJW:function(){return oe.xJ},RVL:function(){return C.RV},Bc8:function(){return St},hG9:function(){return Di},DCh:function(){return Ei},rjZ:function(){return na.rj},Cqo:function(){return Qa},jg7:function(){return na.jg},gsn:function(){return Pr.gs},$18:function(){return Ks},IIB:function(){return Pr.II},RnZ:function(){return il},mX2:function(){return Pr.mX},zDC:function(){return ur.zD},Phs:function(){return Pr.Ph},aVo:function(){return Xa},UGj:function(){return sl},yq5:function(){return ul},v2r:function(){return pa},HIW:function(){return Lu},T3C:function(){return rn},d97:function(){return To.d9},hGv:function(){return Ln},tlE:function(){return iu},rop:function(){return su},gGi:function(){return uu},DBW:function(){return Cr.D},MBS:function(){return cu.M},pGO:function(){return mu},Y8K:function(){return Fi},iVT:function(){return Pr.iV},ODP:function(){return ur.OD},lbb:function(){return ur.lb},b7w:function(){return ur.b7},sUk:function(){return ur.sU},x1j:function(){return L.x1},m1v:function(){return C.m1},glM:function(){return Xt},xZD:function(){return L.xZ},IuH:function(){return Kn.Iu},MkN:function(){return L.Mk},Hof:function(){return pu},n6:function(){return C.n6},DDd:function(){return jv.D},G0E:function(){return C.G0},a$w:function(){return C.a$},TzZ:function(){return C.Tz},y00:function(){return L.y0},PhF:function(){return xt},Cqv:function(){return S.ShowFormData},cof:function(){return L.co},bts:function(){return S.Sortable},Fop:function(){return S.SortableContext},TRI:function(){return S.SortableItem},ORg:function(){return S.SortableProvider},TaI:function(){return fu},qHe:function(){return Bn.q},iA_:function(){return Nr},gvM:function(){return Du},SnY:function(){return Cl},ASv:function(){return Iu},bwk:function(){return Xr},mQc:function(){return ti},c__:function(){return ei.c},QZ3:function(){return Tn},L39:function(){return ma.L3},jII:function(){return _l},mPs:function(){return ju},tgM:function(){return Bu},gqx:function(){return Lr.gq},Qm7:function(){return Lr.Qm},_wD:function(){return Ba._w},rjl:function(){return Ba.rj},Fjw:function(){return L.Fj},SLL:function(){return L.SL},sBv:function(){return L.sB},iTm:function(){return oe.iT},BDK:function(){return Lr.BD},Pls:function(){return Ft.Pl},Oxq:function(){return Pn},WLi:function(){return Ot},$9M:function(){return oe.$9},nCn:function(){return qa},iNG:function(){return Fa},tD8:function(){return Ii},pg9:function(){return po},Ofb:function(){return oe.Of},ibf:function(){return yo},WyG:function(){return Q},l6$:function(){return Ue.l6},WGR:function(){return eo},C$H:function(){return ur.C$},SET:function(){return zr.SE},cNQ:function(){return ur.cN},NCb:function(){return Vo.NC},I9l:function(){return S.getRenderContent},XQ2:function(){return Vo.XQ},MDU:function(){return zr.MD},CEH:function(){return zr.CE},ZZb:function(){return oe.ZZ},elO:function(){return ur.el},CfU:function(){return Do},LPx:function(){return zr.LP},fY6:function(){return zr.fY},w_o:function(){return zr.w_},SJF:function(){return So},_Ko:function(){return bo},Mev:function(){return sr},i2K:function(){return zn},WmO:function(){return Kn.Wm},oBi:function(){return Ft.oB},hKP:function(){return Vo.hK},DU1:function(){return L.DU},XCj:function(){return L.XC},KyD:function(){return qo.Ky},Vpg:function(){return mr},lIL:function(){return Ft.lI},KxP:function(){return xo.K},hi9:function(){return Ft.hi},p27:function(){return L.p2},z9d:function(){return hl.z9},eJW:function(){return Ft.eJ},Cor:function(){return Ft.Co},Zmk:function(){return To.Zm},aZq:function(){return Ft.aZ},P1D:function(){return ta.P1},ngQ:function(){return Ft.ng},ett:function(){return Ft.et},ySm:function(){return pn.y},Zd$:function(){return oe.Zd},cLh:function(){return Ft.cL},baz:function(){return oe.b},fde:function(){return Ft.fd},Xdt:function(){return ur.Xd},Cld:function(){return Ft.Cl},vH8:function(){return Ft.vH},PLH:function(){return Kn.PL},V8t:function(){return Kn.V8},tMk:function(){return Kn.tM},xQm:function(){return Kn.xQ},sRe:function(){return Ft.sR},frb:function(){return mo},$N2:function(){return Bo},U1u:function(){return yn},HS$:function(){return L.HS},vBu:function(){return L.vB},QYZ:function(){return L.QY},t9d:function(){return L.t9},Kgy:function(){return Kn.Kg},aJ2:function(){return Kn.aJ},n14:function(){return na.n1},DiB:function(){return na.Di},l1O:function(){return oe.l1},w5o:function(){return oe.w5},p3Q:function(){return oe.p3},G5e:function(){return oe.G5},xj2:function(){return oe.xj},rxY:function(){return oe.rx},Ils:function(){return ur.Il},zCB:function(){return L.zC},a4r:function(){return Cr.a},wNf:function(){return Ft.wN},Dmu:function(){return Ft.Dm},Bsl:function(){return C.Bs},yKv:function(){return au.y},fMB:function(){return Ft.fM},gCg:function(){return ei.g},eT6:function(){return oe.eT},$SN:function(){return Lr.$S},q4O:function(){return oe.q4},ymE:function(){return Ba.ym},uqQ:function(){return L.uq},Q3P:function(){return Vo.Q3},K5K:function(){return L.K5}});var H={};e.r(H),e.d(H,{Action:function(){return L.aU},ActionBar:function(){return L.ol},ActionBarProvider:function(){return L.N0},ActionContext:function(){return L.fW},ActionContextProvider:function(){return L.EI},ActionDesigner:function(){return L.$L},AfterSuccess:function(){return L.$b},AntdSchemaComponentPlugin:function(){return Tr},AntdSchemaComponentProvider:function(){return Er},AppendsTreeSelect:function(){return ri},AssignedFieldValues:function(){return L.eY},AssociationField:function(){return Yr},AssociationFieldMode:function(){return Zo},AssociationFieldModeProvider:function(){return Mr},AssociationSelect:function(){return Pi},AttachmentList:function(){return Lr.fU},AutoComplete:function(){return es},BackButtonUsedInSubPage:function(){return xo.M},Block:function(){return Is},BlockItem:function(){return ma.jY},BlockItemCard:function(){return ma.Pu},ButtonEditor:function(){return L.C1},CardItem:function(){return ns},Cascader:function(){return as},Checkbox:function(){return ea},CollectionSelect:function(){return us},ColorPicker:function(){return ps},ColorSelect:function(){return gs},Cron:function(){return yi},CronSet:function(){return bs},DataSourceCollectionCascader:function(){return ds},DataSourceSelect:function(){return cs},DateFormatCom:function(){return ji.W},DatePicker:function(){return ta.Mt},DatePickerProvider:function(){return ta.iN},Details:function(){return Ps},DetailsDesigner:function(){return ge},Divider:function(){return Uu},EditComponent:function(){return oe.Fy},EditDefaultValue:function(){return oe.Ni},EditDescription:function(){return oe.q8},EditOperator:function(){return oe.HG},EditPattern:function(){return oe.QT},EditRequired:function(){return oe.JE},EditSortField:function(){return gl},EditTitle:function(){return oe.$w},EditTitleField:function(){return oe.nB},EditTooltip:function(){return oe.Oc},EditValidationRules:function(){return oe.zd},Editable:function(){return fl},EllipsisWithTooltip:function(){return Pr.BQ},ErrorFallback:function(){return pn.H},Expand:function(){return Si},ExpiresRadio:function(){return ji.D},Filter:function(){return Kn.wn},FilterAction:function(){return Kn.Gz},FilterActionContext:function(){return Kn.tJ},FilterContext:function(){return Kn.fo},FilterDynamicComponent:function(){return Kn.VT},FilterLogicContext:function(){return Kn.Xs},FixedBlock:function(){return Mo},FixedBlockDesignerItem:function(){return Xo},FixedBlockWrapper:function(){return ko},Form:function(){return ee},FormDialog:function(){return ol.D},FormField:function(){return ho},FormItem:function(){return oe.xJ},FormV2:function(){return St},G2Plot:function(){return Di},G2PlotRenderer:function(){return Ei},Grid:function(){return na.rj},GridCard:function(){return Qa},GridRowContext:function(){return na.jg},HTMLEncode:function(){return Pr.gs},IconPicker:function(){return Ks},Input:function(){return Pr.II},InputNumber:function(){return il},InputReadPretty:function(){return Pr.mX},InputRecordPicker:function(){return ur.zD},Json:function(){return Pr.Ph},List:function(){return Xa},Markdown:function(){return sl},MarkdownReadPretty:function(){return ul},Menu:function(){return pa},NanoIDInput:function(){return Lu},Page:function(){return rn},PagePopups:function(){return To.d9},PageTabs:function(){return Ln},Pagination:function(){return iu},Password:function(){return su},Percent:function(){return uu},PopupSettingsProvider:function(){return Cr.D},Preview:function(){return cu.M},QuickEdit:function(){return mu},Radio:function(){return Fi},ReadPretty:function(){return Pr.iV},ReadPrettyRecordPicker:function(){return ur.OD},RecordPicker:function(){return ur.lb},RecordPickerContext:function(){return ur.b7},RecordPickerProvider:function(){return ur.sU},RefreshDataBlockRequest:function(){return L.x1},RemoteSelect:function(){return Xt},RemoveButton:function(){return L.xZ},RemoveConditionContext:function(){return Kn.Iu},RequestSettings:function(){return L.Mk},RichText:function(){return pu},SecondConFirm:function(){return L.y0},Select:function(){return xt},SkipValidation:function(){return L.co},Space:function(){return fu},StablePopover:function(){return Bn.q},Table:function(){return Nr},TableBlockDesigner:function(){return Du},TableField:function(){return Cl},TableSelectorDesigner:function(){return Iu},TableV2:function(){return Xr},Tabs:function(){return ti},TabsContextProvider:function(){return ei.c},Templates:function(){return Tn},TestDesigner:function(){return ma.L3},TimePicker:function(){return _l},TreeSelect:function(){return ju},UnixTimestamp:function(){return Bu},Upload:function(){return Lr.gq},Uploader:function(){return Lr.Qm},Variable:function(){return Ba._w},VariableScopeProvider:function(){return Ba.rj},WorkflowConfig:function(){return L.Fj},actionSettings:function(){return L.SL},actionSettingsItems:function(){return L.sB},allowAddNew:function(){return oe.iT},attachmentFileTypes:function(){return Lr.BD},defaultFieldNames:function(){return Pn},fetchTemplateData:function(){return Ot},filterFormItemSettings:function(){return oe.$9},findByUid:function(){return qa},findKeysByUid:function(){return Fa},findMenuItem:function(){return Ii},formDetailsSettings:function(){return po},formItemSettings:function(){return oe.Of},formSettings:function(){return yo},formV1Settings:function(){return Q},genStyleHook:function(){return Ue.l6},getCurrentOptions:function(){return eo},getDatePickerLabels:function(){return ur.C$},getDateRanges:function(){return zr.SE},getLabelFormatValue:function(){return ur.cN},getPopupPathFromParams:function(){return Vo.NC},getStoredPopupContext:function(){return Vo.XQ},handleDateChangeOnForm:function(){return zr.MD},inferPickerType:function(){return zr.CE},isFileCollection:function(){return oe.ZZ},isShowFilePicker:function(){return ur.el},isTabPage:function(){return Do},mapDatePicker:function(){return zr.LP},mapRangePicker:function(){return zr.fY},moment2str:function(){return zr.w_},navigateToTab:function(){return So},pageSettings:function(){return bo},pageTabSettings:function(){return sr},readPrettyFormSettings:function(){return zn},removeNullCondition:function(){return Kn.Wm},storePopupContext:function(){return Vo.hK},useActionBarContext:function(){return L.DU},useActionContext:function(){return L.XC},useAssociationFieldContext:function(){return qo.Ky},useAssociationFieldModeContext:function(){return mr},useBackButton:function(){return xo.K},useCloseAction:function(){return L.p2},useColumnSchema:function(){return hl.z9},useCurrentPopupContext:function(){return To.Zm},useDatePickerContext:function(){return ta.P1},useDownloadLogs:function(){return pn.y},useEnsureOperatorsValid:function(){return oe.Zd},useFieldMode:function(){return oe.b},useFieldNames:function(){return ur.Xd},useFilterActionProps:function(){return Kn.PL},useFilterFieldOptions:function(){return Kn.V8},useFilterFieldProps:function(){return Kn.tM},useFilterOptions:function(){return Kn.xQ},useFixedBlock:function(){return mo},useFixedSchema:function(){return Bo},useFormDataTemplates:function(){return yn},useGetAriaLabelOfAction:function(){return L.HS},useGetAriaLabelOfDrawer:function(){return L.vB},useGetAriaLabelOfModal:function(){return L.QY},useGetAriaLabelOfPopover:function(){return L.t9},useGetFilterFieldOptions:function(){return Kn.Kg},useGetFilterOptions:function(){return Kn.aJ},useGridContext:function(){return na.n1},useGridRowContext:function(){return na.Di},useIsAddNewForm:function(){return oe.l1},useIsAssociationField:function(){return oe.w5},useIsFieldReadPretty:function(){return oe.p3},useIsFileField:function(){return oe.G5},useIsFormReadPretty:function(){return oe.xj},useIsSelectFieldMode:function(){return oe.rx},useLabelUiSchema:function(){return ur.Il},useLinkageAction:function(){return L.zC},usePopupSettings:function(){return Cr.a},useStyles:function(){return au.y},useTabsContext:function(){return ei.g},useTitleFieldOptions:function(){return oe.eT},useUploadStyles:function(){return Lr.$S},useValidateSchema:function(){return oe.q4},useVariableScope:function(){return Ba.ym},useZIndexContext:function(){return L.uq},withSearchParams:function(){return Vo.Q3},zIndexContext:function(){return L.K5}});var i=e(15009),G=e.n(i),l=e(99289),I=e.n(l),x=e(12444),K=e.n(x),o=e(72004),$=e.n(o),m=e(31996),A=e.n(m),f=e(26037),O=e.n(f),n=e(97857),r=e.n(n),u=e(67294),D=e(31601),S=e(14896),C=e(70993),V=e(89127),k=function(T){return I()(G()().mark(function ae(){var de,pe;return G()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.prev=0,Ee.next=3,this.api.request(T);case 3:return pe=Ee.sent,Ee.abrupt("return",pe==null||(de=pe.data)===null||de===void 0?void 0:de.data);case 7:return Ee.prev=7,Ee.t0=Ee.catch(0),Ee.abrupt("return",[]);case 10:case"end":return Ee.stop()}},ae,this,[[0,7]])}))},L=e(76157),M=e(13769),v=e.n(M),g=e(5552),P=e(86201),a=e(80844),Z=e(28459),b=e(57953),y=e(12174),c=e(6145),d=e(78545),p=e(64016),h=e(15195),B=e(23461),t=e(85893),j=["form","children"],U=["form","children","disabled"],z=["request","effects","initialValue","useValues"],W=function(T){var ae=T.form,de=T.children,pe=v()(T,j),Me=(0,a.useField)(),Ee=(0,a.useFieldSchema)(),We=(0,Ft.lI)(ae.createVoidField(r()(r()({},Me.props),{},{basePath:""})));return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:"vertical"},pe),{},{children:(0,t.jsx)(a.RecursionField,{basePath:We.address,schema:Ee,onlyRenderProperties:!0})}))})})},N=function(T){return T.children},E=function(T){var ae=T.form,de=T.children,pe=T.disabled,Me=v()(T,U),Ee=(0,a.useField)(),We=(0,a.useFieldSchema)(),$e=(0,Ft.lI)(ae.createVoidField(r()(r()({},Ee.props),{},{basePath:""}))),Ze=(0,Ft.Co)(We["x-component"],N);return(0,u.useEffect)(function(){ae.disabled=pe||Ee.disabled},[pe,Ee.disabled]),(0,t.jsx)(Z.ZP,{componentDisabled:pe,children:(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:"vertical"},Me),{},{children:(0,t.jsx)(a.FieldContext.Provider,{value:$e,children:(0,t.jsx)(Ze,r()(r()({},Ee.componentProps),{},{children:(0,t.jsx)(a.RecursionField,{basePath:$e.address,schema:We,onlyRenderProperties:!0})}))})}))})})})},w=function(T){var ae=T.request,de=T.initialValue;return ae||function(){return Promise.resolve({data:de})}},Y=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,y.QT)(w(ae),T)},q=(0,u.createContext)(null);q.displayName="FormBlockContext";var ee=(0,a.observer)(function(J){var T=J.request,ae=J.effects,de=J.initialValue,pe=J.useValues,Me=pe===void 0?Y:pe,Ee=v()(J,z),We=(0,a.useFieldSchema)(),$e=(0,a.useField)(),Ze=(0,u.useMemo)(function(){return(0,P.createForm)({effects:ae})},[]),Ye=Me({uid:We["x-uid"],onSuccess:function(qe){return I()(G()().mark(function dt(){return G()().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Ze.reset();case 2:Ze.setValues(qe==null?void 0:qe.data),Ze.setInitialValues(qe==null?void 0:qe.data);case 4:case"end":return rt.stop()}},dt)}))()}},J),Qe=(0,u.useContext)(q);return(0,t.jsx)(q.Provider,{value:{parent:Qe,form:Ze,result:Ye,field:$e,fieldSchema:We},children:(0,t.jsx)(b.Z,{spinning:(Ye==null?void 0:Ye.loading)||!1,children:We["x-decorator"]==="Form"?(0,t.jsx)(E,r()({form:Ze},Ee)):(0,t.jsx)(W,r()({form:Ze},Ee))})})},{displayName:"Form"});ee.Designer=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)(),Me=(0,B.rE)(),Ee=Me.componentNamePrefix;return(0,t.jsxs)(d.aN,{template:pe,title:de||ae,children:[(0,t.jsx)(p.G,{componentName:"".concat(Ee,"Form"),collectionName:ae}),(0,t.jsx)(d.Z5,{}),(0,t.jsx)(d.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var R=e(5537),Q=new R.F5({name:"FormV1Settings",items:[{name:"template",Component:p.G,useComponentProps:function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=(0,B.rE)(),pe=de.componentNamePrefix;return{componentName:"".concat(pe,"Form"),collectionName:ae}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),oe=e(54801),ve=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"FormSettings",template:pe,title:de||ae})},ue=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"ReadPrettyFormSettings",template:pe,title:de||ae})},ge=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"FormDetailsSettings",template:pe,title:de||ae})},Ie=function(){var T=(0,c.useCollection_deprecated)(),ae=T.name,de=T.title,pe=(0,h.zy)();return(0,t.jsx)(d.aN,{schemaSettings:"blockSettings:filterForm",template:pe,title:de||ae})},Oe=e(7340),Ce=e(15503),De=e(68230),_e=e(68400),re=e.n(_e),ce=e(97133),ie=e(84327),X=e(9361),me=e(31019),xe=e(22229),Pe=e(43321),Te=e(24107),Re=e(9780),Ae=e(18686),Se=e(94804),Fe=e(5574),se=e.n(Fe),fe=e(84157),he=e(42075),F=e(34041),te=e(96486),be=e.n(te),le=e(26793),Je=e(32268),Ue=e(60094),st=e(9783),ke=e.n(st),Lt=e(52677),et=e.n(Lt),Kt=e(50888),Bt=e(66309),mt=e(96074),Wt=e(27484),bt=e.n(Wt),Jt=e(44990),ln=e(8341),dn=e(87714),Ft=e(84577),bn=e(4340),mn=e(97937),gt=e(32983),At=e(67668),Dt=e(58812),Tt=e(96695),Nt=e.n(Tt),Vt=e(19632),kt=e.n(Vt),Pn={label:"label",value:"value",color:"color",options:"children"};function Fn(J,T){var ae=[];if(!Array.isArray(J))return ae;for(var de=0;de<J.length;de++){var pe=J[de][T.options];Array.isArray(pe)&&ae.push.apply(ae,kt()(Fn(pe,T))),ae.push(r()({},J[de]))}return ae}function wn(J,T,ae){if(!J)return[];var de=[],pe=Nt()(ae),Me;try{var Ee=function(){var $e=Me.value,Ze=J.find(function(Ye){return Ye[T.value]==$e})||{value:$e,label:$e&&$e.toString()};de.push(Ze)};for(pe.s();!(Me=pe.n()).done;)Ee()}catch(We){pe.e(We)}finally{pe.f()}return de}function eo(J,T,ae){var de=Fn(T,ae),pe=(0,te.castArray)(J).map(function(Me){return(0,fe.isPlainObject)(Me)?Me[ae.value]:Me});return wn(de,ae,pe)}var Zn=(0,a.observer)(function(J){var T=(0,u.useState)(!0),ae=se()(T,2),de=ae[0],pe=ae[1],Me=(0,u.useState)([]),Ee=se()(Me,2),We=Ee[0],$e=Ee[1],Ze=(0,a.useField)(),Ye=(0,At.Hy)();return(0,u.useEffect)(function(){var Qe,Ct=r()(r()({},Pn),J.fieldNames),qe=Ze.dataSource||J.options||(Ye==null?void 0:Ye.uiSchema.enum)||[],dt=eo(Ze.value,qe,Ct);if(!(!(0,ie.isValid)(J.value)&&!dt.length)&&!((0,P.isArrayField)(Ze)&&(Ze==null||(Qe=Ze.value)===null||Qe===void 0?void 0:Qe.length)===0)){var ct=Ze.value!==null&&dt.map(function(rt,It){return(0,t.jsx)(Bt.Z,{color:rt[Ct.color],icon:rt.icon,children:rt[Ct.label]},It)});$e(ct),pe(!1)}},[Ye==null?void 0:Ye.uiSchema.enum,Ze,Ze.dataSource,Ze.value,J.fieldNames,J.options,J.value]),de?null:(0,t.jsx)(Dt.B,{ellipsis:J.ellipsis,children:We})},{displayName:"SelectReadPretty"}),Vn=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],ao=["objectValue","loading","value","rawOptions","defaultValue"],Ut=function(T){return!(0,ie.isValid)(T)||et()(T)==="object"&&Object.keys(T).length===0},nt=function(T){var ae=T.value,de=T.options,pe=T.onChange,Me=T.fieldNames,Ee=T.mode,We=T.loading,$e=T.rawOptions,Ze=T.defaultValue,Ye=v()(T,Vn),Qe=function(qe){var dt;if(!Ut(qe)){var ct=(0,ie.toArr)(qe).filter(function(It){return It}).map(function(It){return(0,fe.isPlainObject)(It)?It[Me.value]:It}),rt=(dt=eo(ct,de,Me))===null||dt===void 0?void 0:dt.map(function(It){return{label:It[Me.label],value:It[Me.value]}});return["tags","multiple"].includes(Ee)||T.multiple?rt:rt.shift()}};return(0,t.jsx)(F.default,r()({role:"button","data-testid":"select-object-".concat(Ee||"single"),value:Qe(ae),defaultValue:Qe(Ze),allowClear:{clearIcon:(0,t.jsx)(bn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:We?(0,t.jsx)(b.Z,{}):(0,t.jsx)(gt.Z,{image:gt.Z.PRESENTED_IMAGE_SIMPLE}),options:de,fieldNames:Me,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(qe,dt){var ct;return((ct=dt==null?void 0:dt[Me.label||"label"])!==null&&ct!==void 0?ct:"").includes(qe)},filterSort:function(qe,dt){var ct,rt;return((ct=qe==null?void 0:qe[Me.label||"label"])!==null&&ct!==void 0?ct:"").toLowerCase().localeCompare(((rt=dt==null?void 0:dt[Me.label||"label"])!==null&&rt!==void 0?rt:"").toLowerCase())},onChange:function(qe){var dt=eo((0,ie.toArr)(qe).map(function(ct){return ct.value}),$e||de,Me);["tags","multiple"].includes(Ee)||T.multiple?pe==null||pe(dt):pe==null||pe(dt.shift()||null)},mode:Ee,tagRender:function(qe){return(0,t.jsx)(Bt.Z,r()(r()({role:"button","aria-label":qe.label,closeIcon:(0,t.jsx)(mn.Z,{role:"button","aria-label":"icon-close-tag"})},qe),{},{children:qe.label}))}},Ye))},ht=function(T,ae){var de;return((de=ae==null?void 0:ae.label)!==null&&de!==void 0?de:"").toLowerCase().includes((T||"").toLowerCase())},yt=(0,a.connect)(function(J){var T=J.objectValue,ae=J.loading,de=J.value,pe=J.rawOptions,Me=J.defaultValue,Ee=v()(J,ao),We=J.multiple?"multiple":J.mode;if(We&&!["multiple","tags"].includes(We)&&(We=void 0),T)return(0,t.jsx)(nt,r()(r()({rawOptions:pe},Ee),{},{defaultValue:Me,value:de,mode:We,loading:ae}));var $e=function(Ye){return["tags","multiple"].includes(J.mode)||J.multiple?Ye?(0,ie.toArr)(Ye):void 0:Ye};return(0,t.jsx)(F.default,r()(r()({role:"button","data-testid":"select-".concat(We||"single"),showSearch:!0,filterOption:ht,allowClear:{clearIcon:(0,t.jsx)(bn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:ae?(0,t.jsx)(b.Z,{}):(0,t.jsx)(gt.Z,{image:gt.Z.PRESENTED_IMAGE_SIMPLE}),value:$e(de),defaultValue:$e(Me),tagRender:function(Ye){return(0,t.jsx)(Bt.Z,r()(r()({role:"button","aria-label":Ye.label,closeIcon:(0,t.jsx)(mn.Z,{role:"button","aria-label":"icon-close-tag"})},Ye),{},{children:Ye.label}))}},Ee),{},{onChange:function(Ye){var Qe;(Qe=J.onChange)===null||Qe===void 0||Qe.call(J,Ye===void 0?null:Ye)},mode:We}))},(0,a.mapProps)({dataSource:"options"},function(J,T){return r()(r()({},J),{},{fieldNames:r()(r()({},Pn),J.fieldNames),suffixIcon:T!=null&&T.loading||T!=null&&T.validating?(0,t.jsx)(Kt.Z,{}):J.suffixIcon})}),(0,a.mapReadPretty)(Zn)),xt=yt;xt.ReadPretty=Zn;var jt=xt,Rt=e(36586),Yt=function(T,ae){return(0,te.castArray)(T).filter(function(de){return de!=null}).map(function(de){return et()(de)==="object"?de[ae.value]:de})},on=(0,a.observer)(function(J){var T=r()(r()({},Pn),J.fieldNames),ae=(0,a.useField)(),de=(0,a.useFieldSchema)(),pe=(0,Rt.a)(),Me=(0,L.XC)(),Ee=Me.snapshot,We=(0,y.QT)(Ee?I()(G()().mark(function Ze(){return G()().wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",{data:pe[de.name]});case 1:case"end":return Qe.stop()}},Ze)})):r()(r()({action:"list"},J.service),{},{params:{paginate:!1,filter:ke()({},T.value,{$in:Yt(ae.value,T)})}}),{refreshDeps:[J.service,ae.value]}),$e=We.data;return(0,t.jsx)(xt.ReadPretty,r()(r()({},J),{},{options:$e==null?void 0:$e.data}))},{displayName:"ReadPretty"}),tn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],vn="N/A",_n=(0,Ce.t)((0,a.connect)(function(J){var T,ae,de=J.fieldNames,pe=de===void 0?{}:de,Me=J.service,Ee=Me===void 0?{}:Me,We=J.wait,$e=We===void 0?300:We,Ze=J.value,Ye=J.defaultValue,Qe=J.objectValue,Ct=J.manual,qe=Ct===void 0?!0:Ct,dt=J.mapOptions,ct=J.targetField,rt=J.CustomDropdownRender,It=J.optionFilter,Et=J.dataSource,hn=J.toOptionsItem,sn=hn===void 0?function(er){return er}:hn,Dn=J.popupMatchSelectWidth,Nn=Dn===void 0?!1:Dn,wt=v()(J,tn),xn=(0,Jt.FC)(),Sn=(0,ln.FE)(Et||xn),kn=(0,u.useState)(!1),On=se()(kn,2),Mn=On[0],Gn=On[1],An=(0,u.useRef)(!1),Ro=(0,a.useFieldSchema)(),vo=((T=Ro["x-component-props"])===null||T===void 0?void 0:T.addMode)==="quickAdd",_o=(0,c.useCollection_deprecated)(),oo=_o.getField,io=(0,u.useRef)(null),Wn=(0,c.useCollectionManager_deprecated)(),Rn=Wn.getCollectionJoinField,qn=Wn.getInterface,uo=Ro["x-collection-field"]||Ro.name,Yn=oo(uo)||Rn(uo),Qn=ct||(Yn==null?void 0:Yn.target)&&(pe==null?void 0:pe.label)&&Rn("".concat(Yn.target,".").concat(pe.label)),so=(0,u.useMemo)(function(){if(Qn!=null&&Qn.interface){var er,wo=qn(Qn.interface),xr=(wo==null||(er=wo.filterable)===null||er===void 0?void 0:er.operators[0].value)||"$includes";return Qn.type==="string"?"$includes":xr}return"$includes"},[Qn]),Hn=(0,Ft.eJ)(),Jn=(0,u.useCallback)(function(er){try{return er.filter(function(wo){return["number","string"].includes(et()(wo[pe.value]))||!wo[pe.value]}).map(function(wo){var xr,br,hr=Hn(wo[pe.label]);if(Qn!=null&&(xr=Qn.uiSchema)!==null&&xr!==void 0&&xr.enum)if(Array.isArray(hr))hr=hr.map(function(ra,La){var fa=Qn.uiSchema.enum.find(function(xl){return xl.value===ra});return fa?(0,t.jsx)(Bt.Z,{role:"button",color:fa.color,style:{marginRight:3},children:(fa==null?void 0:fa.label)||ra},La):(0,t.jsx)(Bt.Z,{role:"button",children:ra},ra)}).reverse();else{var Fr=Qn.uiSchema.enum.find(function(ra){return ra.value===hr});Fr&&(hr=(0,t.jsx)(Bt.Z,{role:"button",color:Fr.color,children:Fr.label}))}if((Qn==null?void 0:Qn.type)==="date"&&(hr=bt()(hr).format("YYYY-MM-DD")),dt){var oa;return dt((oa={},ke()(oa,pe.label,hr||vn),ke()(oa,pe.value,wo[pe.value]),oa))}return r()(r()({},wo),{},(br={},ke()(br,pe.label,hr||vn),ke()(br,pe.value,wo[pe.value]),br))}).filter(Boolean)}catch(wo){return console.error(wo),er}},[Qn==null?void 0:Qn.uiSchema,pe]),jo=(0,y.QT)(r()(r()({action:"list"},Ee),{},{headers:Sn,params:r()(r()({pageSize:200},Ee==null?void 0:Ee.params),{},{filter:Ee==null||(ae=Ee.params)===null||ae===void 0?void 0:ae.filter})}),r()({manual:qe,debounceWait:$e},Ee.defaultParams?{defaultParams:[Ee.defaultParams]}:{})),co=jo.data,Yo=jo.run,tr=jo.loading,rr=(0,u.useMemo)(function(){return JSON.stringify({service:Ee,fieldNames:pe})},[Ee,pe]),fr=(0,u.useCallback)(function(){return io.current&&rt?(0,t.jsx)(rt,{search:io.current,callBack:function(){io.current=null,Gn(!1)}}):null},[io.current]);(0,u.useEffect)(function(){An.current&&Yo()},[rr]);var $r=function(){var er=I()(G()().mark(function wo(xr){var br;return G()().wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:Yo({filter:(0,dn.EO)([xr?ke()({},pe.label,ke()({},so,xr)):{},Ee==null||(br=Ee.params)===null||br===void 0?void 0:br.filter])}),io.current=xr;case 2:case"end":return Fr.stop()}},wo)}));return function(xr){return er.apply(this,arguments)}}(),kr=(0,u.useMemo)(function(){var er,wo=Ze||Ye;if(!(co!=null&&(er=co.data)!==null&&er!==void 0&&er.length))return wo!=null?Array.isArray(wo)?wo:[wo]:[];var xr=wo!=null&&(Array.isArray(wo)?wo.map(function(hr){return r()(r()({},hr),{},ke()({},pe.value,hr[pe.value]||hr))}):[r()(r()({},wo),{},ke()({},pe.value,wo[pe.value]||wo))])||[],br=typeof It=="function"?co.data.filter(It):co.data;return(0,te.uniqBy)(br.concat(xr??[]),pe.value)},[Ze,Ye,co==null?void 0:co.data,pe.value,It]),wr=function(wo){Gn(wo),io.current=null,wo&&Yo(),An.current=!0};return(0,t.jsx)(xt,r()(r()({open:Mn,popupMatchSelectWidth:Nn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:pe,onSearch:$r,onDropdownVisibleChange:wr,objectValue:Qe,value:Ze,defaultValue:Ye},wt),{},{loading:co?tr:!0,options:sn(Jn(kr)),rawOptions:kr,dropdownRender:function(wo){var xr=kr.some(function(br){return br[pe.label]===io.current});return(0,t.jsx)(t.Fragment,{children:vo?(0,t.jsxs)(t.Fragment,{children:[!((co==null?void 0:co.data.length)===0&&io!==null&&io!==void 0&&io.current)&&wo,(co==null?void 0:co.data.length)>0&&(io==null?void 0:io.current)&&!xr&&(0,t.jsx)(mt.Z,{style:{margin:0}}),!xr&&(0,t.jsx)(fr,{})]}):wo})}}))},(0,a.mapProps)({dataSource:"options"},function(J,T){var ae,de=(0,a.useFieldSchema)();return r()(r()({},J),{},{fieldNames:r()(r()(r()(r()({},Pn),J.fieldNames),T.componentProps.fieldNames),(ae=de["x-component-props"])===null||ae===void 0?void 0:ae.fieldNames),suffixIcon:T!=null&&T.loading||T!=null&&T.validating?(0,t.jsx)(Kt.Z,{}):J.suffixIcon})}),(0,a.mapReadPretty)(on))),Xt=_n;Xt.ReadPretty=on;var nn=null,yn=function(){var T=(0,a.useFieldSchema)(),ae=(0,le.$)(),de=ae.t,pe=(0,Oe.bz)(),Me=pe.duplicateData,Ee=(0,c.useCollectionManager_deprecated)(),We=Ee.getCollectionJoinField;if(Me)return Me;var $e=Ht(T),Ze=$e.items,Ye=Ze===void 0?[]:Ze,Qe=$e.display,Ct=Qe===void 0?!0:Qe;Ye.forEach(function(ct){try{var rt;ct.fields=(rt=ct.fields)===null||rt===void 0?void 0:rt.map(function(It){var Et=We("".concat(ct.collection,".").concat(It));return Et?It:""}).filter(Boolean)}catch(It){(0,fe.error)(It),ct.fields=[]}});var qe=[{key:"none",title:de("None")}].concat(Ye.map(function(ct,rt){return r()(r()({key:rt},ct),{},{isLeaf:ct.dataId!==null&&ct.dataId!==void 0,titleCollectionField:(ct==null?void 0:ct.titleField)&&We("".concat(ct.collection,".").concat(ct.titleField))})})),dt=Ye.find(function(ct){return ct.default});return{templates:qe,display:Ct,defaultTemplate:dt,enabled:Ye.length>0&&Ye.every(function(ct){return ct.dataId||ct.dataScope})}},Tn=function(T){var ae=T.style,de=ae===void 0?{}:ae,pe=T.form,Me=(0,Ue.dQ)(),Ee=Me.token,We=yn(),$e=We.templates,Ze=We.display,Ye=We.enabled,Qe=We.defaultTemplate,Ct=(0,c.useCollectionManager_deprecated)(),qe=Ct.getCollectionJoinField,dt=(0,Je.ss)($e),ct=(0,u.useState)((Qe==null?void 0:Qe.key)||"none"),rt=se()(ct,2),It=rt[0],Et=rt[1],hn=(0,u.useState)(null),sn=se()(hn,2),Dn=sn[0],Nn=sn[1],wt=(0,y.LY)(),xn=(0,le.$)(),Sn=xn.t,kn=(0,Se.FC)(),On=(0,Se.on)(kn);(0,u.useEffect)(function(){Ye&&Qe&&pe&&(pe.__template=!0,Qe.key==="duplicate"&&Ro(Qe.dataId,Qe,On))},[]),(0,u.useEffect)(function(){dt!=null&&dt.some(function(_o){return _o.key===It})||An("none")},[dt]);var Mn=(0,u.useMemo)(function(){return r()({display:"flex",alignItems:"center",backgroundColor:Ee.colorFillAlter,padding:Ee.padding},de)},[de,Ee.colorFillAlter]),Gn=(0,u.useMemo)(function(){return{fontSize:Ee.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:Ee.marginXS}},[Ee.fontSize,Ee.marginXS]),An=(0,u.useCallback)(function(){var _o=I()(G()().mark(function oo(io){return G()().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:Et(io),Nn(null),pe==null||pe.reset();case 3:case"end":return Rn.stop()}},oo)}));return function(oo){return _o.apply(this,arguments)}}(),[]),Ro=(0,u.useCallback)(function(){var _o=I()(G()().mark(function oo(io,Wn,Rn){var qn;return G()().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:qn=r()(r()({},Wn),{},{dataId:io}),Nn(Wn),Ot(wt,qn,Rn).then(function(Qn){return pe&&Qn&&(pe.reset(),pe.__template=!0,(0,fe.forEach)(Qn,function(so,Hn){if(so){var Jn;pe.values[Hn]=so,pe==null||(Jn=pe.setInitialValuesIn)===null||Jn===void 0||Jn.call(pe,Hn,so)}})),Qn}).catch(function(Qn){console.error(Qn)});case 3:case"end":return Yn.stop()}},oo)}));return function(oo,io,Wn){return _o.apply(this,arguments)}}(),[]);if(!Ye||!Ze)return null;var vo=dt==null?void 0:dt.find(function(_o){return _o.key===It});return(0,t.jsx)("div",{style:Mn,children:(0,t.jsxs)(he.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Gn,children:[Sn("Data template"),": "]}),(0,t.jsx)(F.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:dt,fieldNames:{label:"title",value:"key"},value:It,onChange:An}),It!=="none"&&vo&&(0,t.jsx)(Xt,{style:{width:220},fieldNames:{label:vo==null?void 0:vo.titleField,value:"id"},target:vo==null?void 0:vo.collection,value:Dn,objectValue:!0,service:{resource:vo==null?void 0:vo.collection,params:{filter:vo==null?void 0:vo.dataScope}},onChange:function(oo){return Ro(oo==null?void 0:oo.id,r()(r()({},oo),vo),On)},targetField:qe("".concat(vo==null?void 0:vo.collection,".").concat(vo.titleField))})]})})};function Ht(J){var T=(0,Oe.Fi)(J);return T?be().cloneDeep(T["x-data-templates"])||{}:{}}function Ot(J,T,ae){return Ne.apply(this,arguments)}function Ne(){return Ne=I()(G()().mark(function J(T,ae,de){return G()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!(ae.fields.length===0||!ae.dataId)){Me.next=2;break}return Me.abrupt("return");case 2:return Me.abrupt("return",T.resource(ae.collection,void 0,de).get({filterByTk:ae.dataId,fields:ae.fields,isTemplate:!0}).then(function(Ee){var We;return(We=Ee.data)===null||We===void 0?void 0:We.data}));case 3:case"end":return Me.stop()}},J)})),Ne.apply(this,arguments)}var Ve=e(3192),Be=function(){var T,ae,de=(0,Ae.aZ)(),pe=(0,a.useFieldSchema)(),Me=X.Z.useToken(),Ee=Me.token,We=(0,Ft.ng)(),$e=We.designable,Ze=(0,Ve.gp)()||{},Ye=Ze.heightProps,Qe=Ye||{},Ct=Qe.title,qe=yn(),dt=qe.display,ct=qe.enabled,rt=pe.reduceProperties(function(Gn,An){return An["x-component"]==="ActionBar"?An:Gn}),It=Object.keys((rt==null?void 0:rt.properties)||{}).length>0,Et=pe==null||(T=pe.parent)===null||T===void 0||(T=T["x-decorator"])===null||T===void 0||(ae=T.includes)===null||ae===void 0?void 0:ae.call(T,"FormBlockProvider"),hn=It||$e?Ee.controlHeight+(Et?1:2)*Ee.marginLG:Ee.marginLG,sn=Ct?Ee.fontSizeLG*Ee.lineHeightLG+Ee.padding*2-1:0,Dn=(0,Se.hS)()||{},Nn=Dn.data,wt=(Nn==null?void 0:Nn.meta)||{},xn=wt.count,Sn=wt.pageSize,kn=xn>Sn,On=kn?Ee.controlHeightSM+1*Ee.paddingLG:0,Mn=dt&&ct?Ee.controlHeight+2*Ee.padding+Ee.margin:0;return de-hn-Ee.paddingLG-sn-On-Mn},ye=e(88756),ze,tt,Ge=["form","children"],Ke=["form","children","disabled"],je=["form","disabled"],Xe=function(T){var ae=T.form,de=T.children,pe=v()(T,Ge),Me=(0,a.useField)(),Ee=(0,a.useFieldSchema)(),We=ye.Gn===null||ye.Gn===void 0?void 0:(0,ye.Gn)(Ee),$e=(0,Ft.lI)(ae.createVoidField(r()(r()({},Me.props),{},{basePath:""}))),Ze=Be(),Ye=X.Z.useToken(),Qe=Ye.token,Ct=(We==null?void 0:We["x-component-props"])||{},qe=Ct.layout,dt=qe===void 0?"vertical":qe,ct=Ct.labelAlign,rt=ct===void 0?"left":ct,It=Ct.labelWidth,Et=It===void 0?120:It,hn=Ct.labelWrap,sn=hn===void 0?!0:hn;return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:ae,children:(0,t.jsx)(g.FormLayout,r()(r()({layout:dt},pe),{},{labelAlign:rt,labelWidth:dt==="horizontal"?Et:null,labelWrap:sn,children:(0,t.jsx)("div",{className:(0,ce.css)(ze||(ze=re()([`
704
704
  .nb-grid-container {
705
705
  height: `,`;
706
706
  overflow-y: auto;