Watercolor Prints And Posters

=o._oldPageSize||(o._page-1)%Math.floor(o._oldPageSize/o._infiniteScrollPageSize)==0))){var n="pageBreak"+o._pageBreakId++,l=Math.floor((o._page-1)/Math.floor(o._oldPageSize/o._infiniteScrollPageSize)+1);o.injectNodeHtml(z,'

'+o.localize("page",{page:l})+"

","inner bottom"),o._pageBreaks.push(n)}i()},callback:function(){var n="$"+o.get("idPrefix"),l=window[n];if(l&&(o.set(l),S=Math.min(o._numResults,s*p)-g,window[n]=void 0,o.fire("Updated Data")),++P==S||!S&&!(P-1)){var r=a.getNode("clearDiv"+(o._useBackupItemsContainer?"2":""));if(r&&(t.remove(r),z.appendChild(r)),a.setNodeStyle(h,y),!e){var c=function(){u&&a.setNodeStyle(v,{overflow:C});for(var e=a.itemWidgets,t=[],n=-1;++n0?1:-1),n=new e({startValue:t,endValue:0,duration:u,curve:i.easeOutCircular()});n.wire({Start:function(){o.setNodeStyle(w,{left:0,position:"absolute",top:0}),o.setNodeStyle(z,{display:"block",left:+n,position:"relative"})},"Changed.value":function(){var e=+n;o.setNodeStyle(z,{left:e}),o.setNodeStyle(w,{left:e-t})},Done:function(){o.setNodeStyle(w,{display:"none",position:""}),o.setNodeStyle(z,{position:""}),c(),o._doneUpdating(),n=null}}),n.start()}):c()}u||o._doneUpdating(),o._infiniteScroll&&o._checkInfiniteScroll()}o._hasHoles&&o._doneUpdating()}})};if(g<=_){o._showloadingoverlay(!0,e),o.set({_updating:!0});var>1,l=!e._infiniteScroll,a=function(e,t){var o=i[e];o&&o.displayNode("",t)};a("sortTop",n),a("sortBottom",n),a("pageSizeTop",l),a("pageSizeBottom",l),a("paginationTop",l||e._alwaysShowTop),a("paginationBottom",l);var r=!l&&e._infiniteScrollButtonInterval>-1&&(e._page-1)%e._infiniteScrollButtonInterval==e._infiniteScrollButtonInterval-1&&e._page*on?i[o-n]:null,a=o>0?i[o-1]:null,r=e._page*e._pageSize10||a&&t.getCoords(a.getNode()).percentSeen>10)||e._hasHoles&&0==i.length)&&(e.children.paginationTop&&e.children.paginationTop.displayNode("",!1),e.set({page:e._page+1}))}},n.beforeAddNewItems=function(){},n.afterAddNewItems=function(){},n.getScrollableProperties=function(){return{page:1,pageSize:1,sort:1}},n.getServiceParams=function(){return{}},n.reset=function(){var e=this;e._updateCacheDefeat(),e._refresh()},n.updateResults=function(e){var t=this;if(e=e||{},void 0==e.page&&1!=t._page&&(e.page=1),e.page&&t._page!=e.page)t.set(e);else{var o=t._infiniteScroll&&void 0!=e.page&&1==i.keys(e).length;t._preventScroll=o||!t._allowScroll(e),t._updateItems(o),t._preventScroll=!1}},n.updateUi=function(){var i=this;i.isWired&&(i.children.collection.forAll(function(e){e.updateUi()}),i._updateUiControls(),e.doMy(i,"updateUi"))},n.wireUi=function(){var i=this,o=i.children.infiniteScrollTop;i.get("scrollNode");i.isWired||(i.displayNode(i._getCollectionContainer(!0),!1),i.children.collection.wire("Items Removed",function(e){e.byUser&&(!i._serviceUrl&&i.set({_numResults:i._numResults-e.totalRemoved}),i._updateCacheDefeat(),i._refresh((i._page-1)*i._pageSize0&&c>0&&r+c<1};return>3&&e._mouseLocations.shift()}})})},instanceMethods:{wireMenu:function(i,u,r){var c,a=this,s=null,r=e.copyInto({enter:e.nop,exit:e.nop,activate:e.nop,deactivate:e.nop,exitMenu:e.nop,initialActiveRow:null,submenuDirection:"right",delay:300},r),l=null,f=r.initialActiveRow;if(null!=f){e.findRecordNo(u,f)<0&&(f=null)}var>p.x||n.yp.y)return 0;if(s&&e.x==s.x&&e.y==s.y)return 0;var w=x,h=p;"left"==r.submenuDirection?(w=v,h=y):"below"==r.submenuDirection?(w=y,h=p):"above"==r.submenuDirection&&(w=v,h=x);var g={x:w.x-n.x,y:w.y-n.y},L={x:h.x-n.x,y:h.y-n.y};return o(e,n,g,L)?(s=e,r.delay):(s=null,0)};n.wire(i,{mouseout:function(){c&&clearTimeout(c),r.exitMenu(i)&&(l&&r.deactivate(l),l=null)}});for(var x=0;x "+e.localize("codeApplied"))},a.wireUi=function(){var o=this;if(!o.isWired){if(o._useAnimation){var a=document.documentElement,t=document.body;i.Node.wire(window,{load:function(){o._allowAnimationOnLoad&&setTimeout(function(){o._applyActiveClass(!0),setTimeout(function(){o._applyActiveClass(!1)},o._afterLoadAnimationDuration)},o._afterLoadAnimationDelay)},scroll:function(){var e=a&&a.scrollTop||t&&t.scrollTop||window.pageYOffset&&window.pageYOffset||0;o._animationActiveTimeout&&clearTimeout(o._animationActiveTimeout),o._animationActiveTimeout=setTimeout(function(){o._applyActiveClass(e>o._scrollThreshold)},e>o._scrollThreshold?o._afterScrollAnimationDelay:o._afterScrollAnimationDuration)}})}o.wireNode("promoCode","click",function(){o._allowAppliedUi&&o.ajax({service:"orders/cart/applycoupon",code:o.get("promoCode")},{cache:"never",callback:function(e){e.success&&(o.set({isApplied:e.success}),o.fire({name:"Promotion Applied",data:{code:o.get("promoCode")},bubble:!0}))}})}),e.doMy(o,"wireUi")}},o.stateProperties({_allowAppliedUi:{name:"allowAppliedUi",value:!1},_isApplied:{name:"isApplied",value:!1,onChange:function(){this._updateAppliedUi()}},_allowAnimationOnLoad:{name:"allowAnimationOnLoad",value:!1},_useAnimation:{name:"useAnimation",value:!0},_afterLoadAnimationDelay:{name:"afterLoadAnimationDelay",value:1e3},_afterLoadAnimationDuration:{name:"afterLoadAnimationDuration",value:500},_afterScrollAnimationDelay:{name:"afterScrollAnimationDelay",value:10},_afterScrollAnimationDuration:{name:"afterScrollAnimationDuration",value:100},_scrollThreshold:{name:"scrollThreshold",value:120}}),o}}); Uize.module('ZazzleWww.CollectionItem'); Uize.module('ZazzleWww.CollectionItem.Cell'); Uize.module({name:"ZazzleWww.CollectionItem.Cell.RecentlyViewed",superclass:"Zazzle.CollectionItem.Cell",required:["Zazzle.Widget.mV2"],builder:function(e){"use strict";Uize;return e.subclass({mixins:Zazzle.Widget.mV2,stateProperties:{},htmlBindings:{},eventBindings:{"#previewShell:click":function(){var e=this,i=e.get("properties");e.fire({name:"Track Event",bubble:!0,extra:{ax:"recentlyViewedItemClicked",objectId:i&&i.id,objectType:i&&i.type}})}}})}}); Uize.module('ZazzleWww.Dialog'); Uize.module({name:"ZazzleWww.Dialog.GeolocationRedirect",superclass:"Zazzle.Dialog",required:["Uize.Node","Uize.Widget.Button"],builder:function(e){"use strict";var t=Uize,i=t.Widget.Button;return e.subclass({alphastructor:function(){},stateProperties:{_daysToExpire:{name:"daysToExpire",value:9999},_originalUrl:{name:"originalUrl"}},children:{continueBtn:i,noThanksBtn:i},eventBindings:{"continueBtn:Click":function(){var e=this;e.fire("Cancel"),e.set("shown",!1)},"noThanksBtn:Click":function(){var e=this;window.location.href=e._originalUrl}},instanceMethods:{_disableGeolocation:function(){var e=this;if(!Uize.localStorage.getItem("geolocationRedirect")){var t=new Date;t.setDate(t.getDate()+e._daysToExpire);var i={value:"true",timestamp:t};Uize.localStorage.setItem("geolocationRedirect",JSON.stringify(i))}}}})}}); Uize.module({name:"ZazzleWww.EmailSignupForm",superclass:"Uize.Widget.Form",builder:function(e){"use strict";var i=e.subclass();return i.prototype.wireUi=function(){var i=this;if(!i.isWired){var t=i.getNode("email"),o=i.getNodeValue(t),u=function(){var e=i.getNode("form");return e&&(i.callInherited("launchPopup")({url:e.action,name:"emailSignupWindow",resizable:!0,scrollbars:!0,width:550,innerWidth:550,height:550,innerHeight:550}),e.target="emailSignupWindow",e.submit()),!1};i.wireNode("form","submit",function(){u()}),i.wireNode("submit","click",function(){u()}),i.wireNode(t,{focus:function(){i.getNodeValue(t)==o&&i.setNodeValue(t,"")},blur:function(){i.getNodeValue(t)||i.setNodeValue(t,o)}}),e.doMy(i,"updateUi")}},i}}); Uize.module({name:"ZazzleWww.HeaderNavSection2",superclass:"Uize.Widget.PopupPalette",required:["Uize.Dom.Event","Uize.Widget.Collection","Uize.Widget.mWeb"],builder:function(e){var t=Uize,o=t.Node,n=e.subclass(null,function(){function e(){var e=o.find({root:t.children.selector.getNode(),className:"navColumns"});if(e.length){for(var n=e[0],i=o.find({root:n,tagName:"UL"}),a=2,r=-1;++r-1){var o=e.getNode("palette").getElementsByTagName("a");window.s;t.forEach(o,function(o){e.wireNode(o,"click",function(n){t.Dom.Event.preventDefault(n);var i="hdr_"+e._sectionName+":"+o.pathname.replace(/\//g,"_");e.fire({name:"Track Event",bubble:!0,extra:{ax:"headerFlyoutTracking",link:i},onDoneOrTimeout:function(){if(window&&window.s){var e=window.s;e.c_w(e.headerFlyoutCookie,i)}t.isEmpty(o.href)||"javascript://"==o.href||(location.href=o.href)}})})})}else t.indexIn(["User"],e._sectionName)>-1&&(e.wireNode("switch","click",function(t){e.confirm({title:e.localize("switchDialogTitle"),message:e.localize("switchDialogMessage"),yesHandler:function(){e.ajax({service:"member/setmakergroupid",groupId:e._switchToMakerGroupId},{callback:function(e){e.success&&location.reload()}})}})}),e.wireNode("multiswitch","click",function(t){e.callInherited("useDialog")({component:{name:"ZazzleWww.Dialog.SwitchMakerGroup"},widgetProperties:{name:"switchMakerGroup"}})}))}},_isTablet:"isTablet",_now:"now",_sectionName:"sectionName",_switchToMakerGroupId:"switchToMakerGroupId"}),n}}); Uize.module({name:"ZazzleWww.HeaderNavigation",superclass:"Uize.Widget",required:"ZazzleWww.HeaderNavSection2",builder:function(e){"use strict";var t=e.subclass(null,function(){for(var e=this,t=e._delay,i=-1,n=e._sections.length,o=e._isMobile=e.getInherited("env").isMobile,a=function(i){var n=e.addChild("navSection"+i,e._sectionWidgetClass||ZazzleWww.HeaderNavSection2,{contentPath:e._contentPath,hideWhenOut:!0,sectionName:i,showWhenOver:!o&&t,hideOnClick:o,isTablet:e._isTablet,now:e._now,additionalPaletteProperties:e._additionalPaletteProperties});n.wire({"Before Palette Shown":function(){e.fire({name:"Before Menu Dropdown Shown",sectionNav:n}),e.displayNode("shield",!0)},"Palette Shown":function(){e.fire({name:"Menu Dropdown Shown",sectionNav:n})},"Palette Dismissed":function(){e.displayNode("shield",!1),e.fire({name:"Menu Dropdown Dismissed",sectionNav:n})}}),e.wireNode("shield",{mouseup:function(){n.set({shown:!1})}}),e._sectionNavPopupPalettes.push(n)};++i0&&t.wireNode("","mouserest("+o+")",function(){a(function(e,t){e.set({showWhenOver:0}),t()})})),e.doMy(t,"wireUi")}},t.stateProperties({_additionalPaletteProperties:{name:"additionalPaletteProperties",value:{}},_delay:"delay",_contentPath:{name:"contentPath",value:"ZazzleWww.HeaderNavSection"},_isTablet:"isTablet",_sectionNavPopupPalettes:{value:[]},_sections:{name:"sections",value:{}},_sectionWidgetClass:"sectionWidgetClass",_now:"now",_deferWireSections:{name:"deferWireSections",value:!0}}),t}}); Uize.module({name:"ZazzleWww.SearchInput",superclass:"Uize.Widget.AutoSuggest",required:["Uize.Cookie","Uize.Url","Uize.Node","Uize.Node.Event","Uize.Widget.Button"],builder:function(e){var t,a=!0,s=null,r=Uize,i=r.Node,n=e.subclass(null,function(){function e(e,o,u){function l(e){var t=Uize.copyInto(i._useEnvParams?i.getInherited("env").params:{},e);if(o==s||r.isEmpty(o.extraParams)||r.isEmpty(o.extraParams.path))i._targetPath?location.href=Uize.Url.resolve(i.getInherited("env").www+i._targetPath,t):location.href=i.callInherited("wwwSearchPag")(t);else{var a=i.getInherited("env").www+o.extraParams.path,n=o.extraParams.appendSearchTermAsPath;t=e,n&&(a+="/"+e.qs,delete t.qs);var u={qs:"",pg:1,cg:0};for(var l in u)t[l]==u[l]&&delete t[l];location.href=Uize.Url.resolve(a,t)}}if(i.isWired&&!n){n=a;var c=o!=s?o.name:i.getNodeValue("input"),g=r.copyInto({qs:c===i.get("placeholder")?"":c,pg:1,cg:i.getNode("inCategory")&&i.getNode("inCategory").checked?t:0},o!=s&&o.extraParams!=s&&o.extraParams.params!=s?o.extraParams.params:{});r.isNully(u)||r.isEmpty(c)||window&&window.hasOwnProperty("BrTrk")&&BrTrk.getTracker().logEvent("suggest",u,{q:c,aq:i.get("lastUserQuery")}),i.fire({name:"Track Event",bubble:a,extra:Uize.copyInto({ax:"search",pos:e?e:0,q:i.get("lastTypedQuery"),path:o==s||r.isEmpty(o.extraParams)||r.isEmpty(o.extraParams.path)?s:o.extraParams.path},g)}),r.Cookie.setCookie("ax",r.Url.toParams(r.copyInto({hs:!0},g)),"/"),"ja-JP"==i.getInherited("env").lang?i.ajax({serviceUrl:"/svc/search/tokenizer/tokenize",term:g.qs},function(e){e.success&&null!=e.data.terms&&(g.qs=e.data.terms.toString().replace(/,/g," ")),l(g)}):l(g)}}var i=this,n=!1;i._useZazzleSearch&&(i.wire({Ok:function(){var t=i.children.suggestions,a=s;if(t&&t.get("tentativeValueNo")>-1){var r=t.children["option"+t.get("tentativeValueNo")];r&&(a=r.get("valueDetails"))}e(0,a)},"Suggestion Selected":function(t){e(t.option.get("name").substr(6)+1,t.option.get("valueDetails"),t.action)}}),i.wireNode("searchButton","click",function(t){i._searchOnClick&&e(0,s)}))}),o=n.prototype;return o.suggestionFormatAdapter=function(e,t){function a(e){return'

'+e+"

"}var s,i=this,n=e.fullWord,o=i.get("highlightMode"),u=r.isEmpty(e.postSuffix)?"":function(e){return'

'+e+"

"}(e.postSuffix),l=/\s/.test(n),c=new RegExp(t,"i"),g=(n.search(c),new RegExp("(\\s)+"+t,"i")),p=n.search(g)+1;return s="none"===o?n:"query"===o&&0===n.indexOf(t)?e.prefix+a(t)+e.suffix:0===n.indexOf(t)?a(e.prefix)+t+a(e.suffix):"query"===o&&l&&p>0?n.substr(0,p)+a(n.substr(p,t.length))+n.substr(p+t.length,n.length):"query"===o&&n.indexOf(t)>0?n.replace(t,a(t)):a(n),i.get("optionDataAdapter")(n,s+u,e.extraParams)},o.wireUi=function(){var t=this;if(!t.isWired){var a=(t.getNode("form"),window),s=function(){var e=(i.getDimensions(a).width,i.getDimensions(a).height),s=t.get("additionalAutoSuggestParams"),r=.75*(e-110),n=Math.max(Math.floor((r-27-0)/35),5);s.ps!=n&&(s.ps=n,t.set({additionalAutoSuggestParams:s}))};t.wireNode("form","submit",function(e){Uize.Node.Event.preventDefault(e)}),i.wire(a,{resize:s}),e.doMy(t,"wireUi"),s()}},n.stateProperties({_useEnvParams:{name:"useEnvParams",value:a},_useZazzleSearch:{name:"useZazzleSearch",value:a},_targetPath:{name:"targetPath",value:null},_searchOnClick:{name:"searchOnClick",value:!0},_responseAdapter:{name:"responseAdapter",value:function(e,t){var a=[];if(null!=t.sections)for(var s=0;s=0;)a[i].title&&(a[i].title=Uize.Util.Html.Encode.encode(a[i].title));(e||t.children.cartContents).set({values:a})}})},o.stateProperties({_compatibilityMode:"compatibilityMode",_maxCartItemsToShowInPalettes:{name:"maxCartItemsToShowInPalettes",value:3},_showGeolocation:"showGeolocation",_regionCode:"regionCode",_originalUrl:"originalUrl",_productPageId:"productPageId",_serverLoadMainSectionPalettes:"serverLoadMainSectionPalettes"}),o}});

The Best Essay Writing Service - EssayBox.org

Uize.module('ZazzleWww.Widgets'); Uize.module({name:"ZazzleWww.Widgets.Header2016FlyoutSubmenuContent",superclass:"Zazzle.Widget.V2",required:["Uize.Node.Classes","Zazzle.Widget.mV2Web"],builder:function(e){Uize;return e.subclass({mixins:[Zazzle.Widget.mV2Web],alphastructor:function(){},omegastructor:function(){},stateProperties:{},children:{},childBindings:{},cssBindings:{},htmlBindings:{},eventBindings:{},instanceMethods:{}})}}); Uize.module({name:"ZazzleWww.Widgets.Header2016Flyout",superclass:"Zazzle.Widget.V2",required:["Uize.Node.Classes","Uize.Node","Zazzle.Widget.mV2Web","Zazzle.Widget.mHierarchicalMenu","ZazzleWww.Widgets.Header2016FlyoutSubmenuContent"],builder:function(e){Uize;return e.subclass({mixins:[Zazzle.Widget.mV2Web,Zazzle.Widget.mHierarchicalMenu],alphastructor:function(){var e=this;e.whenever("wired",function(){if(e.hasSubmenuNav){var t=Uize.map(e._submenuNav,function(t){return{name:t.name,node:e.getNode(t.nodeName),contentNode:e.getNode(t.contentNodeName),imagePanelNode:e.getNode(t.imagePanelNodeName)}}),n=e.wireMenu(e.getNode("submenuNav"),t,{submenuDirection:"right",initialActiveRow:null!=t&&t.length>0?t[0]:null,activate:function(t){e.web(t.node).setClassState(e.cssClass("active"),!0),e.web(t.contentNode).setClassState(e.cssClass("active"),!0),t.imagePanelNode&&e.web(t.imagePanelNode).setClassState(e.cssClass("active"),!0)},deactivate:function(t){e.web(t.node).setClassState(e.cssClass("active"),!1),e.web(t.contentNode).setClassState(e.cssClass("active"),!1),t.imagePanelNode&&e.web(t.imagePanelNode).setClassState(e.cssClass("active"),!1)},exitMenu:function(){return!1}});e.set({resetMenuFunc:n.resetMenu}),null!=t&&t.length>0&&(e._updateMaxHeight(),e.web(window).resize(function(){e._updateMaxHeight()}))}})},omegastructor:function(){var e=this;e.hasSubmenuNav?Uize.forEach(e._submenuNav,function(t){e.addChild(t.name,ZazzleWww.Widgets.Header2016FlyoutSubmenuContent)}):e.addChild("submenuContent",ZazzleWww.Widgets.Header2016FlyoutSubmenuContent)},stateProperties:{hasSubmenuNav:"hasSubmenuNav",_submenuNav:{name:"submenuNav",value:{}},_resetMenuFunc:"resetMenuFunc"},children:{},childBindings:{},cssBindings:{},htmlBindings:{},eventBindings:{},instanceMethods:{resetMenu:function(){this._resetMenuFunc&&this._resetMenuFunc()},_updateMaxHeight:function(){var e=this;if(e.hasSubmenuNav&&null!=e._submenuNav){var t=0;Uize.forEach(e._submenuNav,function(n){var a=e.getNode(n.contentNodeName),s=e.getNode(n.imagePanelNodeName),i=e.children[n.name];e.web(a).css({display:"block",height:"auto"}),e.web(s).css({display:"block"});var u=s?e.web(s).height():0,o=i&&i.getNode("bottomRow")?i.web("bottomRow").height():0,l=Math.max(e.web(a).height()+o,u);e.web(a).css({display:null,height:null}),e.web(s).css({display:null}),l>t&&(t=l)}),e.web("submenuNav").height()>t&&(t=e.web("submenuNav").height()),e.web("submenuContents").css({height:t}),Uize.forEach(e._submenuNav,function(n){e.web(n.contentNodeName).css({height:t})})}}}})}}); Uize.module({name:"ZazzleWww.Widgets.Header2016Flyouts",superclass:"Zazzle.Widget.V2",required:["Uize.Dom.Basics","Uize.Dom.Pos","Uize.Dom.Event","Zazzle.Widget.mV2Web","ZazzleWww.Widgets.Header2016Flyout"],builder:function(e){"use strict";var t=Uize,o=t.Dom,n=o.Basics,i=o.Pos;return e.subclass({mixins:[Zazzle.Widget.mV2Web],omegastructor:function(){var e=this;e._moreFlyouts={},t.forEach(e._flyouts,function(t){e._moreFlyouts[t.name]=!1})},stateProperties:{_activeFlyout:{name:"activeFlyout",value:null},_tentativeActiveFlyout:{name:"tentativeActiveFlyout",value:null},_delayClose:{name:"delayClose",value:250},_delayInitial:{name:"delayInitial",value:150},_delaySubsequent:{name:"delaySubsequent",value:10},_moreFlyouts:{name:"moreFlyouts",value:{},onChange:function(){var e=this;e.isWired&&t.forEach(e._flyoutKeys,function(t){e.web(e._flyouts[t].nodeName+"More").setClassState(e.cssClass("hasItem"),e._moreFlyouts[t]),e.web(e._flyouts[t].nodeName).setClassState(e.cssClass("hasItem"),!e._moreFlyouts[t])})}},_moreFlyoutHasContent:{name:"moreFlyoutHasContent",derived:{properties:"moreFlyouts, flyoutKeys",derivation:function(e,o){var n=!1;return t.forEach(o,function(t){n=n||e[t]}),n}}},_flyoutKeys:{name:"flyoutKeys",value:[]},_flyouts:{name:"flyouts",value:{}},_stickyFlyouts:{name:"stickyFlyouts",value:{}},_moreNode:{name:"moreNode",value:"more"},_pageWidth:"pageWidth",_showWhenOver:{name:"showWhenOver",value:!1},_bringStickyToFront:"bringStickyToFront"},children:{},childBindings:{},cssBindings:{bringStickyToFront:["","bringStickyToFront"],moreFlyoutHasContent:["","showMore"]},htmlBindings:{},eventBindings:{},instanceMethods:{_wireLinkTracking:function(){var e=this;if(e.getNode()){var o=e.getNode().getElementsByTagName("a");t.forEach(o,function(o){e.wireNode(o,"click",function(n){t.Dom.Event.preventDefault(n);var i=e.web(o).attribute("data-tracking");if(i){var a=i.split("_"),l=null,s=!1;a&&a.length>=1&&(l=a[1]),s=e._moreFlyouts[l],e.fire({name:"Track Event",bubble:!0,extra:{ax:"headerFlyoutTracking",link:i,more:s},onDoneOrTimeout:function(){if(window&&window.s){var e=window.s;e.c_w(e.headerFlyoutCookie,i)}t.isEmpty(o.href)||"javascript://"==o.href||(location.href=o.href)}})}})})}},_getCandidateForMovingToMore:function(){for(var e=this,t=null,o=e._flyoutKeys.length-1;o>=0;o--){var n=e._flyoutKeys[o];if(!e._moreFlyouts[n]&&!e._flyouts[n].isPinned)return n;!e._moreFlyouts[n]&&null==t&&e._flyouts[n].isPinned&&(t=n)}return t},_moveOneToMore:function(){var e=this,o=e._getCandidateForMovingToMore();if(null!=o){var n=t.copy(e._moreFlyouts);n[o]=!0,e.set({moreFlyouts:n})}},_moveAllToInline:function(){var e=this,o=t.clone(e._moreFlyouts);t.forEach(e._flyoutKeys,function(e){o[e]=!1}),e.set({moreFlyouts:o})},_clamp:function(){var e=this,o=i.getDimensions(e.getNode("")).width,n=i.getDimensions(e.getNode("stickyMenus")).width,a=i.getDimensions(e.getNode(e._moreNode)).width,l=a>0?a+2:0,s=o-n,u=e._calculateFlyoutWidths();t.forEach(e._flyoutKeys,function(t){if(!e._moreFlyouts[t]){var o=u[t]+2;l+=o}}),s=y&&(o._moveAllToInline(),o._clamp())}),e.doMy(o,"wireUi"),o._pageWidth>=y&&(o._moveAllToInline(),o._clamp()),o._wireLinkTracking()}}}})}}); Uize.module({name:"ZazzleWww.Widgets.Header2016",superclass:"ZazzleWww.HeaderNavigation",required:["Uize.Node.Classes","Uize.Widget.Options","Zazzle.Widget.mV2Web","ZazzleWww.BasicPromotion.Header","ZazzleWww.SearchInput","ZazzleWww.Widgets.Header2016Flyouts"],builder:function(e){"use strict";var i=Uize;return e.subclass({mixins:[Zazzle.Widget.mV2Web],stateProperties:{_compatibilityMode:"compatibilityMode",_flyoutDelayInitial:{name:"flyoutDelayInitial",value:250},_flyoutDelaySubsequent:{name:"flyoutDelaySubsequent",value:40},_maxCartItemsToShowInPalettes:{name:"maxCartItemsToShowInPalettes",value:3},_showGeolocation:"showGeocolation",_regionCode:"regionCode",_originalUrl:"originalUrl",_linksToTrack:{name:"linksToTrack",value:["logo","promise","sell"]}},children:{promo:ZazzleWww.BasicPromotion.Header,search:{widgetClass:ZazzleWww.SearchInput,useEnvParams:!1},headerSearch2:{widgetClass:ZazzleWww.SearchInput,useEnvParams:!1},departmentFlyouts:function(){var e=this;return{widgetClass:ZazzleWww.Widgets.Header2016Flyouts,delayInitial:e._flyoutDelayInitial,delaySubsequent:e._flyoutDelaySubsequent}}},omegastructor:function(){var e=this,i=(e.addChild("cartContents",Uize.Widget.Options,{html:!0,built:!1,values:[]}),e.addChild("cartContents2",Uize.Widget.Options,{html:!0,built:!1,values:[]}));if(!e._compatibilityMode){var a=e.children.navSectionCart;a&&a.set({contentState:"loaded"}),a&&a.wire("Before Palette Shown",function(){e.retrieveCartItems(i)})}},childBindings:{},cssBindings:{},htmlBindings:{},eventBindings:{},instanceMethods:{launchSatisfactionDialog:function(){this.callInherited("useDialog")({component:{name:"ZazzleWww.Dialog.SatisfactionDetails",params:{}},widgetClassName:"Uize.Widget.Dialog",widgetProperties:{name:"satisfactionDialog"}})},launchSellOnZazzleDialog:function(){this.callInherited("useDialog")({component:{name:"ZazzleWww.Dialog.SellOnZazzleDetails",params:{}},widgetClassName:"Uize.Widget.Dialog",widgetProperties:{name:"sellOnZazzleDialog"}})},retrieveCartItems:function(e){var i=this;i.ajax({serviceUrl:"/co/cartservice",bg:"515151"},function(a){var t=a.records;if(t){t=t.slice(Math.max(t.length-i._maxCartItemsToShowInPalettes,0));for(var o=t.length;--o>=0;)t[o].title&&(t[o].title=Uize.Util.Html.Encode.encode(t[o].title));(e||i.children.cartContents).set({values:t})}})},wireUi:function(){var a=this;if(!a.isWired){var t=a.children.headerSearch2;t.wire("Changed.focused",function(){var e=t.get("focused");a.isWired&&a.web().setClassState("searchActive",e),t.get("focused")&&Uize.require("Uize.Fx.Scroll",function(e){setTimeout(function(){e.scrollToNode(t.getNode("input"),{scrollToTop:!0,duration:250})},250)})}),a.wireNode("promise","click",function(){a.launchSatisfactionDialog()}),a.wireNode("sell","click",function(){a.launchSellOnZazzleDialog()});for(var o=0;o=0){o=i.get("env").www+(e.qs?e.qs:"")+(r.endsWith(e.qs,n)?"":"+"+n);for(var d in{dp:0,cg:0,pcr:0,pce:0,sr:0,awt:0,ccs:0,ccpid:0,hastxt:0,hasphoto:0,txtcvg:0,pst:0,st:0,at:0,sp:0,sd:0,cn:0,ch:0,do:0,pr:0,pg:0,ps:0,day:0,hs:0,vm:0,sfd:0})e[d]&&(o+=(s++?"&":"?")+d+"="+encodeURI(e[d]))}else{for(var d in{qs:0,hs:0})e[d]&&(o+="/"+d+"-"+encodeURI(e[d]));for(var d in{dp:0,cg:0,pcr:0,pce:0,sr:0,awt:0,pt:0,ccs:0,ccpid:0,cciid:0,hastxt:0,hasphoto:0,txtcvg:0,pst:0,st:0,at:0,sp:0,sd:0,cn:0,ch:0,gp:0,do:0,pr:0,pg:0,ps:0,day:0,vm:0,sfd:0})e[d]&&(o+=(s++?"&":"?")+d+"="+encodeURI(e[d]))}return o},c.replaceFullWidthNumbers=function(e){return e&&/[\uff10-\uff19]/g.test(e)&&(e=e.replace(/\uff10/g,"0"),e=e.replace(/\uff11/g,"1"),e=e.replace(/\uff12/g,"2"),e=e.replace(/\uff13/g,"3"),e=e.replace(/\uff14/g,"4"),e=e.replace(/\uff15/g,"5"),e=e.replace(/\uff16/g,"6"),e=e.replace(/\uff17/g,"7"),e=e.replace(/\uff18/g,"8"),e=e.replace(/\uff19/g,"9"),e=e.replace(/[\u3002\uff0e]/g,".")),e},c.screenIsSmall=function(){return this.web(window).width()1337ui@zazzle.com. Make sure to include "','" in your email.',"inform","Nice.","Not quite right.","You thought it was that simple? Run this function in the context of the #page DOM node."];setTimeout(function(){typeof window[S[0]]!=S[1]&&console[S[3]](S[2]),window[S[4]]=new function(){this[S[5]]=function(){if(i[S[8]]({name:S[6],bubble:!0,extra:{ax:S[7]}}),this==i[S[9]]()){var e=((new Date)[S[13]]().toString()/42/1e3).toString()[S[12]](S[10],S[11]);return i[S[18]]({title:S[14],message:S[15]+e+S[16]+e+S[17]}),S[19]}return this!=window[S[4]]?S[20]:S[21]}}},2e3)}};var l=function(e){t.require("ZazzleWww.PageUtils",e)},u=function(e){c[e]=function(){var t=this,i=arguments;l(function(a){a[e].apply(0,[t].concat(Array.prototype.slice.call(i)))})}};return u("animateStitch"),u("enableProfile"),u("ensureLoggedIn"),u("shareLink"),u("showShareDialog"),u("useProductUiDialog"),u("validateContent"),s.stateProperties({_enableFacebookApi:{name:"enableFacebookApi",onChange:function(){var e=this;!window.FB&&e._enableFacebookApi&&(window.fbAsyncInit=function(){window.FB.init({appId:e.get("env").facebookAppId,xfbml:!0,version:"v2.4",status:!0})},function(t,i,a){var n,r=t.getElementsByTagName(i)[0];if(!t.getElementById(a)){n=t.createElement(i),n.id=a;var o=e.get("env").lang.replace("-","_");n.src="//connect.facebook.net/"+o+"/sdk.js",r.parentNode.insertBefore(n,r)}}(document,"script","facebook-jssdk"))}},_framebust:"framebust",_imageSearchReferred:"imageSearchReferred",_interstitialPromo:"interstitialPromo",_loadingOverlay:"loadingOverlay",_realviewBgColor:{name:"realviewBgColor",value:"ffffff"},_screenBreakPoint:{name:"screenBreakPoint",value:768},_tracking:"tracking",_queuedTrackingRequests:{name:"queuedTrackingRequests",value:[]},_trackingBusy:{name:"trackingBusy",value:!1,onChange:function(){var e=this,i=e.getNode("imagePixel");if(e._tracking&&!e._trackingBusy&&e._queuedTrackingRequests.length>0){var a=e._queuedTrackingRequests.shift();t.isEmpty(a.url)||(i.onload=e._trackingPixelLoadHandlerFactory(a.onDoneOrTimeout),e.met("trackingBusy"),e.setNodeValue(i,a.url))}}},_trackClientPerformance:"trackClientPerformance",_useNewHeader:"useNewHeader",_lastCheckedUserTime:"lastCheckedUserTime"}),s}}); Uize.module({name:"ZazzleWww.Pixel",superclass:"Uize.Widget",required:["Uize.Node"],builder:function(e){var t=e.subclass(null,function(){var e=this;if(e._pixelUrl&&Uize.Node.wire(window,"load",function(){e._pixelUrl&&setTimeout(function(){e.getNode("pixel").src=e._pixelUrl},10)}),e._scriptUrl){var t=document.createElement("iframe"),r=document.getElementsByTagName("script");(t.frameElement||t).style.cssText="width: 0; height: 0; border: 0",r=r[r.length-1],r.parentNode.insertBefore(t,r);var i=t.contentWindow.document;i&&(i.open().c=function(){s=this.createElement("script"),s.src=e._scriptUrl,this.body.appendChild(s)},i.write(""),i.close())}});t.prototype;return t.stateProperties({_pixelUrl:{name:"pixelUrl",value:null},_scriptUrl:{name:"scriptUrl",value:null}}),t}}); Uize.module('ZazzleWww.Results'); Uize.module({name:"ZazzleWww.Results.RecentlyViewed",superclass:"Zazzle.Results.Cell",required:["Uize.Widget.Collection.Dynamic","Zazzle.Widget.mV2"],builder:function(e){"use strict";var t=Uize;return e.subclass({mixins:Zazzle.Widget.mV2,stateProperties:{_objectIdToFilter:{name:"objectIdToFilter",value:null},_recentlyViewedTitle:"recentlyViewedTitle"},children:{},omegastructor:function(){},instanceMethods:{_updateArrows:function(){var e=this,t=e.get("page");e.web("prev").display(t>1),e.web("next").display(t*e.get("pageSize")


Category: Abstract

Similar articles: