:: questWidgets[widget]
<<widget 'quest'>>
	<<set [_questId,_questStage] = _args>>
	<<set _questToUpdate = $quest(_questId)>>
	<<if !_questToUpdate.started>>
		<<run _questToUpdate.start()>>
	<</if>>

	<<if _questToUpdate.stage <= _questStage>>

		<<run _questToUpdate.setStage(_questStage)>>

		
		<<set _questStyleClass = 'questUpdate'>>
		<<if _questStage >= _questToUpdate.stageEOC>>
			<<set _questStyleClass += ' endOfContent'>>
		<</if>>

		<div @class="_questStyleClass">
			<span class="title"><<=_questToUpdate.title>></span>
			<span class="description">
				<<=_questToUpdate.stageDescription>>
				<<if _questStage >= _questToUpdate.stageEOC>>
					<hr/>
					This point has been marked as the end of existing content.
					Existing events might repeat themselves, but won't push the story further.
					The story will likely be extended in future update.
				<</if>>
			</span>
			<span class="symbols">
				<<textWithTooltip "📖">>
					<h3>Quest Update</h3>
					One of your quests has been update.
				<</textWithTooltip>>
			</span>
		</div>
	<</if>>
<</widget>>