define(["knockout","pubsub","navigation","viewModels/address","notifier","ccConstants","CCi18n","swmRestClient","ccRestClient","ccResourceLoader!global/OCS_BFService"],function(e,t,n,r,i,s,o,u,a,f){"use strict";var l;return{emailInput:e.observable(),firstLevelCollections:e.observableArray(),subBrandSelected:e.observable(),year:e.observable((new Date).getFullYear()),onLoadExecution:!1,onLoad:function(e){l=e,l.onLoadExecution=!0,l.firstLevelCollections(f.collectionTree)},beforeAppear:function(e){l.emailInput.extend({required:{params:!0,message:o.t("ns.common:resources.emailAddressRequired")},maxLength:{params:s.CYBERSOURCE_EMAIL_MAXIMUM_LENGTH,message:o.t("ns.common:resources.maxLengthEmailAdd",{maxLength:s.CYBERSOURCE_EMAIL_MAXIMUM_LENGTH})},email:{params:!0,message:o.t("ns.common:resources.emailAddressInvalid")}}),l.onLoadExecution&&(l.onLoadExecution=!1)},goToTop:function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}}})