YUI.add("hermes-lang-policy-terms",function(o,O){o.Intl.add("hermes/policy-terms","en-US",{DOWNLOAD_TERMS_OF_SERVICE:["Download Terms of Service"],DOWNLOAD_PRIVACY_POLICY:["Download Privacy Policy"],DOWNLOAD_API_TERMS:["Download API Terms of Service"],DOWNLOAD_COMMUNITY_GUIDELINES:["Download Community Guidelines"],DOWNLOAD_COOKIE_POLICY:["Download Cookie Policy"],DOWNLOAD_DATA_PROCESSING_POLICY:["Download Data Processing Policy"],POLICIES_AND_GUIDELINES:["Policies & Guidelines"],TERMS:["Terms"],PRIVACY:["Privacy"],API:["API"],COMMUNITY:["Community"],COOKIES:["Cookies"],DATA_PROCESSING:["Data Processing"]})},"@VERSION@",{requires:["intl"]});YUI.add("global-nav-view",function(e,t){e.FlickrView.create(this.name,e.FlickrView,[],{langBundles:this.details.langBundles,initializer:function(t){var i,n;if(void 0===t.enableBrowserUpgradeBanner&&(t.enableBrowserUpgradeBanner=!0),this.set("showBrowserUpgradeBanner",!1),YUI.Env.isServer&&t.enableBrowserUpgradeBanner){var o=this.appContext.request.headers["user-agent"],r=e.BrowserSupport.isUnsupportedBrowser(o),a=e.BrowserSupport.isBot(o),s=e.BrowserSupport.isSharingBot(o);!r||a||s||this.set("showBrowserUpgradeBanner",!0)}if(!YUI.Env.isServer){var l=e.StorageHelper.getItem("hasDismissedBrowserUpgradeBanner",!0);l&&"true"===l&&this.set("showBrowserUpgradeBanner",!1)}return""===this.get("container").get("innerHTML")&&this.setContainerHTML('<div class="global-nav-content"></div>'),this.appStateParams=t,this.themeClass=t.theme||"default-theme",i=this.appContext.getLocation(),n=t.modelParams&&t.modelParams.apiParams?t.modelParams.apiParams:i.href,this.searchUrl=new e.SearchUrl(n,this.appContext,t.searchType),this.appContext.flipper.isFlipped("enable-signed-out-cta-test")&&(this.signedOutTest=!0),this.appContext.flipper.isFlipped("enable-sign-up-interstitial-test")&&"en-us"===this.appContext.lang.toLowerCase()&&(this.signUpInterstitialTest=!0),!this.appContext.flipper.isFlipped("enable-sign-up-rail-test")||"en-us"!==this.appContext.lang.toLowerCase()||this.appContext.getViewer().signedIn||t.isSOHP||(this.signUpRailTest=!0),this.isSOHP=t.isSOHP,this.isProPage=t.isProPage,this.disableMobileNav=t.disableMobileNav,this.hideBanner=t.isSearchResults,this.isRefencingAnnouncementPage=t.isRefencingAnnouncementPage,this.uploadLimitDismissHours=48,this.isDesktopWidthBreakpoint=1080,this.photoPrintsHelper=new e.PhotoPrintsHelper(this.appContext),this.mathHelper=new e.MathHelper,this},subviewConfig:{"search-autosuggest-field-view":{requiredToShowOnClient:!0,requiredToShowOnServer:!0,isSOHP:this.isSOHP},"account-menu-view":{requiredToShowOnClient:!0,requiredToShowOnServer:!0},"notifications-menu-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,disabled:function(){return!this.appContext.flipper.isFlipped("notifications-menu")}},"browser-upgrade-banner-view":{requiredToShowOnServer:!0,requiredToShowOnClient:!1,dealbreaker:!1,disabled:function(){return!this.get("showBrowserUpgradeBanner")}},"person-menu-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,containerSelector:"#content",excludeSelectors:[".c-account-menu"],disabled:function(){return!(this.appContext.flipper.isFlipped("enable-hover-account-menu")&&this.appContext.flipper.isFlipped("rebootify-group-discussions-list"))}},"group-menu-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,containerSelector:"#content",excludeSelectors:[".c-account-menu"],disabled:function(){return!(this.appContext.flipper.isFlipped("enable-hover-account-menu")&&this.appContext.flipper.isFlipped("rebootify-group-discussions-list"))}},"signup-rail-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1,additionalViewClasses:["collapsed"],disabled:function(e){return e.isMobile||!this.signUpRailTest}},"partner-account-banner-view":{requiredToShowOnServer:!1,requiredToShowOnClient:!1},"featured-toast-view":{requiredToShowOnClient:!1,requiredToShowOnServer:!1},"slim-footer-view":{requiredToShowOnClient:!0,requiredToShowOnServer:!0,additionalViewClasses:["navbar-footer-placement","mobile-nav-drawer-list"],disabled:function(){return!this.appContext.flipper.isFlipped("enable-cookie-consent-execution-hermes")}}},loadState:function(){var t=this,i=this.appContext.getViewer(),n=[];return i.signedIn?(n.push(this.appContext.getModel("person-models",i.nsid).then(function(e){t.set("viewer",e),t.elementStates=t.setElementStates(t.appStateParams)})),n.push(this.appContext.getModel("person-profile-models",i.nsid).then(function(e){t.profileModel=e}))):this.elementStates=this.setElementStates(this.appStateParams),e.Promise.all(n).then(function(){t.get("viewer");!YUI.Env.isServer&&t.appContext.flipper.isFlipped("enable-feedback-modal")&&"en-US"===t.appContext.lang&&e.config.flickr&&e.config.flickr.geo&&!localStorage.getItem("feedbackmodalseen4_20")&&"photostream-route"!==this.appContext.routeConfig.module&&(t.meetsFeedbackCriteria=!0)})},buildContainer:function(){var t,i={},n=this.appContext.getViewer().signedIn;return this.get("viewer")&&(i=e.merge(this.get("viewer").toJSON(),{urls:e.URLHelper.generatePersonUrls(this.get("viewer"))})),t={theme:this.themeClass,disableMobileNav:this.disableMobileNav,"show-browser-upgrade-banner":this.get("showBrowserUpgradeBanner"),showNotificationsMenu:!1,viewer:i,isSignedIn:n,elements:this.elementStates,isRefencingAnnouncementPage:this.isRefencingAnnouncementPage},this.appContext.flipper.isFlipped("notifications-menu")&&n&&(t["notifications-menu-view"]=this.subviews["notifications-menu-view"].get("container"),t.showNotificationsMenu=!0),this.photoPrintsHelper.isPrintsEnabled()&&(t.printCartUrl=this.photoPrintsHelper.getCartUrl()),this.setContainerWithTemplate("global-nav",t),this},activate:function(){var i,n,o,r=this,a=this.get("container");return n=["photo-page-ad-scrappy-view","sohp-view"],i=this.appContext.flapp.get("activeView").name,this.contentContainer=a.one(".global-nav"),a.one(".mobile-nav-toggle")&&(this.navDrawer=a.one(".mobile-nav-drawer"),this.navDrawerOverlay=a.one(".mobile-nav-drawer-overlay"),this.registerEventHandler(a.one(".mobile-nav-toggle").on("click",function(e){r.navDrawerShown?r.hideMobileNavDrawer():r.showMobileNavDrawer()})),this.registerEventHandler(this.navDrawer.delegate("click",this.handleDrawerItemClick.bind(this),".mobile-nav-menu-item"))),a.one(".mobile-search-button")?(this.registerEventHandler(a.one(".mobile-search-button").on("click",function(t){e.rapidTracker.beacon(r.name,"mobile-nav-search");var i=r.get("container");r.contentContainer.addClass("search-open"),r.fire("parentViewEvent","focus-search-field"),i.one(".flickr-logo-container").addClass("hidden")}.bind(this))),this.registerEventHandler(e.on("add-context-to-search-field",function(e){r.contentContainer.addClass("search-open"),r.fire("parentViewEvent","focus-search-field")},this))):this.registerEventHandler(e.globalEvents.subscribe("window:resize",function(t){var i=e.config.win.innerWidth<=this.isDesktopWidthBreakpoint,n=i?this.appContext.viewportData.getWidth():0,o=i?46:0;i||(r.contentContainer.removeClass("search-open"),a.one(".flickr-logo-container").removeClass("hidden")),r.fire("parentViewEvent","resize-search-field",n-o)}.bind(this))),a.one(".mobile-search-close-button")&&this.registerEventHandler(a.one(".mobile-search-close-button").on("click",function(e){r.contentContainer.removeClass("search-open"),a.one(".flickr-logo-container").removeClass("hidden"),r.fire("parentViewEvent","clear-search-field")}.bind(this))),this.appContext.getViewer().signedIn||(this.signedOutTest&&a.one(".gn-upload .gn-title")&&this.registerEventHandler(a.one(".gn-upload .gn-title").on("click",this.signUpAndUpload.bind(this))),n.indexOf(i)<0&&!this.isMobile&&this.signUpInterstitialTest&&this.startInterstitialTimer()),e.AnchorRepositioner.addOffset(t,a),this.registerEventHandler(a.delegate("keydown",this.toggleSubmenu.bind(this),"a[aria-haspopup=true]")),this.registerEventHandler(a.delegate("keydown",this.enterSubmenu.bind(this),"a[aria-haspopup=true]")),this.registerEventHandler(a.on("keydown",this.goToSubmenuHeading.bind(this),"ul.gn-submenu")),this.registerEventHandler(a.delegate("keydown",this.keyboardNavigation.bind(this),"ul.nav-menu")),this.registerEventHandler(a.delegate("mouseup",this.toggleAriaExpanded.bind(this),"a[aria-haspopup=true]")),this.showFeedbackModal(),this.toastSubview=this.subviews["featured-toast-view"],this.registerEventHandler(e.on("accountCard:overLimitLearnMoreClick",function(){r.showOverLimitToast()})),this.registerEventHandler(e.on("printsPage:choosePhotosClicked",function(){r.handlePrintClick()})),this.photoPrintsHelper.isPrintsEnabled()&&(this.printsButton=a.one(".gn-create .prints-button"),this.mobilePrintsButton=a.one(".mobile-nav-drawer .prints-button"),this.cartLink=a.one(".gn-create .cart-link"),this.mobileCartLink=a.one(".mobile-nav-drawer .cart-link"),this.printsButton&&this.registerEventHandler(this.printsButton.on("click",this.handlePrintClick.bind(this))),this.mobilePrintsButton&&this.registerEventHandler(this.mobilePrintsButton.on("click",this.handlePrintClick.bind(this))),(this.cartLink||this.mobileCartLink)&&(this.photoPrintsHelper.fetchCartCount().then(function(e){var t=e?e.count:0,i=r.intlMessage({intlName:"prints.VIEW_CART_WITH_COUNT",count:void 0!==t?t.toString():"0"});t>0&&(r.cartLink.removeClass("disabled"),r.mobileCartLink.removeClass("disabled")),r.cartLink.set("innerHTML",i),r.mobileCartLink.set("innerHTML",i)}).catch(function(e){var t=r.intlMessage({intlName:"prints.VIEW_CART_WITH_COUNT",count:"0"});r.cartLink.set("innerHTML",t),r.mobileCartLink.set("innerHTML",t)}),this.prepareOrderConfirmationModal())),o=this.appContext.getViewer(),this.appContext.bannerManager.loadBanners([{type:"loginMigration",priority:2,placement:"header"},{type:"pastDue",priority:1,placement:"header"},{type:"braintreeMigrate",priority:0,placement:"header"},{type:"cookieConsent",priority:0,placement:"footer"},{type:"uploadLimit",priority:0,placement:"toast"}]).then(function(){var e=this.appContext.bannerManager.getBanners(["header","footer"]);0===e.length&&(e=this.appContext.bannerManager.getBanners(["toast"])),e.forEach(function(e){return this.appContext.bannerManager.renderBannerView(e)})}),this.registerEventHandler(this.appContext.bannerManager.on("renderBanner",function(t){var i,n,o;return"header"===t.placement?(i=t.bannerView,n=i.get("container"),(o=a.one(".nav-banner-container")).empty(),o.appendChild(n),i.on("subviewActivated",function(){e.fire("globalNav:bannerSubviewActivated")}),i.on("dismissed",function(){i.get("container").remove(),i.destroy(),e.fire("globalNav:bannerDismissed")}),i.normalizedActivate()):"toast"===t.placement?(i=t.bannerView,n=i.get("container"),i.activate().then(function(){var e=i.subview;r.toastSubview.setup(e.featuredToastConfig),r.toastSubview.on("primaryActionClicked",function(t){e.handleToastPrimaryActionClick(t)}),r.toastSubview.on("secondaryActionClicked",function(t){e.handleToastSecondaryActionClick(t)}),i.on("dismissed",function(){r.toastSubview.dismiss()}),r.toastSubview.show()})):void 0})),this.appContext.flipper.isFlipped("enable-photo-limit-pro-redir")&&o.signedIn&&"en-us"===this.appContext.lang.toLowerCase()&&e.UserLimitsHelper.isOverARRLimit(this.profileModel,this.appContext)&&!this.appContext.getCookie(e.config.flickr.upload_blocking.photo_limit_pro_redir_cookie_name)&&(this.setProRedirectCookie(),this.appContext.flapp.navigate(e.config.flickr.upload_blocking.photo_limit_pro_redir_url)),this},showFeedbackModal:function(){var t=this,i=e.QueryString.parse(e.config.win.location.search.replace("?","")),n=e.config.win.location.href;if(t.appContext.flipper.isFlipped("enable-feedback-modal")&&i&&void 0!==i.survey&&(n=n.replace("?survey",""),e.config.win.history.replaceState({},"",n),this.meetsFeedbackCriteria=!0),this.meetsFeedbackCriteria){var o,r=this.templates("feedback-modal-view")({}),a=[],s=!0;return this.appContext.getViewer().signedIn&&(this.get("viewer").getValue("isPro")&&a.push(this.appContext.getModel("person-proStatus-models",t.get("viewer").id).then(function(e){t.proStatusModel=e,s=1e3*e.toJSON().firstStart-new Date("November 1, 2018").getTime()>0})),a.push(this.appContext.getModel("person-profile-models",t.get("viewer").id).then(function(e){t.profileModel=e}))),e.Promise.all(a).then(function(){var i;(i=new e.Views.FluidModal({appContext:t.appContext,noScroll:!0,hideModalOverlay:!1,maxHeight:!1,showFooter:!1,classList:"modal-restyle",width:560,htmlMessage:r})).show(),i.on("activated",function(){o=i.get("container").one(".accept-button"),i.get("container").one(".cancel-button").on("click",function(e){i.close()}),o.on("click",function(e){var n,r,a,s,l="https://selfserve.decipherinc.com/survey/selfserve/2225/200401?list=3",c="no",p=t.appContext.getViewer().signedIn?"yes":"no";o.setAttribute("disabled"),t.appContext.getViewer().signedIn&&(r=t.appContext.getViewer().nsid,n=t.get("viewer").getValue("isPro")?"pro":"free",s=t.get("viewer").getValue("dateCreated").year()),t.proStatusModel&&(c=1e3*t.proStatusModel.toJSON().firstStart-new Date("November 1, 2018").getTime()>0?"yes":"no"),t.profileModel&&(a=t.profileModel.getValue("photoCount")),a&&(l+="&nop="+encodeURIComponent(a)),n&&(l+="&at="+encodeURIComponent(n)),c&&(l+="&np="+encodeURIComponent(c)),s&&(l+="&y="+encodeURIComponent(s)),r&&(l+="&id="+encodeURIComponent(r)),p&&(l+="&li="+encodeURIComponent(p)),window.open(l,"_blank"),i.close()})}),i.on("close",function(){localStorage.setItem("feedbackmodalseen4_20",!0)})})}},clearKeyboardFocus:function(e){this.get("container").all(".has-keyboard-focus").removeClass("has-keyboard-focus"),this.get("container").all(".nav-menu a[aria-expanded=true]").setAttribute("aria-expanded","false")},toggleAriaExpanded:function(e){e.target.setAttribute("aria-expanded","false"===e.target.getAttribute("aria-expanded")?"true":"false")},enterSubmenu:function(e){if(40===e.keyCode){e.preventDefault();var t=e.target.next("ul");t&&t.hasClass("has-keyboard-focus")&&t.one(":first-child").one(":first-child").focus()}},toggleSubmenu:function(e){var t=e.keyCode;if(13===t||32===t){e.preventDefault();var i=e.target.next("ul");i&&(i.hasClass("has-keyboard-focus")?this.clearKeyboardFocus():(i.addClass("has-keyboard-focus"),e.target.setAttribute("aria-expanded","true")))}},goToSubmenuHeading:function(e,t){var i;(t||27===e.keyCode)&&(t||this.clearKeyboardFocus(),e.target.hasClass("gn-submenu")?i=e.target.previous("a"):e.target.ancestor("ul.gn-submenu")&&(i=e.target.ancestor("ul.gn-submenu").previous("a")),i&&i.focus())},keyboardNavigation:function(e){var t=e.keyCode,i=9===t&&e.shiftKey,n=9===t&&!e.shiftKey;e.target.hasClass("gn-title")?(i=(37===t||i)&&e.target.ancestor("li").previous("li"),n=(39===t||n)&&!!e.target.ancestor("li").next("li"),i?(this.clearKeyboardFocus(),this.focusOnPreviousItem(e)):!n||e.target.next("ul")&&e.target.next("ul").hasClass("has-keyboard-focus")||(this.clearKeyboardFocus(),this.focusOnNextItem(e))):38===t||i?this.focusOnPreviousItem(e):(40===t||n)&&this.focusOnNextItem(e)},focusOnPreviousItem:function(e){e.preventDefault();var t=e.target.ancestor("li").previous("li:not(.divider)");t?t.one(":first-child").focus():e.target.ancestor("ul.gn-submenu")&&this.goToSubmenuHeading(e,!0)},focusOnNextItem:function(e){e.preventDefault();var t=e.target.ancestor("li").next("li:not(.divider)");t&&t.one(":first-child").focus()},startInterstitialTimer:function(){var t,i=this,n=!1;(t=e.StorageHelper.getItem("signUpInterstitialSeen"))?(t=e.moment(t,"x"),e.moment().subtract(2,"days")>t&&(n=!0)):n=!0,n&&(this.signUpInterstitialTimer=setTimeout(function(){if(!e.OverlayManager.hasOverlay()&&e.config.win.innerWidth>700){new e.Views.SignUpInterstitial({appContext:i.appContext}).show(),e.StorageHelper.setItem("signUpInterstitialSeen",e.moment().format("x"))}},4e3))},signUpAndUpload:function(t){var i,n=e.url("/upload/"),o=this.intlMessage({intlName:"global-nav.UPLOAD_MODAL_SIGNUP_TITLE"});t.halt(),e.rapidTracker.beacon(this.name,"uploadButtonClick"),(i=new e.Views.SignUpModal({appContext:this.appContext,signUpHeaderClass:"signup-upload",signUpTitle:o,beaconPrefix:"upload"})).on("signUpClick",function(t){e.SigninHelper._redirectToSignUp("upload",{postLoginUrl:n})}),i.on("signInClick",function(t){e.SigninHelper._redirectToSignin("upload",{postLoginUrl:n})}),i.show()},executeSearch:function(e){var t,i=this.get("container").one("#gn-search-field").getDOMNode();t=this.searchUrl.createNewSearch(i.value).getURL(),e.halt(),this.appContext.flapp.navigate(t)},setElementStates:function(e){var t=this.appContext.getViewer(),i=e.isSOHP&&!t.signedIn,n=e.isProPage,o={you_link:!1,you_menu:!1,contacts_menu:!1,groups_menu:!1,explore_menu:!1,weekly_flickr:!1,flickr_shorts:!1,get_pro_link:!0,upload_icon:!1,account_menu:!1,search_bar:!1,signup_link:!1,signin_link:!1,right_side_signup:!1,vr_link:!0,sidebar_signin_link:!1};return i?(o.search_bar=!0,o.signin_link=!0,o.signup_link=!0,o.get_pro_link=!1):n?(o.you_menu=!1,o.explore_menu=!1,o.upload_icon=!1,o.search_bar=!1,o.account_menu=!0,o.get_pro_link=!1):t.signedIn?(o.you_menu=!0,o.explore_menu=!0,o.upload_icon=!0,o.search_bar=!0,o.account_menu=!0):(o.signup_link=!0,o.explore_menu=!0,o.upload_icon=!0,o.search_bar=!0,o.signin_link=!0),this.get("viewer")&&this.get("viewer").getValue("isPro")&&(o.stats=!0,o.get_pro_link=!1),"en-us"===this.appContext.lang.toLowerCase()&&(o.weekly_flickr=!0,o.flickr_shorts=!0),this.signedOutTest&&(o.right_side_signup=!0),n||i||(o.prints_menu=!0),this.appContext.flipper.isFlipped("enable-events-page")&&(o.events_link=!0,o.weekly_flickr=!1,o.vr_link=!1),this.isSOHP||t.signedIn||(o.sidebar_signin_link=!0),o},isExpiringPartnerAccount:function(){var e=this.get("viewer").getValue("expiringPartner");return this.appContext.flipper.isFlipped("enable-partner-account-banner")&&e&&-1===["embedr-route","browser-upgrade-interstitial-route","products-marketplace-eol-route","products-account-payouts-route","error-route"].indexOf(this.appContext.routeConfig.module)},handleToastActionClick:function(t){var i=t&&t.clickEvent?t.clickEvent.target.getAttribute("href"):null;i?e.config.win.location.href=i:this.toastSubview.dismiss()},setProRedirectCookie:function(){var t=new Date;t.setTime(t.getTime()+60*e.config.flickr.upload_blocking.photo_limit_pro_redir_cookie_hours*60*1e3),this.appContext.setCookie({cookieName:e.config.flickr.upload_blocking.photo_limit_pro_redir_cookie_name,cookieValue:1,expires:t,path:"/"})},showOverLimitToast:function(){this.toastSubview&&this.appContext.flipper.isFlipped("enable-upload-limit-messages")&&e.UserLimitsHelper.isOverARRLimit(this.profileModel,this.appContext)&&(this.toastSubview.setup({htmlContent:this.templates("upload-limit-message")({title:this.intlMessage({intlName:"upload-blocking.OVER_UPLOAD_LIMIT_HEAD_FINAL"}),description:this.intlMessage({intlName:"upload-blocking.OVER_UPLOAD_LIMIT_COPY_FINAL",limitCount:e.config.flickr.account.photo_limit.toLocaleString(this.appContext.lang,{maximumFractionDigits:0})}),primaryActionText:this.intlMessage({intlName:"common.GET_PRO"}),secondaryActionText:this.intlMessage({intlName:"common.DISMISS"})}),classList:["urgent"]}),this.toastSubview.on("primaryActionClicked",this.handleToastActionClick.bind(this)),this.toastSubview.on("secondaryActionClicked",this.handleToastActionClick.bind(this)),this.toastSubview.show())},handlePrintClick:function(){"en-us"===this.appContext.lang.toLowerCase()?this.appContext.getCookie(e.config.flickr.flickrprints.dismiss_intro_to_prints_cookie_name)?this.showPrintSelector():this.showIntroToPrintsModal():this.showEnglishPrintWarningModal()},showPrintSelector:function(){var t=this,i=this.intlMessage({intlName:"prints.CHOOSE_PHOTO_TO_GET_PRINTS"}),n=[{id:"photostream",name:this.intlMessage({intlName:"common.PHOTOSTREAM"}),value:"photostream",selected:!0},{id:"sets",name:this.intlMessage({intlName:"common.ALBUMS"}),value:"sets"},{id:"upload",name:this.intlMessage({intlName:"global-nav.UPLOAD"}),value:"upload"}],o=[{id:"photostream",name:this.intlMessage({intlName:"common.PHOTOSTREAM"}),value:"photostream",selected:!0},{id:"sets",name:this.intlMessage({intlName:"common.ALBUMS"}),value:"sets"},{id:"upload",name:this.intlMessage({intlName:"global-nav.UPLOAD"}),value:"upload"}],r=[{id:"photostream",name:this.intlMessage({intlName:"common.PHOTOSTREAM"}),value:"photostream",selected:!0},{id:"sets",name:this.intlMessage({intlName:"common.ALBUMS"}),value:"sets"}],a={appContext:this.appContext,searchable:{yours:!0,contacts:!1,everyone:!1,marketplace:!1}};this.printSelector=new e.Views["photo-selector-view"](a),this.printSelectorModal=new e.Views.FluidModal({appContext:this.appContext,dismissOnOverlayClick:!0,dismissOnActionClick:!1,showBodyLines:!0,showCancelButton:!1,showCancelX:!0,title:"",navBarView:new e.Views["fluid-modal-nav-bar-view"]({appContext:this.appContext,links:n,enableSearch:!0,breakpointConfig:[{maxWidth:700,links:o,enableSearch:!1},{maxWidth:500,links:r,enableSearch:!1}]}),actionButtonLabel:this.intlMessage({intlName:"prints.BUY_PRINTS"}),actionButtonDisabled:!0,subview:this.printSelector,width:Math.round(.8*Math.max(1280,e.config.win.innerWidth)),height:Math.round(e.config.win.innerHeight-60),fullWindow:!0,classList:"photo-selector",hideModalOverlay:!1,buttonFlavorText:i,flexLayout:!0}),this.printSelectorModal.show(),this.printSelectorModal.registerEventHandler(e.on("photoSelector:selected",function(e){t.printSelectorModal.enableActionButton(),t.printSelectorModal.setFlavorText(i)})),this.printSelectorModal.registerEventHandler(e.on("photoSelector:unselected",function(e){t.printSelectorModal.disableActionButton()})),this.printSelectorModal.on("actionClick",this.handleBuyPrintClick.bind(t))},handleBuyPrintClick:function(){var t=this,i=this.printSelector.get("selected");e.config.win.location.href;this.printSelectorModal.disableActionButton(!0),this.appContext.getModel("photo-models",i).then(function(i){return t.photoPrintsHelper.canPrintPhoto(i)?t.photoPrintsHelper.registerPrint(i,e.config.win.location.href):e.Promise.reject({message:"Error: Can’t print photo."})}).then(function(t){e.config.win.location.href=t.redirectURL}).catch(function(e){t.printSelectorModal.enableActionButton(),t.printSelectorModal.setFlavorText(e.message||t.intlMessage({intlName:"prints.SOMETHING_WRONG_PREPARING_PRINT"}),!0)})},showEnglishPrintWarningModal:function(t){var i=this;this.englishPrintWarningModal=new e.Views.FluidModal({appContext:this.appContext,dismissOnOverlayClick:!1,showActionButton:!0,actionButtonLabel:this.intlMessage({intlName:"prints.CONTINUE_IN_ENGLISH"}),showCancelButton:!0,cancelButtonLabel:"en-us"===this.appContext.lang.toLowerCase()?this.intlMessage({intlName:"common.GO_BACK_BUTTON"}):this.intlMessage({intlName:"common.CANCEL"}),showCancelX:!1,showHeader:!0,showFooter:!0,title:this.intlMessage({intlName:"prints.ENGLISH_LANGUAGE_AHEAD"}),message:this.intlMessage({intlName:"prints.ORDERING_IS_ENGLISH_ONLY"}),hideModalOverlay:!1}),this.englishPrintWarningModal.show(),this.englishPrintWarningModal.on("actionClick",function(){setTimeout(function(){i.appContext.getCookie(e.config.flickr.flickrprints.dismiss_intro_to_prints_cookie_name)?i.showPrintSelector():i.showIntroToPrintsModal()},0)}),this.englishPrintWarningModal.on("close",function(){})},handleDrawerPageMouseDown:function(e){var t=e.target;t.ancestor(".mobile-nav-drawer",!0)||t.ancestor(".mobile-nav-toggle",!0)||this.hideMobileNavDrawer()},handleDrawerItemClick:function(e){this.hideMobileNavDrawer()},showMobileNavDrawer:function(){var t=this;this.get("container");this.contentContainer.addClass("drawer-open"),this.navDrawerShown=!0,this.navDrawer.addClass("shown"),e.fire("globalNav:navDrawerOpen"),clearTimeout(this.navDrawerOverlayHideTimeout),this.navDrawerOverlay&&(this.navDrawerOverlay.addClass("displayed"),setTimeout(function(){t.navDrawerOverlay.addClass("shown")},10)),this.drawerPageClickHandler||setTimeout(function(){t.drawerPageClickHandler=e.on(["mousedown","touchstart"],t.handleDrawerPageMouseDown.bind(t)),t.registerEventHandler(t.drawerPageClickHandler)},10)},hideMobileNavDrawer:function(){var t=this;this.get("container");this.contentContainer.removeClass("drawer-open"),this.navDrawerShown=!1,this.navDrawer.removeClass("shown"),e.fire("globalNav:navDrawerClosed"),this.navDrawerOverlay&&(this.navDrawerOverlay.removeClass("shown"),this.navDrawerOverlayHideTimeout=setTimeout(function(){t.navDrawerOverlay.removeClass("displayed")},500)),this.drawerPageClickHandler&&(this.detachRegisteredEvent(this.drawerPageClickHandler),this.drawerPageClickHandler=void 0)},prepareOrderConfirmationModal:function(){var t,i=this,n=e.QueryString.parse(e.config.win.location.search.replace("?",""));e.config.win.location.href;this.photoPrintsHelper.isPrintsEnabled()&&n&&void 0!==n.OrderID&&(t=n.OrderID,this.photoPrintsHelper.fetchOrder(t).then(function(e){i.showOrderConfirmationModal({orderId:e.orderId,orderUrl:e.orderUrl,email:e.email})}).catch(function(e){i.showOrderConfirmationModal({})}))},showOrderConfirmationModal:function(t){var i=this,n=this.templates("print-order-confirmation")({orderNum:t.orderId,orderUrl:t.orderUrl,email:t.email,helpUrl:"https://help.flickr.com/",feedbackUrl:"/help/forum"}),o=new e.Views.FluidModal({appContext:this.appContext,noScroll:!0,hideModalOverlay:!1,maxHeight:!1,showHeader:!1,showFooter:!1,showCancelX:!1,width:460,htmlMessage:n});o.show(),o.on("activated",function(){i.registerEventHandler(o.get("container").one("button.accept-button").on("click",function(){o.close()}))})},showIntroToPrintsModal:function(){var t=this,i=this.templates("intro-to-prints")({}),n=new e.Views.FluidModal({appContext:this.appContext,noScroll:!0,hideModalOverlay:!1,dismissOnOverlayClick:!0,maxHeight:!1,showHeader:!1,showFooter:!1,width:450,contentPadding:0,showCancelX:!0,htmlMessage:i});n.show(),n.on("activated",function(){n.get("container").one(".accept-button").on("click",function(e){n.close()})}),n.on("close",function(){var i=new Date;i.setTime(i.getTime()+36e10),t.appContext.setCookie({cookieName:e.config.flickr.flickrprints.dismiss_intro_to_prints_cookie_name,cookieValue:1,expires:i,path:"/"}),setTimeout(function(){t.showPrintSelector()},0)})},destructor:function(){clearTimeout(this.signUpInterstitialTimer),e.AnchorRepositioner.removeOffset(t)}})},"@VERSION@",{requires:["flickr-view","hermes-template-global-nav","hermes-template-feedback-modal-view","hermes-template-upload-limit-message","hermes-template-print-order-confirmation","hermes-template-intro-to-prints","search-url","search-autosuggest-field-view","querystring-parse-simple","querystring-stringify-simple","notifications-menu-view","url-helper","person-menu-view","group-menu-view","browser-support","fluid-modal-view","signup-modal-view","signup-interstitial-view","signin-helper","storage-helper","partner-account-banner-view","featured-toast-view","user-limits-helper","photo-selector-view","fluid-modal-nav-bar-view","banner-view","photo-prints-helper","math-helper","slim-footer-view"],langBundles:["global-nav","common","search","upload-blocking","prints","blurb","thanks"]});YUI.add("hermes-lang-global-nav",function(o,e){o.Intl.add("hermes/global-nav","en-US",{FLICKR_LOGO_ALT:["Flickr logo. If you click it, you'll go home"],YOUR_PHOTOSTREAM:["Your Photostream"],FOLLOWING:["Following"],PHOTOS_OF:["Photos of"],PHOTOS_FROM:["Photos from"],LIST:["List"],COMMUNITIES:["Communities"],GROUPS_LIST:["Groups List"],SEARCH_GROUPS:["Search Groups"],RECENT_DISCUSSIONS:["Recent Discussions"],CREATE_A_GROUP:["Create a Group"],RECENT_PHOTOS:["Recent Photos"],THE_COMMONS:["The Commons"],GETTY_COLLECTION:["Getty Collection"],GALLERIES:["Galleries"],FLICKR_GALLERIES:["Flickr Galleries"],WORLD_MAP:["World Map"],APP_GARDEN:["App Garden"],THE_WEEKLY_FLICKR:["The Weekly Flickr"],FLICKR_BLOG:["Flickr Blog"],UPLOAD:["Upload"],SIGN_IN:["Sign In"],SEARCH:["Search"],CAMERA_FINDER:["Camera Finder"],RECENT_ACTIVITY:["Recent Activity"],STATS:["Stats"],ORGANIZE:["Organize"],CREATIONS:["Creations"],FIND_FRIENDS:["Find Friends"],GROUPS:["Groups"],PEOPLE:["People"],CAMERAROLL:["Camera Roll"],CREATE:["Create"],CREATE_NEW:["New Creation"],CREATE_MY_WALLART:["My Wall Art"],CREATE_MY_PHOTOS_BOOKS:["My Photo Books"],CREATE_ORDER_HISTORY:["My Order History"],UPLOAD_MODAL_SIGNUP_TITLE:["Upload your photos securely and privately!"],UPLOAD_MODAL_SIGNUP_MESSAGE:["Join Flickr to unlock 1,000GB of free photo storage."],HOME:["Home"],LOG_IN:["Log In"]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-lang-prints",function(o,e){o.Intl.add("hermes/prints","en-US",{PRINTS:["Prints"],SIGNUP_MODAL_TITLE:["Get amazing prints!"],SIGNUP_MODAL_MESSAGE:["Join Flickr to gain access to our amazing print labs for all of your photos."],GET_STARTED:["Get started"],PRINTS_AND_GIFTS:["Prints & Wall Art"],VIEW_CART:["View Cart"],VIEW_CART_WITH_COUNT:["View Cart (","${count}",")"],BUY_PRINTS:["Buy prints"],PHOTO_BOOKS_MENU_TEXT:["Photo Books"],CHOOSE_PHOTO_TO_GET_PRINTS:["Choose a photo to get prints and wall art."],BUY_PRINTS_MENU_TEXT:["Buy Prints"],CHOOSE_YOUR_PHOTO_TO_GET_PRINTS:["Choose one of your photos to get prints and wall art."],LEARN_MORE_THEN_FEEDBACK:['<a class="learn-link" href="',"${learnUrl}",'" target="_blank">Learn more</a> then <a class="feedback-link" href="',"${feedbackUrl}",'" target="_blank">tell us what you think!</a>'],GET_PRINTS:["Get prints"],THANKS_FOR_YOUR_ORDER:["Thanks for your order!"],YOUR_ORDER_NUMBER_IS:['Your order number is <a class="order-link" href="',"${orderUrl}",'" target="_blank">',"${orderNum}","</a>."],YOULL_RECEIVE_ORDER_EMAIL:['You’ll receive an email with your order details at <span class="email-span">',"${email}","</span>."],HAVE_QUESTIONS_LINE:['Have questions? Check out <a class="help-link" href="',"${helpUrl}",'" target="_blank">our Help Center</a>.'],WE_WELCOME_FEEDBACK_HERE:['We welcome <a class="feedback-link" href="',"${feedbackUrl}",'" target="_blank">your feedback here</a>.'],PRINT_TOOLTIP_TEXT:["You can now get prints and wall art of your own photos. (This is only available to you for your photos)"],PRINT_TOOLTIP_TEXT_1:["You can now get prints and wall art of your own photos."],PRINT_TOOLTIP_TEXT_2:["This service is only available to you for your photos."],GET_PRINTS_WALL_ART_TITLE:["Get prints and wall art of your photos"],GET_PRINTS_WALL_ART_DESCRIPTION:["Choose from metal, canvas, or paper prints in many sizes and styles."],SELECT_FROM_YOUR_PHOTOS:["Select from your photos"],ENGLISH_LANGUAGE_AHEAD:["English language ahead!"],ORDERING_IS_ENGLISH_ONLY:["Our ordering process is English-only at the moment. Please proceed if you’re comfortable reading English."],CONTINUE_IN_ENGLISH:["Continue in English"],PRINTS_AND_WALL_ART:["Prints & Wall Art"],GET_STUNNING_WALL_ART:["Get stunning wall art and high-quality prints of your photos"],GET_STUNNING_ALL:["Stunning wall art and high-quality prints"],CHOOSE_PHOTOS:["Choose photos"],METAL_PRINTS:["Metal prints"],METAL_PRINTS_DESCRIPTION:["Metal prints deliver unparalleled color and vibrance to produce a depth and clarity unlike any other photographic wall art. If you want a print as bold as your most epic photos, look no further than metal prints."],PAPER_PRINTS:["Paper prints"],PAPER_PRINTS_DESCRIPTION:["Paper prints are a time-honored way to show off and share your favorite photos. From stacks of 4x6s to frameable statement pieces, you'll be able to find the perfect size and paper finish for any  photo."],CANVAS_PRINTS:["Canvas prints"],CANVAS_PRINTS_DESCRIPTION:["Add a little class to your home, office, or whatever other space needs  a classic canvas print. With shapes and sizes perfect for wherever you want to hang your photos, your images will look outstanding."],WHO_CAN_PRINT_PHOTOS_QUESTION:["Who can print my photos?"],WHO_CAN_PRINT_PHOTOS_ANSWER:["Only you can print your photos through Flickr. Visitors to your account will not see the option to buy prints of your photos."],WHO_MAKES_PRINTS_QUESTION:["Who makes the prints and wall art?"],WHO_MAKES_PRINTS_ANSWER:["Flickr Prints benefit from years of experience that SmugMug has in printing beautiful imagery. Depending on your location, your prints will come from Bay Photo, White House Custom Colour, or Loxley Colour. All the labs we use have excellent color reproduction and fantastic reputations."],HOW_LONG_SHIP_QUESTION:["How long does shipping take?"],HOW_LONG_SHIP_ANSWER:["We ship all over the world, including more than 160 countries. No matter where you are, we'll get your prints to you as fast as we can. Expedited shipping is available to get your prints even faster."],WHAT_IF_WRONG_ORDER_QUESTION:["What if something is wrong with my order?"],WHAT_IF_WRONG_ORDER_ANSWER:['If you\'re ever unhappy with your prints or wall art, Flickr will make it right. Simply send us an email within 30 days of receiving your order and we\'ll help you out. If you have any issues, <a class="support-link" href="',"${supportUrl}",'" target="_blank">reach out to our Support Heroes</a>.'],WHERE_PHOTO_BOOK_QUESTION:["Where can I make a photo book?"],WHERE_PHOTO_BOOK_ANSWER:["We partner with Blurb and Chatbooks for both hard-cover and soft-cover photo books. Your Flickr photo stream and albums are seamlessly integrated into the book-making process. Check out photo books."],WHERE_PHOTO_BOOK_ANSWER_WITH_LINKS:['We partner with <a class="blurb-link" href="',"${blurbUrl}",'" target="_blank">Blurb</a> and <a class="chatbooks-link" href="',"${chatbooksUrl}",'" target="_blank">Chatbooks</a> for both hard-cover and soft-cover photo books. Your Flickr photo stream and albums are seamlessly integrated into the book-making process. <a class="photo-books-link" href="',"${photoBooksUrl}",'" target="_blank">Check out photo books.</a>'],MORE_QUESTIONS_QUESTION:["More questions?"],MORE_QUESTIONS_ANSWER:['Please visit the <a class="help-link" href="',"${helpUrl}",'" target="_blank">Flickr Help Center</a> for more information or to connect with a Support Hero.'],PREPARING_YOUR_PHOTO:["Preparing your photo..."],SOMETHING_WRONG_PREPARING_PRINT:["Something went wrong while preparing your photo for prints."],MID_PAGE_PHOTO_ATTRIBUTION:["Photo by ","${photoOwner}","."],UNSUPPORTED_FILE_TYPE_PLEASE_JPG:["This is an unsupported file type. Please use JPG files for prints."],PRINT_PHOTOS_WITH_EASE:["Print your favorite photos from the best labs with ease."],WHO_CAN_PRINT_PHOTOS_ANSWER_CONTROL:["You have full control over who can print your photos. Keep printing to yourself, share with friends, or share with the world and enjoy the satisfaction of knowing your photos are being appreciated."]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-lang-blurb",function(o,r){o.Intl.add("hermes/blurb","en-US",{ALL_NEW_BOOKS_HEADER:["All-new photos books from Blurb"],ALL_NEW_BOOKS_SUBHEADER_PRO:["Get $35 off your Blurb® purchase.* Use your discount code below at checkout."],ALL_NEW_BOOKS_SUBHEADER_NONPRO:['Get $35 off your Blurb® purchase.* <a href="',"${url}",'">Learn more</a>'],GET_DISCOUNT_WITH_PRO:["Get $35 off with your Flickr Pro subscription"],PRINT_WITH_BLURB:["Print your photo books with Blurb®."],ASTERIX:["* With minimum purchase of $70. Offer available for 1-year and 2-year Flickr Pro subscriptions. Discount available once per year."],ASTERIX_V2:["* Get $35 dollars off your Photo Book purchase up to 4 times a year! Valid for orders of $70 or more when you're on an annual Flickr Pro plan."],ASTERIX_MINIMUM:["* With minimum purchase of $70."],ALL_NEW_BOOKS_SUBHEADER_2:["Use your discount code below at checkout."],LAUNCH_BlURB_BOOKIFY:["Launch Blurb Bookify"],CUSTOMIZE_BOOK_HEADER:["Customize your book."],MAKE_A_BOOK:["Make a book"],COLUMNS_CREATE:["Create."],COLUMNS_CREATE_TEXT:["Connect your Flickr account to Blurb and start your book. You can easily import your photostream and albums into the book layout."],COLUMNS_PRINT:["Print."],COLUMNS_PRINT_TEXT:["Get all the options you need for your project, including digital output, print on demand, and offset printing. Plus, choose from a wide range of paper options. It’s all up to you."],COLUMNS_SELL:["Sell."],COLUMNS_SELL_TEXT:['Choose from a range of distribution options, including Amazon, Ingram, and the Blurb Bookstore. As a Flickr Pro, you can now promote your books on Flickr as well. <a href="',"${url}",'">Learn more</a>'],COLUMNS_CUSTOMIZE:["Customize."],COLUMNS_CUSTOMIZE_TEXT:["Take advantage of Blurb’s many sizes, paper choices, and styles. Unleash your creativity with captions, text, and countless photo layouts."],ANOTHER_STUNNING_SHOT:["Another stunning photo shoot!"],WANT_MORE_CREATIVE:["Want more creative control?"],USE_FAVORITE_TOOLS:["Use your favorite Adobe & PDF tools."],CREATIVE_TEXT:['Lay out your book, magazine, or ebook with your favorite tools. Get easy print setup with Blurb’s plug-in for Adobe InDesign and Adobe Lightroom Book Module. Or, design with any app and use Blurb’s PDF uploader. <a href="',"${url}",'">Learn more</a>'],BLURB_SHARE:["Share."],BLURB_SHARE_TEXT:["Once you receive your Blurb book, share it with the Flickr community. Join the official Blurb Books group on Flickr and inspire others with your creations."],BLURB_BULLET_LIST_ONE:["1"],BLURB_BULLET_LIST_SECOND:["2"],BLURB_BULLET_LIST_THIRD:["3"],UPGRADE_TO_PRO_BTN:["Upgrade to Pro"],UPGRADE_YOUR_PRO_BTN:["Upgrade your Pro"],COPY_BLURB_CODE:["Copy"],COPY_COPIED:["Copied!"],PHOTO_BOOKS:["Photo Books"],PRO_BLURB_SECTION_TEXT:["Use Blurb's free book-creation tools for complete creative control. Get $35 off your first Blurb purchase with a yearly Pro subscription (minimum $70 Blurb purchase)."],BLURB_PRODUCT_PROMO_DESCRIPTION_TEXT:["Use Blurb's free book-creation tools for complete creative control. Get $35 dollars off your Photo Book purchase up to 4 times a year. Valid for orders of $70 or more."]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-lang-thanks",function(a,e){a.Intl.add("hermes/thanks","en-US",{THANK_YOU_USER:['<span class="thank-you-text">Thank you,</span> <span class="thank-you-name">',"${displayName}","</span>"],THANK_YOU_MESSAGE:["You've helped make Flickr a special place for so many years. We hope to delight you for many more."],PS_HAVE_A_WISH:["P.S. — Have a wish for Flickr?"],LET_US_KNOW:["Let us know!"]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-template-footer-full",function(t,a){var e=t.Template.Handlebars.revive({1:function(t,a,e,l,n){return" sohp"},3:function(t,a,e,l,n){var s,i=null!=a?a:{},o=e.helperMissing,c=t.escapeExpression;return'\t\t\t\t\t<li class="foot-li privacy-item"><a href="/help/privacy">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.PRIVACY"},data:n}))+'</a></li>\n\t\t\t\t\t<li class="foot-li terms-item"><a href="/help/terms">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.TERMS"},data:n}))+"</a></li>\n"+(null!=(s=(e.isFlipped||a&&a.isFlipped||o).call(i,"enable-cookie-consent-execution-hermes",{name:"isFlipped",hash:{},fn:t.program(4,n,0),inverse:t.noop,data:n}))?s:"")},4:function(t,a,e,l,n){return'\t\t\t\t\t\t<li class="foot-li trustarc-cookie-pref-butt"><a>'+t.escapeExpression((e.intlMessage||a&&a.intlMessage||e.helperMissing).call(null!=a?a:{},{name:"intlMessage",hash:{intlName:"policy-terms.COOKIES"},data:n}))+"</a></li>\n"},6:function(t,a,e,l,n){return'\t\t\t\t\t<li class="foot-li footer-company-item">\n\t\t\t\t\t\t<div class="foot-company">\n\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t'+t.escapeExpression((e.intlHTMLMessage||a&&a.intlHTMLMessage||e.helperMissing).call(null!=a?a:{},{name:"intlHTMLMessage",hash:{flickrUrl:"/",smugUrl:"https://www.smugmug.com/",intlName:"common.SMUG_FLICKR_FOOTER_ATTRIBUTION"},data:n}))+"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n"},8:function(t,a,e,l,n){var s=null!=a?a:{},i=e.helperMissing,o=t.escapeExpression;return'\t\t\t\t<div class="foot-company">\n\t\t\t\t\t<span class="foot-attribution">\n\t\t\t\t\t\t'+o((e.intlHTMLMessage||a&&a.intlHTMLMessage||i).call(s,{name:"intlHTMLMessage",hash:{flickrUrl:"/",smugUrl:"https://www.smugmug.com/",intlName:"common.SMUG_FLICKR_FOOTER_ATTRIBUTION"},data:n}))+'\n\t\t\t\t\t</span>\n\t\t\t\t\t<span class="foot-message">\n\t\t\t\t\t\t'+o((e.intlMessage||a&&a.intlMessage||i).call(s,{name:"intlMessage",hash:{intlName:"common.CONNECTING_PEOPLE_THROUGH_PHOTOGRAPHY"},data:n}))+"\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n"},10:function(t,a,e,l,n){return'\t\t\t\t<div class="foot-company empty">\n\t\t\t\t\t&nbsp;\n\t\t\t\t</div>\n'},compiler:[7,">= 4.0.0"],main:function(t,a,e,l,n){var s,i=null!=a?a:{},o=e.helperMissing,c=t.escapeExpression,r=t.lambda;return'<div class="foot-banner-container"></div>\n\n<footer class="foot'+(null!=(s=e.if.call(i,null!=a?a.isSOHP:a,{name:"if",hash:{},fn:t.program(1,n,0),inverse:t.noop,data:n}))?s:"")+'">\n\t<div class="foot-container desktop-layout" role="contentinfo">\n\t\t<div class="foot-top-row">\n\t\t\t<ul class="foot-top-nav foot-nav-ul">\n\t\t\t\t<li class="foot-li"><a href="/about">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.ABOUT"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/jobs">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.JOBS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="//blog.flickr.net/en">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.BLOG"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/services/developer">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.DEVELOPERS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/help/guidelines">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.GUIDELINES"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-privacy-item"><a href="/help/privacy">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.PRIVACY"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-terms-item"><a href="/help/terms">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.TERMS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-help-item"><a href="//help.flickr.com">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.HELP"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-report-item"><a href="/abuse">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.REPORT_ABUSE"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/help/forum">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.HELP_FORUM"},data:n}))+"</a></li>\n"+(null!=(s=e.if.call(i,null!=a?a.isSOHP:a,{name:"if",hash:{},fn:t.program(3,n,0),inverse:t.noop,data:n}))?s:"")+'\t\t\t\t<li class="foot-li lang-switcher">\n\t\t\t\t\t<a href="/change_language.gne?lang='+c(r(null!=(s=null!=a?a.selectedLang:a)?s.code:s,a))+"&csrf="+c(r(null!=(s=null!=a?a.selectedLang:a)?s.csrf:s,a))+'">'+c(r(null!=(s=null!=a?a.selectedLang:a)?s.name:s,a))+'</a>\n\t\t\t\t\t<span class="arrow"></span>\n\t\t\t\t</li>\n'+(null!=(s=e.if.call(i,null!=a?a.showCompany:a,{name:"if",hash:{},fn:t.program(6,n,0),inverse:t.noop,data:n}))?s:"")+'\t\t\t\t<li class="foot-li footer-social-item">\n\t\t\t\t\t<div class="foot-social">\n\t\t\t\t\t\t<ul class="foot-nav-ul">\n\t\t\t\t\t\t\t<li><a target="_blank" href="https://www.facebook.com/flickr" aria-label="Facebook">\n\t\t\t\t\t\t\t\t<svg class="ft-icon ft-facebook"><use xlink:href="#icon-facebook"></use></svg>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li><a target="_blank" href="https://twitter.com/flickr" aria-label="Twitter">\n\t\t\t\t\t\t\t\t<svg class="ft-icon ft-twitter"><use xlink:href="#icon-twitter"></use></svg>\n\t\t\t\t\t\t\t</a></li>\n\t\t\t\t\t\t\t<li><a target="_blank" href="https://www.instagram.com/flickr/" aria-label="Instagram">\n\t\t\t\t\t\t\t\t<svg class="ft-icon ft-instagram"><use xlink:href="#icon-instagram"></use></svg>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="foot-bottom-row">\n\t\t\t<div class="foot-row-content">\n\t\t\t\t<ul class="foot-nav-ul">\n\t\t\t\t\t<li class="foot-li"><a href="/help/privacy">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.PRIVACY"},data:n}))+'</a></li>\n\t\t\t\t\t<li class="foot-li"><a href="/help/terms">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.TERMS"},data:n}))+"</a></li>\n"+(null!=(s=(e.isFlipped||a&&a.isFlipped||o).call(i,"enable-cookie-consent-execution-hermes",{name:"isFlipped",hash:{},fn:t.program(4,n,0),inverse:t.noop,data:n}))?s:"")+"\t\t\t\t</ul>\n\t\t\t</div>\n\n"+(null!=(s=e.if.call(i,null!=a?a.showCompany:a,{name:"if",hash:{},fn:t.program(8,n,0),inverse:t.program(10,n,0),data:n}))?s:"")+'\n\t\t\t<div class="foot-social">\n\t\t\t\t<ul class="foot-nav-ul">\n\t\t\t\t\t<li><a target="_blank" href="https://www.facebook.com/flickr" aria-label="Facebook">\n\t\t\t\t\t\t<svg class="ft-icon ft-facebook"><use xlink:href="#icon-facebook"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a target="_blank" href="https://twitter.com/flickr" aria-label="Twitter">\n\t\t\t\t\t\t<svg class="ft-icon ft-twitter"><use xlink:href="#icon-twitter"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a target="_blank" href="https://www.instagram.com/flickr/" aria-label="Instagram">\n\t\t\t\t\t\t<svg class="ft-icon ft-instagram"><use xlink:href="#icon-instagram"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="foot-container mobile-layout">\n\t\t<div class="foot-top-row">\n\t\t\t<ul class="foot-top-nav foot-nav-ul">\n\t\t\t\t<li class="foot-li"><a href="/about">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.ABOUT"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/jobs">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.JOBS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="//blog.flickr.net/en">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.BLOG"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/services/developer">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.DEVELOPERS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/help/guidelines">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.GUIDELINES"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-report-item"><a href="/abuse">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.REPORT_ABUSE"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-privacy-item"><a href="/help/privacy">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.PRIVACY"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li footer-terms-item"><a href="/help/terms">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.TERMS"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li"><a href="/help/forum">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.HELP_FORUM"},data:n}))+'</a></li>\n\t\t\t\t<li class="foot-li lang-switcher">\n\t\t\t\t\t<a href="/change_language.gne?lang='+c(r(null!=(s=null!=a?a.selectedLang:a)?s.code:s,a))+"&csrf="+c(r(null!=(s=null!=a?a.selectedLang:a)?s.csrf:s,a))+'">'+c(r(null!=(s=null!=a?a.selectedLang:a)?s.name:s,a))+'</a>\n\t\t\t\t\t<span class="arrow"></span>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="foot-bottom-row">\n\t\t\t<div class="foot-row-content">\n\t\t\t\t<ul class="foot-nav-ul">\n\t\t\t\t\t<li class="foot-li"><a href="/help/privacy">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.PRIVACY"},data:n}))+'</a></li>\n\t\t\t\t\t<li class="foot-li"><a href="/help/terms">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.TERMS"},data:n}))+"</a></li>\n"+(null!=(s=(e.isFlipped||a&&a.isFlipped||o).call(i,"enable-cookie-consent-execution-hermes",{name:"isFlipped",hash:{},fn:t.program(4,n,0),inverse:t.noop,data:n}))?s:"")+'\t\t\t\t\t<li class="foot-li footer-help-item"><a href="//help.flickr.com">'+c((e.intlMessage||a&&a.intlMessage||o).call(i,{name:"intlMessage",hash:{intlName:"common.HELP"},data:n}))+"</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n"+(null!=(s=e.if.call(i,null!=a?a.showCompany:a,{name:"if",hash:{},fn:t.program(8,n,0),inverse:t.program(10,n,0),data:n}))?s:"")+'\n\t\t\t<div class="foot-social">\n\t\t\t\t<ul class="foot-nav-ul">\n\t\t\t\t\t<li><a target="_blank" href="https://www.facebook.com/flickr" aria-label="Facebook">\n\t\t\t\t\t\t<svg class="ft-icon ft-facebook"><use xlink:href="#icon-facebook"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a target="_blank" href="https://twitter.com/flickr" aria-label="Twitter">\n\t\t\t\t\t\t<svg class="ft-icon ft-twitter"><use xlink:href="#icon-twitter"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t\t<li><a target="_blank" href="https://www.instagram.com/flickr/" aria-label="Instagram">\n\t\t\t\t\t\t<svg class="ft-icon ft-instagram"><use xlink:href="#icon-instagram"></use></svg>\n\t\t\t\t\t</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</footer>\n'},useData:!0}),l={};t.Array.each([],function(a){var e=t.Template.get("hermes/"+a);e&&(l[a]=e)}),t.Template.register("hermes/footer-full",function(a,n){return n=n||{},n.partials=n.partials?t.merge(l,n.partials):l,e(a,n)})},"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("footer-full-view",function(e){e.FlickrView.create(this.name,e.FlickrView,[],{langBundles:this.details.langBundles,initializer:function(t){return""===this.get("container").get("innerHTML")&&this.setContainerHTML('<div class="footer-full-content"></div>'),this.footerHelper=new e.FooterHelper(this.appContext,{}),this.appStateParams=t,this},buildContainer:function(){var t;return this.get("viewer")&&e.merge(this.get("viewer").toJSON(),{urls:e.URLHelper.generatePersonUrls(this.get("viewer"))}),t=this.footerHelper.getTemplateParams(),t.showCompany="en-us"===this.appContext.lang.toLowerCase(),t.isSOHP=this.appStateParams.isSOHP,YUI.Env.isServer?t.pageUrl=this.appContext.request.url:t.pageUrl=window.location.pathname,this.setContainerWithTemplate("footer-full",t),this},activate:function(){var t,n=this,i=this.get("container");return this.registerEventHandler(i.delegate("click",function(e){t=e.target.ancestor(".lang-switcher",!0),e.preventDefault(),n.footerHelper.createDropAround(t,n)},".lang-switcher")),this.footNode=i.one(".foot"),this.bannerContainer=i.one(".foot-banner-container"),this.isBannerFixed=!1,this.registerEventHandler(e.globalEvents.subscribe("window:resize",this.updatePositioning.bind(this))),this.registerEventHandler(e.globalEvents.subscribe("window:scroll",this.updatePositioning.bind(this))),this.registerEventHandler(this.appContext.bannerManager.on("renderBanner",function(e){var t,i,r;if("footer"===e.placement)return t=e.bannerView,i=t.get("container"),(r=n.bannerContainer).empty(),r.appendChild(i),t.on("subviewActivated",function(){n.get("isCSSLoaded")&&n.updatePositioning()}),t.on("dismissed",function(){t.get("container").remove(),t.destroy(),n.get("isCSSLoaded")&&n.updatePositioning()}),t.normalizedActivate()})),this.onCSSLoaded(this.updatePositioning),this.registerEventHandler(e.on("globalNav:navDrawerClosed",function(){n.bannerContainer&&n.bannerContainer.removeClass("mobileDrawerOpen")})),this.registerEventHandler(e.on("globalNav:navDrawerOpen",function(){n.bannerContainer&&n.bannerContainer.addClass("mobileDrawerOpen")})),this},updateBannerPosition:function(t){var n=e.config.win.scrollY+e.config.win.innerHeight,i=this.footNode.getY();this.isBannerFixed&&n>=i?(this.bannerContainer.removeClass("fixed"),this.isBannerFixed=!1):!this.isBannerFixed&&n<i&&(this.bannerContainer.addClass("fixed"),this.isBannerFixed=!0)},updateBottomPadding:function(t){this.footerHeight=this.footNode.get("clientHeight"),e.one("#content").setStyle("padding-bottom",this.footerHeight+this.bannerContainer.get("clientHeight")-1)},updatePositioning:function(){this.updateBannerPosition(),this.updateBottomPadding(),e.fire("footerFull:positionUpdated")}})},"@VERSION@",{requires:["flickr-view","hermes-template-footer-full","url-helper","dropdown","fluid-droparound-view","footer-helper"],langBundles:["common","policy-terms"]});YUI.add("seo",function(e,t){e.Seo={appContext:{},stripTags:function(e){return e?String(e).replace(/<\/?[^>]+>/g,""):""},collapseWhitespace:function(e){return e.trim().replace(/\s+/g," ")},decodeEntities:function(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&nbsp;/g," ")},cleanText:function(e){return this.collapseWhitespace(this.decodeEntities(this.stripTags(e)))},getSEOTitleForPhoto:function(e){var t=this.cleanText(e.getValue("title")),l=this.cleanText(e.getValue("description")),n=this.cleanText(e.getValue("owner").getValue("displayname")),g=70-(t.length+"| Flickr".length+5);return t.length>=50?t.slice(0,58)+(t.length<58?" ":"… "):t.length>20&&t.length<50?l.length>20?t+" | "+l.slice(0,g)+(l.length<g?" ":"… "):l.length>0?t+" | "+l.slice(0,g)+(l.length<g?" ":"… ")+"| "+n+" ":t+" | "+n+" ":t.length<=20&&t.length>0?l.length>50?t+" | "+l.slice(0,g)+(l.length<g?" ":"… "):l.length>0?t+" | "+l.slice(0,g)+(l.length<g?" ":"… ")+"| "+n+" ":t+" | "+n+" ":l.length>50?l.slice(0,g)+(l.length<g?" ":"… "):l.length>0?l.slice(0,g)+(l.length<g?" ":"… ")+"| "+n+" ":"Untitled | "+n+" "},generateSEODescriptionForPhoto:function(e,t,l,n,g){var i=e.getValue("og:title"),h=e.getValue("og:description"),c="";return"Untitled"===i&&(i=n),h.length>120?c=h.slice(0,120)+(h.length<120?" ":"… ")+l+" "+g+".":h.length>60&&h.length<120?c=h+("."===h.slice(h.length-1,h.length)?" ":". ")+i.slice(0,40)+(i.length<40?" ":"… ")+l+" "+g+".":h.length<=60&&(c=i+("."===i.slice(i.length-1,i.length)?" ":". ")+h.slice(0,160-i.length)+(h.length<160-i.length?" ":"… ")+l+" "+g+"."),c}}},"@VERSION@",{requires:[]});