(function(){var n=angular.module("QAndA",["CommonModule"])})(),function(){angular.module("QAndA").service("QAndAService",["$http",function(n){var t=this;return t.GetStaticDetails=function(){return n.get("/api/Static/GetStaticDetails")},t}])}(),function(n){"use strict";function t(){var n=this;n.Select=function(t){for(var i=0;i<n.headerData.length;i++)n.headerData[i].isSelected=!1;t.isSelected=!0;console.log(t.index);n.onSelect({headerIndex:t.index})}}n.module("QAndA").component("headers",{templateUrl:"_Headers.html",controller:[t],bindings:{headerData:"<",onSelect:"&"}})}(window.angular),function(n){"use strict";function t(){var n=this;n.StaticDetails=null;n.HeaderData=null;n.HeaderIndex=0;n.QuestionIndex=null;n.HeaderIndexUpdated=function(t){n.HeaderIndex=t;n.QuestionIndex=null};n.QuestionUpdated=function(t,i){n.QuestionIndex=i?t:null};n.IsQuestionDisplayed=function(t,i){return t===n.HeaderIndex&&n.QuestionIndex===i};n.Initialise=function(){for(var i=["Top Questions","Before Applying","Application & Approval Process","About Your "+n.tenantName+" Loan","Returning Customers"],r=[],t=0;t<i.length;t++)r.push({index:t,title:i[t],isSelected:t===0});n.HeaderData=r};n.Initialise()}n.module("QAndA").component("qAndA",{templateUrl:"_QAndA.html",controller:["QAndAService",t],bindings:{tenantName:"<"}})}(window.angular),function(n){"use strict";function t(){var n=this;n.isExpanded=function(){return n.questionIndex===n.selectedIndex};n.Select=function(){n.onQuestionUpdated({questionIndex:n.questionIndex,isExpanded:!n.isExpanded()})}}n.module("QAndA").component("question",{templateUrl:"_Question.html",controller:[t],bindings:{text:"<",questionIndex:"<",selectedIndex:"<",onQuestionUpdated:"&"},transclude:!0})}(window.angular)