Build 589089stable
Module 113273
1,372 characters · in 18e909a3941a3f86.jsDependencies
Source Raw
function(t,n,e){e.d(n,{default:()=>d});var s=e(477900),i=e(582128),o=e(772707),a=e(17928),u=e(116833),r=e(352774),E=e(859703),T=e(24001),c=e(3738),C=e(514547),l=e(590202),_=e(73473),L=e(190107),N=e(375708);function A(t){let{transitionState:n,onClose:e,quest:_}=t,A=(0,C.fc)(_),d=(0,c.mU)({quest:_,taskDetails:A,location:L.rE.QUEST_ACTIVITY_UNENROLLED_MODAL,sourceQuestContent:T.uF.QUEST_ACTIVITY_UNENROLLED_MODAL,withoutMarkdown:!0}),U=(0,a.bG)([E.A],()=>E.A.isEnrolling(_.id)),p=i.useCallback(async()=>{await (0,r.Oy)(_.id,{questContent:T.uF.QUEST_ACTIVITY_UNENROLLED_MODAL,questContentCTA:l.Cy.START_QUEST,sourceQuestContent:T.uF.QUEST_ACTIVITY_UNENROLLED_MODAL}),e()},[_.id,e]),I=i.useCallback(()=>((0,r.Zb)(_.id),e()),[_.id,e]);return(0,s.jsx)(o.k,{transitionState:n,onClose:I,graphic:{type:"dynamic",component:u.DynamicGraphicComponent.QUEST_ACTIVITY_UNENROLLED,props:{quest:_}},gradientColor:"blue",title:N.intl.string(N.t.IrNgN4),subtitle:`${N.intl.format(N.t.V3NSJx,{questName:_.config.messages.questName})} ${d}`,actions:[{text:N.intl.string(N.t.l7E81v),variant:"primary",onClick:p,loading:U}]})}function d(t){let{quest:n,transitionState:e,onClose:i}=t;return(0,s.jsx)(_.R,{questOrQuests:n,questContent:T.uF.QUEST_ACTIVITY_UNENROLLED_MODAL,sourceQuestContent:T.uF.QUEST_ACTIVITY_UNENROLLED_MODAL,children:()=>(0,s.jsx)(A,{quest:n,transitionState:e,onClose:i})})}}