<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                xmlns:s="library://ns.adobe.com/flex/spark" 
                xmlns:mx="library://ns.adobe.com/flex/mx" 
                autoDrawBackground="true">
    
    <fx:Script>
        <![CDATA[
            
            public var pageName:String = "premiumResults";
            
        ]]>
    </fx:Script>
    
    <s:Group>
        
        <s:VGroup>
            
            <s:HGroup paddingLeft="10" paddingRight="10" paddingTop="10">
                <s:Label text="{data.coverage}" width="100" fontFamily="allerBold" fontSize="14" color="0x86b815"/>
                <s:Label fontFamily="allerBold" fontSize="14" text="{data.premium1}" width="90"/>
                <s:Label fontFamily="allerBold" fontSize="14"  text="{data.premium2}" width="90" />
                <s:Label fontFamily="allerBold" fontSize="14"  text="{data.premium3}" width="90" />
            </s:HGroup>
            <s:HGroup paddingLeft="10" paddingRight="10">
                <fx:Script>
                    <![CDATA[
                        import com.afi.estimator.model.TextModel;
                        public var notAvailable:String = "Not Available";
                        public var emptyStr:String = "";
                    ]]>
                </fx:Script>
                <s:Label text="{TextModel.get(pageName).coverage}" width="100" fontFamily="allerBold" fontSize="14" color="0x86b815"/>
                <s:Label fontFamily="allerBold" fontSize="14" text="{data.premium1 == notAvailable ? emptyStr :TextModel.get(pageName).perMonth}" width="90"/>
                <s:Label fontFamily="allerBold" fontSize="14"  text="{data.premium2 == notAvailable ? emptyStr :TextModel.get(pageName).perMonth}" width="90" />
                <s:Label fontFamily="allerBold" fontSize="14"  text="{data.premium3 == notAvailable ? emptyStr :TextModel.get(pageName).perMonth}" width="90" />
            </s:HGroup>
            <s:Line xFrom="0" xTo="390">
                <s:stroke>
                    <s:SolidColorStroke color="0xd5d9db" weight="2" />
                </s:stroke>
            </s:Line>
            
        </s:VGroup>
        
        
    </s:Group>
    
</s:ItemRenderer>