包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
10 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9567],{41412:function(){},86743:function(xe,p,a){"use strict";var b=a(22122),i=a(28481),G=a(30470),$=a(67294),V=a(71577),re=a(73839);function X(j){return!!(j&&!!j.then)}var n=function(P){var D=$.useRef(!1),K=$.useRef(null),q=(0,G.Z)(!1),W=(0,i.Z)(q,2),le=W[0],Y=W[1],w=P.close,U=function(){w==null||w.apply(void 0,arguments)};$.useEffect(function(){var S=null;return P.autoFocus&&(S=setTimeout(function(){var O;(O=K.current)===null||O===void 0||O.focus()})),function(){S&&clearTimeout(S)}},[]);var ee=function(O){!X(O)||(Y(!0),O.then(function(){Y(!1,!0),U.apply(void 0,arguments),D.current=!1},function(I){console.error(I),Y(!1,!0),D.current=!1}))},ce=function(O){var I=P.actionFn;if(!D.current){if(D.current=!0,!I){U();return}var B;if(P.emitEvent){if(B=I(O),P.quitOnNullishReturnValue&&!X(B)){D.current=!1,U(O);return}}else if(I.length)B=I(w),D.current=!1;else if(B=I(),!B){U();return}ee(B)}},te=P.type,ie=P.children,ue=P.prefixCls,ne=P.buttonProps;return $.createElement(V.Z,(0,b.Z)({},(0,re.n)(te),{onClick:ce,loading:le,prefixCls:ue},ne,{ref:K}),ie)};p.Z=n},50146:function(xe,p,a){"use strict";a.d(p,{Z:function(){return we}});var b=a(85061),i=a(22122),G=a(15873),$=a(73218),V=a(57119),re=a(68628),X=a(38135),n=a(67294),j=a(88182),P=a(96156),D=a(94184),K=a.n(D),q=a(86743),W=a(33603),le=a(54549),Y=a(57315),w=a(71577),U=a(73839),ee=a(53124),ce=a(65223),te=a(42051),ie=a(4173),ue=a(31808),ne=a(83008),S=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(r[o[l]]=t[o[l]]);return r},O,I=function(e){O={x:e.pageX,y:e.pageY},setTimeout(function(){O=null},100)};(0,ue.jD)()&&document.documentElement.addEventListener("click",I,!0);var B=function(e){var r,o,l=n.useContext(ee.E_),u=l.getPopupContainer,v=l.getPrefixCls,Z=l.direction,s=function(m){var R=e.onCancel;R==null||R(m)},C=function(m){var R=e.onOk;R==null||R(m)},f=e.prefixCls,c=e.footer,d=e.visible,g=e.open,y=g===void 0?!1:g,h=e.wrapClassName,x=e.centered,E=e.getContainer,N=e.closeIcon,k=e.focusTriggerAfterClose,F=k===void 0?!0:k,T=e.width,L=T===void 0?520:T,H=S(e,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),M=v("modal",f),oe=v(),se=n.createElement(te.Z,{componentName:"Modal",defaultLocale:(0,ne.A)()},function(Q){var m=e.okText,R=e.okType,ve=R===void 0?"primary":R,me=e.cancelText,ae=e.confirmLoading,Ce=ae===void 0?!1:ae;return n.createElement(n.Fragment,null,n.createElement(w.Z,(0,i.Z)({onClick:s},e.cancelButtonProps),me||Q.cancelText),n.createElement(w.Z,(0,i.Z)({},(0,U.n)(ve),{loading:Ce,onClick:C},e.okButtonProps),m!=null?m:Q.okText))}),fe=n.createElement("span",{className:"".concat(M,"-close-x")},N||n.createElement(le.Z,{className:"".concat(M,"-close-icon")})),de=K()(h,(r={},(0,P.Z)(r,"".concat(M,"-centered"),!!x),(0,P.Z)(r,"".concat(M,"-wrap-rtl"),Z==="rtl"),r));return n.createElement(ie.BR,null,n.createElement(ce.Ux,{status:!0,override:!0},n.createElement(Y.default,(0,i.Z)({width:L},H,{getContainer:E===void 0?u:E,prefixCls:M,wrapClassName:de,footer:c===void 0?se:c,visible:y||d,mousePosition:(o=H.mousePosition)!==null&&o!==void 0?o:O,onClose:s,closeIcon:fe,focusTriggerAfterClose:F,transitionName:(0,W.mL)(oe,"zoom",e.transitionName),maskTransitionName:(0,W.mL)(oe,"fade",e.maskTransitionName)}))))},ge=B,be=function(e){var r=e.icon,o=e.onCancel,l=e.onOk,u=e.close,v=e.zIndex,Z=e.afterClose,s=e.visible,C=e.open,f=e.keyboard,c=e.centered,d=e.getContainer,g=e.maskStyle,y=e.okText,h=e.okButtonProps,x=e.cancelText,E=e.cancelButtonProps,N=e.direction,k=e.prefixCls,F=e.wrapClassName,T=e.rootPrefixCls,L=e.iconPrefixCls,H=e.bodyStyle,M=e.closable,oe=M===void 0?!1:M,se=e.closeIcon,fe=e.modalRender,de=e.focusTriggerAfterClose,Q=e.okType||"primary",m="".concat(k,"-confirm"),R="okCancel"in e?e.okCancel:!0,ve=e.width||416,me=e.style||{},ae=e.mask===void 0?!0:e.mask,Ce=e.maskClosable===void 0?!1:e.maskClosable,Me=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",je=K()(m,"".concat(m,"-").concat(e.type),(0,P.Z)({},"".concat(m,"-rtl"),N==="rtl"),e.className),Ke=R&&n.createElement(q.Z,{actionFn:o,close:u,autoFocus:Me==="cancel",buttonProps:E,prefixCls:"".concat(T,"-btn")},x);return n.createElement(j.ZP,{prefixCls:T,iconPrefixCls:L,direction:N},n.createElement(ge,{prefixCls:k,className:je,wrapClassName:K()((0,P.Z)({},"".concat(m,"-centered"),!!e.centered),F),onCancel:function(){return u==null?void 0:u({triggerCancel:!0})},open:C||s,title:"",footer:"",transitionName:(0,W.mL)(T,"zoom",e.transitionName),maskTransitionName:(0,W.mL)(T,"fade",e.maskTransitionName),mask:ae,maskClosable:Ce,maskStyle:g,style:me,bodyStyle:H,width:ve,zIndex:v,afterClose:Z,keyboard:f,centered:c,getContainer:d,closable:oe,closeIcon:se,modalRender:fe,focusTriggerAfterClose:de},n.createElement("div",{className:"".concat(m,"-body-wrapper")},n.createElement("div",{className:"".concat(m,"-body")},r,e.title===void 0?null:n.createElement("span",{className:"".concat(m,"-title")},e.title),n.createElement("div",{className:"".concat(m,"-content")},e.content)),n.createElement("div",{className:"".concat(m,"-btns")},Ke,n.createElement(q.Z,{type:Q,actionFn:l,close:u,autoFocus:Me==="ok",buttonProps:h,prefixCls:"".concat(T,"-btn")},y)))))},Ee=be,Ae=[],z=Ae,Ie=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(r[o[l]]=t[o[l]]);return r},Pe="";function Ne(){return Pe}function J(t){var e=document.createDocumentFragment(),r=(0,i.Z)((0,i.Z)({},t),{close:v,open:!0}),o;function l(){for(var s=arguments.length,C=new Array(s),f=0;f<s;f++)C[f]=arguments[f];var c=C.some(function(y){return y&&y.triggerCancel});t.onCancel&&c&&t.onCancel.apply(t,[function(){}].concat((0,b.Z)(C.slice(1))));for(var d=0;d<z.length;d++){var g=z[d];if(g===v){z.splice(d,1);break}}(0,X.v)(e)}function u(s){var C=s.okText,f=s.cancelText,c=s.prefixCls,d=Ie(s,["okText","cancelText","prefixCls"]);clearTimeout(o),o=setTimeout(function(){var g=(0,ne.A)(),y=(0,j.w6)(),h=y.getPrefixCls,x=y.getIconPrefixCls,E=h(void 0,Ne()),N=c||"".concat(E,"-modal"),k=x();(0,X.s)(n.createElement(Ee,(0,i.Z)({},d,{prefixCls:N,rootPrefixCls:E,iconPrefixCls:k,okText:C||(d.okCancel?g.okText:g.justOkText),cancelText:f||g.cancelText})),e)})}function v(){for(var s=this,C=arguments.length,f=new Array(C),c=0;c<C;c++)f[c]=arguments[c];r=(0,i.Z)((0,i.Z)({},r),{open:!1,afterClose:function(){typeof t.afterClose=="function"&&t.afterClose(),l.apply(s,f)}}),r.visible&&delete r.visible,u(r)}function Z(s){typeof s=="function"?r=s(r):r=(0,i.Z)((0,i.Z)({},r),s),u(r)}return u(r),z.push(v),{destroy:v,update:Z}}function ye(t){return(0,i.Z)((0,i.Z)({icon:n.createElement(V.Z,null),okCancel:!1},t),{type:"warning"})}function Te(t){return(0,i.Z)((0,i.Z)({icon:n.createElement(re.Z,null),okCancel:!1},t),{type:"info"})}function Oe(t){return(0,i.Z)((0,i.Z)({icon:n.createElement(G.Z,null),okCancel:!1},t),{type:"success"})}function Ze(t){return(0,i.Z)((0,i.Z)({icon:n.createElement($.Z,null),okCancel:!1},t),{type:"error"})}function he(t){return(0,i.Z)((0,i.Z)({icon:n.createElement(V.Z,null),okCancel:!0},t),{type:"confirm"})}function De(t){var e=t.rootPrefixCls;Pe=e}var _=a(28481);function Se(){var t=n.useState([]),e=(0,_.Z)(t,2),r=e[0],o=e[1],l=n.useCallback(function(u){return o(function(v){return[].concat((0,b.Z)(v),[u])}),function(){o(function(v){return v.filter(function(Z){return Z!==u})})}},[]);return[r,l]}var Be=a(85636),Fe=function(e,r){var o=e.afterClose,l=e.config,u=n.useState(!0),v=(0,_.Z)(u,2),Z=v[0],s=v[1],C=n.useState(l),f=(0,_.Z)(C,2),c=f[0],d=f[1],g=n.useContext(ee.E_),y=g.direction,h=g.getPrefixCls,x=h("modal"),E=h(),N=function(){s(!1);for(var F=arguments.length,T=new Array(F),L=0;L<F;L++)T[L]=arguments[L];var H=T.some(function(M){return M&&M.triggerCancel});c.onCancel&&H&&c.onCancel.apply(c,[function(){}].concat((0,b.Z)(T.slice(1))))};return n.useImperativeHandle(r,function(){return{destroy:N,update:function(F){d(function(T){return(0,i.Z)((0,i.Z)({},T),F)})}}}),n.createElement(te.Z,{componentName:"Modal",defaultLocale:Be.Z.Modal},function(k){return n.createElement(Ee,(0,i.Z)({prefixCls:x,rootPrefixCls:E},c,{close:N,open:Z,afterClose:o,okText:c.okText||(c.okCancel?k.okText:k.justOkText),direction:y,cancelText:c.cancelText||k.cancelText}))})},Le=n.forwardRef(Fe),ke=0,$e=n.memo(n.forwardRef(function(t,e){var r=Se(),o=(0,_.Z)(r,2),l=o[0],u=o[1];return n.useImperativeHandle(e,function(){return{patchElement:u}},[]),n.createElement(n.Fragment,null,l)}));function We(){var t=n.useRef(null),e=n.useState([]),r=(0,_.Z)(e,2),o=r[0],l=r[1];n.useEffect(function(){if(o.length){var Z=(0,b.Z)(o);Z.forEach(function(s){s()}),l([])}},[o]);var u=n.useCallback(function(Z){return function(C){var f;ke+=1;var c=n.createRef(),d,g=n.createElement(Le,{key:"modal-".concat(ke),config:Z(C),ref:c,afterClose:function(){d==null||d()}});return d=(f=t.current)===null||f===void 0?void 0:f.patchElement(g),{destroy:function(){function h(){var x;(x=c.current)===null||x===void 0||x.destroy()}c.current?h():l(function(x){return[].concat((0,b.Z)(x),[h])})},update:function(h){function x(){var E;(E=c.current)===null||E===void 0||E.update(h)}c.current?x():l(function(E){return[].concat((0,b.Z)(E),[x])})}}}},[]),v=n.useMemo(function(){return{info:u(Te),success:u(Oe),error:u(Ze),warning:u(ye),confirm:u(he)}},[]);return[v,n.createElement($e,{ref:t})]}function Re(t){return J(ye(t))}var A=ge;A.useModal=We,A.info=function(e){return J(Te(e))},A.success=function(e){return J(Oe(e))},A.error=function(e){return J(Ze(e))},A.warning=Re,A.warn=Re,A.confirm=function(e){return J(he(e))},A.destroyAll=function(){for(;z.length;){var e=z.pop();e&&e()}},A.config=De;var we=A},71194:function(xe,p,a){"use strict";var b=a(38663),i=a.n(b),G=a(41412),$=a.n(G),V=a(57663)}}]);