1(self.webpackChunksurvey_king=self.webpackChunksurvey_king||[]).push([[346],{57254:function(ge,H,e){"use strict";e.d(H,{Z:function(){return j}});var U=e(28991),D=e(67294),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},F=ee,x=e(27029),A=function(t,z){return D.createElement(x.Z,(0,U.Z)((0,U.Z)({},t),{},{ref:z,icon:F}))};A.displayName="DownOutlined";var j=D.forwardRef(A)},59271:function(ge,H,e){"use strict";e.d(H,{Z:function(){return j}});var U=e(28991),D=e(67294),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},F=ee,x=e(27029),A=function(t,z){return D.createElement(x.Z,(0,U.Z)((0,U.Z)({},t),{},{ref:z,icon:F}))};A.displayName="HomeOutlined";var j=D.forwardRef(A)},81262:function(){},18727:function(ge,H,e){"use strict";e.r(H),e.d(H,{Practice:function(){return X},default:function(){return ye}});var U=e(36017),D=e(35247),ee=e(71194),F=e(50146),x=e(11849),A=e(39428),j=e(3182),$=e(68068),t=e(9761),z=e(1615),B=e(67294),se=e(5977);const pe="Left",ae="Right",h="Up",r="Down",f={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:Infinity,touchEventOptions:{passive:!0}},o={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},g="mousemove",R="mouseup",y="touchend",M="touchmove",W="touchstart";function ce(s,T,w,E){return s>T?w>0?ae:pe:E>0?r:h}function ie(s,T){if(T===0)return s;const w=Math.PI/180*T,E=s[0]*Math.cos(w)+s[1]*Math.sin(w),N=s[1]*Math.cos(w)-s[0]*Math.sin(w);return[E,N]}function d(s,T){const w=u=>{const c="touches"in u;c&&u.touches.length>1||s((l,b)=>{b.trackMouse&&!c&&(document.addEventListener(g,E),document.addEventListener(R,L));const{clientX:i,clientY:G}=c?u.touches[0]:u,J=ie([i,G],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},l),o),{initial:J.slice(),xy:J,start:u.timeStamp||0})})},E=u=>{s((c,l)=>{const b="touches"in u;if(b&&u.touches.length>1)return c;if(u.timeStamp-c.start>l.swipeDuration)return c.swiping?Object.assign(Object.assign({},c),{swiping:!1}):c;const{clientX:i,clientY:G}=b?u.touches[0]:u,[J,ve]=ie([i,G],l.rotationAngle),fe=J-c.xy[0],me=ve-c.xy[1],oe=Math.abs(fe),k=Math.abs(me),ue=(u.timeStamp||0)-c.start,Oe=Math.sqrt(oe*oe+k*k)/(ue||1),Te=[fe/(ue||1),me/(ue||1)],be=ce(oe,k,fe,me),Se=typeof l.delta=="number"?l.delta:l.delta[be.toLowerCase()]||f.delta;if(oe<Se&&k<Se&&!c.swiping)return c;const we={absX:oe,absY:k,deltaX:fe,deltaY:me,dir:be,event:u,first:c.first,initial:c.initial,velocity:Oe,vxvy:Te};we.first&&l.onSwipeStart&&l.onSwipeStart(we),l.onSwiping&&l.onSwiping(we);let Pe=!1;return(l.onSwiping||l.onSwiped||l[`onSwiped${be}`])&&(Pe=!0),Pe&&l.preventScrollOnSwipe&&l.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},c),{first:!1,eventData:we,swiping:!0})})},N=u=>{s((c,l)=>{let b;if(c.swiping&&c.eventData){if(u.timeStamp-c.start<l.swipeDuration){b=Object.assign(Object.assign({},c.eventData),{event:u}),l.onSwiped&&l.onSwiped(b);const i=l[`onSwiped${b.dir}`];i&&i(b)}}else l.onTap&&l.onTap({event:u});return l.onTouchEndOrOnMouseUp&&l.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},c),o),{eventData:b})})},V=()=>{document.removeEventListener(g,E),document.removeEventListener(R,L)},L=u=>{V(),N(u)},Z=(u,c)=>{let l=()=>{};if(u&&u.addEventListener){const b=Object.assign(Object.assign({},f.touchEventOptions),c.touchEventOptions),i=[[W,w,b],[M,E,Object.assign(Object.assign({},b),c.preventScrollOnSwipe?{passive:!1}:{})],[y,N,b]];
1i.forEach(([G,J,ve])=>u.addEventListener(G,J,ve)),l=()=>i.forEach(([G,J])=>u.removeEventListener(G,J))}return l},Y={ref:u=>{u!==null&&s((c,l)=>{if(c.el===u)return c;const b={};return c.el&&c.el!==u&&c.cleanUpTouch&&(c.cleanUpTouch(),b.cleanUpTouch=void 0),l.trackTouch&&u&&(b.cleanUpTouch=Z(u,l)),Object.assign(Object.assign(Object.assign({},c),{el:u}),b)})}};return T.trackMouse&&(Y.onMouseDown=w),[Y,Z]}function a(s,T,w,E){return!T.trackTouch||!s.el?(s.cleanUpTouch&&s.cleanUpTouch(),Object.assign(Object.assign({},s),{cleanUpTouch:void 0})):s.cleanUpTouch?T.preventScrollOnSwipe!==w.preventScrollOnSwipe||T.touchEventOptions.passive!==w.touchEventOptions.passive?(s.cleanUpTouch(),Object.assign(Object.assign({},s),{cleanUpTouch:E(s.el,T)})):s:Object.assign(Object.assign({},s),{cleanUpTouch:E(s.el,T)})}function O(s){const{trackMouse:T}=s,w=B.useRef(Object.assign({},o)),E=B.useRef(Object.assign({},f)),N=B.useRef(Object.assign({},E.current));N.current=Object.assign({},E.current),E.current=Object.assign(Object.assign({},f),s);let V;for(V in f)E.current[V]===void 0&&(E.current[V]=f[V]);const[L,Z]=B.useMemo(()=>d(ne=>w.current=ne(w.current,E.current),{trackMouse:T}),[T]);return w.current=a(w.current,E.current,N.current,Z),L}var n=e(92725),v=e(12997),p=e(96389),re=e(42285),C=e(78210),Q=e(3980),le=e(32235),de=e(27400),te=e(59271),m=e(85893),X=(0,t.Pi)(function(){var s,T,w,E,N=(0,se.UO)(),V=N.id,L=N.answerId,Z=(0,se.TH)(),ne=Z.query.preview==="1",Y=Z.query.pattern,u=Z.query.openid,c=Z.query.ptype,l=(0,B.useMemo)(function(){return(0,p.SB)()},[]),b=(0,B.useRef)(null),i=(0,B.useMemo)(function(){return new le.b({surveyRef:b,id:"exercise",answerId:L,repoId:V,examExerciseType:c})},[b,V,L]),G=(0,de.a)();(0,B.useEffect)(function(){G.currentUser()},[G]);var J=i.saving,ve=i.loading,fe=(s=i.setting)===null||s===void 0?void 0:s.answerSetting,me=i.loginRequired,oe=i.verifying,k=fe||{},ue=k.autoSave,Oe=k.progressBar,Te=k.initialValues,be=k.questionNumber,Se=k.wechatOnly,we=k.onePageOneQuestion,Pe=k.answerSheetVisible,Ze=k.triggerType,Ue=k.copyEnabled,xe=((T=i.setting)===null||T===void 0?void 0:T.examSetting)||{},Ke=xe.exerciseMode,He=xe.maxSwitchScreenTimes,Ae=!!((w=i.setting)!==null&&w!==void 0&&(E=w.examSetting)!==null&&E!==void 0&&E.randomSurveyWrong),Be=i.errorMessage,Ie=i.savedAnswer,Me=i.confirmTempAnswerType,ke=i.statistics,he=i.survey,Ce=i.answerId,Le=i.mode,je=i.success,Re=(0,p.XO)(he,Z);(0,B.useEffect)(function(){he&&(0,p.iq)(he,"statEnabled","quota")&&i.loadStatistics()},[he,i]);var Fe=O({onSwipedLeft:function(){var P;(P=b.current)===null||P===void 0||P.getStore().handleNext()},onSwipedRight:function(){var P;(P=b.current)===null||P===void 0||P.getStore().handlePrev()}}),Ne=(0,B.useCallback)(function(q,P){Oe&&i.changeProgress(P),ue&&q&&i.tempSave(q)},[Oe]),$e=function(){return(0,m.jsx)(v.BW,{})},_e=function(P){var I,S;return(0,m.jsxs)("div",{className:"render-failure ".concat(l?"mobile":"phone"),children:[((I=i.project)===null||I===void 0?void 0:I.name)&&(0,m.jsx)("div",{className:"title",children:(S=i.project)===null||S===void 0?void 0:S.name}),(0,m.jsxs)("div",{className:"content",children:[(0,m.jsx)("div",{children:(0,m.jsx)(v.AT,{})}),(0,m.jsx)("h2",{children:Be||P}),(0,m.jsx)("div",{children:"\u611F\u8C22\u5173\u6CE8\uFF01"})]})]})},We=function(){if(je)return(0,m.jsx)(m.Fragment,{});if(ve)return(0,m.jsx)(n.Z,{});if(i.errorCode!==200)return _e();if(Se&&!(0,p.CL)())return _e("\u53EA\u80FD\u5728\u5FAE\u4FE1\u4E2D\u6253\u5F00");if(me)return(0,m.jsx)("div",{children:$e()});if(he&&!je&&!oe)return Me===1&&ue&&Le==="survey"&&!Ce?(0,m.jsx)(v.oq,{}):(0,m.jsx)("div",{style:{userSelect:Ue===!1?"none":"unset"},children:(0,m.jsx)($.Z,{ref:b,mode:Le,loading:J||ve,progressBar:Oe,questionNumber:be,theme:l?"antdMobile":"antd",schema:he,onChange:Ne,onePageOneQuestion:!0,answerSheetVisible:!0,exerciseMode:!0,wrongMode:Ae,pattern:Y,triggerType:Ze,onInit:function(I){i.tempSave(I.values)},initialQuestionScore:i.initialQuestionScore,onDictSearch:function(){var P=(0,j.Z)((0,A.Z)().mark(function I(S){var K;return(0,A.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Q.hi.loadDict(S);case 2:if(K=_.sent,!K.success){_.next=5;break}return _.abrupt("return",K.data);case 5:return _.abrupt("return",[]);case 6:case"end":return _.stop()}},I)}));return function(I){return P.apply(this,arguments)}}(),initialValues:Me===3?Re:(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({},Te),ue?Ie==null?void 0:Ie.answer:{}),Re),i.values),statistics:ke,onUpload:function(I,S){return i.upload(I,S)},footerVisible:!(ne||Y==="readPretty"),headerVisible:!ne,isPreview:ne,onLink:function(I){Q.hi.loadLinkResult((0,x.Z)((0,x.Z)({},I),{},{projectId:V})).then(function(S){if(S.success&&S.data.answer){var K=S.data.answer;
1Object.keys(K).forEach(function(Ee){var _=K[Ee];if(I.questionId!==Ee){var De;(De=b.current)===null||De===void 0||De.setValue(Ee,_)}})}})},onSubmit:function(I){i.saveData((0,x.Z)((0,x.Z)({},I),{},{openid:u}),{answerId:Ce}).then(function(S){!(S!=null&&S.success)&&S!==null&&S!==void 0&&S.message&&(l?z.u_.alert({title:"\u4FDD\u5B58\u5931\u8D25",content:(0,m.jsx)(C.Z,{html:S.message})}):F.Z.error({title:"\u4FDD\u5B58\u5931\u8D25",content:(0,m.jsx)(C.Z,{html:S.message}),okText:"\u77E5\u9053\u4E86"}))})},onNote:function(I,S){Q.hi.updateUserBook({templateId:I,note:S})},onLazyLoad:function(){var P=(0,j.Z)((0,A.Z)().mark(function I(S){var K;return(0,A.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Q.hi.getTemplate({id:S});case 2:return K=_.sent,_.abrupt("return",(0,x.Z)((0,x.Z)({},K),{},{schema:K==null?void 0:K.template}));case 4:case"end":return _.stop()}},I)}));return function(I){return P.apply(this,arguments)}}()})})};(0,B.useEffect)(function(){je&&re.m8.push("/exercise")},[je]);var Ve=function(){var P,I,S=(P=i.survey)===null||P===void 0||(I=P.attribute)===null||I===void 0?void 0:I.backgroundImage;if(S)return{backgroundImage:"url(/api/public/preview/".concat(S,")")}};return(0,m.jsxs)(p.ff.Provider,{value:i,children:[(0,m.jsx)("div",{style:{padding:20},children:(0,m.jsxs)(D.Z,{children:[(0,m.jsxs)(D.Z.Item,{onClick:function(){return re.m8.push("/")},children:[(0,m.jsx)(te.Z,{}),"\u9996\u9875"]}),(0,m.jsx)(D.Z.Item,{onClick:function(){return re.m8.push("/exercise")},children:"\u5728\u7EBF\u7EC3\u4E60"})]})}),(0,m.jsx)("div",{className:"survey ".concat(l?"mobile":"pc"),style:Ve(),children:We()})]})}),ye=function(){var s=(0,se.UO)(),T=s.id,w=T===void 0?"":T,E=s.answerId;return(0,m.jsx)(X,{id:w,aId:E})}},32235:function(ge,H,e){"use strict";e.d(H,{b:function(){return pe}});var U=e(11849),D=e(39428),ee=e(34792),F=e(48086),x=e(3182),A=e(69610),j=e(54941),$=e(3980),t=e(54531),z=e(36855),B=e(42238),se=e.n(B),pe=function(){function ae(h){var r;(0,A.Z)(this,ae),this.id=void 0,this.project=void 0,this.survey=void 0,this.loading=void 0,this.verifying=!1,this.saving=!1,this.isPC=void 0,this.errorCode=void 0,this.errorMessage=void 0,this.progress=0,this.confirmTempAnswerType=0,this.statistics=void 0,this.answerUrl=void 0,this.answerQrCodeUrl=void 0,this.loginRequired=void 0,this.whitelistName=void 0,this.success=void 0,this.answerId=void 0,this.repoId=void 0,this.examExerciseType=void 0,this.answerView=void 0,this.values=void 0,this.initialQuestionScore=void 0,this.openId=void 0,this.token=void 0,this.surveyRef=void 0,this.id=h.id,this.answerId=h.answerId,this.surveyRef=h.surveyRef,this.repoId=h.repoId,this.examExerciseType=h.examExerciseType;var f=z.parse(window.location.search);f&&(this.openId=f.openId,this.token=f["sk-token"]),this.makeObservable(),this.loadProject(),this.confirmTempAnswerType=(r=this.savedAnswer)!==null&&r!==void 0&&r.progress?1:0}return(0,j.Z)(ae,[{key:"makeObservable",value:function(){(0,t.Ou)(this,{id:t.LO.ref,answerId:t.LO.ref,survey:t.LO.ref,loading:t.LO.ref,saving:t.LO.ref,verifying:t.LO.ref,project:t.LO.ref,errorCode:t.LO.ref,errorMessage:t.LO.ref,progress:t.LO.ref,confirmTempAnswerType:t.LO.ref,statistics:t.LO.ref,answerUrl:t.LO.ref,answerQrCodeUrl:t.LO.ref,success:t.LO.ref,answerView:t.LO.ref,values:t.LO.ref,loginRequired:t.LO.ref,whitelistName:t.LO.ref,openId:t.LO.ref,token:t.LO.ref,passwordRequired:t.LO.computed,mode:t.LO.computed,tempSaveId:t.LO.computed,status:t.LO.computed,setting:t.LO.computed,tempSave:t.aD,saveData:t.aD,loadProject:t.aD,changeProgress:t.aD,validate:t.aD})}},{key:"setting",get:function(){var r;return(r=this.project)===null||r===void 0?void 0:r.setting}},{key:"status",get:function(){var r;return(r=this.project)===null||r===void 0?void 0:r.status}},{key:"passwordRequired",get:function(){var r;return(r=this.project)===null||r===void 0?void 0:r.passwordRequired}},{key:"mode",get:function(){var r;return(r=this.project)===null||r===void 0?void 0:r.mode}},{key:"tempSaveId",get:function(){return"savedAnswer-"+this.id}},{key:"savedAnswer",get:function(){var r=localStorage.getItem(this.tempSaveId);return r&&JSON.parse(r)}},{key:"startTime",get:function(){var r,f,o;return((r=this.savedAnswer)===null||r===void 0||(f=r.metaInfo)===null||f===void 0||(o=f.answerInfo)===null||o===void 0?void 0:o.startTime)||new Date().getTime()}},{key:"tempSave",value:function(r){var f=localStorage.getItem(this.tempSaveId),o;f?(o=JSON.parse(f),o.answer=r,o.progress=this.progress):o={answer:r,metaInfo:{answerInfo:{startTime:new Date().getTime()}},progress:this.progress},localStorage.setItem(this.tempSaveId,JSON.stringify(o))}},{key:"saveData",value:function(){var h=(0,x.Z)((0,D.Z)().mark(function f(o,g){var R,y,M=this,W,ce,ie,d,a,O,n,v,p;return(0,D.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(W=g||{},ce=W.answerId,ie=W.forceSubmit,this.saving=!0,d=new(se())().getResult(),a={answer:o,projectId:this.id,metaInfo:{answerInfo:{startTime:this.startTime,endTime:new Date().getTime()},clientInfo:{browser:d.browser.name||"",browserVersion:d.browser.version||"",deviceType:d.device.type||"",platform:d.os.name||"",platformVersion:d.os.version||""}},id:ce||this.answerId,whitelistName:this.whitelistName},O=this.startTime,n=((R=this.project)===null||R===void 0||(y=R.setting.examSetting)===null||y===void 0?void 0:y.minSubmitMinutes)||0,v=O+n*60*1e3,!(n>0&&new Date().getTime()<v&&ie!==!0)){C.next=11;break}return F.default.error("\u672A\u5230\u4EA4\u5377\u65F6\u95F4"),this.saving=!1,C.abrupt("return");case 11:return C.next=13,$.hi.post(this.getUrlWithToken("/api/public/saveAnswer"),a);case 13:return p=C.sent,(0,t.aD)(function(){p.success&&(p.data.answerId?M.answerId=p.data.answerId:p.data.examScore!==void 0,M.answerView=p.data,M.values=o,M.success=!0,localStorage.removeItem(M.tempSaveId)),M.saving=!1}
1),C.abrupt("return",p);case 16:case"end":return C.stop()}},f,this)}));function r(f,o){return h.apply(this,arguments)}return r}()},{key:"loadStatistics",value:function(){var h=(0,x.Z)((0,D.Z)().mark(function f(){var o=this,g;return(0,D.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!this.loading){y.next=2;break}return y.abrupt("return");case 2:return this.loading=!0,y.next=5,$.hi.post(this.getUrlWithToken("/api/public/statistics"),{id:this.id});case 5:g=y.sent,(0,t.aD)(function(){g.success&&(o.statistics=g.data),o.loading=!1});case 7:case"end":return y.stop()}},f,this)}));function r(){return h.apply(this,arguments)}return r}()},{key:"loadProject",value:function(){var h=(0,x.Z)((0,D.Z)().mark(function f(){var o=this,g;return(0,D.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return this.loading=!0,y.next=3,$.hi.post(this.getUrlWithToken("/api/public/loadProject"),{id:this.id,answerId:this.answerId,repoId:this.repoId,examExerciseType:this.examExerciseType});case 3:g=y.sent,(0,t.aD)(function(){if(g.success){var M;o.project=g.data,o.loginRequired=g.data.loginRequired,o.initialQuestionScore=(M=g.data.examInfo)===null||M===void 0?void 0:M.questionScore,o.survey=g.data.survey,o.values=g.data.answer,g.data.answerId&&(o.answerId=g.data.answerId)}else o.errorMessage=g.message;o.errorCode=g.code,o.loading=!1});case 5:case"end":return y.stop()}},f,this)}));function r(){return h.apply(this,arguments)}return r}()},{key:"validate",value:function(){var h=(0,x.Z)((0,D.Z)().mark(function f(o){var g=this,R;return(0,D.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return this.verifying=!0,M.next=3,$.hi.post(this.getUrlWithToken("/api/public/validateProject"),{id:this.id,answer:o,answerId:this.answerId});case 3:R=M.sent,(0,t.aD)(function(){if(R.success){var W;g.project=R.data,g.loginRequired=!1,g.survey=R.data.survey,g.whitelistName=(W=o.whitelistName)===null||W===void 0?void 0:W.whitelistName}else F.default.error(R.message);g.verifying=!1});case 5:case"end":return M.stop()}},f,this)}));function r(f){return h.apply(this,arguments)}return r}()},{key:"upload",value:function(){var h=(0,x.Z)((0,D.Z)().mark(function f(o,g){return(0,D.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",$.hi.upload("/api/public/upload",(0,U.Z)({fileType:4,basePath:this.id},o),g));case 1:case"end":return y.stop()}},f,this)}));function r(f,o){return h.apply(this,arguments)}return r}()},{key:"changeProgress",value:function(r){this.progress=r}},{key:"getUrlWithToken",value:function(r){return z.stringifyUrl({url:r,query:{"sk-token":this.token}})}}]),ae}()},35247:function(ge,H,e){"use strict";e.d(H,{Z:function(){return ie}});var U=e(22122),D=e(96156),ee=e(85061),F=e(94184),x=e.n(F),A=e(50344),j=e(67294),$=e(53124),t=e(28682),z=e(96159),B=e(57254),se=e(81555),pe=function(d,a){var O={};for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&a.indexOf(n)<0&&(O[n]=d[n]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,n=Object.getOwnPropertySymbols(d);v<n.length;v++)a.indexOf(n[v])<0&&Object.prototype.propertyIsEnumerable.call(d,n[v])&&(O[n[v]]=d[n[v]]);return O},ae=function(a){var O=a.prefixCls,n=a.separator,v=n===void 0?"/":n,p=a.children,re=a.overlay,C=a.dropdownProps,Q=pe(a,["prefixCls","separator","children","overlay","dropdownProps"]),le=j.useContext($.E_),de=le.getPrefixCls,te=de("breadcrumb",O),m=function(s){return re?j.createElement(se.Z,(0,U.Z)({overlay:re,placement:"bottom"},C),j.createElement("span",{className:"".concat(te,"-overlay-link")},s,j.createElement(B.Z,null))):s},X;return"href"in Q?X=j.createElement("a",(0,U.Z)({className:"".concat(te,"-link")},Q),p):X=j.createElement("span",(0,U.Z)({className:"".concat(te,"-link")},Q),p),X=m(X),p!=null?j.createElement("li",null,X,v&&j.createElement("span",{className:"".concat(te,"-separator")},v)):null};ae.__ANT_BREADCRUMB_ITEM=!0;var h=ae,r=function(a){var O=a.children,n=j.useContext($.E_),v=n.getPrefixCls,p=v("breadcrumb");return j.createElement("span",{className:"".concat(p,"-separator")},O||"/")};r.__ANT_BREADCRUMB_SEPARATOR=!0;var f=r,o=function(d,a){var O={};for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&a.indexOf(n)<0&&(O[n]=d[n]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,n=Object.getOwnPropertySymbols(d);v<n.length;v++)a.indexOf(n[v])<0&&Object.prototype.propertyIsEnumerable.call(d,n[v])&&(O[n[v]]=d[n[v]]);return O};function g(d,a){if(!d.breadcrumbName)return null;var O=Object.keys(a).join("|"),n=d.breadcrumbName.replace(new RegExp(":(".concat(O,")"),"g"),function(v,p){return a[p]||v});return n}function R(d,a,O,n){var v=O.indexOf(d)===O.length-1,p=g(d,a);return v?j.createElement("span",null,p):j.createElement("a",{href:"#/".concat(n.join("/"))},p)}var y=function(a,O){return a=(a||"").replace(/^\//,""),Object.keys(O).forEach(function(n){a=a.replace(":".concat(n),O[n])}),a},M=function(a,O,n){var v=(0,ee.Z)(a),p=y(O||"",n);return p&&v.push(p),v},W=function(a){var O=a.prefixCls,n=a.separator,v=n===void 0?"/":n,p=a.style,re=a.className,C=a.routes,Q=a.children,le=a.itemRender,de=le===void 0?R:le,te=a.params,m=te===void 0?{}:te,X=o(a,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ye=j.useContext($.E_),s=ye.getPrefixCls,T=ye.direction,w,E=s("breadcrumb",O);if(C&&C.length>0){var N=[];w=C.map(function(L){var Z=y(L.path,m);Z&&N.push(Z);var ne;return L.children&&L.children.length&&(ne=j.createElement(t.Z,{items:L.children.map(function(Y){return{key:Y.path||Y.breadcrumbName,label:de(Y,m,C,M(N,Y.path,m))}})})),j.createElement(h,{overlay:ne,separator:v,key:Z||L.breadcrumbName},de(L,m,C,N))})}else Q&&(w=(0,A.Z)(Q).map(function(L,Z){return L&&(0,z.Tm)(L,{separator:v,key:Z})}));var V=x()(E,(0,D.Z)({},"".concat(E,"-rtl"),T==="rtl"),re);return j.createElement("nav",(0,U.Z)({className:V,style:p},X),j.createElement("ol",null,w))};W.Item=h,W.Separator=f;var ce=W,ie=ce},36017:function(ge,H,e){"use strict";var U=e(38663),D=e.n(U),ee=e(81262),F=e.n(ee),x=e(59250),A=e(30887)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.