@nocobase/app 1.4.0-beta.8 → 1.4.0-beta.9

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