包含后厨 团餐 门店分支
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
15 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7973],{63252:function(){},93349:function(Je,Be,l){"use strict";l.d(Be,{Z:function(){return Dt}});var u=l(22122),t=l(67294),w=l(96156),be=l(55507),je=l(90484),Re=l(85061),de=l(28481),Xe=l(94184),b=l.n(Xe),Ke=l(13059),Ye=l(21770),Qe=l(73935),Te=l(53124),qe=l(98866),_e=l(42051),et=l(85636),tt=l(20406),We=l(7085),nt=l(74962),at=l(4810),$e=l(63441),ze=l(71577),rt=l(57838),ot=l(33603),Le=l(96159);function Se(n){return(0,u.Z)((0,u.Z)({},n),{lastModified:n.lastModified,lastModifiedDate:n.lastModifiedDate,name:n.name,size:n.size,type:n.type,uid:n.uid,percent:0,originFileObj:n})}function Fe(n,e){var o=(0,Re.Z)(e),a=o.findIndex(function(c){var v=c.uid;return v===n.uid});return a===-1?o.push(n):o[a]=n,o}function Me(n,e){var o=n.uid!==void 0?"uid":"name";return e.filter(function(a){return a[o]===n[o]})[0]}function it(n,e){var o=n.uid!==void 0?"uid":"name",a=e.filter(function(c){return c[o]!==n[o]});return a.length===e.length?null:a}var lt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=e.split("/"),a=o[o.length-1],c=a.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(c)||[""])[0]},ke=function(e){return e.indexOf("image/")===0},st=function(e){if(e.type&&!e.thumbUrl)return ke(e.type);var o=e.thumbUrl||e.url||"",a=lt(o);return/^data:image\//.test(o)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(a)?!0:!(/^data:/.test(o)||a)},Y=200;function ct(n){return new Promise(function(e){if(!n.type||!ke(n.type)){e("");return}var o=document.createElement("canvas");o.width=Y,o.height=Y,o.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Y,"px; height: ").concat(Y,"px; z-index: 9999; display: none;"),document.body.appendChild(o);var a=o.getContext("2d"),c=new Image;if(c.onload=function(){var I=c.width,y=c.height,r=Y,P=Y,E=0,O=0;I>y?(P=y*(Y/I),O=-(P-r)/2):(r=I*(Y/y),E=-(r-P)/2),a.drawImage(c,E,O,r,P);var j=o.toDataURL();document.body.removeChild(o),e(j)},c.crossOrigin="anonymous",n.type.startsWith("image/svg+xml")){var v=new FileReader;v.addEventListener("load",function(){v.result&&(c.src=v.result)}),v.readAsDataURL(n)}else c.src=window.URL.createObjectURL(n)})}var dt=l(73171),ut=l(90631),vt=l(95357),mt=l(82833),ft=l(94199),pt=t.forwardRef(function(n,e){var o,a=n.prefixCls,c=n.className,v=n.style,I=n.locale,y=n.listType,r=n.file,P=n.items,E=n.progress,O=n.iconRender,j=n.actionIconRender,K=n.itemRender,N=n.isImgUrl,Ze=n.showPreviewIcon,Q=n.showRemoveIcon,q=n.showDownloadIcon,_=n.previewIcon,ie=n.removeIcon,ee=n.downloadIcon,W=n.onPreview,z=n.onDownload,le=n.onClose,se,B,te=r.status,ue=t.useState(te),ne=(0,de.Z)(ue,2),x=ne[0],ve=ne[1];t.useEffect(function(){te!=="removed"&&ve(te)},[te]);var me=t.useState(!1),fe=(0,de.Z)(me,2),pe=fe[0],Pe=fe[1],k=t.useRef(null);t.useEffect(function(){return k.current=setTimeout(function(){Pe(!0)},300),function(){k.current&&clearTimeout(k.current)}},[]);var De="".concat(a,"-span"),ae=O(r),re=t.createElement("div",{className:"".concat(a,"-text-icon")},ae);if(y==="picture"||y==="picture-card")if(x==="uploading"||!r.thumbUrl&&!r.url){var V,G=b()((V={},(0,w.Z)(V,"".concat(a,"-list-item-thumbnail"),!0),(0,w.Z)(V,"".concat(a,"-list-item-file"),x!=="uploading"),V));re=t.createElement("div",{className:G},ae)}else{var oe,ge=(N==null?void 0:N(r))?t.createElement("img",{src:r.thumbUrl||r.url,alt:r.name,className:"".concat(a,"-list-item-image"),crossOrigin:r.crossOrigin}):ae,R=b()((oe={},(0,w.Z)(oe,"".concat(a,"-list-item-thumbnail"),!0),(0,w.Z)(oe,"".concat(a,"-list-item-file"),N&&!N(r)),oe));re=t.createElement("a",{className:R,onClick:function(U){return W(r,U)},href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ge)}var Ue=b()((o={},(0,w.Z)(o,"".concat(a,"-list-item"),!0),(0,w.Z)(o,"".concat(a,"-list-item-").concat(x),!0),(0,w.Z)(o,"".concat(a,"-list-item-list-type-").concat(y),!0),o)),xe=typeof r.linkProps=="string"?JSON.parse(r.linkProps):r.linkProps,A=Q?j((typeof ie=="function"?ie(r):ie)||t.createElement(dt.Z,null),function(){return le(r)},a,I.removeFile):null,we=q&&x==="done"?j((typeof ee=="function"?ee(r):ee)||t.createElement(ut.Z,null),function(){return z(r)},a,I.downloadFile):null,he=y!=="picture-card"&&t.createElement("span",{key:"download-delete",className:b()("".concat(a,"-list-item-card-actions"),{picture:y==="picture"})},we,A),H=b()("".concat(a,"-list-item-name")),T=r.url?[t.createElement("a",(0,u.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:r.name},xe,{href:r.url,onClick:function(U){return W(r,U)}}),r.name),he]:[t.createElement("span",{key:"view",className:H,onClick:function(U){return W(r,U)},title:r.name},r.name),he],m={pointerEvents:"none",opacity:.5},d=Ze?t.createElement("a",{href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:r.url||r.thumbUrl?void 0:m,onClick:function(U){return W(r,U)},title:I.previewFile},typeof _=="function"?_(r):_||t.createElement(vt.Z,null)):null,Z=y==="picture-card"&&x!=="uploading"&&t.createElement("span",{className:"".concat(a,"-list-item-actions")},d,x==="done"&&we,A),D;r.response&&typeof r.response=="string"?D=r.response:D=((se=r.error)===null||se===void 0?void 0:se.statusText)||((B=r.error)===null||B===void 0?void 0:B.message)||I.uploadError;var $=t.createElement("span",{className:De},re,T),Ie=t.useContext(Te.E_),ce=Ie.getPrefixCls,ye=ce(),Ee=t.createElement("div",{className:Ue},t.createElement("div",{className:"".concat(a,"-list-item-info")},$),Z,pe&&t.createElement($e.default,{motionName:"".concat(ye,"-fade"),visible:x==="uploading",motionDeadline:2e3},function(M){var U=M.className,J="percent"in r?t.createElement(mt.Z,(0,u.Z)({},E,{type:"line",percent:r.percent})):null;return t.createElement("div",{className:b()("".concat(a,"-list-item-progress"),U)},J)})),Ne=b()("".concat(a,"-list-").concat(y,"-container"),c),C=x==="error"?t.createElement(ft.Z,{title:D,getPopupContainer:function(U){return U.parentNode}},Ee):Ee;return t.createElement("div",{className:Ne,style:v,ref:e},K?K(C,r,P,{download:z.bind(null,r),preview:W.bind(null,r),remove:le.bind(null,r)}):C)}),gt=pt,Oe=(0,u.Z)({},ot.ZP);delete Oe.onAppearEnd,delete Oe.onEnterEnd,delete Oe.onLeaveEnd;var wt=function(e,o){var a,c=e.listType,v=c===void 0?"text":c,I=e.previewFile,y=I===void 0?ct:I,r=e.onPreview,P=e.onDownload,E=e.onRemove,O=e.locale,j=e.iconRender,K=e.isImageUrl,N=K===void 0?st:K,Ze=e.prefixCls,Q=e.items,q=Q===void 0?[]:Q,_=e.showPreviewIcon,ie=_===void 0?!0:_,ee=e.showRemoveIcon,W=ee===void 0?!0:ee,z=e.showDownloadIcon,le=z===void 0?!1:z,se=e.removeIcon,B=e.previewIcon,te=e.downloadIcon,ue=e.progress,ne=ue===void 0?{strokeWidth:2,showInfo:!1}:ue,x=e.appendAction,ve=e.appendActionVisible,me=ve===void 0?!0:ve,fe=e.itemRender,pe=(0,rt.Z)(),Pe=t.useState(!1),k=(0,de.Z)(Pe,2),De=k[0],ae=k[1];t.useEffect(function(){v!=="picture"&&v!=="picture-card"||(q||[]).forEach(function(m){typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",y&&y(m.originFileObj).then(function(d){m.thumbUrl=d||"",pe()}))})},[v,q,y]),t.useEffect(function(){ae(!0)},[]);var re=function(d,Z){if(!!r)return Z==null||Z.preventDefault(),r(d)},V=function(d){typeof P=="function"?P(d):d.url&&window.open(d.url)},G=function(d){E==null||E(d)},oe=function(d){if(j)return j(d,v);var Z=d.status==="uploading",D=N&&N(d)?t.createElement(at.Z,null):t.createElement(tt.Z,null),$=Z?t.createElement(We.Z,null):t.createElement(nt.Z,null);return v==="picture"?$=Z?t.createElement(We.Z,null):D:v==="picture-card"&&($=Z?O.uploading:D),$},ge=function(d,Z,D,$){var Ie={type:"text",size:"small",title:$,onClick:function(Ee){Z(),(0,Le.l$)(d)&&d.props.onClick&&d.props.onClick(Ee)},className:"".concat(D,"-list-item-card-actions-btn")};if((0,Le.l$)(d)){var ce=(0,Le.Tm)(d,(0,u.Z)((0,u.Z)({},d.props),{onClick:function(){}}));return t.createElement(ze.Z,(0,u.Z)({},Ie,{icon:ce}))}return t.createElement(ze.Z,(0,u.Z)({},Ie),t.createElement("span",null,d))};t.useImperativeHandle(o,function(){return{handlePreview:re,handleDownload:V}});var R=t.useContext(Te.E_),Ue=R.getPrefixCls,xe=R.direction,A=Ue("upload",Ze),we=b()((a={},(0,w.Z)(a,"".concat(A,"-list"),!0),(0,w.Z)(a,"".concat(A,"-list-").concat(v),!0),(0,w.Z)(a,"".concat(A,"-list-rtl"),xe==="rtl"),a)),he=(0,Re.Z)(q.map(function(m){return{key:m.uid,file:m}})),H=v==="picture-card"?"animate-inline":"animate",T={motionDeadline:2e3,motionName:"".concat(A,"-").concat(H),keys:he,motionAppear:De};return v!=="picture-card"&&(T=(0,u.Z)((0,u.Z)({},Oe),T)),t.createElement("div",{className:we},t.createElement($e.CSSMotionList,(0,u.Z)({},T,{component:!1}),function(m){var d=m.key,Z=m.file,D=m.className,$=m.style;return t.createElement(gt,{key:d,locale:O,prefixCls:A,className:D,style:$,file:Z,items:q,progress:ne,listType:v,isImgUrl:N,showPreviewIcon:ie,showRemoveIcon:W,showDownloadIcon:le,removeIcon:se,previewIcon:B,downloadIcon:te,iconRender:oe,actionIconRender:ge,itemRender:fe,onPreview:re,onDownload:V,onClose:G})}),x&&t.createElement($e.default,(0,u.Z)({},T,{visible:me,forceRender:!0}),function(m){var d=m.className,Z=m.style;return(0,Le.Tm)(x,function(D){return{className:b()(D.className,d),style:(0,u.Z)((0,u.Z)((0,u.Z)({},Z),{pointerEvents:d?"none":void 0}),D.style)}})}))},ht=t.forwardRef(wt),It=ht,yt=function(n,e,o,a){function c(v){return v instanceof o?v:new o(function(I){I(v)})}return new(o||(o=Promise))(function(v,I){function y(E){try{P(a.next(E))}catch(O){I(O)}}function r(E){try{P(a.throw(E))}catch(O){I(O)}}function P(E){E.done?v(E.value):c(E.value).then(y,r)}P((a=a.apply(n,e||[])).next())})},Ce="__LIST_IGNORE_".concat(Date.now(),"__"),Et=function(e,o){var a,c=e.fileList,v=e.defaultFileList,I=e.onRemove,y=e.showUploadList,r=y===void 0?!0:y,P=e.listType,E=P===void 0?"text":P,O=e.onPreview,j=e.onDownload,K=e.onChange,N=e.onDrop,Ze=e.previewFile,Q=e.disabled,q=e.locale,_=e.iconRender,ie=e.isImageUrl,ee=e.progress,W=e.prefixCls,z=e.className,le=e.type,se=le===void 0?"select":le,B=e.children,te=e.style,ue=e.itemRender,ne=e.maxCount,x=e.data,ve=x===void 0?{}:x,me=e.multiple,fe=me===void 0?!1:me,pe=e.action,Pe=pe===void 0?"":pe,k=e.accept,De=k===void 0?"":k,ae=e.supportServerRender,re=ae===void 0?!0:ae,V=t.useContext(qe.Z),G=Q!=null?Q:V,oe=(0,Ye.Z)(v||[],{value:c,postState:function(s){return s!=null?s:[]}}),ge=(0,de.Z)(oe,2),R=ge[0],Ue=ge[1],xe=t.useState("drop"),A=(0,de.Z)(xe,2),we=A[0],he=A[1],H=t.useRef(null);t.useMemo(function(){var L=Date.now();(c||[]).forEach(function(s,p){!s.uid&&!Object.isFrozen(s)&&(s.uid="__AUTO__".concat(L,"_").concat(p,"__"))})},[c]);var T=function(s,p,h){var i=(0,Re.Z)(p);ne===1?i=i.slice(-1):ne&&(i=i.slice(0,ne)),(0,Qe.flushSync)(function(){Ue(i)});var f={file:s,fileList:i};h&&(f.event=h),K==null||K(f)},m=function(s,p){return yt(void 0,void 0,void 0,(0,be.Z)().mark(function h(){var i,f,S,F;return(0,be.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(i=e.beforeUpload,f=e.transformFile,S=s,!i){g.next=13;break}return g.next=5,i(s,p);case 5:if(F=g.sent,F!==!1){g.next=8;break}return g.abrupt("return",!1);case 8:if(delete s[Ce],F!==Ce){g.next=12;break}return Object.defineProperty(s,Ce,{value:!0,configurable:!0}),g.abrupt("return",!1);case 12:(0,je.Z)(F)==="object"&&F&&(S=F);case 13:if(!f){g.next=17;break}return g.next=16,f(S);case 16:S=g.sent;case 17:return g.abrupt("return",S);case 18:case"end":return g.stop()}},h)}))},d=function(s){var p=s.filter(function(f){return!f.file[Ce]});if(!!p.length){var h=p.map(function(f){return Se(f.file)}),i=(0,Re.Z)(R);h.forEach(function(f){i=Fe(f,i)}),h.forEach(function(f,S){var F=f;if(p[S].parsedFile)f.status="uploading";else{var X=f.originFileObj,g;try{g=new File([X],X.name,{type:X.type})}catch(He){g=new Blob([X],{type:X.type}),g.name=X.name,g.lastModifiedDate=new Date,g.lastModified=new Date().getTime()}g.uid=f.uid,F=g}T(F,i)})}},Z=function(s,p,h){try{typeof s=="string"&&(s=JSON.parse(s))}catch(S){}if(!!Me(p,R)){var i=Se(p);i.status="done",i.percent=100,i.response=s,i.xhr=h;var f=Fe(i,R);T(i,f)}},D=function(s,p){if(!!Me(p,R)){var h=Se(p);h.status="uploading",h.percent=s.percent;var i=Fe(h,R);T(h,i,s)}},$=function(s,p,h){if(!!Me(h,R)){var i=Se(h);i.error=s,i.response=p,i.status="error";var f=Fe(i,R);T(i,f)}},Ie=function(s){var p;Promise.resolve(typeof I=="function"?I(s):I).then(function(h){var i;if(h!==!1){var f=it(s,R);f&&(p=(0,u.Z)((0,u.Z)({},s),{status:"removed"}),R==null||R.forEach(function(S){var F=p.uid!==void 0?"uid":"name";S[F]===p[F]&&!Object.isFrozen(S)&&(S.status="removed")}),(i=H.current)===null||i===void 0||i.abort(p),T(p,f))}})},ce=function(s){he(s.type),s.type==="drop"&&(N==null||N(s))};t.useImperativeHandle(o,function(){return{onBatchStart:d,onSuccess:Z,onProgress:D,onError:$,fileList:R,upload:H.current}});var ye=t.useContext(Te.E_),Ee=ye.getPrefixCls,Ne=ye.direction,C=Ee("upload",W),M=(0,u.Z)((0,u.Z)({onBatchStart:d,onError:$,onProgress:D,onSuccess:Z},e),{data:ve,multiple:fe,action:Pe,accept:De,supportServerRender:re,prefixCls:C,disabled:G,beforeUpload:m,onChange:void 0});delete M.className,delete M.style,(!B||G)&&delete M.id;var U=function(s,p){return r?t.createElement(_e.Z,{componentName:"Upload",defaultLocale:et.Z.Upload},function(h){var i=typeof r=="boolean"?{}:r,f=i.showRemoveIcon,S=i.showPreviewIcon,F=i.showDownloadIcon,X=i.removeIcon,g=i.previewIcon,He=i.downloadIcon;return t.createElement(It,{prefixCls:C,listType:E,items:R,previewFile:Ze,onPreview:O,onDownload:j,onRemove:Ie,showRemoveIcon:!G&&f,showPreviewIcon:S,showDownloadIcon:F,removeIcon:X,previewIcon:g,downloadIcon:He,iconRender:_,locale:(0,u.Z)((0,u.Z)({},h),q),isImageUrl:ie,progress:ee,appendAction:s,appendActionVisible:p,itemRender:ue})}):s};if(se==="drag"){var J,Ut=b()(C,(J={},(0,w.Z)(J,"".concat(C,"-drag"),!0),(0,w.Z)(J,"".concat(C,"-drag-uploading"),R.some(function(L){return L.status==="uploading"})),(0,w.Z)(J,"".concat(C,"-drag-hover"),we==="dragover"),(0,w.Z)(J,"".concat(C,"-disabled"),G),(0,w.Z)(J,"".concat(C,"-rtl"),Ne==="rtl"),J),z);return t.createElement("span",null,t.createElement("div",{className:Ut,onDrop:ce,onDragOver:ce,onDragLeave:ce,style:te},t.createElement(Ke.default,(0,u.Z)({},M,{ref:H,className:"".concat(C,"-btn")}),t.createElement("div",{className:"".concat(C,"-drag-container")},B))),U())}var xt=b()(C,(a={},(0,w.Z)(a,"".concat(C,"-select"),!0),(0,w.Z)(a,"".concat(C,"-select-").concat(E),!0),(0,w.Z)(a,"".concat(C,"-disabled"),G),(0,w.Z)(a,"".concat(C,"-rtl"),Ne==="rtl"),a)),Lt=function(s){return t.createElement("div",{className:xt,style:s},t.createElement(Ke.default,(0,u.Z)({},M,{ref:H})))},Ge=Lt(B?void 0:{display:"none"});return E==="picture-card"?t.createElement("span",{className:b()("".concat(C,"-picture-card-wrapper"),z)},U(Ge,!!B)):t.createElement("span",{className:z},Ge,U())},Rt=t.forwardRef(Et),Ve=Rt,Ct=function(n,e){var o={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&e.indexOf(a)<0&&(o[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)e.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(o[a[c]]=n[a[c]]);return o},Zt=t.forwardRef(function(n,e){var o=n.style,a=n.height,c=Ct(n,["style","height"]);return t.createElement(Ve,(0,u.Z)({ref:e},c,{type:"drag",style:(0,u.Z)((0,u.Z)({},o),{height:a})}))}),Pt=Zt,Ae=Ve;Ae.Dragger=Pt,Ae.LIST_IGNORE=Ce;var Dt=Ae},43185:function(Je,Be,l){"use strict";var u=l(38663),t=l.n(u),w=l(63252),be=l.n(w),je=l(57663),Re=l(34669),de=l(22385)}}]);