package Ġcom . github . h osh ik ur ama . component DSL Ċ Ċ import Ġnet . ky ori . ad venture . text . Component Ċ import Ġnet . ky ori . ad venture . text . Text Component Ċ import Ġnet . ky ori . ad venture . text . event . Click Event Ċ import Ġnet . ky ori . ad venture . text . event . Hover Event Ċ import Ġnet . ky ori . ad venture . text . serializer . legacy . Legacy Component Serializer Ċ Ċ fun ĠText Component . Builder . formatted Content ( content : ĠString ): ĠText Component . Builder Ġ{ ĊĠĠĠ Ġcontent ("") ĊĠĠĠ Ġreturn Ġappend ( Legacy Component Serializer . legacy Amp ers and (). deserialize ( content )) Ċ } Ċ Ċ fun Ġ< T > ĠText Component . Builder . on Hover ( init : ĠHover Event Builder . () Ġ-> ĠHover Event < T >): ĠText Component . Builder Ġ{ ĊĠĠĠ Ġval Ġevent Ġ= ĠHover Event Builder (). init () ĊĠĠĠ Ġreturn Ġhover Event ( event ) Ċ } Ċ Ċ fun ĠText Component . Builder . onClick ( init : ĠClick Event Builder . () Ġ-> ĠUnit ): ĠText Component . Builder Ġ{ ĊĠĠĠ Ġval Ġbuilder Ġ= ĠClick Event Builder () ĊĠĠĠ Ġbuilder . init () ĊĠĠĠ Ġreturn Ġclick Event ( builder . build ()) Ċ } ĊĊ Ċ class ĠClick Event Builder Ġinternal Ġconstructor () Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġaction : ĠClick Event . Action ĊĠĠĠ Ġlateinit Ġvar Ġvalue : ĠString ĊĊĠĠĠ Ġinternal Ġfun Ġbuild () Ġ= Ġ ĠClick Event . click Event ( action , Ġvalue ) Ċ } Ċ Ċ class ĠHover Event Builder Ġinternal Ġconstructor () Ġ{ ĊĠĠĠ Ġfun Ġshow Text ( text : ĠComponent ) Ġ= ĠHover Event . hover Event ( Hover Event . Action . SHOW _ TEXT , Ġtext ) ĊĠĠĠ Ġfun Ġshow Item ( item : ĠHover Event . Show Item ) Ġ= ĠHover Event . hover Event ( Hover Event . Action . SHOW _ ITEM , Ġitem ) ĊĠĠĠ Ġfun Ġshow Entity ( entity : ĠHover Event . Show Entity ) Ġ= ĠHover Event . hover Event ( Hover Event . Action . SHOW _ ENTITY , Ġentity ) Ċ } Ċ