scrollStop")}}),define("require/sony-global-settings",["require","jquery","modernizr","plugins/index"],function(e){var t=e("jquery"),n=e("modernizr"),r=e("plugins/index").bez,i={},s=navigator.userAgent,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};return i.$window=t(window),i.$document=t(document),i.$html=t(document.documentElement),i.$body=t(document.body),i.isIPhone=/iphone|ipod/gi.test(s),i.isIOS=/iphone|ipod|ipad/gi.test(s),i.isIPad=/ipad/gi.test(s),i.isAndroid=/android/gi.test(s),i.isPS3=/playstation 3/gi.test(s),i.isSonyTabletS=/sony tablet s/gi.test(s),i.isSonyTabletP=/sony tablet p/gi.test(s),i.isVita=/vita/gi.test(s),i.isGoogleTV=/GoogleTV/gi.test(s),i.isModern=i.$html.hasClass("modern"),i.isModern?i.isLTIE8=i.isLTIE9=i.isLTIE10=!1:(i.isLTIE8=i.$html.hasClass("lt-ie8"),i.isLTIE9=i.isLTIE8||i.$html.hasClass("lt-ie9"),i.isLTIE10=i.isLTIE9||i.$html.hasClass("lt-ie10")),i.hasTouchEvents=n.touch,i.hasPointerEvents=navigator.pointerEnabled||navigator.msPointerEnabled,i.START_EV=i.hasTouchEvents?"touchstart":i.hasPointerEvents?"MSPointerDown":"mousedown",i.MOVE_EV=i.hasTouchEvents?"touchmove":i.hasPointerEvents?"MSPointerMove":"mousemove",i.END_EV=i.hasTouchEvents?"touchend":i.hasPointerEvents?"MSPointerUp":"mouseup",i.CANCEL_EV=i.hasTouchEvents?"touchcancel":i.hasPointerEvents?"MSPointerCancel":"mousecancel",i.transEndEventName=o[n.prefixed("transition")],i.windowWidth=i.$window.width(),i.windowHeight=i.$window.height(),i.shuffleEasing="ease-out",i.shuffleSpeed=250,i.shuffleSupport=n.csstransitions&&n.csstransforms,i.isPS3&&(i.shuffleSupport=!1),i.fiveColumns=5,i.sixColumns=6,i.twelveColumns=12,i.col5Width=188,i.gut5Width=20,i.fullSlimWidth=i.fiveColumns*i.col5Width+i.gut5Width*(i.fiveColumns-1),i.COLUMN_WIDTH_SLIM_5=i.col5Width/i.fullSlimWidth,i.GUTTER_WIDTH_SLIM_5=i.gut5Width/i.fullSlimWidth,i.slimColWidth=54,i.slimGutWidth=18,i.slimWidth=i.twelveColumns*i.slimColWidth+i.slimGutWidth*(i.twelveColumns-1),i.COLUMN_WIDTH_SLIM=i.slimColWidth/i.slimWidth,i.GUTTER_WIDTH_SLIM=i.slimGutWidth/i.slimWidth,i.colWidth320=36,i.gutWidth320=12,i.fullWidth320=i.sixColumns*i.colWidth320+i.gutWidth320*(i.sixColumns-1),i.COLUMN_WIDTH_320=i.colWidth320/i.fullWidth320,i.GUTTER_WIDTH_320=i.gutWidth320/i.fullWidth320,i.loaderPath="img/loader.gif",i.easing={easeInOutExpo:"1, 0, 0, 1",easeInOutQuint:"0.86, 0, 0.07, 1",easeInSine:"0.47, 0, 0.745, 0.715",easeOutSine:"0.39, 0.575, 0.565, 1",easeInOutSine:"0.445, 0.05, 0.55, 0.95",easeInQuad:"0.55, 0.085, 0.68, 0.53",easeOut:"ease-out",easeOutQuad:"0.250, 0.460, 0.450, 0.940",easeOutExpo:"0.190, 1.000, 0.220, 1.000",easeOutCubic:"0.215, 0.610, 0.355, 1.000",easeOutQuart:"0.165, 0.840, 0.440, 1.000",easeOutNav:"0.455, 0.030, 0.515, 0.955"},i.$easing={easeInOutExpo:t.bez(i.easing.easeInOutExpo),easeInOutQuint:t.bez(i.easing.easeInOutQuint),easeInSine:t.bez(i.easing.easeInSine),easeOutSine:t.bez(i.easing.easeOutSine),easeInOutSine:t.bez(i.easing.easeInOutSine),easeInQuad:t.bez(i.easing.easeInQuad),easeOut:t.bez(i.easing.easeOut),easeOutQuad:t.bez(i.easing.easeOutQuad),easeOutExpo:t.bez(i.easing.easeOutExpo),easeOutCubic:t.bez(i.easing.easeOutCubic),easeOutQuart:t.bez(i.easing.easeOutQuart),easeOutNav:t.bez(i.easing.easeOutNav)},i}),define("login",["require","jquery","require/sony-global-settings"],function(e){var t=e("jquery"),n=e("require/sony-global-settings"),r,i,s,o,u,a={init:function(e){r=t("#navmenu-w-account").find(".btn-login"),i=t("#navmenu-w-account").find(".btn-logout"),s=t("#navmenu-w-account").find(".navmenu-li-welcome"),o=t("#nav-account-btn"),u=e,i.hide();if(navigator.appVersion.indexOf("MSIE 10")!==-1){a.checkIESession();return}if(n.isLTIE9){a.checkIESession();return}a.checkSession();return},constants:{customerIdKeys:["reporting_key","crmid","crmID","CustomerId"],reportingKeyInApi:"reportingKey",reportingKeyLocalStorage:"gwt_reporting_key",reportingKeyAnalytics:"reporting_key"},getSessionUrl:function(){var e=o.attr("data-session-url");return t.trim(e)},processCustomerId:function(e){var t=e[a.constants.reportingKeyInApi]?e[a.constants.reportingKeyInApi]:"",n=a.getCustomerIdFromParamString(location.search,a.constants.customerIdKeys),r=a.customerIdToSave(n,t);a.saveToLocalStorage(a.constants.reportingKeyLocalStorage,r)},checkSession:function(){var e=a.getSessionUrl();e?t.ajax({type:"GET",url:e,crossDomain:!0,async:!0,contentType:"text/plain",dataType:"json",cache:!1,xhrFields:{withCredentials:!0},success:function(e,t,n){a.processCustomerId(e),a.updateInterface(e),u()},error:function(e,t,n){a.processCustomerId({}),a.renderLogoutMode(),u()}}):u()},checkIESession:function(){var e=a.getSessionUrl();e?t.ajax({type:"GET",url:e,crossDomain:!1,async:!1,contentType:"text/plain",dataType:"json",cache:!1,xhrFields:{withCredentials:!0},success:function(e,t,n){a.processCustomerId(e),a.updateInterface(e),u()},error:function(e,t,n){a.processCustomerId({}),a.renderLogoutMode(),u()}}):u()},getCustomerIdFromParamString:function(e,t){for(var n=0;n<t.length;n++){var r=a.getQueryParameter(e,t[n]);if(r!="")return r}return""},customerIdToSave:function(e,t){return e!=""?e:t!=""?t:""},saveToLocalStorage:function(e,n){var r=t(".storeReportingKey").data("store-reporting-key");r&&n!=""&&localStorage.setItem(e,n)},renderLoggedInMode:function(e){r.hide(),i.show(),o.find(".username").html(e.displayName),s.html(s.attr("data-salutation")+"&nbsp"+e.displayName)},renderLogoutMode:function(){r.show(),i.hide(),s.html(s.attr("data-default-username"))},getQueryParameter:function(e,t){var n=new RegExp("[\\?&]"+t+"=([^&#]*)"),r=n.exec(e);return r==null?"":decodeURIComponent(r[1].replace(/\+/g," "))},updateInterface:function(e){if(e){var t=e;typeof e!="object"&&(t=JSON.parse(e)),t.displayName?a.renderLoggedInMode(t):a.renderLogoutMode()}}};return a}),parseUri.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?

Prev | Next
Pg.: 1 ... 33 34 35 36 37 38 39 40 41


Back to home | File page

Subscribe | Register | Login | N