PageSourceSearch

https://www.acmemarkets.com/etc.clientlibs/wcax-core/clientlibs/cl…oad.min.adc4f4812b442118ee6156521b091bd7.js

js acmemarkets.com collected 2026-09-24 18:17:11 UTC 211,006 bytes, 388 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var a=0;return function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,a,d){if(b==Array.prototype||b==Object.prototype)return b;b[a]=d.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var a=0;a<b.length;++a){var d=b[a];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,a,d){if(!d||null!=b){d=$jscomp.propertyToPolyfillSymbol[a];if(null==d)return b[a];d=b[d];return void 0!==d?d:b[a]}};
4$jscomp.polyfill=function(b,a,d,e){a&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,a,d,e):$jscomp.polyfillUnisolated(b,a,d,e))};$jscomp.polyfillUnisolated=function(b,a,d,e){d=$jscomp.global;b=b.split(".");for(e=0;e<b.length-1;e++){var k=b[e];if(!(k in d))return;d=d[k]}b=b[b.length-1];e=d[b];a=a(e);a!=e&&null!=a&&$jscomp.defineProperty(d,b,{configurable:!0,writable:!0,value:a})};
5$jscomp.polyfillIsolated=function(b,a,d,e){var k=b.split(".");b=1===k.length;e=k[0];e=!b&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<k.length-1;f++){var h=k[f];if(!(h in e))return;e=e[h]}k=k[k.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?e[k]:null;a=a(d);null!=a&&(b?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:a}):a!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(d=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE?
6$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+d+"$"+k),$jscomp.defineProperty(e,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:a})))};$jscomp.initSymbol=function(){};
7$jscomp.polyfill("Symbol",function(b){if(b)return b;var a=function(f,h){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:h})};a.prototype.toString=function(){return this.$jscomp$symbol$id_};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0,k=function(f){if(this instanceof k)throw new TypeError("Symbol is not a constructor");return new a(d+(f||"")+"_"+e++,f)};return k},"es6","es3");
8$jscomp.polyfill("Symbol.iterator",function(b){if(b)return b;b=Symbol("Symbol.iterator");for(var a="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d<a.length;d++){var e=$jscomp.global[a[d]];"function"===typeof e&&"function"!=typeof e.prototype[b]&&$jscomp.defineProperty(e.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return b},"es6",
9"es3");$jscomp.iteratorPrototype=function(b){b={next:b};b[Symbol.iterator]=function(){return this};return b};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,a){b.raw=a;return b};$jscomp.makeIterator=function(b){var a="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if(a)return a.call(b);if("number"==typeof b.length)return $jscomp.arrayIterator(b);throw Error(String(b)+" is not an iterable or ArrayLike");};
10$jscomp.owns=function(b,a){return Object.prototype.hasOwnProperty.call(b,a)};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(b,a){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(e)for(var k in e)$jscomp.owns(e,k)&&(b[k]=e[k])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},a={};try{return a.__proto__=b,a.a}catch(d){}return!1};
11$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,a){b.__proto__=a;if(b.__proto__!==a)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(b){if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");};
12$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
13$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(b){this.yieldResult=b};$jscomp.generator.Context.prototype.throw_=function(b){this.abruptCompletion_={exception:b,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(b){this.abruptCompletion_={return:b};this.nextAddress=this.finallyAddress_};
14$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(b){this.abruptCompletion_={jumpTo:b};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(b,a){this.nextAddress=a;return{value:b}};$jscomp.generator.Context.prototype.yieldAll=function(b,a){b=$jscomp.makeIterator(b);var d=b.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=a;else return this.yieldAllIterator_=b,this.yield(d.value,a)};
15$jscomp.generator.Context.prototype.jumpTo=function(b){this.nextAddress=b};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(b,a){this.catchAddress_=b;void 0!=a&&(this.finallyAddress_=a)};$jscomp.generator.Context.prototype.setFinallyBlock=function(b){this.catchAddress_=0;this.finallyAddress_=b||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(b,a){this.nextAddress=b;this.catchAddress_=a||0};
16$jscomp.generator.Context.prototype.enterCatchBlock=function(b){this.catchAddress_=b||0;b=this.abruptCompletion_.exception;this.abruptCompletion_=null;return b};$jscomp.generator.Context.prototype.enterFinallyBlock=function(b,a,d){d?this.finallyContexts_[d]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=b||0;this.finallyAddress_=a||0};
17$jscomp.generator.Context.prototype.leaveFinallyBlock=function(b,a){a=this.finallyContexts_.splice(a||0)[0];if(a=this.abruptCompletion_=this.abruptCompletion_||a){if(a.isException)return this.jumpToErrorHandler_();void 0!=a.jumpTo&&this.finallyAddress_<a.jumpTo?(this.nextAddress=a.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=b};$jscomp.generator.Context.prototype.forIn=function(b){return new $jscomp.generator.Context.PropertyIterator(b)};
18$jscomp.generator.Context.PropertyIterator=function(b){this.object_=b;this.properties_=[];for(var a in b)this.properties_.push(a);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var b=this.properties_.pop();if(b in this.object_)return b}return null};$jscomp.generator.Engine_=function(b){this.context_=new $jscomp.generator.Context;this.program_=b};
19$jscomp.generator.Engine_.prototype.next_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,b,this.context_.next_);this.context_.next_(b);return this.nextStep_()};
20$jscomp.generator.Engine_.prototype.return_=function(b){this.context_.start_();var a=this.context_.yieldAllIterator_;if(a)return this.yieldAllStep_("return"in a?a["return"]:function(d){return{value:d,done:!0}},b,this.context_.return);this.context_.return(b);return this.nextStep_()};
21$jscomp.generator.Engine_.prototype.throw_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],b,this.context_.next_);this.context_.throw_(b);return this.nextStep_()};
22$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,a,d){try{var e=b.call(this.context_.yieldAllIterator_,a);$jscomp.generator.ensureIteratorResultIsObject_(e);if(!e.done)return this.context_.stop_(),e;var k=e.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,k);return this.nextStep_()};
23$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var b=this.program_(this.context_);if(b)return this.context_.stop_(),{value:b.value,done:!1}}catch(a){this.context_.yieldResult=void 0,this.context_.throw_(a)}this.context_.stop_();if(this.context_.abruptCompletion_){b=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
24$jscomp.generator.Generator_=function(b){this.next=function(a){return b.next_(a)};this.throw=function(a){return b.throw_(a)};this.return=function(a){return b.return_(a)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(b,a){a=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a));$jscomp.setPrototypeOf&&b.prototype&&$jscomp.setPrototypeOf(a,b.prototype);return a};
25$jscomp.asyncExecutePromiseGenerator=function(b){function a(e){return b.next(e)}function d(e){return b.throw(e)}return new Promise(function(e,k){function f(h){h.done?e(h.value):Promise.resolve(h.value).then(a,d).then(f,k)}f(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};
26!function(b,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{a=a();
26for(var d in a)("object"==typeof exports?exports:b)[d]=a[d]}}(window,function(){return function(b){function a(e){if(d[e])return d[e].exports;var k=d[e]={i:e,l:!1,exports:{}};return b[e].call(k.exports,k,k.exports,a),k.l=!0,k.exports}var d={};return a.m=b,a.c=d,a.d=function(e,k,f){a.o(e,k)||Object.defineProperty(e,k,{enumerable:!0,get:f})},a.r=
27function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,k){if((1&k&&(e=a(e)),8&k)||4&k&&"object"==typeof e&&e&&e.__esModule)return e;var f=Object.create(null);if(a.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:e}),2&k&&"string"!=typeof e)for(var h in e)a.d(f,h,function(c){return e[c]}.bind(null,h));return f},a.n=function(e){var k=e&&e.__esModule?function(){return e.default}:
28function(){return e};return a.d(k,"a",k),k},a.o=function(e,k){return Object.prototype.hasOwnProperty.call(e,k)},a.p="",a(a.s=76)}({0:function(b,a){var d={readElement:function(e){return(e=$(e))&&e.length?e:null},readOneElement:function(e){return(e=$(e))&&e.length?e[0]:null},getElement:function(e){var k=d.readElement(e);if(null===k)throw Error("Cannot find element: "+e);return k},getMetaElementContent:function(e){var k=$("meta[name\x3d"+e+"]");if(null===k)throw Error("Cannot find element: "+e);return k.attr("content")}};
29b.exports=d},1:function(b,a){b.exports={createSafely:function(d){try{var e=Object.create(d);return e.constructor.apply(e),e}catch(k){return console.log(d.constructor.name+" creation failed",k),null}},getPathValue:function(d,e){e=e?e.split("."):[];if(d&&0<e.length){var k=d;return e.forEach(function(f){k=k&&k.hasOwnProperty(f)&&k[f]?k[f]:null}),k||""}return""},isObjectEmpty:function(d){return null==d||0===Object.keys(d).length}}},76:function(b,a,d){d(0);b=d(1);a=d(77);d=d(78);a=b.createSafely(a.prototype);
30d=b.createSafely(d.prototype);window.StoreFlagService=a;d.init()},77:function(b,a){b.exports=function(){this.storeFlagsLoadComplete=new Event("storeFlagsLoadComplete");this.init=function(){AB.userInfo.branchId&&this.getStoreFlags()};this.getStoreFlags=function(){var d=window.location.protocol+"//"+window.location.host+AB.webPreloadPath+"/"+AB.userInfo.branchId;AB.userInfo.zipcode&&(d=d+"?zipcode\x3d"+AB.userInfo.zipcode);var e=this;$.ajax({url:d,type:"GET",headers:{"ocp-apim-subscription-key":AB.preloadStoreFlagsXapiApimKey},
31accept:"application/json"}).done(function(k){var f=k&&0<Object.keys(k).length?{storeId:AB.userInfo.branchId,flags:k}:{};e.updateTimezoneInStorage(k);AB.storeFlagsData=f;AB.storeFlagsLoaded=!0;document.dispatchEvent(SWY.STOREFLAGUTIL.storeFlagsLoadComplete)}).fail(function(k,f,h){console.log(k.status);AB.storeFlagsData={};AB.storeFlagsLoaded=!0;e.updateTimezoneInStorage(null);document.dispatchEvent(SWY.STOREFLAGUTIL.storeFlagsLoadComplete)})};this.updateTimezoneInStorage=function(d){var e;if(null!==
32(e=AB)&&void 0!==e&&null!==(e=e.COMMON)&&void 0!==e&&e.isLSCompatible&&"function"==typeof AB.COMMON.isLSCompatible&&AB.COMMON.isLSCompatible())try{localStorage.removeItem("timezone"),null!=d&&d.timezone&&localStorage.setItem("timezone",d.timezone)}catch(k){console.warn("Failed to update timezone in localStorage:",k)}}}},78:function(b,a){b.exports=function(){this.init=function(){var d=this;$(document).on("storeFlagsLoadComplete",function(){d.checkWineProgramEligibility()})};this.checkWineProgramEligibility=
33function(){window.AB.storeFlagsData&&window.AB.storeFlagsData.flags&&window.AB.storeFlagsData.flags.ecomStore&&window.AB.storeFlagsData.flags.ecomStore.storeFeatures&&window.AB.storeFlagsData.flags.ecomStore.storeFeatures.isWineD2CEnabled?(console.warn("Wine Shop Enabled"),AB.COMMON.checkWineStoreFlags()):(console.warn("Wine Shop Disabled"),AB.COMMON.checkAndRemoveWineStoreId())}}}})});var SWY=SWY||{};SWY.CONFIGSERVICE={};SWY.OKTA={};SWY.ENFORCEMENT={};SWY.ENFORCEMENTUTILS={};
34SWY.RESTRICTEDRESOURCE={};SWY.USERTYPESTATE={};SWY.STORESELECTION={};SWY.QUERYSTRING={};SWY.STOREFLAGUTIL={};SWY.configService={};SWY.popularSearches={};SWY.allowedUserTypes={};SWY.redirections={};SWY.allowedZipcodeModal={};SWY.isGuestAuthAllowed={};SWY.isEscapeSSOAllowed={};SWY.deepLinkData={};SWY.authenticateGuestPath="/bin/safeway/authenticate/guest";SWY.storeInfoPath="/bin/safeway/store";SWY.ssoPath="/bin/safeway/sso";var AB=AB||{};AB.$=null;AB.COMMON={};AB.ALERT={};AB.MINICART={};
35AB.RECIPECAROUSEL={};AB.PRINT={};AB.RIGHTDRAWER={};AB.PRODUCTGRID={};AB.BREADCRUMB={};AB.CART={};AB.DELIVERYPREF={};AB.PROMOTIONS={};AB.VALIDATOR={};AB.ARIA={};AB.NOTIFYME={};AB.WWWHEADER={};AB.SLICKCAROUSEL={};AB.VALIDATION={};AB.UCACURRENTORDER={};AB.UCASERVICES={};AB.UCASUBSCRIPTIONSERVICES={};AB.UCAUPDATEDELIVERYADDRESS={};AB.GETPROFILE={};AB.FILTERS={};AB.POPULARSEARCH={};AB.AUTOSUGGEST={};AB.EDITORDER={};AB.LAZYLOAD={};AB.CHECKPROFILE={};AB.SHOPBYCATEGORY={Carousel:{},Util:{},ABTest:{},SponsoredCategoryUtil:{}};
36AB.checkCategoryTileL3View="";AB.RECIPECAROUSEL_V2={};AB.SETSTORE={};AB.RECIPESTABS={};AB.ISL={};AB.AUTOCLIP_MESSAGES={};AB.BOXTOPS={};AB.GASGROCERY={};AB.SYNDICATEDCOOKIE={};
36AB.SIGNINOTP={};AB.dealGridList={};AB.productGridList=[];AB.departmentsFilterList=[];AB.gridDataURL="";AB.userInfo={};AB.previousLogin={};AB.storeInfo={};AB.anchorTags=["#prop65-title","#bookmark-disclaimer","#error"];AB.attendDeliveryTxt="Available only with Attended Delivery";AB.itemNotAvailableTxt="This item is not available right now";
37AB.CBAitemNotAvailableTxt="This item is currently out of stock.";AB.unattendedDeliveryIsEnabled=!1;AB.rewardSummaryTime=1E4;AB.slotLSTime=72E5;AB.checkOutFlashDelivery=4;AB.mktpShippingInfoLS=108E5;AB.mktpSellerLS=108E5;AB.ucaRewardsTrigger=!0;AB.productCardTest="";AB.categoryTileL3Test="";AB.wineShippingInfoLS=108E5;AB.pendingOrderPath="/bin/safeway/order/pending/alert.json";AB.addToCartPath="/bin/safeway/cart/add";AB.productPriceDetailPath="/bin/safeway/product/price";AB.reserveTimePath="/bin/safeway/order/selected/slot";
38AB.removeProductHistoryPath="/bin/safeway/product/historylist";AB.validationPath="/ecom/api/modern1/route";AB.authenticateGuestPath="/bin/safeway/authenticate/guest";AB.viewSimilarLinkPath="/bin/safeway/product/similar";AB.storeInfoPath="/bin/safeway/store";AB.promoSearchUrl="/bin/safeway/promos.single.json?includeAds\x3dY\x26searchTerms\x3d";AB.offerPath="/bin/safeway/ecomgallery?offerProgram\x3dALL";AB.j4uPath="/abs/dvpub/web/j4u/api/offers/gallery/anonymous?storeId\x3d1786";
39AB.j4uPathAuthorized="/abs/dvpub/web/j4u/api/offers/gallery?storeId\x3d1953\x26amp;offerPgm\x3dPD-CC";AB.couponClipPath="/abs/dvpub/web/j4u/api/offers/clip";AB.getDeliveryAddressPath="/apps/wcax-commons/clientlibs/clientlib-site/shop-commons/datastore/deliveryAddress.json";AB.getDugStorePath="/apps/wcax-commons/clientlibs/clientlib-site/shop-commons/datastore/dugStore.json";AB.getEditCartOrderIdPath="/bin/safeway/editcart/orderid";AB.updatePendingOrderPath="/bin/safeway/pendingorder/update";
40AB.dealsFilter="/bin/safeway/department";AB.storeLocator="/bin/safeway/store/locator";AB.storeResolverPath="/bin/safeway/store/resolver";AB.offerDetailXfPath="/content/experience-fragments/www/(banner)/en/generic_content/offer-detail-xf/offer-detail-xf/jcr:content/root/responsivegrid";AB.offerDisclaimerXfPath="/content/experience-fragments/www/Disclaimers/Offer-Disclaimer/offer-disclaimer.content.html";AB.isLSEnable=!1;AB.cookie={};AB.storeFlagsLoaded=!1;AB.storeFlagsData=null;AB.arFlagLoaded=!1;
41AB.arFlag={};elevateBanner=[];AB.doDnfRedirect=!1;AB.deliveryPreferencePagePath="/content/shop/{banner}/en/welcome/delivery-preference";var MEALS=MEALS||{};MEALS.COMMON={};MEALS.CONFIGSERVICE={};
42AB.preInitializeObject=function(){AB.loadDynamicURL();Object.defineProperty(AB,"userInfoPath",{configurable:!0,get:function(){return"/bin/safeway/unified/userinfo?rand\x3d"+Math.floor(1E6*Math.random())+"\x26banner\x3d"+SWY.CONFIGSERVICE.getResolvedBanner()}});Object.defineProperty(AB,"userSessionInfoPath",{configurable:!0,get:function(){return SWY.CONFIGSERVICE.getDatapowerConfig().datapowerApimBasePath+"/usersession/api/v1/session/info"}});Object.defineProperty(AB,"userSessionInfoOptions",{configurable:!0,
43get:function(){return{"ocp-apim-subscription-key":SWY.CONFIGSERVICE.getDatapowerConfig().userSessionSubscriptionKey}}});Object.defineProperty(AB,"isWWW",{configurable:!0,get:function(){var a=$("meta[name\x3dbannerType]").attr("content");if("undefined"!==typeof a&&null!==a){if("www"===a)return!0;if("shop"===a)return!1}else return!1}});AB.generateSeoSlug=function(a){if(!a||""===a.trim())return"product";var d={"fluid oz":"fl-oz","fl oz":"fl-oz","fluid ounces":"fl-oz","fluid ounce":"fl-oz",ounces:"oz",
44ounce:"oz",pounds:"lb",pound:"lb",count:"ct",pk:"pack"},e=a.toLowerCase().replace(/[\u2122\u00ae\u00a9]/g,"").replace(/&/g," and ").replace(/[\u2018\u2019'`]/g,"").replace(/\//g,"-").normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/(\d)\.(\d)/g,"$1-$2").replace(/([a-z0-9])\s*\+/g,"$1 plus ").replace(/(\d)\s*%/g,"$1 percent ").replace(/#\s*(\d+)/g," number $1").replace(/[.,;:"()[\]{}!?@$^*=~<>|\\]/g," ").replace(/[^a-z0-9\s-]/g," ");Object.keys(d).forEach(function(f){e=e.replace(new RegExp("\\b"+
45f+"\\b","g"),d[f])});e=e.replace(/\b(a|an|the)\b/g," ").replace(/\b(\d+)\s*pack\b/g,"$1-p
45ack").replace(/\b(\d+)\s*ct\b/g,"$1-ct").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"");if(120<e.length){a=e.substring(0,120);var k=a.lastIndexOf("-");e=0<k?a.substring(0,k):a}return e||"product"};var b=function(){var a,d,e,k;return!0===(null==(a=window)?void 0:null==(d=a.SWY)?void 0:null==(e=d.CONFIGSERVICE)?void 0:null==(k=e.featureToggleConfig)?void 0:k.isSeoEnabled)};AB.buildPdpUrl=function(a,
46d){return b()?"/shop/pd/"+AB.generateSeoSlug(d)+"/"+a:AB.htmlProductDetailPath.replace("(bpn)",a)};Object.defineProperties(AB,{htmlProductDetailPath:{configurable:!0,get:function(){return b()?"/shop/pd/(slug)/(bpn)":"/shop/product-details.(bpn).html"}},winePdpPath:{configurable:!0,get:function(){return"/shop/vineandcellar/product-details.(bpn).html"}},mkpPdpPath:{configurable:!0,get:function(){return"/shop/marketplace/product-details.(bpn).html"}}});Object.defineProperty(AB,"htmlOfferDetailPathShop",
47{configurable:!0,get:function(){return"/content/shop/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/offer-details"}});Object.defineProperty(AB,"htmlOfferDetailPathWww",{configurable:!0,get:function(){return"/content/www/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/foru/offer-details"}});Object.defineProperty(AB,"htmlRewardDetailPathWww",{configurable:!0,get:function(){return"/content/www/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/foru/rewards/reward-details"}});Object.defineProperty(AB,"htmlOfferDetailPathB2b",
48{configurable:!0,get:function(){return"/content/b2b/www/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/foru/offer-details"}});Object.defineProperty(AB,"htmlRewardDetailPathB2b",{configurable:!0,get:function(){return"/content/b2b/www/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/foru/rewards/reward-details"}});Object.defineProperty(AB,"signInLinkPath",{configurable:!0,get:function(){return"/content/www/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/account/sign-in.html"}});Object.defineProperty(AB,"aisleHTMLPath",
49{configurable:!0,get:function(){var a="/content/shop/"+SWY.CONFIGSERVICE.getResolvedBanner()+"/en/aisles/jcr:content/root/responsivegrid/column_control/par_1/productaislelist";if("undefined"!==typeof AB.userInfo&&"undefined"!==typeof AB.userInfo.branchId)a+="."+AB.userInfo.branchId+".html";else{var d=JSON.parse(AB.COMMON.getCookie("ECommTokens"));a+="."+d.branchId+".html"}return a}});Object.defineProperty(AB,"aisleHTMLTitlePath",{configurable:!0,get:function(){var a="/content/shop/"+SWY.CONFIGSERVICE.getResolvedBanner()+
50"/en/aisles/jcr:content/root/responsivegrid/column_control/par_1/simple_page_title";if("undefined"!==typeof AB.userInfo&&"undefined"!==typeof AB.userInfo.branchId)a+="."+AB.userInfo.branchId+".html";else{var d=JSON.parse(AB.COMMON.getCookie("ECommTokens"));a+="."+d.branchId+".html"}return a}});Object.defineProperty(AB,"promoRule",{configurable:!0,get:function(){return SWY.CONFIGSERVICE.getConfigforPromoDesc()}});Object.defineProperty(AB,"storeRewardsMapping",{configurable:!0,get:function(){return{hasGroceryDeliveryCF:"24995",
51hasDUGCF:"23763",hasRushDeliveryCF:"23762",hasGroceryRewardsCF:"24424",gasRewardsIdCF:"18784",rewardsProgramIdCF:"18786",partnerFuelLogoCF:"24491",partnerMaxRedemptionCF:"31023",ownMaxRedemptionCF:"31022"}}});Object.defineProperty(AB,"j4uHttpOptions",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"1.0","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,
52"Content-Type":"application/json","X-SWY_API_KEY":"emjou"};AB.COMMON.authorize()?(a["X-swyConsumerDirectoryPro"]=AB.userInfo.SWY_SHOP_TOKEN,a.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN,a["x-swy-correlation-id"]=AB.COMMON.generateUUID(AB.userInfo.houseId,AB.userInfo.firstName)):a["x-swy-correlation-id"]=AB.COMMON.generateUUID();return a}});Object.defineProperty(AB,"j4uHttpOptions11",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"1.1","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,
53"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"Content-Type":"application/json","X-SWY_API_KEY":"emjou"};AB.COMMON.authorize()?(a["X-swyConsumerDirectoryPro"]=AB.userInfo.SWY_SHOP_TOKEN,a.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN,a["x-swy-correlation-id"]=AB.COMMON.generateUUID(AB.userInfo.houseId,AB.userInfo.firstName)):a["x-swy-correlation-id"]=AB.COMMON.generateUUID();return a}});Object.defineProperty(AB,"j4uHttpOptions21",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"2.1",
54"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"Content-Type":"application/json","X-SWY_API_KEY":"emjou"};AB.COMMON.authorize()?(a["X-swyConsumerDirectoryPro"]=AB.userInfo.SWY_SHOP_TOKEN,a.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN,a["x-swy-correlation-id"]=AB.COMMON.generateUUID(AB.userInfo.houseId,AB.userInfo.firstName)):a["x-swy-correlation-id"]=AB.COMMON.generateUUID();
55return a}});Object.defineProperty(AB,"j4uHttpOptions30",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"3.0","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"Content-Type":"application/json","X-SWY_API_KEY":"emjou"};AB.COMMON.authorize()?(a["X-swyConsumerDirectoryPro"]=AB.userInfo.SWY_SHOP_TOKEN,a.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN,a["x-swy-correlation-id"]=
56AB.COMMON.generateUUID(AB.userInfo.houseId,AB.userInfo.firstName)):a["x-swy-correlation-id"]=AB.COMMON.generateUUID();return a}});Object.defineProperty(AB,"ecomJ4uHttpOptions",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"2.1","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"Content-Type":"application/json","X-SWY_API_KEY":"emjou"};AB.COMMON.authorize()?
57(a["X-swyConsumerDirectoryPro"]=AB.userInfo.SWY_SHOP_TOKEN,a.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN,a["x-swy-correlation-id"]=AB.COMMON.generateUUID(AB.userInfo.houseId,AB.userInfo.firstName)):a["x-swy-correlation-id"]=AB.COMMON.generateUUID();return a}});Object.defineProperty(AB,"preUcaHttpOptions",{get:function(){var a=new Date;return{Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,
58"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":a,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"companionOffersxAPIHttpOptions",{configurable:!0,get:function(){var a={"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/json","X-SWY-APPLICATION-TYPE":"web","X-SWY_API_KEY":"emjou","X-SWY_VERSION":"1.1","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner()};AB.COMMON.authorize()&&(a.Authorization=
59"Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return a}});Object.defineProperty(AB,"bonusPathOffersxAPIHttpOptions",{configurable:!0,get:function(){var a={Accept:"application/json","X-SWY_API_KEY":"emjou",SWY_VERSION:"1.1",SWY_BANNER:SWY.CONFIGSERVICE.getResolvedBanner()};AB.COMMON.authorize()&&(a.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return a}});Object.defineProperty(AB,"offerDetailxAPIHttpOptions",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"2.1","Content-Type":"application/vnd.safeway.v2+json",
60"X-SWY_API_KEY":"emjou","X-SWY-APPLICATION-TYPE":"web"};AB.COMMON.authorize()&&(a.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return a}});Object.defineProperty(AB,"ecomOfferDetailxAPIHttpOptions",{configurable:!0,get:function(){var a={"X-SWY_VERSION":"2.1","Content-Type":"application/vnd.safeway.v2+json","X-SWY_API_KEY":"emjou","X-SWY-APPLICATION-TYPE":"web"};AB.COMMON.authorize()&&(a.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return a}});Object.defineProperty(AB,"p13nxApiHttpOptions",
61{configurable:!0,get:function(){var a={"Content-Type":"application/vnd.safeway.v2+json","Ocp-Apim-Subscription-Key":window.SWY.CONFIGSERVICE.searchConfig.apimP13nSubscriptionKey,platform:"web"};AB.COMMON.authorize()&&(a["X-access-token"]=window.AB.userInfo.SWY_SHOP_TOKEN);return a}})};
62AB.postInitializeObject=function(){Object.defineProperty(AB,"ucaHttpOptionsPatch",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1.merge-patch+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,
63"catalogCbaHttpOptions",{get:function(){return{"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.searchConfig.apimSubscriptionKey,"Content-Type":"application/json","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"userAddressesHttpOptions",{get:function(){return{Accept:"application/vnd.safeway.v3+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"X-SWY-BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-client-name":"web-portal","x-swy-date":(new Date).toUTCString(),
64"x-swy-correlation-id":AB.userInfo.UUID,"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey}}});Object.defineProperty(AB,"ucaSignInOtpOtpions",{get:function(){return{"Content-Type":"application/json",Accept:"application/json"}}});Object.defineProperty(AB,"ucaSignInOtpNonKmsiOtpions",{get:function(){var b=(new Date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"});
65return{"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/vnd.safeway.v2+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"yes"}}});Object.defineProperty(AB,
66"ucaHttpOptions",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsV4",{get:function(){return{"Content-Type":"application/vnd.safeway.v4+json",
67Accept:"application/vnd.safeway.v4+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.userInfo.UUID,"x-swy-request-id":AB.userInfo.UUID,"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.datapowerConfig.cncSubscriptionKey,Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"x-swy-client-name":"web-portal","x-abs-user-exp-journey":"Identity-Profile"}}
67});Object.defineProperty(AB,"csmsHttpOptionsV2",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v2+json",
68"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsUpdateProfile",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,SWY_SSO_TOKEN:AB.userInfo.SWY_SHOP_TOKEN,
69"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":"dc1ddfce-39ed-11e8-b467-0ed5f89f718b","x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsUpdateProfileV2",{get:function(){return{Accept:"application/vnd.safeway.v2+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,SWY_SSO_TOKEN:AB.userInfo.SWY_SHOP_TOKEN,
70"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-name":"web-portal","x-swy-correlation-id":"dc1ddfce-39ed-11e8-b467-0ed5f89f718b","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsFulfillmentServlet",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,
71SWY_SSO_TOKEN:AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"x-swy-client-name":"web-portal"}}});Object.defineProperty(AB,"ucaHttpSetPassword",{get:function(){var b=new Date;return{"x-swy-client-id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"x-swy-correlation-id":AB.userInfo.customerId,
72"x-swy-date":b,"X-swy_banner":SWY.CONFIGSERVICE.getResolvedBanner(),Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json",Accept:"application/vnd.safeway.v1+json"}}});Object.defineProperty(AB,"ucaHttpOptionsGetProfile",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v2+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,SWY_SSO_TOKEN:AB.userInfo.SWY_SHOP_TOKEN,
73"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"x-swy-client-id":"web-portal","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsUpdateBirthdayProfile",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v2+json",
74Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"X-Swy_banner":SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2.merge-patch+json","X-Swy-Correlation-Id":AB.COMMON.generateUUID(),"X-Swy-Date":b,"X-Swy-Client-Id":"web-portal","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsGetProfileV2",{get:function(){var b=
75(new Date).toString();return{Accept:"application/vnd.safeway.v3+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-client-name":"web-portal","ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v3+json","x-swy-date":b,"x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-client-id":"web-portal","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsSearch",
76{get:function(){var b=(new Date).toString();return{Accept:"application/vnd.safeway.v5+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-client-name":"web-portal","ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v5+json","x-swy-date":b,"x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-client-id":"web-portal","Cache-Control":"no-cache"}}});Object.defineProperty(AB,
77"ucaCSMSHttpOptions",{get:function(){return{Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),"Accept-Encoding":"gzip, deflate","Content-Type":"application/vnd.safeway.v1+json","x-swy-client-name":"web-portal","Cache-Control":"no-cache"}}});Object.defineProperty(AB,"chicoryCSMSHttpOptions",{get:function(){return{"Content-Type":"application/vnd.safeway.v1+json",
78Accept:"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey}}});Object.defineProperty(AB,"ucaCSMSHttpOptionsRx",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),
79"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-name":"web-portal","x-swy-date":b,"Cache-Control":"no-cache",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"ucaHttpOptionsV2",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v2+json","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-name":"web-portal",
80"x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ucaHttpOptionsGetProfileV2NoDate",{get:function(){return{Accept:"application/vnd.safeway.v2+json","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-name":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"Cache-Control":"no-cache"}}});
81Object.defineProperty(AB,"ucaHttpOptionsV3",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v3+json","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v3+json","x-swy-client-name":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"ucaHttpOptionsV3Patch",
82{get:function(){var b=(new Date).toString();return{Accept:"application/vnd.safeway.v3+json","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v3.merge-patch+json","x-swy-client-name":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"x-swy-client-id":"web-portal",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"ucaHttpOptionsLoyaltyPartners",
83{post:function(){var b=(new Date).toString();return{Accept:"application/vnd.safeway.v1+json","x-swy_banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"x-swy-client-id":"web-portal",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}},get:function(){var b=(new Date).toString();return{Accept:"application/vnd.safeway.v1+json",
84"x-swy_banner":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"x-swy-client-id":"web-portal",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"petProfile",{post:function(){return{Accept:"application/vnd.albertsons.v1+json","Content-Type":"application/vnd.albertsons.v1+json","x-abs-client":"WEB",
85Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"ppms-apim-subscription-key":SWY.CONFIGSERVICE.getDatapowerConfig().ppmsApimSubscriptionKey,"x-abs-banner":SWY.CONFIGSERVICE.getResolvedBanner()}},put:function(){return{Accept:"application/vnd.albertsons.v1+json","Content-Type":"application/vnd.albertsons.v1+json","x-abs-client":"WEB",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"ppms-apim-subscription-key":SWY.CONFIGSERVICE.getDatapowerConfig().ppmsApimSubscriptionKey,"x-abs-banner":SWY.CONFIGSERVICE.getResolvedBanner()}},
86get:function(){return{Accept:"application/vnd.albertsons.v1+json","Content-Type":"application/vnd.albertsons.v1+json","x-abs-client":"WEB",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"ppms-apim-subscription-key":SWY.CONFIGSERVICE.getDatapowerConfig().ppmsApimSubscriptionKey,"x-abs-banner":SWY.CONFIGSERVICE.getResolvedBanner()}},delete:function(){return{Accept:"application/vnd.albertsons.v1+json","Content-Type":"application/vnd.albertsons.v1+json","x-abs-client":"WEB",Authorization:"Bearer "+
87AB.userInfo.SWY_SHOP_TOKEN,"ppms-apim-subscription-key":SWY.CONFIGSERVICE.getDatapowerConfig().ppmsApimSubscriptionKey,"x-abs-banner":SWY.CONFIGSERVICE.getResolvedBanner()}}});Object.defineProperty(AB,"payeezyHttpOptions",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID(),
88Date:b,"x-swy-client-name":"web-portal","Cache-Control":"no-cache","x-swy-request-id":AB.COMMON.generateUUID()}}});Object.defineProperty(AB,"chasePayeezyHttpOptions",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v1+json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().chaseSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID(),Date:b,"x-swy-client-name":"web-portal",
89"Cache-Control":"no-cache","x-swy-request-id":AB.COMMON.generateUUID()}}});Object.defineProperty(AB,"kmsiHttpOptions",{get:function(){var b=(new Date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"});return{Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,
90"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"yes"}}});Object.defineProperty(AB,"ecommHttpOptions",{get:function(){return{"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,
91SWY_SHOP_TOKEN:AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"emrbRewardsHeader",{get:function(){var b={"X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().extClientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().extClientSecret,"Cache-Control":"no-cache"};AB.COMMON.authorize()&&(b.SWY_SSO_TOKEN=AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"ecommHttpOptionsErums",{get:function(){return{accept:"application/json",
92"Content-Type":"application/json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"ocp-apim-subscription-key":SWY.CONFIGSERVICE.erumsConfig["apim.ke
92y"]}}});Object.defineProperty(AB,"deliverySubHttpOptions",{get:function(){return{Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,Accept:"application/vnd.safeway.v2+json",banner:SWY.CONFIGSERVICE.getResolvedBanner(),"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,
93"Content-Type":"application/json","x-swy-client-id":"web-portal","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"cache-control":"no-cache"}}});Object.defineProperty(AB,"deliverySubJavaHttpOptions",{get:function(){return{Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,Accept:"application/vnd.safeway.v2+json",banner:SWY.CONFIGSERVICE.getResolvedBanner(),"ocp-apim-subscription-key":SWY.CONFIGSERVICE.erumsConfig["apim.key"],"Content-Type":"application/json","x-swy-client-id":"web-portal","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),
94"cache-control":"no-cache"}}});Object.defineProperty(AB,"deliverySubJavaHttpOptionsV3",{get:function(){var b=(new Date).toString();return{Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,Accept:"application/vnd.safeway.v3+json",banner:SWY.CONFIGSERVICE.getResolvedBanner(),"ocp-apim-subscription-key":SWY.CONFIGSERVICE.erumsConfig["apim.key"],"Content-Type":"application/json","x-swy-client-id":"web-portal","x-swy-banner":SWY.CONFIGSERVICE.getResolvedBanner(),"cache-control":"no-cache","x-swy-client-name":"web-portal",
95"x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b}}});Object.defineProperty(AB,"ucaSubHttpOptions",{get:function(){return{Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,Accept:"application/vnd.safeway.v1+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,"X-IBM-Client-Id":SWY.CONFIGSERVICE.getDatapowerConfig().clientId,"X-IBM-Client-Secret":SWY.CONFIGSERVICE.getDatapowerConfig().clientSecret,
96"Content-Type":"application/vnd.safeway.v1+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"companionOffersxAPIHttpOptions",{configurable:!0,get:function(){var b={"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/json","X-SWY-APPLICATION-TYPE":"web","X-SWY_API_KEY":"emjou","X-SWY_VERSION":"1.1","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner()};AB.COMMON.authorize()&&(b.Authorization=
97"Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"lastOrderErumsHttpOptions",{configurable:!0,get:function(){var b={"ocp-apim-subscription-key":SWY.CONFIGSERVICE.erumsConfig["apim.key"]};AB.COMMON.authorize()&&(b.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"xAPICheckUnclipDetail",{configurable:!0,get:function(){return{Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"Content-Type":"application/vnd.safeway.v1+json","ocp-apim-subscription-key":AB.ocrpRewardsXapiApimKey,
98"x-swy-correlation-id":AB.COMMON.generateUUID()}}});Object.defineProperty(AB,"xAPIstoreResolverHttpOptions",{configurable:!0,get:function(){return{"ocp-apim-subscription-key":AB.wcaxXapiApimKey}}});Object.defineProperty(AB,"xAPIOcrpRewardsHttpNoAuth",{configurable:!0,get:function(){return{"Content-Type":"application/vnd.safeway.v1+json","ocp-apim-subscription-key":AB.ocrpRewardsXapiApimKey,"x-swy-correlation-id":AB.COMMON.generateUUID()}}});Object.defineProperty(AB,"xAPIOcrpRewardsHttpOptions",{configurable:!0,
99get:function(){return{"Content-Type":"application/vnd.safeway.v1+json","ocp-apim-subscription-key":AB.ocrpRewardsXapiApimKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"ucaDecryptionApiHttpOptions",{configurable:!0,get:function(){return{"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/vnd.safeway.v2+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey}}});
100Object.defineProperty(AB,"xAPIOcrpRewardsHttpOptionsV2",{configurable:!0,get:function(){return{"Content-Type":"application/vnd.safeway.v2+json","ocp-apim-subscription-key":AB.ocrpRewardsXapiApimKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN}}});Object.defineProperty(AB,"xAPIOcrpRewardsHttpOptionsV3",{configurable:!0,get:function(){return{"Content-Type":"application/vnd.safeway.v3+json","ocp-apim-subscription-key":AB.ocrpRewardsXapiApimKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),
101Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"X-ABS-Client-ID":"WEB"}}});Object.defineProperty(AB,"j4UEligibilityOfferOption",{configurable:!0,get:function(){return{Accept:"application/vnd.safeway.v1+json","x-swy-correlation-id":AB.COMMON.generateUUID()}}});Object.defineProperty(AB,"ucaHttpOptionsV2UpdatedHeader",{get:function(){var b=new Date;return{Accept:"application/vnd.safeway.v2+json","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey,
102"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-id":"web-portal","x-swy-correlation-id":AB.COMMON.generateUUID(),"x-swy-date":b,"Cache-Control":"no-cache"}}});Object.defineProperty(AB,"ecommHttpOptionsOsdp",{get:function(){return{accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"ocp-apim-subscription-key":SWY.CONFIGSERVICE.osdpConfig["osdp.apim.key"],storeId:AB.userInfo.branchId,clientId:"CC",pageSource:"HOME"}}});Object.defineProperty(AB,
103"gamePlayHttpOptions",{get:function(){var b={Accept:"application/vnd.safeway.v1+json","Content-Type":"application/vnd.safeway.v1+json","ocp-apim-subscription-key":AB.ocgp.apimKey,storeId:AB.userInfo.branchId,entry:"web",banner:SWY.CONFIGSERVICE.getResolvedBanner(),"correlation-id":AB.COMMON.generateUUID()};null!=AB.userInfo.SWY_SHOP_TOKEN&&""!=AB.userInfo.SWY_SHOP_TOKEN&&(b.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"sellerShippingMethodsOptions",{get:function(){return{"Ocp-Apim-Subscription-Key":AB.sellerShipMethodsSubKey,
104"Content-Type":"application/json"}}});Object.defineProperty(AB,"wineShippingMethodsOptions",{get:function(){return{"Ocp-Apim-Subscription-Key":AB.wineLandingPromiseSubKey,"Content-Type":"application/json"}}});Object.defineProperty(AB,"rewardUnclipHttpOptions",{get:function(){return{"X-SWY_API_KEY":"emjou","X-SWY_VERSION":"1.0",SWY_BANNER:SWY.CONFIGSERVICE.getResolvedBanner(),Authorization:"Bearer "+AB.userInfo.SWY_SHOP_TOKEN,"Content-Type":"application/json"}}});Object.defineProperty(AB,"splashModalHttpOptions",
105{get:function(){return{"Content-Type":"application/vnd.safeway.v2+json","Ocp-Apim-Subscription-Key":window.SWY.CONFIGSERVICE.searchConfig.apimP13nSubscriptionKey,"X-access-token":window.AB.userInfo.SWY_SHOP_TOKEN,platform:"web"}}});Object.defineProperty(AB,"fulfillmentServlet",{configurable:!0,get:function(){return"/bin/safeway/fulfillment"}});Object.defineProperty(AB,"globalHeaderGetNavigation",{get:function(){var b={"Ocp-Apim-Subscription-Key":AB.globalHeaderGetNavigationSubKey,"x-swy-correlation-id":AB.COMMON.generateUUID(),
106"Content-Type":"application/json",platform:"web",screenName:"global-header",banner:SWY.CONFIGSERVICE.getResolvedBanner(),storeId:AB.userInfo.branchId};AB.COMMON.authorize()&&(b["X-access-token"]=window.AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"mergeAccountsHttpHeader",{configurable:!0,get:function(){var b={"Content-Type":"application/vnd.safeway.v1+json",Accept:"application/vnd.safeway.v1+json","x-abs-client-id":"web-portal","x-abs-correlation-id":AB.COMMON.generateUUID(),
107"x-abs-request-id":AB.COMMON.generateUUID(),"x-abs-banner-id":SWY.CONFIGSERVICE.getResolvedBanner(),"Ocp-Apim-Subscription-Key":SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey};AB.COMMON.authorize()&&(b.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return b}});Object.defineProperty(AB,"clippedCouponsHttpHeader",{configurable:!0,get:function(){var b={"Content-Type":"application/vnd.safeway.v2+json","X-SWY_API_KEY":"wcax","X-SWY_VERSION":"3.0","X-SWY_BANNER":SWY.CONFIGSERVICE.getResolvedBanner()};
108AB.COMMON.authorize()&&(b.Authorization="Bearer "+AB.userInfo.SWY_SHOP_TOKEN);return b}})};
109AB.loadDynamicURL=function(){var b=SWY.CONFIGSERVICE.nimbusConfig.usePcfEndpoint,a=SWY.CONFIGSERVICE.getDatapowerConfig(),d=a.clientHost+a.datapowerBasePath,e=a.clientHost+a.datapowerxAPIBasePath,k=a.clientHost+a.apimPcfJ4uBasePath,f=a.clientHost+a.extBasePath;k=b?k:d;b=b?"":"/web/j4u/api";var h=a.clientHost+a.cncCtxPath,c=a.clientHost+a.cncCtxPath+"/ucaservice",g=a.clientHost+a.cncCtxPath+"/cpsaservice",m=a.ppmsApiEndpoint;AB.offerGuestPath=k+b+"/ecomgallery/anonymous";AB.offerRegisterPath=k+b+"/ecomgallery";
110AB.offerDetailPath=k+b+"/offer";AB.offerDetailxAPIPath=e+"/xapi/offers";AB.checkUnclipDetail=e+"/xapi/ocrp/rewards/clippedrewards";AB.getRewardHistoryV2Path=e+"/xapi/ocrp/rewards/v2/rewardsHistory";AB.getRewardHistoryV3Path=e+"/xapi/ocrp/rewards/v3/rewardsHistory";AB.offerPersonalizedContent=k+b+"/personalizedcontent";AB.couponClipPath=k+b+"/offers/clip";AB.couponUnclipPath=k+b+"/offers/unclip";AB.rewardUnclipPath=k+b+"/rewards/unclip?storeId\x3d{storeId}";AB.myListPath=k+b+"/mylist";AB.myListCountPath=
111k+b+"/mylist/count";AB.rewardPath=k+b+"/grocery/rewards/offers";AB.rewardsHeaderSummaryPath=d+"/api/uca/customers/{customerId}/rewards";AB.xAPIgalleryPath=e+"/xapi/offers/companiongalleryoffer";AB.offerGalleryFilterPath=e+"/dce/offergallery/offers/filter";AB.xAPIgalleryBonusPath=e+"/dce/offergallery/challenges?storeId\x3d{storeId}";AB.instantAllocation=e+"/xapi/offers/instantAllocationGallery";AB.galleryGuestPath=k+b+"/offers/gallery/anonymous";AB.galleryRegisterPath=k+b+"/offers/gallery";AB.infiniteScroll=
112"client";AB.selectedRewardsPath=k+b+"/grocery/rewards/mylist";AB.hiddenEventsPath=k+b+"/CC/offer/allocations?view\x3dcampaign\x26_dc\x3d1537490356206\x26";AB.eligibleOfferDetailxAPIPath=e+"/xapi/offers/event/new_registration/offers";AB.savingsAPIPath=e+"/dce/mycard/J4UProgram1/services/mycard/savings";AB.storeByIdPathV2=a.datapowerxAPIBasePath+"/xapi/storeresolver/v2/storesByIds";AB.clippedCouponPath=e+"/dce/offergallery/J4UProgram1/services/gallery/companion/clipped";AB.resetPasswordPath=c+"/api/uca/pwd";
113AB.signInCsmsPath=h+"/csmsservice/api/csms/signin";AB.signUpCsmsPath=h+"/csmsservice/api/csms/signup";AB.registerCsmsPath=h+"/csmsservice/api/csms/customers/register";AB.lookupCsmsPath=h+"/csmsservice/api/csms/customers/lookup";AB.verifyUpCsmsPath=h+"/csmsservice/api/csms/signup/factors/{{factor.id}}/verify";AB.kmsiCsmsPath=h+"/csmsservice/api/csms/kmsi";AB.nonKmsiCsmsPath=h+"/csmsservice/api/csms/nonkmsi";AB.resendOtpCsmsPath=h+"/csmsservice/api/csms/signup/factors/{factorId}/verify/resend";AB.csmsResetPasswordPath=
114h+"/csmsservice/api/csms/pwd/token";AB.rewardsInfoPath=c+"/api/uca/customers/{customerId}/rewards";AB.currentOrderPath=d+"/web/ecom/api/order";AB.cancelOrderPath=d+"/web/ecom/api/orderdelete/";AB.deliveryAddressPath=c+"/api/uca/customers/{customerId}
114/addresses";AB.storeAddressPath=c+"/api/uca/customers/{customerId}/stores";AB.storeAddressPathV2=c+"/api/uca/customers/{UUID}/stores";AB.profileAddressPath=c+"/api/uca/customers/{customerId}/profile";AB.getProfileFullInfo=c+"/api/uca/customers/{customerId}/profile?full\x3dy";
115AB.fullRegPath=c+"/api/uca/customers/register";AB.stepupRegPath=c+"/api/uca/customers/register/stepup";AB.getProfileInfo=c+"/api/uca/customers";AB.getprofileAddressPath=c+"/api/uca/customers/{customerId}/profile";AB.shortRegPath=c+"/api/uca/customers/register";AB.subscriptionDetailsPath=c+"/api/uca/customers/{customerId}/subscriptions";AB.userProfilePath=c+"/api/uca/customers/{customerId}/profile";AB.loyaltyPartnersPath=c+"/api/uca/customers/{customerId}/loyaltypartners";AB.getLocationinfo=d+"/location/api/accounts/me/locations/geosearch?api_key\x3d843b2f10cedf121969b2e44eab5f15aa\x26amp;v\x3d20180530\x26amp;location\x3d";
116AB.kmsiPath=c+"/api/uca/customers/kmsi";AB.anonymousUnsubscribe=c+"/api/uca/unsubscribe";AB.pendingOrderMessage=d+"/web/ecom/api/ecomdb/commdata";AB.fulfillmentPreferences=c+"/api/uca/customers/{customerId}/preferences/fulfillment";AB.fulfillmentDefaultAddressV2=c+"/api/uca/customers/{customerId}/fulfillment";AB.erumsApiOrdersSummary=SWY.CONFIGSERVICE.erumsConfig["orders.service.endpoint"]+"/orders/summary";AB.erumsApiCancelOrder=SWY.CONFIGSERVICE.erumsConfig["orders.service.endpoint"]+"/orders/";
117AB.reserveTimePathErums=SWY.CONFIGSERVICE.erumsConfig["erums.slot.service.endpoint"]+"/reservationDetails/";AB.erumsOrderDelivery=SWY.CONFIGSERVICE.erumsConfig["orders.service.endpoint"]+"/orders/";AB.getZipCodeInfo=d+"/api/uca/cities/{zipCode}";AB.profileTokenDecryptionService=c+"/api/uca/customers/profile/token";AB.creditCardInfoPath=h+"/cwmsservice/api/cwms/customers/{customerId}/tenders";AB.creditCardInfoTokenvaultPath=a.tokenvaultEndpoint+"/customers/{customerId}/tenders";AB.tokenvaultSubscriptionKey=
118a.tokenvaultSubscriptionKey;AB.reserveTimePathOsdp=SWY.CONFIGSERVICE.osdpConfig["osdp.slot.promise.service.endpoint"]+"/reservationDetails/";AB.loyaltyPartnerPath=c+"/api/uca/customers/{uuid}/loyaltypartners";AB.postPutDeletePetProfilePath=m+"petprofile";AB.getAllPetProfilesPath=m+"petprofiles";AB.findPetProfilePath=m+"petprofile/{petId}";AB.updateBusinessProfileEndpoint=c+"/api/uca/customers/{{UUID}}/profile";AB.userAddresses=c+"/api/uca/customers/{uuid}/addresses";AB.mergeSkipPath=g+"/api/cpsa/customers/{customerId}/accounts/skip";
119AB.firstTimeLoginAcknowledgementPath=h+"/csmsservice/api/csms/customers/{customerId}/ack-first-time-login";AB.deliverySubAemPaymentURL="/delivery-subscription/payment.html?subscriptioncode\x3d";AB.stackingLImitAPIPath=AB.ocrpRewardsStackingLimitEndpoint;AB.emrbGetRewardSummary=f+"/rewardshub/getRewards";AB.ocrpRewardScorecard=AB.ocrpRewardsScorecardEndpoint;AB.storeLocatorDerivedEcom=e+"/api/services/locator/store/derivedecom";AB.webPreloadPath=AB.preloadStoreFlagsEndpoint;AB.setPasswordOTP=c+"/api/uca/customers/{{UUID}}/credentials/password";
120AB.marketPlaceSearchResultsPath="marketplace/search-results.{sellerId}.html?q\x3d{q}";AB.marketPlaceSellerCarouselEndPoint="/search/seller-carousel";AB.wineShopSearchResultsPath="vineandcellar/search-results.html?q\x3d{q}";AB.marketPlaceCrossSellerSearchResultsPath="/shop/marketplace/seller-search.html?q\x3d{q}";AB.wineCarouselEndPoint="/search/wine-carousel";AB.healthHandshakePath="/health/users/session";AB.healthAppBasePath="/health/pharmacy/dashboard"};
121(function(){this.clubCard=this.houseId=this.zipcode=this.UUID=this.userType=this.userId=this.unattendedDeliveryIsEnabled=this.registered=this.pickupAddress=this.orderCount=this.extendedType=this.driveUpAndGoIsEnabled=this.email=this.displayableBanner=this.deliveryPreference=this.deliveryAddress=this.branchId=this.banner=this.SWY_SHOP_TOKEN="";this.boxTopAuth=!1;this.expireTime=this.orderNumber=this.isInNoServiceArea=this.lastName=this.firstName="";this.earlyInitialize=!0;this.resolveEcomStore=!1;
122this.dprefVisited="";this.userData={};this.selectionType=this.preferenceMode="";this.j4u={};this.j4u.zipcode="";this.j4u.storeId="";this.j4u.isStoreIdEmpty=!1;this.j4u.userData={};this.j4u.storeData={};this.j4u.storeData.storeRewards={};this.j4u.storeData.storeRewards.storeId="";this.j4u.storeData.storeRewards.hasGroceryDelivery="";this.j4u.storeData.storeRewards.hasDUG="";this.j4u.storeData.storeRewards.hasRushDelivery="";this.j4u.storeData.storeRewards.hasGroceryRewards="";this.j4u.storeData.storeRewards.gasRewardsId=
123"";this.j4u.storeData.storeRewards.rewardsProgramId="";this.j4u.storeData.storeRewards.partnerFuelLogo="";this.j4u.storeData.storeRewards.partnerMaxRedemption="";this.j4u.storeData.storeRewards.ownMaxRedemption="";this.j4u.storeData.storeLocation={};var b=["",0,void 0,"undefined",null,"0","PRIMARY","null"];
123this.geolocation={zipcodeJ4U:null,storeIDJ4U:null,zipcodeSHOP:null,storeIDSHOP:null,storeData:null};this.geoYextAJAXCall="";this.triggerUserInfoAJAXCall=!1;this.phonePrompt180=this.emailPrompt180=
124this.emailVerified=this.phoneVerified=this.multiAccounts=this.addressName=this.deliveryAddr=this.resolvedBy=this.customerType=this.siteType=this.profilePhone=this.profileEmail="";this.prepareSharedInfo=function(){var a=AB.COMMON.getCookie("SWY_SHARED_SESSION_INFO");if(""!=a){try{a=unescape(a),a=JSON.parse(a)}catch(d){console.error("sharedInfo: Parsing failed",d),a={info:""}}AB.userInfo.mapSharedInfo(a)}};this.mapSharedInfo=function(a){if(!AB.COMMON.isEmpty(a.info)){AB.COMMON.isEmpty(a.info.COMMON)||
125(void 0!==a.info.COMMON.dprefVisited&&null!==a.info.COMMON.dprefVisited&&(this.dprefVisited=a.info.COMMON.dprefVisited),a.info.COMMON.preference&&(this.preferenceMode=a.info.COMMON.preference),a.info.COMMON.Selection&&(this.selectionType=a.info.COMMON.Selection),this.userType=void 0!==a.info.COMMON.userType?a.info.COMMON.userType:"",a.info.COMMON.isClosed&&(this.isClosed="true"===a.info.COMMON.isClosed?!0:!1),a.info.COMMON.isCrossBannerMFCUser&&(this.isCrossBannerMFCUser="true"===a.info.COMMON.isCrossBannerMFCUser?
126!0:!1),a.info.COMMON.isARenrolled&&(this.isARenrolled=void 0!=a.info.COMMON.isARenrolled&&"null"!=a.info.COMMON.isARenrolled?"true"===String(a.info.COMMON.isARenrolled).toLowerCase():"null"===String(a.info.COMMON.isARenrolled).toLowerCase()?null:void 0),a.info.COMMON.siteType&&(this.siteType=void 0!==a.info.COMMON.siteType?a.info.COMMON.siteType:""),a.info.COMMON.customerType&&(this.customerType=void 0!==a.info.COMMON.customerType?a.info.COMMON.customerType:""),a.info.COMMON.resolvedBy&&(this.resolvedBy=
127void 0!==a.info.COMMON.resolvedBy?a.info.COMMON.resolvedBy:""),a.info.COMMON.multiAccounts&&(this.multiAccounts=void 0!==a.info.COMMON.multiAccounts?a.info.COMMON.multiAccounts:""),a.info.COMMON.phoneVerified&&(this.phoneVerified=void 0!==a.info.COMMON.phoneVerified?a.info.COMMON.phoneVerified:""),a.info.COMMON.emailVerified&&(this.emailVerified=void 0!==a.info.COMMON.emailVerified?a.info.COMMON.emailVerified:""),a.info.COMMON.emailPrompt180&&(this.emailPrompt180=void 0!==a.info.COMMON.emailPrompt180?
128a.info.COMMON.emailPrompt180:""),a.info.COMMON.phonePrompt180&&(this.phonePrompt180=void 0!==a.info.COMMON.phonePrompt180?a.info.COMMON.phonePrompt180:""));if(!AB.COMMON.isEmpty(a.info.SHOP)){var d=a.info.SHOP;this.branchId=void 0!==d.storeId?d.storeId:"";if(AB.COMMON.checkPendingOrder()){this.orderNumber=AB.COMMON.getCookie("OrderNumber");var e=AB.COMMON.getCookie("BranchNumber");void 0!=e&&null!=e&&""!=e&&(this.branchId=e)}else this.orderNumber="";this.zipcode=void 0!==d.zipcode?d.zipcode:"";this.banner=
129void 0==d.banner||null==d.banner||""==d.storeId?SWY.CONFIGSERVICE.getResolvedBanner():d.banner;d.userData&&(this.expireTime=void 0!==d.userData.expireTime?d.userData.expireTime:"");this.userData=void 0!==d.userData?d.userData:{}}AB.COMMON.isEmpty(a.info.J4U)||(d=a.info.J4U,this.j4u.zipcode=void 0!==d.zipcode?d.zipcode:"",this.j4u.storeId=void 0!==d.storeId?d.storeId:"",AB.COMMON.checkForEditOrderMode()&&(e=AB.COMMON.getCookie("BranchNumber"),this.j4u.storeId!==e&&(this.j4u.storeId=e)),this.j4u.userData=
130void 0!==d.userData?d.userData:{});AB.COMMON.isEmpty(a.info.COMMON)||(a=a.info.COMMON,this.houseId=void 0!==a.houseId?a.houseId:"",this.clubCard=void 0!==a.clubCard?a.clubCard:"")}};this.mapStoreLocationFromLocalStorage=function(){var a=localStorage.getItem("storeData");if(a&&(a=JSON.parse(unescape(a)),!AB.COMMON.isEmpty(a.storeLocation))){for(var d in a.storeLocation)AB.userInfo.j4u.storeData.storeLocation[d]=a.storeLocation[d];AB.userInfo.j4u.storeId=AB.userInfo.j4u.storeData.storeLocation.storeId}};
131this.resolveDisplayableBanner=function(){this.banner=SWY.CONFIGSERVICE.resolvedBanner;this.displayableBanner=SWY.CONFIGSERVICE.displayableBanner};this.prepareUserInfo=function(a){try{"string"==typeof a&&(AB.userInfo.mapUserInfo(JSON.parse(a)),PastOrdersComp.init())}catch(d){console.error("Userinfo: Parsing failed",d)}};
131this.mapUserInfo=function(a){if(!AB.COMMON.isEmpty(a)&&(void 0!==a.clubCard&&(this.clubCard=a.clubCard),void 0!==a.houseId&&(this.houseId=a.houseId),void 0!==a.SWY_SHOP_TOKEN&&(this.SWY_SHOP_TOKEN=
132a.SWY_SHOP_TOKEN),void 0!==a.customerId&&(this.customerId=a.customerId),void 0!==a.deliveryAddress&&(this.deliveryAddress=a.deliveryAddress),void 0!==a.deliveryPreference&&(this.deliveryPreference=a.deliveryPreference),void 0!==a.driveUpAndGoIsEnabled&&(this.driveUpAndGoIsEnabled=a.driveUpAndGoIsEnabled),void 0!==a.orderCount&&(this.orderCount=a.orderCount),void 0!==a.extendedType&&(this.extendedType=a.extendedType),void 0!==a.pickupAddress&&(this.pickupAddress=a.pickupAddress),void 0!==a.registered&&
133(this.registered=a.registered),void 0!==a.userId&&(this.userId=a.userId),void 0!==a.firstName&&(this.firstName=a.firstName),void 0!==a.lastName&&(this.lastName=a.lastName),void 0!==a.unattendedDeliveryIsEnabled&&(this.unattendedDeliveryIsEnabled=a.unattendedDeliveryIsEnabled),void 0!==a.isInNoServiceArea&&(this.isInNoServiceArea=a.isInNoServiceArea),void 0!==a.UUID&&(this.UUID=a.UUID),void 0!==a.email&&(this.email=a.email),void 0!==a.profileEmail&&(this.profileEmail=a.profileEmail),void 0!==a.profilePhone&&
134(this.profilePhone=a.profilePhone),void 0!==a.deliveryAddr&&void 0!==a.type)){var d=a.deliveryAddr.split(",");d=4<d.length?{type:a.type,adr1:d[0],adr2:d[1],city:d[2],zip:d[4],st:d[3]}:{type:a.type,adr1:d[0],city:d[1],zip:d[3],st:d[2]};void 0!==a.addressName&&""!==a.addressName&&null!==a.addressName&&(d.addressName=a.addressName);this.deliveryAddr=d}};_getAppBranchId=function(a){return a.j4u.storeId?a.j4u.storeId:a.branchId};this.getValue=function(a){switch(a){case "appBranchId":a=_getAppBranchId(this);
135break;default:a=AB.userInfo[a]}return a};this.updateTokenRefreshProperty=function(){var a=SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO"),d=SWY.CONFIGSERVICE.featureToggleConfig.enableCookieRestructure?!0:!1;""!=a&&((a=unescape(a),a=JSON.parse(a),d)?AB.COMMON.isEmpty(a.info)||(this.userType=void 0!==a?a.userType:"",a.userData&&(this.expireTime=void 0!==a.userData.expireTime?a.userData.expireTime:""),this.j4u.userType=void 0!==a.userType?a.userType:""):AB.COMMON.isEmpty(a.info)||(AB.COMMON.isEmpty(a.info.SHOP)||
136(d=a.info.SHOP,this.userType=void 0!==d.userType?d.userType:"",d.userData&&(this.expireTime=void 0!==d.userData.expireTime?d.userData.expireTime:"")),AB.COMMON.isEmpty(a.info.J4U)||(a=a.info.J4U,this.j4u.userType=void 0!==a.userType?a.userType:"")))};this.updateSessionCookies=function(a){var d=new Date;d.setTime(d.getTime()+1E3*SWY.CONFIGSERVICE.oktaConfig.maxAge);0<SWY.CONFIGSERVICE.oktaConfig.maxAge?(d="expires\x3d"+d.toUTCString(),SWY.CONFIGSERVICE.setCookie("SWY_SHARED_SESSION_INFO",encodeURIComponent(JSON.stringify(a)),
137d,"true")):SWY.CONFIGSERVICE.setCookie("SWY_SHARED_SESSION_INFO",encodeURIComponent(JSON.stringify(a)))};this.usePreviousInfoForSession=function(a,d){AB.userInfo.generateEstablishmentSession(a.J4U.zipcode,a.J4U.storeId,a.SHOP.zipcode,a.SHOP.storeId,a.COMMON.preference,d,a.COMMON.resolvedBy)};this.useStoreSelectorForSession=function(a){AB.userInfo.generateEstablishmentSession(a.validRequest.store.zipcode,a.validRequest.store.storeId,a.validRequest.ecomStore.zipcode,a.validRequest.ecomStore.storeId,
138"J4U","user")};this.useDefaultForSession=function(){var a=SWY.CONFIGSERVICE.storeResolutionConfig;AB.userInfo.generateEstablishmentSession(a.bannerDefaultZipcode,a.bannerDefaultStoreId,null,null,"J4U","default")};this.checkForMultipleDelivery=function(a){AB.COMMON.getStoreResolverPayload(window.location.origin,AB.storeResolverDeliveryEndpointV2,{zipcode:a.SHOP.zipcode,radius:50,size:10},{"ocp-apim-subscription-key":AB.wcaxXapiApimKey},!1,function(d,e,k){d=d.delivery;if(0<d.count){var f=!1;d.stores.forEach(function(h){h.polarisBannerName===
139SWY.CONFIGSERVICE.getResolvedBanner()&&h.locationId===a.SHOP.storeId&&(f=!0)});f?AB.userInfo.usePreviousInfoForSession(a,"user"):AB.userInfo.useDefaultForSession()}else AB.userInfo.useDefaultForSession()},function(d,e,k){AB.userInfo.usePreviousInfoForSession(a,"user")})};
139this.setMultipleDeliveryCookie=function(){var a=new Date;a.setHours(24,0,0,0);a="expires\x3d"+a.toUTCString();SWY.CONFIGSERVICE.setCookie("multipleDeliveryCheck",!0,a,"true")};this.checkForStoreSelector=function(){var a=!1;if(SWY.CONFIGSERVICE.featureToggleConfig.enableStoreIdSelector){var d=
140window.location.pathname;if("undefined"!=typeof d&&-1==d.indexOf(".(")&&"true"==SWY.CONFIGSERVICE.isEnableStoreIdSelectorOnPage){var e=d.indexOf("."),k=d.indexOf(".html");-1!=e&&-1!=k&&k>e&&(d=String(d).substring(e+1,k))&&(new RegExp(/^\d{2}$|^\d{3}$|^\d{4}$/)).test(d)&&(a=!0,AB.currentStoreIdSelector=d)}}return a};this.validateStoreIdSelector=function(){var a=window.location.protocol+"//"+window.location.host,d=AB.storeResolverValidateEndpoint,e={banner:SWY.CONFIGSERVICE.getResolvedBanner(),storeid:AB.currentStoreIdSelector,
141preference:"instore"};AB.COMMON.getStoreResolverPayload(a,d,e,{"ocp-apim-subscription-key":AB.wcaxXapiApimKey},!1,function(k,f,h){!0===k.validRequest.isValid?AB.userInfo.useStoreSelectorForSession(k):AB.userInfo.useDefaultForSession()},function(k,f,h){AB.userInfo.useDefaultForSession()})};this.establishUnifiedGuestSession=function(){if(SWY.deepLinkData.info){var a=SWY.deepLinkData.info;this.usePreviousInfoForSession(a,a.COMMON.Selection)}else if(SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInWWW())if(b&&
142-1==b.indexOf(SWY.previousLogin.info.SHOP.storeId)&&-1==b.indexOf(SWY.previousLogin.info.J4U.storeId)){a=SWY.previousLogin.info;var d=SWY.CONFIGSERVICE.featureToggleConfig;d&&d.useStoreResolverV2&&"delivery"===a.COMMON.preference.toLowerCase()?""==AB.COMMON.getCookie("multipleDeliveryCheck")&&(this.checkForMultipleDelivery(a),this.setMultipleDeliveryCookie()):this.usePreviousInfoForSession(a,"user")}else this.useDefaultForSession();else AB.userInfo.checkForStoreSelector()?AB.userInfo.validateStoreIdSelector():
143AB.userInfo.useDefaultForSession()};this.generateEstablishmentSession=function(a,d,e,k,f,h,c){var g=SWY.CONFIGSERVICE.featureToggleConfig.enableCookieRestructure?!0:!1,m={info:{COMMON:{},J4U:{},SHOP:{}}};m.info.COMMON.Selection=h;m.info.COMMON.preference=f;m.info.COMMON.userType="G";m.info.COMMON.zipcode="J4U"==f?a:e;m.info.COMMON.banner=AB.userInfo.banner;m.info.COMMON.siteType=AB.userInfo.siteType;m.info.COMMON.customerType=AB.userInfo.customerType;m.info.COMMON.resolvedBy=c?c:AB.userInfo.resolvedBy;
144m.info.J4U.zipcode=a;g&&(m.info.COMMON.zipcode=a);null!=d?(m.info.J4U.storeId=d.toString(),g&&(m.info.COMMON.storeId=d.toString())):(m.info.J4U.storeId=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).storeId,m.info.COMMON.banner=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).banner,g&&(m.info.COMMON.storeId=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).storeId,m.info.COMMON.banner=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).banner));null===e?(m.info.SHOP.zipcode=
145a,null!=d?(m.info.SHOP.storeId=d.toString(),g&&(m.info.COMMON.storeId=d.toString())):(m.info.SHOP.storeId=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).storeId,g&&(m.info.COMMON.storeId=JSON.parse(AB.COMMON.getCookie("SincerelyFoodBanner")).storeId))):(m.info.SHOP.zipcode=e,m.info.SHOP.storeId=k.toString(),g&&(m.info.COMMON.zipcode=e,m.info.COMMON.storeId=k.toString()));g?(AB.userInfo.userType="G",AB.userInfo.zipcode=m.info.COMMON.zipcode,AB.userInfo.branchId=m.info.COMMON.storeId,AB.userInfo.userData=
146m.info.COMMON.userData,AB.userInfo.preferenceMode=f,AB.userInfo.selectionType=h,AB.userInfo.j4u.zipcode=m.info.COMMON.zipcode,AB.userInfo.j4u.storeId=m.info.COMMON.storeId):(AB.userInfo.userType="G",AB.userInfo.zipcode=m.info.SHOP.zipcode,AB.userInfo.branchId=m.info.SHOP.storeId,AB.userInfo.userData=m.info.SHOP.userData,AB.userInfo.preferenceMode=f,AB.userInfo.selectionType=h,AB.userInfo.j4u.zipcode=m.info.J4U.zipcode,AB.userInfo.j4u.storeId=m.info.J4U.storeId);AB.COMMON.updateUserSession(m)};this.resolveSiteType=
147function(){this.siteType="C";AB.COMMON.isB2BSite()&&(this.siteType="B")}}).call(AB.userInfo);
148(function(){this.queryParams={};var b=this.referrerUrl=null;this.init=function(){var a=window.location.search;
148console.debug("SWY.QUERYSTRING.init ENTRY");a?(0==a.indexOf("?")&&(a=a.substring(1)),console.debug("SWY.QUERYSTRING.init currentParams\x3d"+a),0<a.length&&(b=this.parseQueryString(a),console.debug("SWY.QUERYSTRING.init _parsedQueryParams\x3d"+b),this.filterParameters(b))):SWY.QUERYSTRING.addReferrerToQueryParams(!1);console.debug("SWY.QUERYSTRING.init EXIT: queryParams\x3d"+this.queryParams)};
149this.checkParams=function(a){var d="";if(a)for(a=a.split("\x26"),i=0,l=a.length;i<l;i++){var e=a[i].split("\x3d");e=e[0];var k=a[i].substr(e.length+1);"r"==e&&(k=encodeURIComponent(k));e=e+"\x3d"+k;d=0==i?e:d+("\x26"+e)}return d};this.parseQueryString=function(a){var d={};console.debug("SWY.QUERYSTRING.parseQueryString ENTRY: currentParams\x3d"+a);if(a)for(a=a.split("\x26"),i=0,l=a.length;i<l;i++){var e=a[i].split("\x3d");var k=a[i].substr(e[0].length+1);d[e[0]]=k}console.debug("SWY.QUERYSTRING.parseQueryString EXIT: params\x3d"+
150d);return d};this.filterParameters=function(a){var d=null;console.debug("SWY.QUERYSTRING.parseQueryString ENTRY: parsedQueryParams\x3d"+a);if(a)for(d in a){var e=a[d];this.isParameterInList(d)&&(this.queryParams[d]=e)}SWY.QUERYSTRING.addReferrerToQueryParams(!1);console.debug("SWY.QUERYSTRING.parseQueryString EXIT: queryParams\x3d"+this.queryParams)};this.addReferrerToQueryParams=function(a){a=SWY.QUERYSTRING.getReferrer(a);!this.queryParams.r&&a&&(this.queryParams.r=a)};this.isParameterInList=function(a){var d,
151e=null,k=-1,f=!1;if(a&&(d=SWY.CONFIGSERVICE.queryStringConfig))for(e in d){if(f)break;
151if(d.hasOwnProperty(e)){var h=d[e];for(k in h)if(console.debug("parameter name \x3d\x3d "+h[k]),h[k]===a){f=!0;break}}}return f};this.buildUrlParameters=function(){var a=null,d="";if(this.queryParams)for(a in this.queryParams){var e=this.queryParams[a];e=this.generateUrlParameter(a,e);d&&(d+="\x26");d+=e}return d};this.generateUrlParameter=function(a,d){var e=null;a&&(e=a+"\x3d"+d);return e};this.getCurrentURI=function(a){var d=
152location.pathname;a&&(d+=window.location.search);return d};this.getURIWithMarketingParams=function(){var a;if(a=SWY.QUERYSTRING.buildUrlParameters()){var d=this.getCurrentURI(!1);d+="?"+a}else d=this.getCurrentURI(!0);return d};this.hasMarketingParams=function(){return 0!=Object.getOwnPropertyNames(this.queryParams).length};this.addReferrerToURI=function(a){var d;if(d=SWY.QUERYSTRING.getReferrer()){var e=a.indexOf("?");0>e?a=a+"?r\x3d"+d:0<e&&e<a.length&&0>a.indexOf("?r\x3d")&&0>a.indexOf("\x26r\x3d")&&
153(a=a+"\x26r\x3d"+d)}return a};this.getReferrer=function(a){var d,e="";if(d=document.referrer)e=encodeURIComponent(d),a||(a=d.split("?",2),e=encodeURIComponent(a[0]));return e};this.mergeMarketingParams=function(a,d){var e=a;if(d&&(d=d.split("\x26")))for(var k in d){var f=d[k].split("\x3d");if(!SWY.QUERYSTRING.hasParam(f[0],a)){var h=d[k].substr(f[0].length+1);f=SWY.QUERYSTRING.generateUrlParameter(f[0],h);e=e?e+("\x26"+f):e+("?"+f)}}return e};this.hasParam=function(a,d){var e=!1;d.match(new RegExp("([?\x26])*"+
154a+"\x3d.*?(\x26|$)","i"))&&(e=!0);return e}}).call(SWY.QUERYSTRING);
155(function(){this.popularSearchesConfig={popularSearches:{}};this.bannerDomainMap={};this.nonShopBanners={};this.carouselOfferAPIBased;this.carouselProductAPIBased;this.carouselRolloutBanners={};this.bannerConventionsJson={};this.sessionCookiePrefixes="SWY_ EComm USED_ SAFEWAY_ abs_ absV".split(" ");this.topLevelSessionCookies=["USED_CREDENTIALS","SAFEWAY_KMSI","SAFEWAY_RE_SIGN_IN"];this.ACIStrictCookies="ACI_S_B_convt_acc ACI_S_B_convt_acc_success ECommSignInCount B_ECommSignInCount USED_CREDENTIALS B_USED_CREDENTIALS abs_previouslogin B_abs_previouslogin ECommBanner B_ECommBanner ECommRedirectURL B_ECommRedirectURL".split(" ");this.ACIStrictReleaseCookies=
156["ECommReInit","B_ECommReInit"];this.ACIFunctionalCookies=[];this.ACIAnalyticsCookies=[];this.realTimePopularSearchConfig={popularSearchItems:{}};this.init=function(b,a,d){var e;if(null==(e=SWY.CONFIGSERVICE.featureToggleConfig)?0:e.enableReleaseACICookie)this.ACIStrictCookies=this.ACIStrictCookies.concat(this.ACIStrictReleaseCookies);SWY.configService=JSON.parse(b);this.displayableBanner=this.resolvedBanner="";AB.isLSEnabled=this.isLSCompatible();a&&(b=JSON.parse(a),this.resolvedBanner=b.banner,
157this.displayableBanner=b.displayableBanner);this.bannerConventionsJson={};""!=d&&(this.bannerConventionsJson=JSON.parse(d));this.getPreUserInfo();this.checkGotoReferralURL();this.checkLocalStorageRefresh();
157SWY.configService.nonShopBanners&&(this.nonShopBanners=SWY.configService.nonShopBanners);-1===window.location.search.indexOf("log\x3dtrue")&&this.disableLog();this.getCurrentEnviormentVal()};this.initNimbusConfig=function(b){this.nimbusConfig=""!==b?JSON.parse(b):{}};this.initFeatureToggleConfig=
158function(b){this.featureToggleConfig=""!==b?JSON.parse(b):{}};this.initDatapowerConfig=function(b){this.datapowerConfig=""!==b?JSON.parse(b):{}};this.initOktaConfig=function(b){""!=b?(this.oktaConfig=JSON.parse(b),this.oktaConfig.logoutRedirectURI=window.location.origin+this.oktaConfig.logoutRedirectURI,this.oktaConfig.ossmLogoutRedirectURI=window.location.origin+this.oktaConfig.ossmLogoutRedirectURI):this.oktaConfig={}};this.initStoreResolutionConfig=function(b){this.storeResolutionConfig=""!=b?
159JSON.parse(b):{}};this.initBannerDomainMapConfig=function(b){""!=b&&(this.bannerDomainMap=JSON.parse(b))};this.initQueryStringConfig=function(b){this.queryStringConfig=""!==b?JSON.parse(b):{}};this.initSearchConfig=function(b){this.searchConfig=""!==b?JSON.parse(b):{}};this.initPopularSearches=function(b){""!==b&&(this.popularSearchesConfig=JSON.parse(b))};this.initDeliverySubscriptionConfig=function(b){this.DSConfig=""!==b?JSON.parse(b):{}};this.initErumsConfig=function(b){""!==b?(this.erumsConfig=
160JSON.parse(b),window.AB.cartbaseurl=this.erumsConfig["cart.service.endpoint"],window.AB.cartapimkey=this.erumsConfig["cart.apim.key"],window.AB.cartapimtrace=this.erumsConfig["cart.apim.trace"],window.AB.carturl=this.erumsConfig["cart.path"],window.AB.getcartbycusturl=this.erumsConfig["cart.by.customer.path"],window.AB.storebaseurl=this.erumsConfig["store.service.endpoint"],window.AB.storeapimkey=this.erumsConfig["store.apim.key"],window.AB.storeapimtrace=this.erumsConfig["store.apim.trace"],window.AB.erumsflag=
161this.erumsConfig["erums.enabled"],window.AB.checkouturl=this.erumsConfig["checkout.endpoint"],window.AB.fullcarturl=this.erumsConfig["fullcart.endpoint"],window.AB.dnfcarturl=this.erumsConfig["dnfcart.endpoint"],window.AB.omsOrderSummaryBaseUrl=this.erumsConfig["oms.ordersummary.basepath"],window.AB.omsOrderSummaryEndPoint=this.erumsConfig["oms.ordersummary.endpoint"]):this.erumsConfig={}};this.initBringgConfig=function(b){this.bringgConfig=""!==b?JSON.parse(b):{}};this.initOMSConfig=function(b){""!==
162b?(this.omsConfig=JSON.parse(b),window.AB.omsOrderSummaryBaseUrl=this.omsConfig["oms.ordersummary.basepath"]):this.omsConfig={}};this.initCatalogConfig=function(b){""!==b?(this.catalogConfig=JSON.parse(b),window.AB.catalogServiceEnable=this.catalogConfig["catalog.xapi.enable"],window.AB.catalogServiceBaseurl=this.catalogConfig["swy.api.apim.catalog.service.baseurl"],window.AB.catalogServiceEndpoint=this.catalogConfig["swy.api.catalog.service.endpoint"],window.AB.catalogServiceSubscriptionKey=this.catalogConfig["swy.api.catalog.service.apim.key"],
163window.AB.catalogXapiProductsBpnEndpoint=this.catalogConfig["apim.api.catalog.path"]+this.catalogConfig["apim.api.catalog.product.bpn.endpoint"],window.AB.catalogXapiProductsUpcEndpoint=this.catalogConfig["apim.api.catalog.path"]+this.catalogConfig["apim.api.catalog.product.upc.endpoint"],window.AB.catalogIncrementPriceListEndpoint=this.catalogConfig["apim.api.catalog.path"]+this.catalogConfig["apim.api.catalog.increment.price.list.endpoint"],window.AB.catalogXapiCbaEndpoint=this.catalogConfig["apim.api.catalog.path"]+
164this.catalogConfig["apim.api.catalog.cba.endpoint"]):this.catalogConfig={}};this.initWcaxXapiConfig=function(b){""!==b?(this.wcaxXapiConfig=JSON.parse(b),window.AB.wcaxXapiApimKey=this.wcaxXapiConfig["wcax.xapi.apim.key"],window.AB.storeResolverAllEndpoint=this.wcaxXapiConfig["store.resolver.all.endpoint"],window.AB.storeResolverAllEndpointV2=this.wcaxXapiConfig["store.resolver.all.endpoint.v2"],window.AB.sponsoredBannerEndpointV2=this.wcaxXapiConfig["sponsoredbanner.xapi.v2.endpoint"],window.AB.spotlightBannerEndpoint=
165this.wcaxXapiConfig["spotlightbanner.xapi.endpoint"],window.AB.spotlightVideoEndpoint=this.wcaxXapiConfig["spotlightvideo.xapi.endpoint"],window.AB.sponsoredAdsDomainApiApimKey=this.wcaxXapiConfig["wcax.domain.api.apim.key"],window.AB.sponsoredAdsDomainEndpoint=this.wcaxXapiConfig["sponsoredads.domainapi.endpoint"],window.AB.sponsoredAdsDomainEndpointV2=this.wcaxXapiConfig["sponsoredads.domainapi.v2.endpoint"],window.AB.sponsoredIconsDomainEndpointV2=this.wcaxXapiConfig["sponsoredicons.domainapi.v2.endpoint"],
166window.AB.storeResolverRecordEndpoint=this.wcaxXapiConfig["store.resolver.wiremock.recorder.endpoint"],window.AB.storeResolverPlaybackEndpoint=this.wcaxXapiConfig["store.resolver.wiremock.playback.endpoint"],window.AB.allowWiremockService=this.wcaxXapiConfig["allow.wiremock.service"],window.AB.wiremockRecorderBaseUrl=this.wcaxXapiConfig["wiremock.recorder.baseUrl"],window.AB.wiremockPlaybackBaseUrl=this.wcaxXapiConfig["wiremock.playback.baseUrl"],window.AB.storeResolverInstoreEndpoint=this.wcaxXapiConfig["store.resolver.instore.endpoint"],
167window.AB.storeResolverPickupEndpoint=this.wcaxXapiConfig["store.resolver.pickup.endpoint"],window.AB.storeResolverDeliveryEndpoint=this.wcaxXapiConfig["store.resolver.delivery.endpoint"],window.AB.storeResolverDeliveryEndpointV2=this.wcaxXapiConfig["store.resolver.delivery.endpoint.v2"],window.AB.storeResolverValidateEndpoint=this.wcaxXapiConfig["store.resolver.validate.endpoint"],window.AB.storeResolverStoreAddressEndpoint=this.wcaxXapiConfig["store.resolver.storeaddress.endpoint"],window.AB.stores
167ByAddressEndpoint=
168this.wcaxXapiConfig["store.resolver.storesByAddress.endpoint"],window.AB.storeResolverDerivedEcomEndpoint=this.wcaxXapiConfig["store.resolver.derivedecom.endpoint"],window.AB.storeResolverZipToCityEndpoint=this.wcaxXapiConfig["store.resolver.ziptocity.endpoint"],window.AB.storeResolverZipcodeToShoppingEndpoint=this.wcaxXapiConfig["store.resolver.zipcodetoshopping.endpoint"],window.AB.storeResolverStoreToShoppingEndpoint=this.wcaxXapiConfig["store.resolver.storetoshopping.endpoint"],window.AB.snsContentServiceGetZoneEndpoint=
169this.wcaxXapiConfig["sns.contentservice.getzone.endpoint"],window.AB.snsContentServiceApimSubkey=this.wcaxXapiConfig["sns.contentservice.apim.subkey"],window.AB.zeroStateSearchEndpoint=this.wcaxXapiConfig["zero.state.search.endpoint"],window.AB.zeroStateSearchApimSubkey=this.wcaxXapiConfig["zero.state.search.subscription.key"],window.AB.zeroStateSearchApimSubValue=this.wcaxXapiConfig["zero.state.search.subscription.value"],window.AB.ocrpRewardsXapiApimKey=this.wcaxXapiConfig["ocrp.rewards.xapi.apim.key"],
170window.AB.ocrpRewardsScorecardEndpoint=this.wcaxXapiConfig["ocrp.rewards.scorecard.endpoint"],window.AB.ocrpRewardsStackingLimitEndpoint=this.wcaxXapiConfig["ocrp.rewards.stackinglimit.endpoint"],window.AB.ocrpRewardsRewardsHistoryEndpoint=this.wcaxXapiConfig["ocrp.rewards.rewardshistory.endpoint"],window.AB.ocrpRewardsTransactionEndpoint=this.wcaxXapiConfig["ocrp.rewards.transaction.endpoint"],window.AB.preloadStoreFlagsXapiApimKey=this.wcaxXapiConfig["webpreload.storeflags.apim.key"],window.AB.preloadStoreFlagsEndpoint=
171this.wcaxXapiConfig["webpreload.storeflags.endpoint"],window.AB.sellerShipMethodsBaseUrl=this.wcaxXapiConfig["promiseapi.sellermethods.baseurl"],window.AB.sellerShipMethodsEndpoint=this.wcaxXapiConfig["promiseapi.sellermethods.endpoint"],window.AB.sellerShipMethodsSubKey=this.wcaxXapiConfig["promiseapi.sellermethods.subkey"],window.AB.sellerApiSellerIdBaseUrl=this.wcaxXapiConfig["sellerapi.sellerid.baseurl"],window.AB.sellerApiSellerIdEndpoint=this.wcaxXapiConfig["sellerapi.sellerid.endpoint"],window.AB.sellerApiZipCodeEndpoint=
172this.wcaxXapiConfig["sellerapi.zipCode.endpoint"],window.AB.sellerApiSellerIdSubKey=this.wcaxXapiConfig["sellerapi.sellerid.subkey"],window.AB.storeHierarchymktpApiEndpoint=this.wcaxXapiConfig["storehierarchymktp.endpoint"],window.AB.storehierarchymktpSubkey=this.wcaxXapiConfig["storehierarchymktp.subkey"],window.AB.sellerApiMarkettype=this.wcaxXapiConfig["sellerapi.markettype"],window.AB.s7Domain=this.wcaxXapiConfig["s7.domain"],window.AB.s7ContextPath=this.wcaxXapiConfig["s7.contextPath"],window.AB.wineLandingPromiseEndpoint=
173this.wcaxXapiConfig["promiseapi.winelandingpromise.endpoint"],window.AB.wineLandingPromiseSubKey=this.wcaxXapiConfig["promiseapi.winelandingpromise.subkey"],window.AB.plannedMealsEndpoint=this.wcaxXapiConfig["plannedmeals.endpoint"],window.AB.plannedMealsSubKey=this.wcaxXapiConfig["plannedmeals.subkey"],window.AB.mealsBundlesEndpoint=this.wcaxXapiConfig["mealsbundles.endpoint"],window.AB.mealsBundlesSubKey=this.wcaxXapiConfig["mealsbundles.subkey"],window.AB.targetedContentEndpoint=this.wcaxXapiConfig["targetedcontent.endpoint"],
174window.AB.targetedContentV2Endpoint=this.wcaxXapiConfig["targetedcontentv2.endpoint"],window.AB.targetedContentSubKey=this.wcaxXapiConfig["targetedcontent.subkey"],window.AB.targetedContentV2SubKey=this.wcaxXapiConfig["targetedcontentv2.subkey"],window.AB.webgenNotificationEndpoint=this.wcaxXapiConfig["webgen.notification.endpoint"],window.AB.webgenNotificationSubkey=this.wcaxXapiConfig["webgen.notification.subkey"],window.AB.webgenNotificationExpiry=this.wcaxXapiConfig["webgen.notification.expiry"],
175window.AB.targetedContentLandingEndpoint=this.wcaxXapiConfig["targetedContentLanding.endpoint"],window.AB.targetedContentLandingEndpointSubkey=this.wcaxXapiConfig["targetedContentLanding.subkey"],window.AB.curatedMealsV2Endpoint=this.wcaxXapiConfig["curatedmealsv2.mockendpoint"],window.AB.curatedMealsV2SubKey=this.wcaxXapiConfig["curatedmealsv2.mocksubkey"],window.AB.globalHeaderGetNavigationEndpoint=this.wcaxXapiConfig["globalHeader.getNavigation.endpoint"],window.AB.globalHeaderGetNavigationSubKey=
176this.wcaxXapiConfig["globalHeader.getNavigation.subkey"],window.AB.globalHeaderGetNavigationTimeout=this.wcaxXapiConfig["globalHeader.getNavigation.timeout"]||3E3,this.carouselOfferAPIBased=this.wcaxXapiConfig["carousel.offer.apibased.flag"],this.carouselProductAPIBased=this.wcaxXapiConfig["carousel.product.apibased.flag"],this.carouselRolloutBanners=this.wcaxXapiConfig["carousel.rollout.banners"]):this.wcaxXapiConfig={}};this.initOCGPConfig=function(b){""!==b?(this.ocgpConfig=JSON.parse(b),window.AB.ocgp=
177{},window.AB.ocgp.apimKey=this.ocgpConfig["ocgp.apim.key"],window.AB.ocgp.endpoint=this.ocgpConfig["ocgp.endpoint"],window.AB.ocgp.optin=this.ocgpConfig["ocgp.endpoint"],window.AB.ocgp.programs=this.ocgpConfig["ocgp.programs"],window.AB.ocgp.programPoints=this.ocgpConfig["ocgp.programPoints"],window.AB.ocgp.prizes=this.ocgpConfig["ocgp.prizes"],window.AB.ocgp.redemption=this.ocgpConfig["ocgp.redemption"],window.AB.ocgp.sweepstakeWinner=this.ocgpConfig["ocgp.sweepstakeWinner"],window.AB.ocgp.sweepstakesWinDisplay=
178this.ocgpConfig["ocgp.sweepstakesWinDisplay"],window.AB.ocgp.gameActivity=this.ocgpConfig["ocgp.gameActivity"],window.AB.ocgp.postGameDetails=this.ocgpConfig["ocgp.postGameDetails"],window.AB.ocgp.userPrizeTransactions=this.ocgpConfig["ocgp.userPrizeTransactions"],window.AB.ocgp.userGameActivity=this.ocgpConfig["ocgp.userGameActivity"]):this.ocgpConfig={}};this.initESFFConfig=function(b){""!==b?(this.esffConfig=JSON.parse(b),window.AB.esff={}
178,window.AB.esff.apimKey=this.esffConfig["esff.apim.key"],
179window.AB.esff.endpoint=this.esffConfig["esff.endpoint"]):this.esffConfig={}};this.initPastOrderStatusConfig=function(b){""!==b?(this.pastOrderStatusConfig=JSON.parse(b),window.AB.pastOrderStatusApimKey=this.pastOrderStatusConfig["past.order.status.apim.key"],window.AB.pastOrderStatusEndpoint=this.pastOrderStatusConfig["past.order.status.endpoint"]):this.pastOrderStatusConfig={}};this.initThemeBuilderFlag=function(b){this.isThemeBuilderEnabled=b};this.initPharmacyRxConfig=function(b){this.pharmacyRxConfig=
180""!==b?JSON.parse(b):{}};this.getReplacedString=function(b,a,d){console.debug("SWY.CONFIGSERVICE.getReplacedString ENTRY: path\x3d"+b+", strToReplace\x3d"+a+", replacementStr\x3d"+d);b=null!=b?b.replace(a,d):b;console.debug("SWY.CONFIGSERVICE.getReplacedString EXIT: newStr\x3d"+b);return b};this.getBannerConventions=function(){return this.bannerConventionsJson};this.getConfigforPromoDesc=function(){var b=[],a={};a.rule=RegExp("(buy.*get.*one)","gi");var d=this.getBannerConventions().buy_one_get_one_free;
181a.value="undefined"!==typeof d?d:"";a.priceColor=!1;a.showStrikeThrough=!1;a.offerText=this.getBannerConventions().bogoOfferText;b.push(a);a={};a.rule=RegExp("(reward|club|sale|alert|remarkable)\\s(card|price|now)","gi");d=this.getBannerConventions().promoDescription;a.value="undefined"!==typeof d?d:"";a.priceColor=!0;a.offerText="";a.showStrikeThrough=!0;b.push(a);return b};this.getResolvedBanner=function(){return this.resolvedBanner};this.isNonShopBanner=function(b){return-1!==Object.values(this.nonShopBanners).indexOf(b)};
182this.tagCookiesSecure=function(){return"undefined"!==typeof SWY.configService.cookiesSecureFlag&&null!==SWY.configService.cookiesSecureFlag&&""!==SWY.configService.cookiesSecureFlag&&"false"===SWY.configService.cookiesSecureFlag?!1:!0};this.enablePrebookSlotModal=function(){return"undefined"!==typeof SWY.configService.enablePrebookSlotModalFlag&&null!==SWY.configService.enablePrebookSlotModalFlag&&""!==SWY.configService.enablePrebookSlotModalFlag&&"false"===SWY.configService.enablePrebookSlotModalFlag?
183!1:!0};this.generateRedirectUrl=function(b,a){console.debug("SWY.CONFIGSERVICE.generateRedirectUrl ENTRY: pagePath\x3d"+b+", banner\x3d"+a);SWY.ENFORCEMENTUTILS.isHtmlPage(b)||(b+=".html");console.debug("SWY.CONFIGSERVICE.generateRedirectUrl url\x3d"+b);a=this.getReplacedString(b,"{banner}",a);console.debug("SWY.CONFIGSERVICE.generateRedirectUrl EXIT: redirectUrl\x3d"+a);return a};this.addMarketingParameters=function(b){console.debug("SWY.CONFIGSERVICE.addMarketingParameters ENTRY: oldRedirectUrl\x3d"+
184b);console.debug("SWY.CONFIGSERVICE.addMarketingParameters EXIT: newRedirectUrl\x3d"+b);return b};this.isPageInTheList=function(b,a){var d=!1;console.debug("SWY.CONFIGSERVICE.isPageInTheList ENTRY: pages\x3d"+b);if(null!=b&&0<b.length&&(a=a?a:location.pathname,console.debug("SWY.CONFIGSERVICE.isPageInTheList currentPath\x3d"+a),null!=a))for(var e in b){var k=b[e];-1!==a.indexOf(k.trim())&&(console.debug("SWY.CONFIGSERVICE.isPageInTheList page\x3d"+k),d=!0)}console.debug("SWY.CONFIGSERVICE.isPageInTheList EXIT: isInTheList\x3d"+
185d);return d};this.getOktaConfig=function(){var b=window.location.origin+SWY.CONFIGSERVICE.oktaConfig.unifiedLoginRedirectURI,a,d,e=(null==(a=SWY.CONFIGSERVICE)?0:null==(d=a.featureToggleConfig)?0:d.enableOktaSingleDomain)?SWY.CONFIGSERVICE.oktaConfig.issuerSingleDomain:SWY.CONFIGSERVICE.oktaConfig.issuer;return{url:SWY.CONFIGSERVICE.oktaConfig.url,clientId:SWY.CONFIGSERVICE.oktaConfig.webClientId,redirectUri:b,signOutLink:SWY.CONFIGSERVICE.oktaConfig.logoutRedirectURI,issuer:e,authParams:{responseType:["code"],
186responseMode:"form_post",scope:["openid","profile","email"]}}};this.getOktaAssistantSignInConfig=function(){var b=localStorage.getItem("assistant_redirect_uri"),a=localStorage.getItem("assistant_client_id"),d=localStorage.getItem("assistant_scope"),e=localStorage.getItem("assistant_state");return{url:SWY.CONFIGSERVICE.oktaConfig.url,clientId:a,redirectUri:b,signOutLink:SWY.CONFIGSERVICE.oktaConfig.logoutRedirectURI,issuer:SWY.CONFIGSERVICE.oktaConfig.issuer,state:e,userLocale:"en-US",authParams:{responseType:["code"],
187responseMode:"form_post",scope:d}}};this.getNimbusConfig=function(){return SWY.CONFIGSERVICE.nimbusConfig};this.getFeatureToggleConfig=function(){return SWY.CONFIGSERVICE.featureToggleConfig};this.getDatapowerConfig=function(){return SWY.CONFIGSERVICE.datapowerConfig};this.setCookie=function(b,a,d,e){var k=new Date,f=!1;b=SWY.CONFIGSERVICE.getResolvedCookieName(b);"SAFEWAY_KMSI"!==b||AB.COMMON.isB2BSite()?"B_SAFEWAY_KMSI"===b&&AB.COMMON.isB2BSite()&&(b="ACI_S_B_SAFEWAY_KMSI"):b="ACI_S_SAFEWAY_KMSI";
188e&&"true"===e?(e=d,f=!0):(k.setTime(k.getTime()+864E5*d),e="expires\x3d"
188+k.toUTCString());SWY.CONFIGSERVICE.isCookieEnabled()?0<d||f?SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=b+"\x3d"+a+";"+e+";path\x3d/;secure;":document.cookie=b+"\x3d"+a+";"+e+";path\x3d/":SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=b+"\x3d"+a+";path\x3d/;secure;":document.cookie=b+"\x3d"+a+";path\x3d/":AB.cookie[b]={value:a,expires:k.toUTCString()}};this.deleteCookie=function(b,a){Array.isArray(b)?b.forEach(function(d){document.cookie=
189d+"\x3d; expires\x3dThu, 05-Mar-1992 00:00:01 GMT; path\x3d/;domain\x3d"+a}):document.cookie=b+"\x3d; expires\x3dThu, 05-Mar-1992 00:00:01 GMT; path\x3d/;domain\x3d"+a};this.setDomainCookie=function(b,a,d,e){if(AB.COMMON.isB2BSite()&&this.topLevelSessionCookies.includes(b))this.setCookie(b,a,e);else{b=SWY.CONFIGSERVICE.getResolvedCookieName(b);"SAFEWAY_KMSI"!==b||AB.COMMON.isB2BSite()?"B_SAFEWAY_KMSI"===b&&AB.COMMON.isB2BSite()&&(b="ACI_S_B_SAFEWAY_KMSI"):b="ACI_S_SAFEWAY_KMSI";var k=new Date;k.setTime(k.getTime()+
190864E5*e);SWY.CONFIGSERVICE.isCookieEnabled()?0<e?(e="expires\x3d"+k.toUTCString(),SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=b+"\x3d"+a+";"+e+";path\x3d/;secure;domain\x3d."+d:document.cookie=b+"\x3d"+a+";"+e+";path\x3d/;domain\x3d."+d):SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=b+"\x3d"+a+";path\x3d/;secure;domain\x3d."+d:document.cookie=b+"\x3d"+a+";path\x3d/;domain\x3d."+d:AB.cookie[b]={value:a,expires:k.toUTCString()}}};this.getCookie=function(b){var a="";b="absVisitorId"===
191b?"absVisitorId":SWY.CONFIGSERVICE.getResolvedCookieName(b);"SAFEWAY_KMSI"!==b||AB.COMMON.isB2BSite()?"B_SAFEWAY_KMSI"===b&&AB.COMMON.isB2BSite()&&(a=SWY.CONFIGSERVICE.getKmsiValue("B_SAFEWAY_KMSI"),null===a&&(a=SWY.CONFIGSERVICE.getKmsiValue("ACI_S_B_SAFEWAY_KMSI"))):(a=SWY.CONFIGSERVICE.getKmsiValue("SAFEWAY_KMSI"),null===a&&(a=SWY.CONFIGSERVICE.getKmsiValue("ACI_S_SAFEWAY_KMSI")));if(SWY.CONFIGSERVICE.isCookieEnabled()){b+="\x3d";for(var d=decodeURIComponent(document.cookie).split(";"),e=0;e<d.length;e++){for(var k=
192d[e];" "==k.charAt(0);)k=k.substring(1);0==k.indexOf(b)&&(a=k.substring(b.length,k.length))}}else"undefined"!=typeof AB.cookie[b]&&0==this.hasTimeExpired(AB.cookie[b].expires)&&(a=decodeURIComponent(AB.cookie[b].value));return a};this.checkforOldKMSI=function(b){return RegExp("(^|;\\s*)(SAFEWAY_KMSI|B_SAFEWAY_KMSI)\x3d").test(b)};this.getKmsiValue=function(b){var a="";if(SWY.CONFIGSERVICE.isCookieEnabled()){b+="\x3d";for(var d=decodeURIComponent(document.cookie).split(";"),e=0;e<d.length;e++){for(var k=
193d[e];" "==k.charAt(0);)k=k.substring(1);0==k.indexOf(b)&&(a=k.substring(b.length,k.length))}}else"undefined"!=typeof AB.cookie[b]&&0==this.hasTimeExpired(AB.cookie[b].expires)&&(a=decodeURIComponent(AB.cookie[b].value));return a};this.checkGotoReferralURL=function(){this.isLSCompatible()&&(null!=localStorage.getItem("referralUrl")?localStorage.removeItem("referralUrl"):console.log("nothing to redirect"))};this.getPreUserInfo=function(){AB.userInfo.prepareSharedInfo();AB.userInfo.resolveDisplayableBanner();
194AB.userInfo.resolveSiteType();AB.preInitializeObject()};this.isLSCompatible=function(){try{"undefined"==typeof this.isLSEnabled&&(localStorage.setItem("test","test"),localStorage.removeItem("test"),this.isLSEnabled=!0)}catch(b){this.isLSEnabled=!1}return this.isLSEnabled};this.clearLocalStroage=function(){if(this.isLSCompatible()){var b=localStorage.getItem("storeData");b&&localStorage.setItem("previousStoreData",b);localStorage.removeItem("abCart");localStorage.removeItem("abRewards");localStorage.removeItem("abJ4uCoupons");
195localStorage.removeItem("behaviorCoupons");localStorage.removeItem("storeData");localStorage.removeItem("cartId");localStorage.removeItem("showBoxtop");localStorage.removeItem("abSlot");localStorage.removeItem("abSlotEditOrder");localStorage.removeItem("abOrderCount");localStorage.removeItem("assistant_redirect_uri");localStorage.removeItem("assistant_client_id");localStorage.removeItem("assistant_scope");localStorage.removeItem("assistant_state");localStorage.removeItem("RPLNM.DEV");localStorage.removeItem("rp_localCart");
196localStorage.removeItem("abSubscriptions");localStorage.removeItem("abNgSubscriptions");localStorage.removeItem("realTimePopularSearchItems");localStorage.removeItem("oosBPNs");localStorage.removeItem("freshPassModalClosedOn");localStorage.removeItem("abPreFetchExperiment")}else document.cookie="cartId\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;",this.setCookie("abSlot","",-1);document.cookie="OrderNumber\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;";document.cookie="OrderStoreId\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;";
197document.cookie="SlotInfo\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;";document.cookie="rp_retailerAuthCode\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;";document.cookie="ACI_S_EXP_PF\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;";sessionStorage.removeItem("rp_userToken");sessionStorage.removeItem("rp_userLastAccessed");sessionStorage.removeItem("rp_autoDeliveryUser");sessionStorage.removeItem("rp_authState");sessionStorage.removeItem("rp_retailerUserSpoofing")};
198this.getProp65Details=function(){var b={};b.prop65Flag=!0===SWY.configService.prop65WarningFlag||"true"===SWY.configService.prop65WarningFlag;b.prop65Title=this.getBannerConventions().prop65WarningHeader?this.getBannerConventions().prop65WarningHeader:"";b.prop65PDPTitle=this.getBannerConventions().proposition65WarningHeader?this.getBannerConventions().proposition65WarningHeader:"";return b};this.isWCMModeDisabled=function(){var b=this.getCookie("wcmmode");return!(b&&"edit"===b)};this.isAuthor=function(){var b=
199this.getCookie("wcmmode");return!(b&&("edit"===b||"preview"===b))};this.checkLocalStorageRefresh=function(){SWY.ENFORCEMENTUTILS.checkReInitSite("wwwlocal")?(this.isLSCompatible()&&(localStorage.removeItem("abRewards"),localStorage.removeItem("abJ4uCoupons"),localStorage.removeItem("storeData")),SWY.ENFORCEMENTUTILS.removeReInitSite("wwwlocal")):(AB.COMMON.isAnonymous()||""==AB.userInfo.j4u.storeId)&&this.isLSCompatible()&&(localStorage.removeItem("abRewards"),localStorage.removeItem("abJ4uCoupons"));
200SWY.ENFORCEMENTUTILS.checkReInitSite("shoplocal")&&(this.isLSCompatible()?(localStorage.removeItem("abCart"),localStorage.removeItem("abSlot")):this.setCookie("abSlot","",-1),SWY.ENFORCEMENTUTILS.updateReInitSite("slot"),SWY.ENFORCEMENTUTILS.removeReInitSite("shoplocal"));"weeklyadclip"==window.SWY.CONFIGSERVICE.getCookie("ECommReInit")&&(localStorage.removeItem("abJ4uCoupons"),localStorage.removeItem("behaviorCoupons"),window.SWY.CONFIGSERVICE.setDomainCookie("ECommReInit","",window.SWY.CONFIGSERVICE.resolvedBanner+
201".com",0))};this.initDomainConfig=function(b){this.domainConfig=""!==b?JSON.parse(b):{}};this.isCookieEnabled=function(){var b=navigator.cookieEnabled?!0:!1;"undefined"!=typeof navigator.cookieEnabled||b||(document.cookie="testcookie",b=-1!=document.cookie.indexOf("testcookie")?!0:!1);return b};this.hasTimeExpired=function(b){var a=!1,d=null,e=null;try{b&&(d=(new Date).getTime(),e=(new Date(b)).getTime(),a=d>e)}catch(k){a=!0}return a};this.checkPropertyInFeatureFlagConfig=function(b){var a=!0;SWY.CONFIGSERVICE&&
202SWY.CONFIGSERVICE.featureToggleConfig&&0<SWY.CONFIGSERVICE.featureToggleConfig.length&&(a=!SWY.CONFIGSERVICE.featureToggleConfig.some(function(d){return d.hasOwnProperty(b)}));return a};this.disableLog=function(){window.console.log=function(){};window.console.debug=function(){};window.console.info=function(){}};this.getCurrentEnviormentVal=function(){var b=window.location.host;switch(!0){case b.includes("-local-origin"):b="local-origin";break;case b.includes("-dev1"):b="dev1";break;case b.includes("-qa1"):b=
203"qa1";break;case b.includes("-dev2"):b="dev2";break;case b.includes("-qa2"):b="qa2";break;case b.includes("-dev3"):b="dev3";break;case b.includes("-qa3"):b="qa3";break;case b.includes("-stage"):b="stage";break;case b.includes("-beta"):b="beta";break;case b.includes("-prod"):b="prod";break;default:b="prod"}SWY.CONFIGSERVICE.env=b};this.initOsdpConfig=function(b){this.osdpConfig=""!==b?JSON.parse(b):{}};this.getResolvedCookieName=function(b){var a,d=(null==(a=SWY.CONFIGSERVICE.featureToggleConfig)?
2040:a.isCookieACIPrefixEnabled)?!0:!1;a=b;d?b&&this.ACIStrictCookies.includes(b)?a=this.resolveACICookie(b,"S_"):b&&this.ACIFunctionalCookies.includes(b)?a=this.resolveACICookie(b,"F_"):b&&this.ACIAnalyticsCookies.includes(b)?a=this.resolveACICookie(b,"A_"):SWY.CONFIGSERVICE.isB2CSessionCookieOnB2B(b)&&(a="B_"+b):SWY.CONFIGSERVICE.isB2CSessionCookieOnB2B(b)&&(a="B_"+b);return a};this.isB2CSessionCookieOnB2B=function(b){AB.userInfo&&""===AB.userInfo.siteType&&AB.userInfo.resolveSiteType();if(b&&!b.startsWith("B_")&&
205"B"===AB.userInfo.siteType)for(var a=0;a<this.sessionCookiePrefixes.length;a++)if(b.startsWith(this.sessionCookiePrefixes[a]))return!0;return!1};
205this.resolveACICookie=function(b,a){var d=b;a="ACI_"+a;b.startsWith(a)||AB.COMMON.isB2BSite()?!b.startsWith(a)&&AB.COMMON.isB2BSite()&&b.startsWith("B_")?d=a+b:SWY.CONFIGSERVICE.isACISessionCookieOnB2B(b,a)&&(d=a+"B_"+b):d=a+b;return d};this.isACISessionCookieOnB2B=function(b,a){if(b&&!b.startsWith(a+"_B_")&&AB.COMMON.isB2BSite())for(a=0;a<this.sessionCookiePrefixes.length;a++)if(b.startsWith(this.sessionCookiePrefixes[a]))return!0;
206return!1}}).call(SWY.CONFIGSERVICE);SWY=SWY||{};SWY.adjectives="aback abaft abandoned abashed aberrant abhorrent abiding abject ablaze able abnormal aboard aboriginal abortive abounding abrasive abrupt absent absorbed absorbing abstracted absurd abundant abusive acceptable accessible accidental accurate acid acidic acoustic acrid action active actual actually adamant adaptable addicted addicting adept adhesive adjoining adorable adored adroit adventurous affectionate afraid aggressive agile agonizing agreeable ahead airy ajar alcoholic alert alike alive alleged alluring aloof alter amazing ambiguous ambitious amiable ample amuck amused amusing ancient angry animated annoyed annoying anxious apathetic apt aquatic ardent aromatic arrogant ashamed aspiring assorted astonishing astute attractive august auspicious automatic available average avid awake aware awesome awful axiomatic bad balmy barbarous bashful bawdy beautiful beefy befitting belligerent beneficial benevolent bent berserk best better bewildered big billowing billowy bitter bizarre black blessed bloody blue blushing boiling bold boorish bored boring boss bouncy boundless brainy brash brave brawny breakable breezy brief bright brisk broad broken brown bumpy burly bustling busy cagey calculating callous calm can canny capable capricious cared careful careless caring casual cautious ceaseless celestial certain changeable charming cheap cheerful chemical chic chief childlike chilly chivalrous choice chosen chubby chummy chunky civic civil clammy classy clean clear clever cloistered close closed cloudy clumsy cluttered cogent coherent cold colorful colossal combative comfortable common complete complex composed concerned condemned confused conscious cooing cool cooperative coordinated cosmic courageous cowardly cozy crabby craven crazy creepy crooked crowded cruel cuddly cultured cumbersome curious curly curved curvy cut cute cynical daffy daily dainty damaged damaging damp dandy dangerous dapper daring dark dashing dazzling dead deadpan deafening dear debonair decent decisive decorous deep deeply defeated defective defiant deft delicate delicious delightful delirious deluxe demonic dependent depressed deranged descriptive deserted detailed determined devilish devout didactic different difficult diligent direct direful dirty disagreeable disastrous discreet disgusted disgusting disillusioned dispensable distinct disturbed divergent divine dizzy domineering doted doting doubtful drab draconian dramatic dreamy dreary driven drunk dry dull dusty dynamic dysfunctional eager early earsplitting earthy easy eatable economic educated efficacious efficient eight elastic elated elderly electric elegant elfin elite embarrassed eminent empty enchanted enchanting encouraging end endurable energetic energized enigmatic enormous entertaining enthusiastic envious equable equal erect erratic ethereal evanescent evasive even evil exact excellent excited exciting exclusive exotic expensive expert exuberant exultant fabulous faded faint fair faithful fallacious false famed familiar famous fanatical fancy fantastic far fascinated fast fat faulty fearful fearless feeble feigned female fertile festive few fierce fiery filthy fine finicky first fit five fixed flagrant flaky flashy flat flawless fleet flimsy flippant flowery flowing fluent fluffy fluttering flying foamy fond foolish for foregoing forgetful forlorn fortunate four fragile frail frank frantic free freezing frequent fresh fretful friendly frightened frightening full fumbling fun functional funny furry furtive fuscia future futuristic fuzzy gabby gainful gamy gaping garrulous gas gaudy general genial gentle giant giddy gifted gigantic giving glad glamorous gleaming glib glistening glorious glossy gnarly godly gold golden good goodly goofy gorgeous graceful grand grandiose grateful gratis gray greasy great greedy green grey grieving groovy grotesque grouchy grubby gruesome grumpy guarded guided guiltless gullible gusty gutsy guttural habitual half hallowed haloed halting handsome handsomely handy hanging hapless happy hard hardy harmonious harsh hateful heady healthy heartbreaking hearty heavenly heavy hellish helpful helpless heroic hesitant hideous high highfalutin hilarious hip hissing historical holistic hollow holy homeless homely honest honorable horrible hospitable hot huge hulking human humane humble humdrum humorous hungry hunky hurried hurt hushed husky hypnotic hysterical icky icy ideal idiotic ignorant ill illegal illustr
206ious imaginary immense imminent immune impartial imperfect impolite important imported impossible incandescent incompetent inconclusive incredible indigo industrious inexpensive infamous innate innocent inquisitive insidious instinctive intelligent interesting internal invincible irate irritating itchy jaded jagged jazzed jazzy jealous jittery jobless jolly jovial joyful joyous jubilant judicious juicy jumbled jumpy just juvenile kaput keen khaki kind kindhearted kindly kingly knotty knowing knowledgeable known labored lackadaisical lacking lame lamentable languid large last late laughable lavish lawful lazy lean learned left legal legit lethal level lewd light like likeable liked likely limber limitless limping literate little lively living lonely long longing loose lopsided loud lousy loutish loved lovely loving low lowly loyal lucid lucky ludicrous lumpy lush luxuriant lying lyrical macabre macho maddening madly magenta magical magnificent main majestic major makeshift male malicious mammoth maniacal many marked married marvelous massive master material materialistic mature max maxed mean measly meaty medical meek mellow melodic melted merciful mere merry messy mighty military milky mindless miniature minor mint mirthful miscreant misty mixed moaning modern modest moldy momentous money moonlit moral motionless mountainous moving mucho muddled mundane murky mushy mute mutual mysterious naive nappy narrow nasty native natural naughty nauseating near neat nebulous necessary needed needless needy neighborly nervous new next nice nifty nimble nine nippy noble noiseless noisy nonchalant nondescript nonstop normal nostalgic nosy noted novel noxious null numberless numero numerous nutritious nutty oafish obedient obeisant obese obnoxious obscene obsequious observant obsolete obtainable oceanic odd offbeat okay old omniscient one onerous open opposite optimal orange ordinary organic ossified outgoing outrageous outstanding oval overconfident overjoyed overrated overt overwrought pacific painful painstaking pale paltry panicky panoramic parallel parched parsimonious past pastoral pathetic peaceful peachy penitent peppy perfect periodic permissible perpetual petite phobic physical picayune pink piquant pithy placid plain plant plastic plausible pleasant plucky plum poetic pointless poised polite political poor posh possessive possible potent powerful precious premium present pretty previous pricey prickly prime primo private prized pro probable productive profuse prompt proper protective proud psychedelic psychotic public puffy pumped punchy puny pure purple purring pushy puzzled puzzling quack quaint quarrelsome questionable quick quickest quiet quirky quixotic quizzical rabid racial rad radioactive ragged rainy rambunctious rampant rapid rare raspy ratty reach ready real rebel receptive recondite red redundant reflective regal regular relieved remarkable reminiscent repulsive resilient resolute resonant responsible rhetorical rich right righteous rightful rigid ripe ritzy roasted robust romantic roomy rooted rosy rotten rough round royal ruddy rude rugged rural rustic ruthless sable sad safe salty same sassy satisfying saucy savory savvy scandalous scarce scared scary scattered scenic scientific scintillating scrawny screeching second secret secretive sedate seemly selective selfish sensitive separate serene serious shaggy shaky shallow sharp shiny shivering shocking short showy shrewd shrill shut shy sick silent silky silly simple simplistic sincere six skillful skinny sleek sleepy slick slim slimy slippery sloppy slow small smart smelly smiley smiling smoggy smooth snappy snazzy sneaky snobbish snotty snowy snugly social soft soggy sole solid solitary somber sophisticated sordid sore sound sour spacial sparkling special spectacular spicy spiffy spiky spiritual spiteful splendid spooky spotless spotted spotty spry spurious squalid square squealing squeamish stable staking stale standing star stark statuesque steadfast steady steep stereotyped sticky stiff stimulating stingy stoic stormy straight strange striped strong stunning stupendous stupid sturdy suave subdued subsequent substantial subtle successful succinct sudden sulky sunny sunset super superb superficial supreme sure swank swanky sweet swell sweltering swift symptomatic synonymous taboo tacit tacky talented tall tame tan tangible tangy tart tasteful tasteless tasty tawdry teal tearful tedious teeny telling temporary ten tender tense tenuous terrible terrific tested testy thankful the therapeutic thick thin thinkable third thirsty thoughtful thoughtless threatening three thriving thundering tidy tight tightfisted t
206imely tiny tired tiresome toothsome top tops torpid tough touted towering tranquil trashy tremendous tricky trim trite tropical troubled truculent true trusty truthful try two typical ubiquitous ugliest ugly ultra unable unaccountable unadvised unarmed unbecoming unbiased uncovered understood undesirable undisturbed unequal unequaled uneven unhealthy uninterested unique united unkempt unknown unnatural unruly unsightly unsuitable untidy unused unusual unwavering unwieldy unwritten upbeat uplifting uppity upset uptight urbane usable used useful useless utmost utopian utter uttermost vacuous vagabond vague valid valuable various vast vengeful venomous verdant versed vestal viable victorious vigorous violent violet vital vivacious vivid vocal vogue voiceless volatile voracious vulgar wacky waggish waiting wakeful wandering wanted wanting warlike warm wary wasteful watery weak wealthy weary wet whimsical whispering white whole wholesale wicked wide wiggly wild willing windy winged wired wiry wise wistful witty woebegone womanly wonderful wooden woozy workable worried worthless worthy wrathful wretched wrong wry xenophobic yellow yielding young youthful yummy zany zealous zesty zippy zonked".split(" ");
207SWY.nouns="account achiever acoustics act action activity actor addition adjustment advertisement advice aftermath afternoon afterthought agreement air airplane airport alarm amount amusement anger angle animal ants apparatus apparel appliance approval arch argument arithmetic arm army art attack attraction aunt authority babies baby back badge bag bait balance ball base baseball basin basket basketball bat bath battle bead bear bed bedroom beds bee beef beginner behavior belief believe bell bells berry bike bikes bird birds birth birthday bit bite blade blood blow board boat bomb bone book books boot border bottle boundary box boy brake branch brass breath brick bridge brother bubble bucket building bulb burst bushes business butter button cabbage cable cactus cake cakes calculator calendar camera camp can cannon canvas cap caption car card care c
207arpenter carriage cars cart cast cat cats cattle cause cave celery cellar cemetery cent chalk chance change channel cheese cherries cherry chess chicken chickens children chin church circle clam class cloth clover club coach coal coast coat cobweb coil collar color committee company comparison competition condition connection control cook copper corn cough country cover cow cows crack cracker crate crayon cream creator creature credit crib crime crook crow crowd crown cub cup current curtain curve cushion dad daughter day death debt decision deer degree design desire desk destruction detail development digestion dime dinner dinosaurs direction dirt discovery discussion distance distribution division dock doctor dog dogs doll dolls donkey door downtown drain drawer dress drink driving drop duck ducks dust ear earth earthquake edge education effect egg eggnog eggs elbow end engine error event example exchange existence expansion experience expert eye eyes face fact fairies fall fang farm fear feeling field finger fire fireman fish flag flame flavor flesh flight flock floor flower flowers fly fog fold food foot force fork form fowl frame friction friend friends frog frogs front fruit fuel furniture gate geese ghost giants giraffe girl girls glass glove gold government governor grade grain grandfather grandmother grape grass grip ground group growth guide guitar gun hair haircut hall hammer hand hands harbor harmony hat hate head health heat hill history hobbies hole holiday home honey hook hope horn horse horses hose hospital hot hour house houses humor hydrant ice icicle idea impulse income increase industry ink insect instrument insurance interest invention iron island jail jam jar jeans jelly jellyfish jewel join judge juice jump kettle key kick kiss kittens kitty knee knife knot knowledge laborer lace ladybug lake lamp land language laugh leather leg legs letter letters lettuce level library limit line linen lip liquid loaf lock locket look loss love low lumber lunch lunchroom machine magic maid mailbox man marble mark market mask mass match meal measure meat meeting memory men metal mice middle milk mind mine minister mint minute mist mitten mom money monkey month moon morning mother motion mountain mouth move muscle name nation neck need needle nerve nest night noise north nose note notebook number nut oatmeal observation ocean offer office oil orange oranges order oven page pail pan pancake paper parcel part partner party passenger payment peace pear pen pencil person pest pet pets pickle picture pie pies pig pigs pin pipe pizzas place plane planes plant plantation plants plastic plate play playground pleasure plot plough pocket point poison pollution popcorn porter position pot potato powder power price produce profit property prose protest pull pump punishment purpose push quarter quartz queen question quicksand quiet quill quilt quince quiver rabbit rabbits rail railway rain rainstorm rake range rat rate ray reaction reading reason receipt recess record regret relation religion representative request respect rest reward rhythm rice riddle rifle ring rings river road robin rock rod roll roof room root rose route rub rule run sack sail salt sand scale scarecrow scarf scene scent school science scissors screw sea seashore seat secretary seed selection self sense servant shade shake shame shape sheep sheet shelf ship shirt shock shoe shoes shop show side sidewalk sign silk silver sink sister sisters size skate skin skirt sky slave sleep sleet slip slope smash smell smile smoke snail snails snake snakes sneeze snow soap society sock soda sofa son song songs sort sound soup space spade spark spiders sponge spoon spot spring spy square squirrel stage stamp star start statement station steam steel stem step stew stick sticks stitch stocking stomach stone stop store story stove stranger straw stream street stretch string structure substance sugar suggestion suit summer sun support surprise sweater swim swing system table tail talk tank taste tax teaching team teeth temper tendency tent territory test texture theory thing things thought thread thrill throat throne thumb thunder ticket tiger time tin title toad toe toes tomatoes tongue tooth toothbrush toothpaste top touch town toy toys trade trail train trains tramp transport tray treatment tree trees trick trip trouble trousers truck trucks tub turkey turn twig twist umbrella uncle underwear unit use vacation value van vase vegetable veil vein ver
207se vessel vest view visitor voice volcano volleyball voyage walk wall war wash waste watch water wave waves wax way wealth weather week weight wheel whip whistle wilderness wind window wine wing winter wire wish woman women wood wool word work worm wound wren wrench wrist writer writing yak yam yard yarn year yoke zebra zephyr zinc zipper zoo".split(" ");
208SWY.cities="bangor orono augusta portland camden verona bucksport hampden brewer hermon kennebunkport acadia barharbor presqueisle etna waterville scaroborough perry eastport freeport".split(" ");SWY.names="annie brielle bill arvind sumit sriram ashutosh lee tahla umair jen bernardo sean gerard harsha uma hatim edwin shamal girish".split(" ");
209(function(){this.init=function(){_initializeOktaSDK()};_initializeOktaSDK=function(){console.log("Okta: _initializeOktaSDK");(new OktaAuth(SWY.CONFIGSERVICE.getOktaConfig())).session.get().then(function(b){"ACTIVE"===b.status&&(window.alert("Welcome back, "+b.login),console.log("Welcome back, "+b.login))}).catch(function(b){console.log("authClient.session.get() ERROR",b)})};this.reviewOKTASessionToRefresh=function(b){b=SWY.CONFIGSERVICE.getOktaConfig().url;$.ajax({url:b+"/api/v1/sessions/me/lifecycle/refresh",
210type:"POST",xhrFields:{withCredentials:!0},accept:"application/json"}).done(function(a){a&&a.status&&(a.login&&(SWY.previousLogin.email=a.login),"ACTIVE"==a.status||"MFA_ENROLL"==a.status)&&(SWY.CONFIGSERVICE.setCookie("ECommSignInCount",0,0),"G"==AB.userInfo.userType&&SWY.CONFIGSERVICE.featureToggleConfig.enableBannerSwitchSSO&&(window.location.href=window.location.origin+SWY.ssoPath));console.log("Session is Active")}
210).fail(function(a,d,e){switch(a.status){case 403:d=a.responseJSON.errorSummary;
211e="Check if OKTA session can be refreshed.";break;case 404:d=a.responseJSON.errorSummary;e="Check if OKTA session can be refreshed.";break;case 429:d="Too many requests";e="The request is failing because of too many requests. Ignore this error.";break;default:d="Invalid URL or Cross-Origin Request Blocked",e="You must explicitly add this site ("+window.location.origin+") to the list of allowed websites in your administrator UI"}console.log("Status: "+a.status+" "+d+": "+e)})};this.refreshSession=
212function(b){console.log("Okta: refreshSession");(new OktaAuth(SWY.CONFIGSERVICE.getOktaConfig())).session.refresh().then(function(a){console.log("Existing session is refreshed")}).catch(function(a){console.log("Session can not be refreshed - Forced sign-out");SWY.OKTA.signOut(b);SWY.OKTA.system_error_logout()})};this.generateWords=function(b){var a=Array(b),d=b/2+1,e=Array(d),k=Array(d),f=SWY.cities,h=SWY.names;d=$("#resign-in").text();for(i=0;i<b;i++){if(0==i%2){var c=SWY.adjectives;var g=e}else c=
213SWY.nouns,g=k;console.debug("SWY.OKTA.generateWords workingSet\x3d"+c);do var m=SWY.OKTA.getRandomInt(c.length);while(-1<g.indexOf(m));console.debug("SWY.OKTA.generateWords randomIndex\x3d"+m);g.push(m);a[i]=c[m];console.debug("SWY.OKTA.generateWords result["+i+"]\x3d"+a[i])}b=a[0]+"-"+a[1];e=f[Math.floor(Math.random()*f.length)];h=h[Math.floor(Math.random()*h.length)];return b="true"==d?b+("-"+e+"-"+h):b+("-"+e+"-"+a[2])};this.getRandomInt=function(b){return Math.floor(Math.random()*Math.floor(b))};
214this.kmsi_prefilled_check=function(){var b=$("#rememberMe");"true"==SWY.ENFORCEMENT.getCookie("SAFEWAY_KMSI")&&b.prop("checked",!0)};this.system_error_logout=function(){SWY.CONFIGSERVICE.getCookie("SAFEWAY_KMSI")&&SWY.CONFIGSERVICE.setDomainCookie("SAFEWAY_KMSI","Error",SWY.CONFIGSERVICE.resolvedBanner+".com",0)};this.autoSignInWithSessionToken=function(b,a){b&&0<b.length&&(b=SWY.CONFIGSERVICE.getOktaConfig().issuer+"/v1/authorize?client_id\x3d"+SWY.CONFIGSERVICE.getOktaConfig().clientId+"\x26redirect_uri\x3d"+
215SWY.CONFIGSERVICE.getOktaConfig().redirectUri+"\x26response_type\x3dcode\x26response_mode\x3dquery\x26state\x3d"+SWY.OKTA.generateWords(4)+"\x26nonce\x3dovJgrUobDYQKhiownVT9jU1GvtkRdpC4Eoyal2SfgGu6ezXG5b03393l08xbDGw8\x26scope\x3dopenid%20profile%20email%20offline_access%20used_credentials\x26sessionToken\x3d"+b,SWY.CONFIGSERVICE.checkLocalStorageRefresh(),SWY.CONFIGSERVICE.setDomainCookie("SAFEWAY_KMSI",!0,SWY.CONFIGSERVICE.resolvedBanner+".com",90),a?SWY.CONFIGSERVICE.setCookie("ACI_S_ECommRedirectURL",
216"/pharmacy.html",1):(AB.COMMON.userNotifyReloadPage("Password successfully updated!"),localStorage.setItem("analyticsPwdResetSuccess",!0)),window.location.href=b)};this.autoSignInAfterRegistration=function(b,a){if(b&&0<b.length)if("true"!==a||null===localStorage.getItem("assistant_redirect_uri")&&null===localStorage.getItem("assistant_client_id")&&null===localStorage.getItem("assistant_scope")&&null===localStorage.getItem("assistant_state"))a=SWY.CONFIGSERVICE.getOktaConfig().issuer+"/v1/authorize?client_id\x3d"+
217SWY.CONFIGSERVICE.getOktaConfig().clientId+"\x26redirect_uri\x3d"+SWY.CONFIGSERVICE.getOktaConfig().redirectUri+"\x26response_type\x3dcode\x26response_mode\x3dquery\x26state\x3dspooky-system-"+Cities_Arry[Math.floor(Math.random()*Cities_Arry.length)]+"-"+Names_Arry[Math.floor(Math.random()*Names_Arry.length)]+"\x26nonce\x3dovJgrUobDYQKhiownVT9jU1GvtkRdpC4Eoyal2SfgGu6ezXG5b03393l08xbDGw8\x26scope\x3dopenid%20profile%20email%20offline_access%20used_credentials\x26sessionToken\x3d"+b,AB.COMMON.userNotifyReloadPage("Account successfully created! You are now signed in."),
218localStorage.setItem("create-account-success",!0),AB.DATALAYER&&AB.DATALAYER.setEmailAndSmsOptIn(),SWY.CONFIGSERVICE.checkLocalStorageRefresh(),AB.COMMON.authorize()?(AB.COMMON.setCookie("ECommRedirectURL","/?newPharmacyAccount\x3dtrue\x26sessionToken\x3d"+b,0),SWY.OKTA.silentSignOutFromOkta(event)):(SWY.CONFIGSERVICE.setDomainCookie("SAFEWAY_KMSI",!0,SWY.CONFIGSERVICE.resolvedBanner+".com",90),window.location.href=a);else{a=localStorage.getItem("assistant_redirect_uri");var d=localStorage.getItem("assistant_client_id"),
219e=localStorage.getItem("assistant_scope"),k=localStorage.getItem("assistant_state");a=SWY.CONFIGSERVICE.getOktaConfig().issuer+"/v1/authorize?client_id\x3d"+d+"\x26redirect_uri\x3d"+a+"\x26response_type\x3dcode\x26response_mode\x3dquery\x26state\x3d"+k+"\x26nonce\x3dovJgrUobDYQKhiownVT9jU1GvtkRdpC4Eoyal2SfgGu6ezXG5b03393l08xbDGw8\x26scope\x3d"+e+"\x26sessionToken\x3d"+b;AB.COMMON.userNotifyReloadPage("Account successfully created! You are now signed in.");localStorage.setItem("create-account-success",
220!0);AB.DATALAYER&&AB.DATALAYER.setEmailAndSmsOptIn();SWY.CONFIGSERVICE.checkLocalStorageRefresh();AB.COMMON.authorize()?(AB.COMMON.setCookie("ECommRedirectURL","/?newPharmacyAccount\x3dtrue\x26sessionToken\x3d"+b,0),SWY.OKTA.silentSignOutFromOkta(event)):window.location.href=a}}}).call(SWY.OKTA);
221(function(b,a){function d(c){c=c.replace(/-/g,"+").replace(/_/g,"/");var g="\x3d".repeat((4-c.length%4)%4);c+=g;c=window.atob(c);g=c.length;for(var m=new Uint8Array(g),n=0;n<g;n++)m[n]=c.charCodeAt(n);return m}function e(c){return btoa((new Uint8Array(c)).reduce(function(g,m){return g+String.fromCharCode(m)},""))}function k(){var c,g,m,n,q,p,r,t;return $jscomp.asyncExecutePromiseGeneratorProgram(function(u){switch(u.nextAddress){case 1:return u.setCatchFinallyBlocks(2),c={factorType:"webauthn",provider:"FIDO"},
222g=window.AB.userInfo.UUID,m=JSON.stringify(c),n={"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/vnd.safeway.v2+json",Authorization:"Bearer "+window.AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":window.SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-correlation-id":window.AB.COMMON.generateUUID(),"x-swy-client-id":"web-portal","Ocp-Apim-Subscription-Key":window.SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey},u.yield(fetch(window.SWY.CONFIGSERVICE.getDatapowerConfig().csmsApiEndpoint+
223"/customers/"+g+"/factors",{method:"POST",headers:n,body:m}),4);case 4:q=u.yieldResult;if(!q.ok)throw Error("Failed to create factors: "+q.statusText);return u.yield(q.json(),5);case 5:return p=u.yieldResult,r=p.id,u.return({factorId:r,activation:p.activation});case 2:throw t=u.enterCatchBlock(),{errorType:"UCA",errorValue:t};}})}function f(c,g,m){var n,q,p,r,t,u;return $jscomp.asyncExecutePromiseGeneratorProgram(function(x){switch(x.nextAddress){case 1:return n=window.SWY.CONFIGSERVICE.getDatapowerConfig().csmsApiEndpoint+
224"/customers/"+window.AB.userInfo.UUID+"/factors/"+c+"/lifecycle/activate",q={"Content-Type":"application/vnd.safeway.v3+json",Accept:"application/vnd.safeway.v3+json",Authorization:"Bearer "+window.AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":window.SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-correlation-id":window.AB.COMMON.generateUUID(),"x-swy-client-id":"web-portal","Ocp-Apim-Subscription-Key":window.SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey},p={attestation:g,clientData:m},x.setCatchFinallyBlocks(2),
225x.yield(fetch(n,{method:"POST",headers:q,body:JSON.stringify(p)}),4);case 4:r=x.yieldResult;if(!r.ok)throw Error("Failed to activate factor: "+r.statusText);return x.yield(r.json(),5);case 5:return t=x.yieldResult,x.return(t);case 2:throw u=x.enterCatchBlock(),{errorType:"UCA",errorValue:u};}})}var h=this;this.doInit=function(){};this.sitePreInit=function(){};this.siteCoreUPreInit=function(){};this.siteUCAPreInit=function(){};this.siteJ4UPreInit=function(){};this.siteWWWPreInit=function(){};this.siteRecipesPreInit=
226function(){};this.doCoreInit=function(){};this.doUCAInit=function(){};this.doJ4UInit=function(){};this.doShopInit=function(){};this.doWWWInit=function(){};this.doRecipesInit=function(){};this.resolveJquery=function(){return null!=AB.$?AB.$:jQuery};
226this.getBreakpoint=function(){var c=$(window).width(),g="desktop";768>c?g="mobile":768<=c&&992>c?g="tablet":992<=c&&(g="desktop");return g};this.setCookie=function(c,g,m){SWY.CONFIGSERVICE.setCookie(c,g,m)};this.getCookie=function(c){return SWY.CONFIGSERVICE.getCookie(c)};
227this.modalTrapKeyboard=function(c){(c=document.querySelector(c))&&c.addEventListener("keydown",function(g){if("Tab"===g.key||9===g.keyCode){var m=g.currentTarget.querySelectorAll('[data-tabindex\x3d"first"]')[0],n=g.currentTarget.querySelectorAll('[data-tabindex\x3d"last"]')[0];g.shiftKey?document.activeElement===m&&(n.focus(),g.preventDefault()):document.activeElement===n&&(m.focus(),g.preventDefault())}})};this.checkAndRedirectUrl=function(c,g){"true"==$("meta[name\x3dsyndicatedHeader]").attr("content")&&
228(window.location.href=c)};this.checkRedirectParameter=function(){var c=this.getURLParameterByName("goto",!1);if(null!=c){var g=localStorage.getItem("gotoRedirectUrl");if("null"===g||"undefined"===g||null===g||void 0===g)c=AB.COMMON.updateGotoUrl(decodeURIComponent(c)),this.updateRedirectURLCookie(c)}};this.updateGotoUrl=function(c){var g=c;if(c){var m=c.split("?",2);g=m[0];c=window.location.search;(c=AB.COMMON.removeURLParameterByName(c,"goto"))&&0==c.indexOf("?")&&(c=c.substr(1));g=m[1]?g+("?"+SWY.QUERYSTRING.mergeMarketingParams(m[1],
229c)):g+("?"+c)}return g};this.checkRedirectParameterReferralUrl=function(c){var g=this.getURLParameterByNameReferralUrl(c,"goto",!1);null!=g?(c=localStorage.getItem("gotoRedirectUrl"),"null"!==c&&"undefined"!==c&&null!==c&&void 0!==c||this.updateRedirectURLCookie(decodeURIComponent(g))):this.updateRedirectURLCookie(c)};this.checkRedirectParameterReferralUrlPartners=function(c){c=this.getURLParameterByNameReferralUrl(c,"goto",!0);this.isEmpty(c)||(localStorage.setItem("gotoRedirectUrl",c),this.updateRedirectURLCookie(""),
230location.reload())};this.reSignInRedirectHandler=function(c,g){console.debug("reSignInRedirectHandler ENTRY: pagePath\x3d"+g);g&&0<g.length&&(c.href+="?goto\x3d"+g);AB.DATALAYER.setModalLinkCookie("reSignIn|signIn");console.debug("reSignInRedirectHandler EXIT")};this.updateRedirectURLCookie=function(c){var g=encodeURIComponent(c);console.debug("updateRedirectURLCookie ENTRY: pagePath\x3d"+c);null!=c&&0<c.length?(console.debug("updateRedirectURLCookie Set ECommRedirectURL cookie with new resource path."),
231this.setCookie("ECommRedirectURL",g,0)):(c=this.getCookie("ECommRedirectURL"),console.debug("updateRedirectURLCookie cookieValue\x3d"+c),null!=c&&0<c.length&&(console.debug("updateRedirectURLCookie Delete ECommRedirectURL cookie."),this.setCookie("ECommRedirectURL",g,0)));console.debug("updateRedirectURLCookie EXIT")};this.authorize=function(){return"undefined"==typeof AB.userInfo.userType||null!=String(AB.userInfo.userType).toLowerCase()&&""!=String(AB.userInfo.userType).toLowerCase()&&"g"!=String(AB.userInfo.userType).toLowerCase()&&
232"a"!=String(AB.userInfo.userType).toLowerCase()?!0:!1};this.isAnonymous=function(){return"undefined"==typeof AB.userInfo.userType||null==String(AB.userInfo.userType).toLowerCase()||""==String(AB.userInfo.userType).toLowerCase()||"a"==String(AB.userInfo.userType).toLowerCase()?!0:!1};this.updateGlobalNavigation=function(){$(".global-navigation-list").find("li a").each(function(c){AB.COMMON.updateHrefPlaceholder(this)})};this.create_UUID=function(c){var g=(new Date).getTime(),m="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
233function(n){var q=(g+16*Math.random())%16|0;g=Math.floor(g/16);return("x"==n?q:q&3|8).toString(16)});return c?c+"-"+m:""+m};this.setUpdateVisitorIdForGrs=function(){var c=new Date;if(SWY.CONFIGSERVICE.isLSCompatible())if(null===localStorage.getItem("visitor_id"))c={id:AB.COMMON.create_UUID("visitor"),expires:c.getTime()+7776E6},localStorage.setItem("visitor_id",JSON.stringify(c));else{var g=JSON.parse(localStorage.getItem("visitor_id"));g.expires=c.getTime()+7776E6;localStorage.setItem("visitor_id",
234JSON.stringify(g))}};this.setSessionIdForGrs=function(){var c=new Date;c={id:AB.COMMON.create_UUID("session"),expires:c.getTime()+7776E6};sessionStorage.setItem("session_id",JSON.stringify(c))};this.updateAttributionToken=function(c){SWY.CONFIGSERVICE.isLSCompatible()&&("mock"===c?localStorage.setItem("attribution_token",AB.COMMON.create_UUID()):localStorage.setItem("attribution_token",c))};this.getAdobeExperienceID=function(){var c=window.AB.COMMON.getCookie("AMCV_A7BF3BC75245ADF20A490D4D@AdobeOrg"),
235g="";c&&(c=c.split("|"),4<c.length&&(g=c[4]));return g};this.updatePlaceholdersInOtherHref=function(){var c=$("#globalNav").find("li a");$("a[href]").not(c).each(function(){AB.COMMON.updateHrefPlaceholder(this)});c=document.querySelector("a.aisle-flyout-link");AB.COMMON.updateHrefPlaceholder(c);c=document.querySelector("link[rel\x3dcanonical]");AB.COMMON.updateHrefPlaceholder(c)};this.updateAislePath=function(){var c=document.querySelector("a.aisle-flyout-link");AB.COMMON.updateHrefPlaceholder(c)};
236this.updateMobileAislePath=function(c){AB.COMMON.updateHrefPlaceholder(c)};
236this.handleSelectedBrand=function(c){$(".bi-alph-list__alphabets-item .bi-alph-list__alphabets-item-link").removeClass();$(c).addClass("bi-alph-list__alphabets-item-link")};this.updateHrefPlaceholder=function(c){var g=window.location.href;g=-1!=g.indexOf("shop/brands/")||-1!=g.indexOf("shop/brand-index");if(c){var m=c.getAttribute("href");m=this.applyChangeToUrlPatterns(m);if(g||this.canPassLOC(m)&&c.getAttribute("rel")&&"canonical"===
237c.getAttribute("rel"))m=c.getAttribute("href");c.setAttribute("href",m)}};this.applyChangeToUrlPatterns=function(c){if(c){var g=c.includes("/aisles")&&!c.includes("(")&&!c.includes(")");if(g){var m=c.indexOf(".");var n=c.indexOf(".html")}else m=c.indexOf("("),n=c.indexOf(")");if(-1!==m&&-1!==n){var q=String(c).substring(m+1,n).split(".");var p=q[q.length-1];if(g&&this.canPassLOC(c))return-1!=c.indexOf("loc\x3d")?c=c.replace(c.substring(c.indexOf(".html")+5,c.length),"?loc\x3d"+AB.userInfo.getValue("branchId")):
238n>m&&(g=-1!=c.indexOf("?")?"\x26":"?",c=String(c).replace("."+p,""),c+=g+"loc\x3d"+AB.userInfo.getValue("branchId")),c;if(1<q.length&&(!p||isNaN(p))||Number(p)===Number(AB.userInfo.getValue("branchId")))return c;m="";switch(!0){case "aisleId"===p:(n=document.querySelector(".dynamic-page-title .dynamic-page-title__container"))&&(m=n.dataset.aisleId);break;case g:m=AB.userInfo.getValue("branchId");break;default:m=AB.userInfo.getValue(p)}if(m)return c=g&&!isNaN(p)?String(c).replace(p,m):String(c).replace("("+
239p+")",m),this.applyChangeToUrlPatterns(c)}}return c};this.canPassLOC=function(c){return-1==(null==c?void 0:c.toLowerCase().indexOf("vineandcellar"))&&-1==(null==c?void 0:c.toLowerCase().indexOf("marketplace"))};this.removeURLParameterByName=function(c,g){return c=c.replace(new RegExp("[?\x26]"+g+"\x3d[^\x26#]*(#.*)?$"),"$1").replace(new RegExp("([?\x26])"+g+"\x3d[^\x26]*\x26"),"$1")};this.getURLParameterByName=function(c,g){c=RegExp("[?\x26]"+c+"\x3d([^\x26]*)").exec(window.location.search);return 0==
240g?c?c[1].replace(/\+/g," "):null:c?decodeURIComponent(c[1].replace(/\+/g," ")):null};this.getURLParameterByNameReferralUrl=function(c,g,m){c=RegExp("[?\x26]"+g+"\x3d([^\x26]*)").exec(c);return 0==m?c?c[1].replace(/\+/g," "):null:c?decodeURIComponent(c[1].replace(/\+/g," ")):null};this.checkPendingOrder=function(){var c,g,m,n,q,p=!0!==(null==(c=window.SWY)?void 0:null==(g=c.CONFIGSERVICE)?void 0:null==(m=g.featureToggleConfig)?void 0:m.isB2BDisabled)&&"B"===(null==(n=AB)?void 0:null==(q=n.userInfo)?
241void 0:q.siteType)?AB.COMMON.getCookie("B_OrderNumber"):AB.COMMON.getCookie("OrderNumber");return void 0!=p&&""!=p?!0:!1};this.isLSCompatible=function(){return SWY.CONFIGSERVICE.isLSCompatible()};this.isEmpty=function(c){if(null==c)return!0;if(0<c.length)return!1;if(0===c.length||"object"!==typeof c)return!0;for(var g in c)if(hasOwnProperty.call(c,g))return!1;return!0};this.redirectErrorPage=function(){window.location.href="/error-page/500.html"};this.reloadForOkta=function(){SWY.CONFIGSERVICE.isLSCompatible()&&
242localStorage.refresh&&(localStorage.removeItem("refresh"),SWY.STORESELECTION.reloadPage(1E3))};this.initAngularServiceCall=function(){if(void 0!=window.appConfigServiceRef){window.appConfigServiceRef.zone.run(function(){window.appConfigServiceRef.service.initServiceCall()});window.appConfigServiceRef.zone.run(function(){window.appConfigServiceRef.service.initPopupWrapper()});window.appConfigServiceRef.zone.run(function(){window.appConfigServiceRef.service.initProfileCompletion()});window.appConfigServiceRef.zone.run(function(){window.appConfigServiceRef.service.initSpecialOccasions()});
243var c,g,m;(null==(c=window.SWY)?0:null==(g=c.CONFIGSERVICE)?0:null==(m=g.featureToggleConfig)?0:m.enablePostAuthNotifyMessage)&&window.appConfigServiceRef.zone.run(function(){window.appConfigServiceRef.service.initPostAuthNotification()})}};this.openAuthenticateModal=function(c,g){if("account"==g){var m=encodeURIComponent(window.location.href);AB.COMMON.setCookie("ECommRedirectURL",m,0)}if(void 0!=window.signInModal){window.signInModal.zone.run(function(){window.signInModal.component.showModal(c)});
244var n;(null==(n=window.AB)?0:n.DATALAYER)&&window.AB.DATALAYER.setSignInModalEvents("view","signIn"===c?"otp:lets-find-your-account|view":"createAccount Modal|view","",g)}g=HtmlUtil.readElement(".sign-in-background");$("#signin-dropdown").hide();g.css("display","none");$(".button__item.menu-nav__red-caret-down").removeClass("menu-nav__red-caret-up")};this.mapSyndicatedCookie=function(){var c=SWY.CONFIGSERVICE.getCookie("SWY_SYND_USER_INFO");c&&(c=JSON.parse(c),AB.userInfo.j4u.storeId=c.storeId,AB.userInfo.j4u.zipcode=
245c.storeZip,AB.userInfo.j4u.storeData.storeLocation.address=c.storeAddress)};this.isErumsPage=function(){return 0<window.location.href.indexOf("/erums")?!0:!1};this.isSignInPage=function(){return 0<window.location.href.indexOf("sign-in.html")?!0:!1};this.autoSignInIfSessionTokenAvailable=function(){if(!this.authorize()){var c=this.getURLParameterByName("sessionToken",!1),g=this.getURLParameterByName("newPharmacyAccount",!1);c&&0<c.length&&SWY.OKTA.autoSignInWithSessionToken(c,g)}};this.userNotifyReloadPage=
246function(c){SWY.CONFIGSERVICE.isLSCompatible()&&(c={message:c,isDisplayed:!1},c=JSON.stringify(c),localStorage.setItem("notifyMessage",c))};this.postAuthUserNotifyReload=function(c){SWY.CONFIGSERVICE.isLSCompatible()&&(c={message:c,isDisplayed:!1},c=JSON.stringify(c),localStorage.setItem("postAuthNotifyMessage",c))};this.setDeviceId=function(c){var g=null;if("function"!==typeof md5)console.warn("MD5 function not available \u2014 make sure the script is loaded before calling getDeviceToken.");else{g=
247md5(navigator.userAgent+navigator.mimeTypes.length+navigator.plugins.length+window.screen.width+window.screen.height+window.screen.pixelDepth);var m=AB.COMMON.getCookie(c);m=m?JSON.parse(m):{info:{COMMON:{}}};m.info.COMMON.deviceId=g;
247AB.COMMON.setCookie(c,encodeURIComponent(JSON.stringify(m)),0)}return g};this.getDeviceId=function(){var c=AB.COMMON.getCookie("SWY_SHARED_SESSION_INFO");c=c?JSON.parse(c):{info:{COMMON:{}}};var g,m;return(null==c?0:null==(g=c.info)?0:null==(m=g.COMMON)?0:m.deviceId)?
248c.info.COMMON.deviceId:h.setDeviceId("SWY_SHARED_SESSION_INFO")};this.checkForEditOrderMode=function(){var c=!1;"undefined"!==AB.COMMON.getCookie("SlotInfo")&&"undefined"!==AB.COMMON.getCookie("OrderStoreId")&&""!==AB.COMMON.getCookie("SlotInfo")&&""!==AB.COMMON.getCookie("OrderStoreId")&&(c=!0);return c};this.isSessionTokenValid=function(){var c=!1,g=!1,m=!1,n=!1;if(AB.COMMON.authorize()&&AB.userInfo.customerId&&AB.userInfo.SWY_SHOP_TOKEN){var q=SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO"),
249p={};try{q&&(p=JSON.parse(q),!p.info.COMMON.userType||"C"!==p.info.COMMON.userType&&"R"!==p.info.COMMON.userType||(m=!0),g="object"==typeof p&&m?!0:!1)}catch(r){g=!1}try{SWY.ENFORCEMENT.isTokenActive()&&(n=!0)}catch(r){n=!1}g&&n&&(c=!0)}return c};this.getActiveSessionUser=function(){var c=AB.userInfo.j4u.zipcode||JSON.parse(localStorage.getItem("abStoreAddress")).storeZipcode||"";c={customerId:null,tokenExpiration:null,SWY_SHOP_TOKEN:null,firstName:AB.userInfo.firstName,clubCardNumber:AB.userInfo.clubCard,
250hhid:AB.userInfo.houseId,uuid:"",storeId:AB.userInfo.j4u.storeId,zipcode:c,channel:AB.COMMON.getUserChannel(),storeAddress:AB.storeInfo.storeAddress,searchUid:AB.COMMON.getCookie("_br_uid_2")};var g=AB.COMMON.getCookie("SWY_SHARED_PII_SESSION_INFO"),m=["customerId","SWY_SHOP_TOKEN","storeId","zipcode"];if(AB.COMMON.isSessionTokenValid()){m=$jscomp.makeIterator(m);for(var n=m.next();!n.done;n=m.next())n=n.value,c[n]=AB.userInfo[n]?AB.userInfo[n]:AB.userInfo.j4u[n];c.uuid=g?JSON.parse(g).uuid:""}AB.userInfo&&
251AB.userInfo.expireTime&&(c.tokenExpiration=AB.userInfo.expireTime);return c};this.setTopNavPreviousPage=function(c,g,m,n){AB.DATALAYER?(AB.DATALAYER.setTopNavPreviousPage(c,g),"shop_leftnavigation"!==m&&"account_rightnavigation"!==m&&"top_headernavigation"!==m||AB.DATALAYER.setB2BModalEvent("modalClick",m+"|"+n)):localStorage.getItem("analyticsPageInfo")&&(c=localStorage.getItem("analyticsPageInfo"),localStorage.setItem("topNavPreviousPage",c),localStorage.removeItem("analyticsPageInfo"))};this.trackShopFlyout=
252function(c){AB.DATALAYER&&AB.DATALAYER.trackShopFlyout(c)};this.trackAccFlyout=function(){AB.DATALAYER&&AB.DATALAYER.trackAccFlyout()};this.validateSession=function(c){if(AB.COMMON.authorize())if(SWY.ENFORCEMENT.isTokenActive()&&AB.userInfo.SWY_SHOP_TOKEN)c();else if(SWY.ENFORCEMENT.checkAuthorizedCookie()){var g,m,n;(null==(g=SWY)?0:null==(m=g.CONFIGSERVICE)?0:null==(n=m.featureToggleConfig)?0:n.enableUserSessionInfo)?$.ajax({url:AB.userSessionInfoPath,mimeType:"text/plain",method:"GET",headers:AB.userSessionInfoOptions}).done(function(){AB.userInfo.updateTokenRefreshProperty();
253c()}).fail(function(q){console.error(q);$("#sessionTimeoutModal").modal({show:!0})}):$.get({url:AB.userInfoPath,mimeType:"text/plain"}).done(function(q){AB.userInfo.updateTokenRefreshProperty();c()}).fail(function(q){console.error(q);$("#sessionTimeoutModal").modal({show:!0})})}else $("#sessionTimeoutModal").modal({show:!0})};this.isTargetEnabled=function(){try{return window.adobe&&void 0!=window.adobe.target?!0:!1}catch(c){return!1}};this.getStoreResolverPayload=function(c,g,m,n,q,p,r){var t=c+g;
254if(q)return new Promise(function(u,x){$.ajax({type:"GET",headers:n,url:t,data:m,dataType:"json",success:function(y){u(y)},error:function(y){x(y)}})});$.ajax({type:"GET",headers:n,url:t,data:m,dataType:"json",async:!1,success:function(u){p(u)},error:function(u){r(u);throw"Error in store resolver "+u;}})};this.switchOTPContentSignIn=function(c,g,m){$("#"+c).removeClass("mask");$("#"+g).addClass("mask");$("#signInOTPForm").trigger("reset");AB.SIGNINOTP.showHideSection(["otp-modal","otp-modal-buttons",
255"kmsi-modal-otp"],["verify-otp-modal","verify-otp-modal-buttons","enter-password-modal","enter-password-modal-buttons"]);AB.SIGNINOTP.hideSpinner();$("#idform").trigger("reset");m&&$("."+m).focus();AB.COMMON.reSignIn(!0);AB.COMMON.prepopulateEmailFieldProgProf()};this.prepopulateEmailFieldProgProf=function(){if((new URLSearchParams(window.location.search)).get("progProfUser")){var c=sessionStorage.getItem("ppUsername");void 0!=$("#email-mobile-otp")&&($("#email-mobile-otp").val(c),$("#email-mobile-otp").blur(),
256$("#email-mobile-otp").attr("disabled","true"));void 0!=$("#label-email")&&($("#label-email").val(c),$("#label-email").attr("disabled","true"))}};this.resetKmsiUser=function(){var c=window.location.href,g=window.location.hash;c.indexOf("/account/sign-in")&&(0<g.length&&-1<g.indexOf("error")||-1<c.indexOf("IAUC408.html"))&&SWY.OKTA.system_error_logout()};this.getPromiseApiShippingInfo=function(c){var g=new Date,m=window.AB.mktpShippingInfoLS;
256if(window.AB.isLSEnabled&&localStorage.getItem("mkpShipping")){var n=
257localStorage.getItem("mkpShipping");n=JSON.parse(n).expiry-g.getTime();if(0>=n)localStorage.removeItem("mkpShipping");else return setTimeout(function(){localStorage.removeItem("mkpShipping")},n),new Promise(function(t,u){u=localStorage.getItem("mkpShipping");t(JSON.parse(u))})}var q=AB.sellerShippingMethodsOptions;n=window.AB.sellerShipMethodsBaseUrl.replace("{banner}",SWY.CONFIGSERVICE.getResolvedBanner());var p=window.AB&&n+window.AB.sellerShipMethodsEndpoint,r={zipcode:window.AB.userInfo.zipcode,
258shippingInfo:{},expiry:{}};return new Promise(function(t,u){$.ajax({type:"POST",headers:q,url:p,data:JSON.stringify(c),dataType:"json",async:!1,success:function(x,y,v){if(x&&x.shipMethods&&0<x.shipMethods.length&&(r.shippingInfo=x.shipMethods.reduce(function(z,E){var A={};return Object.assign(z,(A[E.sellerId]=E,A))},{}),r.expiry=g.getTime()+m,200===v.status&&(localStorage.setItem("mkpShipping",JSON.stringify(r)),t(r)),206===v.status)){v=JSON.parse(JSON.stringify(r));y=JSON.parse(JSON.stringify(r));
259v.shippingInfo={};y.shippingInfo={};for(var w=$jscomp.makeIterator(Object.keys(r.shippingInfo)),B=w.next();!B.done;B=w.next()){B=B.value;var C=r.shippingInfo[B];C.displayArriveByTS?v.shippingInfo[B]=C:y.shippingInfo[B]=C}0<Object.keys(v).length?localStorage.setItem("mkpShipping",JSON.stringify(v)):"";v={};x&&x.errors&&(v.erors=x.errors,0<Object.keys(y).length?v.shippingInfo=y:"",t(v))}},error:function(x){u({status:x.status,statusText:x.statusText})}})})};this.getPromiseApiWineShopShippingInfo=function(c){var g=
260new Date,m=window.AB.wineShippingInfoLS,n=window.AB.userInfo.zipcode,q=window.AB.userInfo.branchId,p,r,t,u,x=null==(p=AB)?void 0:null==(r=p.storeFlagsData)?void 0:null==(t=r.flags)?void 0:null==(u=t.ecomStore)?void 0:u.wfcStoreId,y=AB.wineShippingMethodsOptions,v=window.AB.wineLandingPromiseEndpoint,w={zipcode:n,branchId:q,wfcStoreId:x,shippingInfo:{},expiry:{}};return new Promise(function(B,C){$.ajax({type:"POST",headers:y,url:v,data:JSON.stringify(c),dataType:"json",async:!1,success:function(z,
261E,A){var D;if(0<(null==z?void 0:null==(D=z.shipMethods)?void 0:D.length)&&(w.shippingInfo=z.shipMethods,w.expiry=g.getTime()+m,shippingInfoJson=JSON.stringify(w),200===A.status&&(localStorage.setItem("wineShopShipping",shippingInfoJson),B(w)),206===A.status)){A=JSON.parse(shippingInfoJson);E=JSON.parse(shippingInfoJson);A.shippingInfo={};E.shippingInfo={};D=$jscomp.makeIterator(Object.keys(w.shippingInfo));for(var F=D.next();!F.done;F=D.next()){F=F.value;var G=w.shippingInfo[F];G.displayArriveByTS?
262A.shippingInfo[F]=G:E.shippingInfo[F]=G}0<Object.keys(A).length?localStorage.setItem("wineShopShipping",JSON.stringify(A)):"";A={};z&&z.errors&&(A.erors=z.errors,0<Object.keys(E).length?A.shippingInfo=E:"",B(A))}},error:function(z){C({status:z.status,statusText:z.statusText})}})})};this.getShipInfoByProgram=function(c,g){if("wine"===c)return h.getPromiseApiWineShopShippingInfo(g);if("marketplace"===c)return h.getPromiseApiShippingInfo(g)};this.isB2BSite=function(){var c=window.location.hostname;return c&&
263c.startsWith("business")?!0:!1};this.getSlotsInfo=function(c){var g=(new Date).getTime(),m=[],n="",q=c.closest(".marker-component");q&&(m=this.getRowComponents(q),n=""+q.getAttribute("data-section-id"));q=0;if(0<m.length)for(var p=0;p<m.length;p++)if(m[p].contains(c)||m[p]===c){q=p+1;break}c=(new Date).getTime();console.warn("Time: "+(c-g));console.warn({section:""+n,row:""+q});return q?{section:""+n,row:""+q}:{}};this.getRowComponents=function(c){var g=[],m=["nextgen-banner-unit_HeroBanner","google-adManager--HeroBanner"],
264n="."+m.join(",."),q=c.querySelectorAll(".hero-intro,.standard-intro,.flex-card,.master-product-carousel,.title-header,.shopbycategory,.coupon-carousel,.meal-carousel,.raw-html,.nextgen-banner-unit-proxy,.web-stories,.product-carousel-v2,.multi-columns-control,.nextgen-banner-unit,.slick-meal-carousel,.banner-headline,.slick-product-carousel,.image.section,.button.section");for(c={i$jscomp$18:0};c.i$jscomp$18<q.length;c={i$jscomp$18:c.i$jscomp$18},c.i$jscomp$18++)if(!(0>=q[c.i$jscomp$18].offsetHeight||
2650>=q[c.i$jscomp$18].offsetWidth||g.some(function(r){return function(t){return t.contains(q[r.i$jscomp$18])||t===q[r.i$jscomp$18]}}(c))))if(q[c.i$jscomp$18].querySelector(n)||m.some(function(r){return function(t){return q[r.i$jscomp$18].classList.contains(t)}}(c))){var p=void 0;(null==(p=q[c.i$jscomp$18])?0:p.closest(".slick-cloned"))||g.push(q[c.i$jscomp$18])}else(p=q[c.i$jscomp$18].closest(".flex-container,.nextgen-abs-carousel-proxy,.nextgen-banner-carousel,.nextgen-abs-carousel-wrapper"))?g.push(p):
266g.push(q[c.i$jscomp$18]);return g};
266this.getSlotsInformation=function(c){var g=(new Date).getTime(),m="banner-headline hero-intro standard-intro flex-card master-product-carousel title-header shopbycategory coupon-carousel meal-carousel raw-html nextgen-banner-unit-proxy web-stories richtext zone".split(" "),n="."+m.join(",."),q=null;if(c=c.closest(n))c=c.closest(".flex-container,.nextgen-abs-carousel-proxy,.nextgen-banner-carousel,.slick-cloned,.multi-columns-control")||c,q=this.getSlotInfo(c,c,1,
267n,m,".flex-container,.nextgen-abs-carousel-proxy,.nextgen-banner-carousel,.slick-cloned,.multi-columns-control");q&&console.warn(JSON.stringify(q));m=(new Date).getTime();console.warn("Time: "+(m-g));return q||{}};this.isSlotComponent=function(c,g,m){if(!c)return!1;var n,q=null==c?void 0:null==(n=c.classList)?void 0:n.value,p;return(null==g?0:null==(p=g.map(function(r){return q.indexOf(r)}))?0:p.some(function(r){return 0===r}))&&0<c.offsetHeight&&!c.closest(m)?!0:!1};this.isMarkerComponent=function(c){if(!c)return!1;
268var g,m;return 0<=(null==c?void 0:null==(g=c.classList)?void 0:null==(m=g.value)?void 0:m.indexOf("marker-section"))};this.getSlotInfo=function(c,g,m,n,q,p,r){if(g===document.body)return{section:"body",slot:m};if(isMarkerComponent(g)){var t;return{section:null==g?void 0:null==(t=g.querySelector("[data-section-id]"))?void 0:t.getAttribute("data-section-id"),slot:m}}if(isSlotComponent(g,q,p))return m++,getSlotInfo(g,g.previousElementSibling,m,n,q,!1);if(null!=g)return!r&&(m+=getrowElement(g,p)),getSlotInfo(g,
269g.previousElementSibling,m,n,q,!1);console.warn(c.parentElement);return getSlotInfo(c.parentElement,c.parentElement,m,n,q,!0)};this.getrowElement=function(c,g){var m=0;c=c.querySelectorAll(g);for(var n=0;n<=c.length-1;n++)c[n].closest(g)||m++;return m};this.updateUserFirstName=function(c){var g=window.innerWidth;null!==c&&"undefined"!==typeof c&&0<c.length&&(c=19<c.length?c.substring(0,16)+"...":c,$(".user-greeting").text("Hi, "+c).css({"text-decoration":"none"}));var m;if(1279<g&&154<(null==(m=$(".user-greeting"))?
270void 0:m.width())){var n;null==(n=$(".user-greeting"))||n.removeClass("d-lg-inline-block");var q;null==(q=$(".button__item.menu-nav__red-caret-down"))||q.removeClass("d-lg-inline-block");g=HtmlUtil.readElement(".sidebar__user-welcome.sidebar__show-user-welcome");0<(null==g?void 0:g.length)&&(g[0].style.display="flex",g.hasClass("d-lg-none")&&g.removeClass("d-lg-none"))}};this.removeP13nOOSLocalStorage=function(){AB.COMMON.isLSCompatible()&&localStorage.removeItem("oosBPNs")};this.addAngularComponent=
271function(c){c=document.createElement(c);document.body.appendChild(c)};this.addPassKey=function(){var c,g,m,n,q,p,r,t,u,x,y,v,w,B,C,z,E;return $jscomp.asyncExecutePromiseGeneratorProgram(function(A){switch(A.nextAddress){case 1:return A.setCatchFinallyBlocks(2),A.yield(k(),4);case 4:c=A.yieldResult;if(!c||!c.activation||!c.factorId)throw Error("Invalid data received from createFactors");g=c.activation;m=g.challenge;n=g.u2fParams;q=void 0===g.excludeCredentials?[]:g.excludeCredentials;p=g.authenticatorSelection;
272r=g.attestation;t=g.rp;u=g.pubKeyCredParams;x=g.user;y=q.map(function(D){return D.id?Object.assign({},D,{id:d(D.id)}):D});v={rp:t,user:{displayName:x.displayName,name:x.name,id:d(x.id)},pubKeyCredParams:u,challenge:d(m),attestation:r,authenticatorSelection:p,u2fParams:n,excludeCredentials:y};return A.yield(navigator.credentials.create({publicKey:v}),5);case 5:w=A.yieldResult;if(!w)throw Error("Failed to create credential");B=e(w.response.attestationObject);C=e(w.response.clientDataJSON);console.log(r);
273console.log(C);e(w.rawId);return A.yield(f(c.factorId,B,C),6);case 6:return z=A.yieldResult,A.return({success:!0,response:z});case 2:return E=A.enterCatchBlock(),A.return({error:!0,errorDetails:E})}})};this.getFactors=function(){var c,g,m,n,q,p,r,t;return $jscomp.asyncExecutePromiseGeneratorProgram(function(u){switch(u.nextAddress){case 1:return u.setCatchFinallyBlocks(2),c=window.AB.userInfo.UUID,g={"Content-Type":"application/vnd.safeway.v2+json",Accept:"application/vnd.safeway.v2+json",Authorization:"Bearer "+
274window.AB.userInfo.SWY_SHOP_TOKEN,"x-swy-banner":window.SWY.CONFIGSERVICE.getResolvedBanner(),"x-swy-correlation-id":window.AB.COMMON.generateUUID(),"x-swy-client-id":"web-portal","Ocp-Apim-Subscription-Key":window.SWY.CONFIGSERVICE.getDatapowerConfig().cncSubscriptionKey},m=window.SWY.CONFIGSERVICE.getDatapowerConfig(),n=m.csmsApiEndpoint,q=n+"/customers/"+c+"/factors",u.yield(fetch(q,{method:"GET",headers:Object.assign({},g)}),4);case 4:p=u.yieldResult;if(!p.ok)throw Error("HTTP error! status: "+
275p.status);u.setCatchFinallyBlocks(5);return u.yield(p.json(),7);case 7:return r=u.yieldResult,u.return(r);case 5:throw u.enterCatchBlock(2),Error("Failed to parse JSON response");case 6:u.leaveTryBlock(0);break;case 2:t=u.enterCatchBlock(),console.error("Error in submitUsername:",t.message,{error:t}),u.jumpToEnd()}})};this.preFetchStoreFulfilmentData=function(c){if(c&&0<Object.keys(c).length){window.AB.userInfo.banner=c.banner;window.SWY.CONFIGSERVICE.initFeatureToggleConfig(c.featureFlags);window.AB.storeResolverAllEndpoint=
276c.storeResolverAllEndpoint;window.AB.storeResolverAllEndpointV2=c.storeResolverAllEndpointV2;window.AB.allowWiremockService=!0;window.AB.userInfo.userType=c.userType;window.AB.wcaxXapiApimKey=c.wcaxXapiApimKey;if("R"===window.AB.userInfo.userType||"C"===window.AB.userInfo.userType)window.AB.userInfo.UUID=c.uuid;window.AB.COMMON.getGeoCookieName=function(){return"ACI_F_DELIVERY_ADDR"};window.SWY.CONFIGSERVICE.initBannerDomainMapConfig(c.bannerDomainConfig);AB.preloadStoreFlagsXapiApimKey=c.preloadStoreFlagsXapiApimKey;
277SWY.CONFIGSERVICE.resolvedBanner=c.banner;AB.userInfo.SWY_SHOP_TOKEN=c.groceryToken;AB.wcaxXapiApimKey=c.preloadStoreFlagsXapiApimKey;window.AB.storeResolverZipToCityEndpoint=c.storeResolverZipToCityEndpoint;
277window.AB.storesByAddressEndpoint=c.storesByAddressEndpoint;AB.fulfillmentDefaultAddressV2=c.fulfillmentDefaultAddressV2;AB.userAddresses=c.userAddresses;AB.fulfillmentPreferences=c.fulfillmentPreferences;Object.defineProperty(AB,"ucaHttpOptionsV2",{get:function(){return{Accept:"application/vnd.safeway.v2+json",
278"x-swy-banner":c.banner,"Ocp-Apim-Subscription-Key":c.cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v2+json","x-swy-client-name":"web-portal","x-swy-correlation-id":c.uuid,"x-swy-date":new Date,"Cache-Control":"no-cache",Authorization:"Bearer "+c.groceryToken}}});Object.defineProperty(AB,"ucaHttpOptionsV3",{get:function(){return{Accept:"application/vnd.safeway.v3+json","x-swy-banner":c.banner,"Ocp-Apim-Subscription-Key":c.cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v3+json",
279"x-swy-client-name":"web-portal","x-swy-correlation-id":c.uuid,"x-swy-date":new Date,Authorization:"Bearer "+c.groceryToken}}});Object.defineProperty(AB,"ucaHttpOptionsFulfillmentServlet",{get:function(){return{Accept:"application/vnd.safeway.v1+json",Authorization:"Bearer "+c.groceryToken,SWY_SSO_TOKEN:c.groceryToken,"x-swy-banner":c.banner,"Ocp-Apim-Subscription-Key":c.cncSubscriptionKey,"Content-Type":"application/vnd.safeway.v1+json","x-swy-correlation-id":c.uuid,"x-swy-date":new Date,"x-swy-client-name":"web-portal"}}})}}}).call(AB.COMMON);
280(function(){var b=this;this.updateUserSession=function(a,d,e,k,f,h,c){if("object"===typeof a&&""!==a&&void 0!==a){if(void 0===a.info||void 0===a.info.COMMON&&void 0===a.info.J4U&&void 0===a.info.SHOP&&void 0===a.info.offbanner)return"Parameter passed doesn't match appropriate format";var g=AB.userInfo.userType.toLowerCase(),m=a.info.offbanner?!0:!1;if("g"===g||"a"===g)if(!0===m)window.location=window.location.protocol+"//"+this.buildHost(a.info.offbanner.banner)+"/?storeId\x3d"+a.info.offbanner.storeId+
281"\x26preference\x3d"+a.info.offbanner.preference;else{g=["abs_gsession","SWY_SHARED_SESSION_INFO","abs_previouslogin","SWY_SYND_USER_INFO"];h=SWY.CONFIGSERVICE.getCookie(g[0]);var n=SWY.CONFIGSERVICE.getCookie(g[1]);c=SWY.CONFIGSERVICE.getCookie(g[2]);k=SWY.CONFIGSERVICE.getCookie(g[3]);this.isCookieEmpty(h)&&this.createSessionCookie(g[0],a);this.isCookieEmpty(n)&&this.createSessionCookie(g[1],a);this.isCookieEmpty(c)&&this.createSessionCookie(g[2],a);this.isCookieEmpty(k)&&this.createSessionCookie(g[3],
282a);this.updateUserCookieList(g,a);f&&e();var q,p;if("a"!==(null==(q=window.ABTestUtil)?void 0:q.getABTestValue("abACIP295974","isGuestAddToCartDisabled","ACIP295974"))&&(null==(p=window)?0:p.cartServiceRefAL)){var r;g=null!=(r=a.info.COMMON.preference)?r:"";var t,u;cartServiceRefAL.service.updateStoreForExistingCart(a.info.SHOP.storeId,g.toLowerCase(),"",null==(t=a.info)?void 0:null==(u=t.offbanner)?void 0:u.banner,e,"J4U"===g?a.info.J4U.zipcode:a.info.SHOP.zipcode)}}else if("r"===g||"c"===g){g=["SWY_SHARED_SESSION_INFO",
283"abs_previouslogin","SWY_SYND_USER_INFO"];n=SWY.CONFIGSERVICE.getCookie(g[0]);if(!1!==d){if(!0!==m){r=0<a.info.COMMON.preference.length?a.info.COMMON.preference:n.info.COMMON.preference;k=SWY.CONFIGSERVICE.getResolvedBanner();t="J4U"===r?a.info.J4U.zipcode:a.info.SHOP.zipcode;if(SWY.CONFIGSERVICE.featureToggleConfig.enableCookieRestructure)return c=a.info.COMMON.storeId&&0<a.info.COMMON.storeId.length?a.info.COMMON.storeId:n.info.COMOMN.storeId,n=r.toUpperCase(),this.updateUcaProfile(n,c,c,k,a.info.COMMON.zipcode,
284a,g,null,e,null,h);if("J4U"===r.toUpperCase())return this.updateUcaProfile("J4U",a.info.J4U.storeId&&0<a.info.J4U.storeId.length?a.info.J4U.storeId:n.info.J4U.storeId,null,k,t,a,g,null,e);if("DUG"===r.toUpperCase())return n=a.info.SHOP.storeId&&0<a.info.SHOP.storeId.length?a.info.SHOP.storeId:n.info.SHOP.storeId,this.updateUcaProfile("DUG",null,n,k,t,a,g,null,e);n=a.info.SHOP.storeId&&0<a.info.SHOP.storeId.length?a.info.SHOP.storeId:n.info.SHOP.storeId;return this.updateUcaProfile("DELIVERY",null,
285n,k,t,a,g,null,e,null,h,c)}if(0<a.info.offbanner.preference.length)t=a.info.offbanner.preference;else throw"Preference is empty";if(0<a.info.offbanner.storeId.length)n=a.info.offbanner.storeId;else throw"StoreId is empty";if(0<a.info.offbanner.banner.length)r=a.info.offbanner.banner;else throw"Banner is empty";if(0<a.info.offbanner.zipcode.length)u=a.info.offbanner.zipcode;else throw"Zipcode is empty";t=t.toUpperCase();"J4U"===t?(f=n,n=null):f=null;return this.updateUcaProfile(t,f,n,r,u,a,g,!0,e,
286k,h,c)}this.updateUserCookieList(g,a)}}else return"Parameter passed is either empty or not an object"};
286this.updateUcaProfile=function(a,d,e,k,f,h,c,g,m,n,q,p){var r=AB.userInfo.UUID;k=k.replace(/\s|-/g,"");if(r){var t=k;r=AB.userInfo.UUID;var u,x=!0,y="";if("J4U"===a){var v=d;x=!1;var w='{"stores":[{"storeId":"'+v+'","storePreference":"Preferred","address":{"zipCode":"'+f+'"},"banner":"'+t+'"}],"preferences":[{"categoryCode":"FULFILLMENT","subCategoryCode":"METHOD","value":"J4U","bannerId":"'+t+'"}]}'}else if("DUG"===
287a){v=e;var B="dug";w='{"stores":[{"storeId":"'+v+'","storePreference":"DriveUp","address":{"zipCode":"'+f+'"},"banner":"'+t+'"}],"preferences":[{"categoryCode":"FULFILLMENT","subCategoryCode":"METHOD","value":"DUG","bannerId":"'+t+'"}]}'}else"DELIVERY"===a&&(v=e,y="attended",B="delivery",w='{"preferences":[{"categoryCode":"FULFILLMENT","subCategoryCode":"METHOD","value":"DELIVERY", "bannerId":"'+t+'"}],"postalCodes":[{"purposes":["DELIVERY"],"postalCode":"'+f+'","bannerId":"'+t+'"}]}');null===AB.COMMON.getCartId("cartId")&&
288(x=!1);t=this.updateUCAProfileAPIPath(r);var C=AB.ucaHttpOptionsUpdateProfileV2;this.isGeoFlowEnabled(q)&&(t=this.updateFulFillmentServletPath(r),C=AB.ucaHttpOptionsFulfillmentServlet,w=this.createDataObject(a,d,e,k,q));$.ajax({url:t,type:"POST",headers:C,dataType:"json",data:w,async:!1,success:function(z,E,A){SWY.ENFORCEMENTUTILS.updateReInitSite("slot");AB.CART.removeLocalStorage();AB.COMMON.removeP13nOOSLocalStorage();localStorage.removeItem("abPreFetchExperiment");SWY.CONFIGSERVICE.deleteCookie("ACI_S_EXP_PF",
289"");if(x)cartServiceRefAL.service.updateStoreForExistingCart(v,B,y,g,function(D){if(!0===g)D=n?window.location.protocol+"//"+AB.COMMON.buildHost(k)+SWY.ssoPath+"?ml\x3d"+n:window.location.protocol+"//"+AB.COMMON.buildHost(k)+SWY.ssoPath,""!==p&&"DELIVERY"===a&&(D+=(n?"\x26goto\x3d":"?goto\x3d")+window.location.pathname+window.location.search),window.location=D;else if(AB.COMMON.updateUserCookieList(c,h),u={success:!0,message:"We have Successfully updated your profile"},"function"===typeof m)m(u);
290else return u},f);else if(!0===g)z=n?window.location.protocol+"//"+AB.COMMON.buildHost(k)+SWY.ssoPath+"?ml\x3d"+n:window.location.protocol+"//"+AB.COMMON.buildHost(k)+SWY.ssoPath,""!==p&&"DELIVERY"===a&&(z+=(n?"\x26goto\x3d":"?goto\x3d")+window.location.pathname+window.location.search),window.location=z;else if(AB.COMMON.updateUserCookieList(c,h),u={success:!0,message:"We have Successfully updated your profile"},"function"===typeof m)m(u);else return u},error:function(z,E,A){u={success:!1,message:z.statusText};
291if(401===z.status||403===z.status)"true"===SWY.ENFORCEMENT.getCookie("SAFEWAY_KMSI")?SWY.ENFORCEMENT.sendRedirect(SWY.ssoPath+"?goto\x3d"+window.location.href):window.location.reload();else if("function"===typeof m)m(u);else return u}})}else if(responseObj=Error("CustomerId is not Available to Update Profile"),responseObj.name="CustomerId","function"===typeof m)m(responseObj);else return responseObj};this.createDataObject=function(a,d,e,k,f){var h={},c={preferenceDefId:"2f779a23-f979-4dac-8b67-ae8a4c469e16",
292value:a,banner:k};if("DELIVERY"===a){var g;if(null==f?0:null==(g=f.address)?0:g.addressId){var m;h={preferences:[Object.assign({},c)],selectedAddress:{addressId:null==f?void 0:null==(m=f.address)?void 0:m.addressId,banner:k,purposes:[{name:"DELIVERY"}]}}}else{var n,q,p,r,t,u,x,y;h={address:{addressName:(null==f?void 0:null==(n=f.address)?void 0:n.bName)||null,address1:null==f?void 0:null==(q=f.address)?void 0:q.addressLine1,address2:(null==f?void 0:null==(p=f.address)?void 0:p.addressLine2)||null,
293city:null==f?void 0:null==(r=f.address)?void 0:r.city,stateCode:null==f?void 0:null==(t=f.address)?void 0:t.stateCode,country:null,postalCode:this.normalizePostalCode(null==f?void 0:null==(u=f.address)?void 0:u.postalCode),postalCodeExtn:this.extractPostalCode(null==f?void 0:null==(x=f.address)?void 0:x.postalCode),isSelectedAddress:"true",selectedAddressBanner:k,selectedAddressPurposes:[{name:"DELIVERY"}],addressTypes:[{type:null==f?void 0:null==(y=f.address)?void 0:y.type}],purposes:[{name:"DELIVERY"}],
294addressHash:""},preferences:[{preferenceDefId:"2f779a23-f979-4dac-8b67-ae8a4c469e16",value:"DELIVERY",banner:k}]}}}else"DUG"===a?h={preferences:[Object.assign({},c),{preferenceDefId:"8d17909f-9055-44dd-bc68-93f5fb63e616",value:e,banner:k}]}:"J4U"===a&&(h={preferences:[Object.assign({},c),{preferenceDefId:"24c286a7-2e43-45f1-9c81-7238b93758ef",value:d}]});return JSON.stringify(h)};this.normalizePostalCode=function(a){return a&&5<a.length?a.substring(0,a.indexOf("-"))||a:a||""};this.extractPostalCode=
295function(a){return a&&5<a.length&&(a=a.split("-"),1<a.length)?a[1]:""};this.updateUCAProfileAPIPath=function(a){return SWY.CONFIGSERVICE.datapowerConfig.cncCtxPath+"/ucaservice/api/uca/customers/"+a+"/stores"};this.updateFulFillmentServletPath=function(a){return AB.fulfillmentServlet};this.getHost=function(){var a=window.location.hostname;return a.substr(0,a.indexOf("."))};this.buildHost=function(a){var d=this.getHost(),e=window.location.port;return e&&0<e.length?d+"."+a+".com:"+e:d+"."+a+".com"};
296this.updateUserCookieList=function(a,d){$.each(a,function(e,k){e=SWY.CONFIGSERVICE.getCookie(k);AB.COMMON.isCookieEmpty(e)||AB.COMMON.updateAbsCookies(k,d)})};this.isCookieEmpty=function(a){var d=!1;if(""===a||void 0===a||null===a)d=!0;return d};this.updateAbsCookies=function(a,d){var e=JSON.parse(SWY.CONFIGSERVICE.getCookie(a));if("abs_gsession"===a||"SWY_SHARED_SESSION_INFO"===a||"abs_previouslogin"===a)e=b.compareAndUpdateObj(d,e),d=encodeURIComponent(JSON.stringify(e)),a=SWY.CONFIGSERVICE.getResolvedCookieName(a),
297SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=a+"\x3d"+d+"; path\x3d/;secure;":document.cookie=a+"\x3d"+d+"; path\x3d/";else if("SWY_SYND_USER_INFO"===a&&(null!==d.info.J4U||null!==d.info.SHOP)&&null!==e){var k=d.info.COMMON.preference,f=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.storeId:d.info.SHOP.storeId:"",h=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.zipcode:d.info.SHOP.zipcode:"",c=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.address:d.info.SHOP.address:"";xDTags=d.info.COMMON.xDTags;
298h&&(e.storeZip=h);f&&(e.storeId=f);"undefined"!==typeof c&&null!==c&&(e.storeAddress=c);k&&(e.preference=k);xDTags&&(e.xDTags=xDTags);d=encodeURIComponent(JSON.stringify(e));e=SWY.CONFIGSERVICE&&SWY.CONFIGSERVICE.resolvedBanner+".com";k=SWY.CONFIGSERVICE&&SWY.CONFIGSERVICE.oktaConfig&&SWY.CONFIGSERVICE.oktaConfig.maxAge;f=new Date;f.setTime(f.getTime()+1E3*k);
298k="expires\x3d"+f.toUTCString();a=SWY.CONFIGSERVICE.getResolvedCookieName(a);SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=a+"\x3d"+
299d+";"+k+";path\x3d/;secure;domain\x3d."+e:document.cookie=a+"\x3d"+d+";"+k+";path\x3d/;domain\x3d."+e}};this.compareAndUpdateObj=function(a,d){Object.keys(a).forEach(function(e){Object.keys(d).forEach(function(k){e===k&&("object"===typeof a[e]&&"object"===typeof d[k]?b.compareAndUpdateObj(a[e],d[k]):d[k]=a[e])})});return d};this.createSessionCookie=function(a,d){var e=new Date;"abs_gsession"===a?e.setTime(e.getTime()+864E5):e.setTime(e.getTime()+27E5);if("SWY_SYND_USER_INFO"===a){e={storeAddress:"",
300storeZip:"",storeId:"",preference:""};if(null!==d.info.J4U||null!==d.info.SHOP){var k=d.info.COMMON.preference,f=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.storeId:d.info.SHOP.storeId:"",h=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.zipcode:d.info.SHOP.zipcode:"";d=void 0!==k?"j4u"===k.toLowerCase()?d.info.J4U.address:d.info.SHOP.address:"";h&&(e.storeZip=h);f&&(e.storeId=f);"undefined"!==typeof d&&null!==d&&(e.storeAddress=d);k&&(e.preference=k);d=e}SWY.CONFIGSERVICE.setDomainCookie(a,encodeURIComponent(JSON.stringify(d)),
301SWY.CONFIGSERVICE.resolvedBanner+".com",0)}else SWY.CONFIGSERVICE.setCookie(a,encodeURIComponent(JSON.stringify(d)),0)};this.checkWineStoreFlags=function(){if(AB.storeFlagsLoaded&&AB.storeFlagsData&&AB.storeFlagsData.flags){var a=AB.storeFlagsData.flags.ecomStore&&AB.storeFlagsData.flags.ecomStore.storeFeatures&&AB.storeFlagsData.flags.ecomStore.storeFeatures.isWineD2CEnabled?AB.storeFlagsData.flags.ecomStore.storeFeatures.isWineD2CEnabled:!1;if(void 0!=a&&!0===a&&AB.storeFlagsData.flags.ecomStore.wfcStoreId){a=
302AB.storeFlagsData.flags.ecomStore.wfcStoreId;AB.userInfo.wfcStoreId=a;var d=JSON.parse(SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO"));d.info.COMMON.hasOwnProperty("wfcStoreId")?(d=d.info.COMMON.wfcStoreId?d.info.COMMON.wfcStoreId:void 0,void 0!=d&d!=a&&b.updateSessionCookie(a)):b.updateSessionCookie(a)}else b.checkAndRemoveWineStoreId()}else b.checkAndRemoveWineStoreId()};this.updateSessionCookie=function(a){var d="SWY_SHARED_SESSION_INFO",e=JSON.parse(SWY.CONFIGSERVICE.getCookie(d));if(void 0!=
303a){if(e.info.COMMON.hasOwnProperty("wfcStoreId")){var k=e.info.COMMON.wfcStoreId?e.info.COMMON.wfcStoreId:void 0;void 0!=k&&k!=a&&(e.info.COMMON.wfcStoreId=a)}else e.info.COMMON.wfcStoreId=a;a=encodeURIComponent(JSON.stringify(e));d=SWY.CONFIGSERVICE.getResolvedCookieName(d);SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=d+"\x3d"+a+";path\x3d/;secure;":document.cookie=d+"\x3d"+a+";path\x3d/"}};this.checkAndRemoveWineStoreId=function(){var a="SWY_SHARED_SESSION_INFO";if(SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO")){var d=
304JSON.parse(SWY.CONFIGSERVICE.getCookie(a));void 0!=d.info.COMMON.wfcStoreId&&(delete d.info.COMMON.wfcStoreId,d=encodeURIComponent(JSON.stringify(d)),a=SWY.CONFIGSERVICE.getResolvedCookieName(a),SWY.CONFIGSERVICE.tagCookiesSecure()?document.cookie=a+"\x3d"+d+";path\x3d/;secure;":document.cookie=a+"\x3d"+d+";path\x3d/")}
304void 0!==AB.userInfo.wfcStoreId&&delete AB.userInfo.wfcStoreId};this.isGeoFlowEnabled=function(a){var d,e;return(null==a?void 0:null==(d=a.address)?void 0:d.addressId)||(null==a?void 0:
305null==(e=a.address)?void 0:e.addressLine1)}}).call(AB.COMMON);
306(function(){var b=0,a={},d="",e={},k=!1;this.init=function(){console.debug("SWY.ENFORCEMENT.init ENTRY");SWY.QUERYSTRING.init();SWY.RESTRICTEDRESOURCE.init();var f,h,c;(null==(f=SWY)?0:null==(h=f.CONFIGSERVICE)?0:null==(c=h.featureToggleConfig)?0:c.enableCheckReinitCookieOnLoad)&&this.checkForLoginInEcommReInitCookie();this.readSessionCookies();this.isAlertDismissed();SWY.CONFIGSERVICE.setCookie("ECommBanner",SWY.CONFIGSERVICE.resolvedBanner,0);console.debug("SWY.ENFORCEMENT.init EXIT");this.checkForFirstTimeLogin();
307this.triggerOnboardingModal()};this.checkForLoginInEcommReInitCookie=function(){if(SWY.ENFORCEMENTUTILS.checkReInitSite("login")){var f=encodeURIComponent(window.location.href);AB.COMMON.setCookie("ECommRedirectURL",f,0);SWY.ENFORCEMENTUTILS.removeReInitSite("login");window.location.href=window.location.origin+SWY.ssoPath}};this.checkForFirstTimeLogin=function(){var f=window.AB.COMMON.getCookie("ECommReInit");AB.firstTimeLogin=!1;if(null==f?0:f.includes("|firstTimeLogin"))f=f.replace("|firstTimeLogin",
308""),window.SWY.CONFIGSERVICE.setDomainCookie("ECommReInit",f,window.SWY.CONFIGSERVICE.resolvedBanner+".com",0),AB.firstTimeLogin=!0};this.triggerOnboardingModal=function(){var f=AB.COMMON.isB2BSite()?"B_ACI_S_onboardEvent":"ACI_S_onboardEvent",h=window.AB.COMMON.getCookie(f),c=window.SWY.CONFIGSERVICE.featureToggleConfig.isReceiptsOnboardEventEnabled,g=window.SWY.CONFIGSERVICE.featureToggleConfig.referralProgramEnabled,m,n=null==(m=window.SWY.CONFIGSERVICE.featureToggleConfig)?void 0:m.enableUnityWelcomeModal,
309q;m=null==(q=window.SWY.CONFIGSERVICE.featureToggleConfig)?void 0:q.enableNoUserPreference;h&&(h=JSON.parse(h),"normalSignIn"===h.event?window.AB.onBoardingSigninFlow=!0:n&&"unity"===h.event?window.AB.onUnitySigninFlow=!0:!c||"STORE_ONLINE_USER_SIGN"!==h.event&&"STORE_ONLINE_USER_REG"!==h.event||"success"!==h.status?!g||"success"!==h.status||"referrer"!==h.pgm&&"socialReg"!==h.event?m&&"NO_PREFERNCE_USER_SIGN"===h.event&&(window.AB.noPreferenceSigninFlow=!0):window.AB.onboardingEvent=h:window.AB.onboardingEvent=
310h,document.cookie=f+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;")};this.getUnifiedPreviousLoginCookie=function(){var f={},h=SWY.ENFORCEMENTUTILS.parseSessionCookie("abs_previouslogin");h&&h.info&&h.info.COMMON&&(f=h);return f};this.assistantSignInURLParams=function(){var f=AB.COMMON.getURLParameterByName("client_id"),h=AB.COMMON.getURLParameterByName("redirect_uri"),c=AB.COMMON.getURLParameterByName("scope"),g=AB.COMMON.getURLParameterByName("state");null!=f&&null!=h&&null!=c&&null!=
311g&&(localStorage.setItem("assistant_client_id",f),localStorage.setItem("assistant_redirect_uri",h),localStorage.setItem("assistant_scope",c),localStorage.setItem("assistant_state",g))};this.readSessionCookies=function(){SWY.previousLogin=this.getUnifiedPreviousLoginCookie();console.debug("SWY.ENFORCEMENT.readSessionCookies SWY.previousLogin\x3d"+SWY.previousLogin);var f=SWY.CONFIGSERVICE.getCookie("ECommSignInCount");AB.COMMON.isB2BSite()&&(f=SWY.CONFIGSERVICE.getCookie("B_ECommSignInCount"));f&&
3120<f.length&&(b=parseInt(f));a=SWY.ENFORCEMENTUTILS.parseReInitCookie();AB.COMMON.authorize()||AB.COMMON.resetKmsiUser()};this.isAlertDismissed=function(){"false"==sessionStorage.getItem("displayNotificationComponent")&&(document.getElementById("allAlertCSS").innerHTML+=".hideAllAlert{display:none!important}")};this.performPageEnforcement=function(){var f=null;f="";if(f=AB.COMMON.getURLParameterByName("ml"))SWY.CONFIGSERVICE.setDomainCookie("SAFEWAY_MODAL_LINK",f,SWY.CONFIGSERVICE.resolvedBanner+".com",
3130),f=window.location.href,f=SWY.ENFORCEMENT.removeDeeplinkURLParameters(f,"ml"),window.history.replaceState("",document.title,f);f=!1;this.init();f=String(location.pathname);0<f.indexOf("auth/service/sign-in")&&(document.cookie="ACI_S_SWY_SESSION\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/;");this.isPageEnforced(f)?(console.debug("SWY.ENFORCEMENT.performPageEnforcement Current page is being enforced."),this.assistantSignInURLParams(),SWY.CONFIGSERVICE.isCookieEnabled()?this.doSingleSignOn()?
314(this.isUnifiedDeepLinkUser()&&(this.useDeepLinkGoto=!0),(f=0==this.handleSingleSignOn()?!0:!1)&&this.handlePageEnforcement()):this.isUnifiedDeepLinkUser()?SWY.ENFORCEMENT.validateDeepLinkParams().then(function(h){!0===h.validRequest.isValid&&
314(SWY.deepLinkData=SWY.ENFORCEMENT.setSessionObj());k=!0;SWY.ENFORCEMENT.handlePageEnforcement()}).catch(function(h){console.debug("error");SWY.ENFORCEMENT.handlePageEnforcement()}):(f=this.getCookie("ECommRedirectURL"),f=decodeURIComponent(f),this.doRedirection(f)?
315(SWY.CONFIGSERVICE.setCookie("ECommRedirectURL","",-1),this.sendRedirect(f,!1,null)):this.handlePageEnforcement()):(AB.userInfo.establishUnifiedGuestSession(),this.handlePageEnforcement())):AB.userInfo.earlyInitialize=this.checkEarlyInitialize()};this.setSessionObjData=function(f){deepLinkUpdateObj={info:{COMMON:{},J4U:{},SHOP:{}}};deepLinkUpdateObj.info.COMMON.Selection="query";deepLinkUpdateObj.info.COMMON.userType="G";if(("DELIVERY"===d||"PICKUP"===d||"INSTORE"===d)&&f&&f.validRequest&&f.validRequest.store){var h=
316f.validRequest.store.zipcode;f.validRequest.mappedZip&&e&&e.zipcode&&(h=e.zipcode);if("INSTORE"===d)if(1==f.validRequest.ecomStore.defaultStore){var c=SWY.CONFIGSERVICE.storeResolutionConfig;deepLinkUpdateObj.info.SHOP.storeId=c.bannerDefaultStoreId;deepLinkUpdateObj.info.SHOP.zipcode=c.bannerDefaultZipcode}else deepLinkUpdateObj.info.SHOP.storeId=f.validRequest.store.storeId,deepLinkUpdateObj.info.SHOP.zipcode=h;else deepLinkUpdateObj.info.SHOP.storeId=f.validRequest.store.storeId,deepLinkUpdateObj.info.SHOP.zipcode=
317h;deepLinkUpdateObj.info.J4U.storeId=f.validRequest.store.storeId;deepLinkUpdateObj.info.J4U.zipcode=h;deepLinkUpdateObj.info.COMMON.zipcode=h;switch(d){case "DELIVERY":deepLinkUpdateObj.info.COMMON.preference="Delivery";break;case "PICKUP":deepLinkUpdateObj.info.COMMON.preference="Dug";break;case "INSTORE":deepLinkUpdateObj.info.COMMON.preference="J4U"}}return deepLinkUpdateObj};this.setSessionObj=function(){deepLinkUpdateObj={info:{COMMON:{},J4U:{},SHOP:{}}};deepLinkUpdateObj.info.COMMON.Selection=
318"query";deepLinkUpdateObj.info.COMMON.userType="G";if("DELIVERY"===d||"PICKUP"===d||"INSTORE"===d){if(e&&e.zipcode){var f=e.zipcode;deepLinkUpdateObj.info.SHOP.zipcode=f;deepLinkUpdateObj.info.J4U.zipcode=f;deepLinkUpdateObj.info.COMMON.zipcode=f}e&&e.storeId&&(deepLinkUpdateObj.info.J4U.storeId=e.storeId,deepLinkUpdateObj.info.SHOP.storeId=e.storeId);e&&e.resolvedBy&&(deepLinkUpdateObj.info.COMMON.resolvedBy=e.resolvedBy);switch(d){case "DELIVERY":deepLinkUpdateObj.info.COMMON.preference="Delivery";
319break;case "PICKUP":deepLinkUpdateObj.info.COMMON.preference="Dug";break;case "INSTORE":deepLinkUpdateObj.info.COMMON.preference="J4U"}}return deepLinkUpdateObj};this.isUnifiedDeepLinkUser=function(){var f=this,h=["INSTORE","DELIVERY","PICKUP"],c=!1,g=!1,m=!1,n=AB.COMMON.getURLParameterByName("storeId"),q=AB.COMMON.getURLParameterByName("preference"),p=AB.COMMON.getURLParameterByName("zipcode"),r=AB.COMMON.getURLParameterByName("state"),t=AB.COMMON.getURLParameterByName("resolvedBy"),u=AB.COMMON.getURLParameterByName("addr"),
320x=AB.COMMON.getURLParameterByName("guestCartId");x&&localStorage.setItem("abCart",JSON.stringify({guestCartId:x}));this.deepLinkUrl=window.location.href;e.resolvedBy=t;if(n&&q&&!r){r=window.location.href;var y=["storeId","preference","zipcode"];t&&y.push("resolvedBy");x&&y.push("guestCartId");if(u){var v,w,B="B"===(null==(v=window.AB)?void 0:null==(w=v.userInfo)?void 0:w.siteType)?"ACI_F_B_DELIVERY_ADDR":"ACI_F_DELIVERY_ADDR",C=JSON.parse(atob(u));(t=window.dataLayer&&window.dataLayer.find(function(z){return"OneTrustGroupsUpdated"===
321z.event}))?(null==t?0:t.OnetrustActiveGroups.includes("C0003"))&&this.setGeoDeliveryCookie(B,C):window.addEventListener("OneTrustGroupsUpdated",function(z){(z=z&&z.detail)&&z.includes("C0003")&&f.setGeoDeliveryCookie(B,C)},{once:!0});y.push("addr")}t=$jscomp.makeIterator(y);for(u=t.next();!u.done;u=t.next())r=SWY.ENFORCEMENT.removeDeeplinkURLParameters(r,u.value);window.history.replaceState("",document.title,r)}r=new RegExp(/^\d{1}$|^\d{2}$|^\d{3}$|^\d{4}$/);t=new RegExp(/^\d{5}$|^\d{5}-\d{4}$/);
322if(AB.COMMON.isAnonymous()||"G"===AB.userInfo.userType.toUpperCase()||AB.COMMON.authorize())if(q&&(q=q.toUpperCase(),d=q.toUpperCase(),h.forEach(function(z){z===q&&(g=!0)})),console.debug("REGEX: ",r.test(n)),r.test(n)&&(c=!0),console.debug("REGEX: ",t.test(p)),p&&t.test(p)&&(m=!0),g&&c)return e.storeId=n,e.intent="PICKUP"===q?"dug":q,m&&(e.zipcode=p),!0;return!1};
322this.setGeoDeliveryCookie=function(f,h){var c=new Date;c.setTime(c.getTime()+27E5);c="expires\x3d"+c.toUTCString();h=encodeURIComponent(JSON.stringify(h));
323document.cookie=f+"\x3d"+h+"; "+c+"; path\x3d/;"};this.removeDeeplinkURLParameters=function(f,h){var c=f.split("?");if(2<=c.length){f=encodeURIComponent(h)+"\x3d";h=c[1].split(/[&;]/g);for(var g=h.length;0<g--;)-1!==h[g].lastIndexOf(f,0)&&h.splice(g,1);return c[0]+(0<h.length?"?"+h.join("\x26"):"")}return f};this.validateDeepLinkParams=function(){var f=window.location.protocol+"//"+window.location.host+AB.storeResolverValidateEndpoint+"?banner\x3d"+SWY.CONFIGSERVICE.getResolvedBanner()+"\x26storeid\x3d"+
324e.storeId+"\x26preference\x3d"+e.intent;e&&e.zipcode&&(f+="\x26zipcode\x3d"+e.zipcode);var h={"ocp-apim-subscription-key":AB.wcaxXapiApimKey};return new Promise(function(c,g){$.ajax({headers:h,async:!1,url:f,type:"GET",success:function(m){c(m)},error:function(m){g(m)}})})};this.isPageEnforced=function(f){return!(SWY.ENFORCEMENTUTILS.isEditorPage(f)||SWY.ENFORCEMENTUTILS.isContentPage(f)||"/account/linked-account.html"===f)};this.doSingleSignOn=function(){var f=!1;1>b&&(SWY.isEscapeSSOAllowed||(SWY.ENFORCEMENT.checkExpiredKmsiUser()?
325f=!0:this.doReInit()?f=!0:AB.userInfo&&SWY.ENFORCEMENTUTILS.isValidUserType("A")&&AB.userInfo.houseId&&(f=!0)));console.debug("SWY.ENFORCEMENT.doSingleSignOn returns: "+f);return f};this.checkExpiredKmsiUser=function(){var f=!1;"true"==SWY.ENFORCEMENT.getCookie("SAFEWAY_KMSI")&&(SWY.ENFORCEMENT.checkAuthorizedCookie()?void 0!=AB.userInfo&&(f="C"==AB.userInfo.userType||"R"==AB.userInfo.userType?!1:!0):f=!0);return f};this.doReInit=function(){var f=!1,h;if(a&&0<a.length&&(h=window.location.hostname))for(var c in a){var g=
326a[c];g&&0==h.indexOf(g.trim())&&(f=!0)}return f};this.isDifferentReferrer=function(){var f=!1;var h=document.referrer;var c=window.location.origin;if(""===h||0>h.indexOf(c))f=!0;return f};this.handleSingleSignOn=function(){var f=!1;var h=window.location.pathname;var c=SWY.configService.wwwSignInPagePath;null!=SWY.CONFIGSERVICE.pharmacyRxConfig&&(c=configPagePathSWY.CONFIGSERVICE.pharmacyRxConfig["rx.pharmacy.create.account.page.path"]);if(SWY.ENFORCEMENTUTILS.isPageMatched({path:h,configPagePath:c})&&
327(0<b||SWY.ENFORCEMENT.isErrorPage(h)))SWY.CONFIGSERVICE.setCookie("ECommRedirectURL","",-1);else{h=this.getCookie("ECommRedirectURL");h=decodeURIComponent(h);if(!h||AB.userInfo&&SWY.ENFORCEMENTUTILS.isValidUserType("A")&&AB.userInfo.houseId)console.debug("SWY.ENFORCEMENT.handleSingleSignOn Enforce single sign on since SSO session is not active and is not checked yet."),h=SWY.QUERYSTRING.getURIWithMarketingParams();else{console.debug("SWY.ENFORCEMENT.handleSingleSignOn Enforce single sign on when SSO is already checked.");
328if(this.doRedirection(h))return SWY.CONFIGSERVICE.setCookie("ECommRedirectURL","",-1),f=!0,this.sendRedirect(h,!1,null),f;if(SWY.ENFORCEMENTUTILS.isPageMatched({path:h,configPagePath:SWY.configService.wwwSignInPagePath}))return SWY.CONFIGSERVICE.setCookie("ECommRedirectURL","",-1),f}1>b&&(this.useDeepLinkGoto&&(h=""),f=!0,this.singleSignOnUser(h));return f}};this.getCookie=function(f){if("SAFEWAY_KMSI"===f&&!AB.COMMON.isB2BSite()){cvalue=SWY.CONFIGSERVICE.getKmsiValue("SAFEWAY_KMSI");if(null===cvalue||
329""===cvalue)cvalue=SWY.CONFIGSERVICE.getKmsiValue("ACI_S_SAFEWAY_KMSI");return cvalue}if("B_SAFEWAY_KMSI"===f&&AB.COMMON.isB2BSite())return cvalue=SWY.CONFIGSERVICE.getKmsiValue("B_SAFEWAY_KMSI"),null===cvalue&&(cvalue=SWY.CONFIGSERVICE.getKmsiValue("ACI_S_B_SAFEWAY_KMSI")),cvalue;f=SWY.CONFIGSERVICE.getResolvedCookieName(f);var h=f+"\x3d",c=document.cookie.split(";");console.debug("SWY.ENFORCEMENT.getCookie ENTRY: cname\x3d"+f);for(f=0;f<c.length;f++){for(var g=c[f];" "==g.charAt(0);)g=g.substring(1);
330if(0==g.indexOf(h))return console.debug("SWY.ENFORCEMENT.getCookie EXIT"),g.substring(h.length,g.length)}console.debug("SWY.ENFORCEMENT.getCookie EXIT");return""};this.doRedirection=function(f){var h=!1;f&&""!=f&&SWY.ENFORCEMENTUTILS.isPageMatched({configPagePath:SWY.configService.wwwSignInPagePath})&&AB.COMMON.getURLParameterByName("SAMLRequest")&&(h=!0);return h};this.handlePageEnforcement=function(){if(this.isUserAllowed())!AB.COMMON.checkForEditOrderMode()||"R"!==AB.userInfo.userType.toUpperCase()&&
331"C"!==AB.userInfo.userType.toUpperCase()?k?(AB.COMMON.authorize()?SWY.ENFORCEMENT.deepLinkSetGSessionCookie():AB.userInfo.establishUnifiedGuestSession(),AB.COMMON.getURLParameterByName("state")||window.location.reload()):AB.COMMON.isAnonymous()?(AB.userInfo.establishUnifiedGuestSession(),AB.userInfo.resolveEcomStore=!1,0==SWY.CONFIGSERVICE.isCookieEnabled()?AB.userInfo.establishUnifiedGuestSession():(f=AB.COMMON.getURLParameterByName("goto",!0),null!=f&&"/set-store.html"!=window.location.pathname&&
332this.sendRedirect(f,!1,!1))):AB.userInfo.j4u.storeId||(AB.userInfo.j4u.isStoreIdEmpty=!0,AB.userInfo.establishUnifiedGuestSession()):(h=AB.COMMON.getCookie("OrderStoreId"),f={info:{COMMON:{},J4U:{},SHOP:{}}},f.info.J4U.storeId=h,f.info.SHOP.storeId=h,f.info.COMMON.preference="dug",AB.userInfo.preferenceMode="dug",AB.COMMON.isLSCompatible()&&(h=JSON.parse(localStorage.getItem("eRumsDeliveryType")))&&h.deliveryType&&(f.info.COMMON.preference="delivery",AB.userInfo.preferenceMode="delivery"),AB.COMMON.updateUserSession(f,
333!1));else{var f=SWY.RESTRICTEDRESOURCE.getRedirectPath(SWY.USERTYPESTATE.getUserType());var h=AB.COMMON.getURLParameterByName("goto",!0);null!=h?(h=AB.COMMON.updateGotoUrl(h),SWY.CONFIGSERVICE.setCookie("ECommRedirectURL","",-1),this.sendRedirect(h,!1,null)):(f&&!SWY.ENFORCEMENTUTILS.isHtmlPage(f)&&(f+=".html"),f&&-1<f.indexOf("re-sign-in")?SWY.QUERYSTRING.queryParams["goto"]=window.location.href:f&&-1<f.indexOf("sign-in")?(h=encodeURIComponent(window.location.href),SWY.CONFIGSERVICE.setCookie("ECommRedirectURL",
334h,0)):f?(h=window.location.search,0<h.length&&(f+=h)):"sincerely-food"==AB.userInfo.banner&&(f="/bin/safeway/sso","G"!=AB.userInfo.userType&&"#error\x3dlogin_required"==window.location.hash&&(f="/bin/safeway/unified/logout",AB.COMMON.updateRedirectURLCookie(window.location.origin+"/bin/safeway/sso?goto\x3d"+AB.COMMON.getCookie("ECommRedirectURL")))),this.sendRedirect(f,!1,null))}this.checkAndRedirectShopStoreInUrl();AB.COMMON.setCookie("ECommSignInCount",0,0);SWY.OKTA.reviewOKTASessionToRefresh();
335AB.userInfo.earlyInitialize=this.checkEarlyInitialize()};this.setCookie=function(f,h,c){f=SWY.CONFIGSERVICE.getResolvedCookieName(f);"SAFEWAY_KMSI"!==f||AB.COMMON.isB2BSite()?"B_SAFEWAY_KMSI"===f&&AB.COMMON.isB2BSite()&&(f="ACI_S_B_SAFEWAY_KMSI"):f="ACI_S_SAFEWAY_KMSI";var g=new Date;g.setTime(g.getTime()+864E5*c);
3350<c?(c="expires\x3d"+g.toUTCString(),document.cookie=f+"\x3d"+h+";"+c+";path\x3d/"):document.cookie=f+"\x3d"+h+";path\x3d/"};this.isUserAllowed=function(){this.checkSessionInfo();return SWY.USERTYPESTATE.isAuthorized()};
336this.checkSessionInfo=function(){SWY.USERTYPESTATE.setAuthorized(!0);SWY.ENFORCEMENTUTILS.isAuthenticated()?SWY.ENFORCEMENTUTILS.isAuthenticatedAsGuest()?(SWY.USERTYPESTATE.setUserType("G"),SWY.RESTRICTEDRESOURCE.isAllowed("G")||SWY.USERTYPESTATE.setAuthorized(!1)):SWY.ENFORCEMENTUTILS.isAuthenticatedAsRegistered()&&(SWY.ENFORCEMENTUTILS.isValidUserType("C")&&!this.isTokenActive()?(SWY.USERTYPESTATE.setUserType("R"),SWY.RESTRICTEDRESOURCE.isAllowed("R")||SWY.USERTYPESTATE.setAuthorized(!1)):(SWY.USERTYPESTATE.setUserType(AB.userInfo.userType),
337SWY.RESTRICTEDRESOURCE.isAllowed(AB.userInfo.userType)?"/account/setpassword.html"==window.location.pathname&&(AB.COMMON.getCookie("OTP-SET-PASSWORD")?SWY.CONFIGSERVICE.setCookie("OTP-SET-PASSWORD","",-1):SWY.USERTYPESTATE.setAuthorized(!1)):SWY.USERTYPESTATE.setAuthorized(!1))):SWY.ENFORCEMENTUTILS.isAnonymousUser()?(SWY.USERTYPESTATE.setUserType("A"),SWY.RESTRICTEDRESOURCE.isAllowed("A")||SWY.USERTYPESTATE.setAuthorized(!1)):(SWY.USERTYPESTATE.setUserType(""),SWY.USERTYPESTATE.setAuthorized(!1))};
338this.singleSignOnUser=function(f){console.debug("SWY.ENFORCEMENT.singleSignOnUser ENTRY");null!=f&&(f=encodeURIComponent(f),SWY.CONFIGSERVICE.setCookie("ECommRedirectURL",f,0));AB.COMMON.setCookie("ECommSignInCount",1,0);var h=SWY.ssoPath+"?banner\x3d"+SWY.CONFIGSERVICE.resolvedBanner+"\x26idp\x3dfalse";if(this.useDeepLinkGoto){var c=encodeURIComponent(this.deepLinkUrl);h+="\x26goto\x3d"+c}this.doReInit()&&f?window.location.href=h+"\x26goto\x3d"+f:window.location.href=h;console.debug("SWY.ENFORCEMENT.singleSignOnUser EXIT")};
339this.sendRedirect=function(f,h,c){var g=null;console.debug("SWY.ENFORCEMENT.sendRedirect ENTRY: urlPath\x3d"+f+", resolveBanner\x3d"+h);f&&(h?(h=SWY.CONFIGSERVICE.getResolvedBanner(),console.debug("SWY.ENFORCEMENT.sendRedirect banner\x3d"+h),g=SWY.CONFIGSERVICE.generateRedirectUrl(f,h)):g=f,c&&(g+=c),SWY.ENFORCEMENTUTILS.isTrustedDomain(g)?window.location.href=g:window.location.href="/account/auth/service/sign-in.html"===window.location.pathname?window.location.href:SWY.CONFIGSERVICE.domainConfig.defaultRedirectUrl);
340console.debug("SWY.ENFORCEMENT.sendRedirect EXIT: redirectUrl\x3d"+g)};this.authenticateAsGuest=function(){var f=encodeURIComponent(window.location.href);var h=AB.COMMON.getURLParameterByName("zipcode");AB.COMMON.setCookie("ECommRedirectURL",f,0);f=SWY.ENFORCEMENTUTILS.generateAuthenticateURL(h);this.sendRedirect(f,!1)};this.checkAndRedirectShopStoreInUrl=function(){if(SWY.CONFIGSERVICE.featureToggleConfig.enableStoreIdSelector){var f=window.location.pathname,h=window.location.href;if("undefined"!=
341typeof f&&-1==f.indexOf(".(")&&"true"==SWY.CONFIGSERVICE.isEnableStoreIdSelectorOnPage){var c=f.indexOf("."),g=f.indexOf(".html");-1!=c&&-1!=g&&AB.userInfo.branchId&&(g>c?(c=String(f).substring(c+1,g),c!=AB.userInfo.branchId&&(-1<f.toLowerCase().indexOf("product-details")||-1<f.toLowerCase().indexOf("reward-details")?redirectUrl=h=h.replace(c,c+"."+AB.userInfo.branchId):-1<f.toLowerCase().indexOf("brand-index")?(f=c.indexOf("."),c=c.substring(f+1),c!=AB.userInfo.branchId&&(f=SWY.ENFORCEMENT.getReferrerFromBrowser(),
3420<f.length&&(h=0<window.location.search.length?h+"\x26referrer\x3d"+f:h+"?referrer\x3d"+f),h=h.replace(c,AB.userInfo.branchId),window.location.href=h)):(f=SWY.ENFORCEMENT.getReferrerFromBrowser(),0<f.length&&(h=0<window.location.search.length?h+"\x26referrer\x3d"+f:h+"?referrer\x3d"+f),h=h.replace(c,AB.userInfo.branchId),window.location.href=h))):(c=SWY.ENFORCEMENT.getReferrerFromBrowser(),0<c.length&&(h=0<window.location.search.length?h+"\x26referrer\x3d"+c:h+"?referrer\x3d"+c),h=h.substring(0,h.indexOf("html"))+
343AB.userInfo.branchId+".html",window.location.href=h))}}else if(h=window.location.pathname,c=window.location.href,"undefined"!=typeof h&&-1==h.indexOf(".(")&&(-1!=h.toLowerCase().indexOf("aisles")||-1!=h.toLowerCase().indexOf("/shop/brands")||AB.COMMON.isB2BSite()&&-1!=h.toLowerCase().indexOf("/shop/brand-index"))){var m=h.indexOf("."),n=h.indexOf(".html");f=h.indexOf("/mf/");c.indexOf("?");"\x26"===c.charAt(c.length-1)||c.charAt(c.length-1);if(-1!=m&&-1!=n&&AB.userInfo.branchId){if(this.aislesCanPassLoc(h)||
344this.brandsCanPassLoc(h)){var q=new URL(c),p=new URLSearchParams(q.search);p.get("loc")!==AB.userInfo.branchId&&(p.set("loc",AB.userInfo.branchId),q.search=p,c=q.toString(),window.location.href=c)}if(n>m)m=String(h).substring(m+1,n),n=m.indexOf("."),-1<n&&(m=m.substring(n+1)),m!=AB.userInfo.branchId&&(c=c.replace(m,AB.userInfo.branchId),window.location.href=c);else if(-1!=h.toLowerCase().indexOf("aisles")&&!this.aislesCanPassLoc(h)||(-1!=h.toLowerCase().indexOf("/shop/brands")||AB.COMMON.isB2BSite()&&
345-1!=h.toLowerCase().indexOf("/shop/brand-index"))&&!this.brandsCanPassLoc(h))c=c.substring(0,c.indexOf("html"))+AB.userInfo.branchId+".html",window.location.href=c}var r;-1!=f&&(null==(g=AB)?0:null==(r=g.userInfo)?0:r.branchId)&&this.aislesCanPassLoc(h)&&(h=new URL(c),c=new URLSearchParams(h.search),c.get("loc")!==AB.userInfo.branchId&&(c.set("loc",AB.userInfo.branchId),h.search=c,c=h.toString(),window.location.href=c))}};this.aislesCanPassLoc=function(f){return-1==f.toLowerCase().indexOf("vineandcellar")&&
346-1==f.toLowerCase().indexOf("marketplace")&&-1!=f.toLowerCase().indexOf("aisles")};this.brandsCanPassLoc=function(f){return-1!=f.toLowerCase().indexOf("/shop/brands")||AB.COMMON.isB2BSite()&&-1!=f.toLowerCase().indexOf("shop/brand-index")};this.getReferrerFromBrowser=function(){var f="",h=document.referrer?document.referrer:"",c=("prod"!=SWY.CONFIGSERVICE.env?"www-"+SWY.CONFIGSERVICE.env+".":"www.")+SWY.CONFIGSERVICE.getResolvedBanner();0==h.length?f="direct":h.includes(c)||(f=h);return f};this.isTokenActive=
347function(){var f=!1;if(AB.userInfo&&AB.userInfo.expireTime){var h=(new Date).getTime();var c=parseInt(AB.userInfo.expireTime);c>h&&(f=!0)}return f};this.checkCurrentState=function(){return!!SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO")};this.setPreviousLoginCookie=function(){SWY.CONFIGSERVICE.setCookie("abs_previouslogin",encodeURI(SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO")),0)};this.isUserLowerScopeWithCredentialCookie=function(){var f=!1;if(SWY.CONFIGSERVICE.getCookie("USED_CREDENTIALS")){var h=
348SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION");h?(h=decodeURI(h),h=JSON.parse(h),(h=h.accessToken)&&0<h.length&&(f=SWY.ENFORCEMENTUTILS.isElevatedScope(h))):f=!0}return f};this.checkAuthorizedCookie=function(){var f=SWY.CONFIGSERVICE.getCookie("SWY_SHARED_SESSION_INFO"),h=!1,c={};try{f&&(c=JSON.parse(f),h="object"==typeof c?!0:!1)}catch(g){h=!1}return h};this.checkEarlyInitialize=function(){var f=!0;AB.COMMON.authorize()&&(f=SWY.ENFORCEMENT.isTokenActive());return f};this.isErrorPage=function(f){var h=
349!1;console.debug("SWY.ENFORCEMENT.isErrorPage ENTRY: uri\x3d"+f);if("string"===typeof f){var c=f.match(/sign-in.error-/);null==c&&(c=f.match(/create-account.error-/));console.debug("SWY.ENFORCEMENT.isErrorPage result\x3d"+c);null!=c&&(h=!0)}console.debug("SWY.ENFORCEMENT.isErrorPage EXIT: isError\x3d"+h);return h};this.useCallBack=function(f,h){if(f)f(h);else return h};this.generateSessionUpdateObject=function(f,h,c,g,m,n,q,p,r){p={info:{COMMON:{},J4U:{},SHOP:{}}};var t=SWY.CONFIGSERVICE.featureToggleConfig.enableCookieRestructure?
350!0:!1;"INSTORE"===f.toUpperCase()?(p.info.COMMON.preference="J4U",p.info.COMMON.Selection=m,p.info.COMMON.zipcode=c,p.info.COMMON.wfcStoreId=r,p.info.J4U.storeId=h,p.info.J4U.zipcode=c,t&&(p.info.COMMON.storeId=h,p.info.COMMON.zipcode=c),"R"!==g.toUpperCase()&&"C"!==g.toUpperCase()||AB.userInfo.banner.toUpperCase()===n.toUpperCase()?(p.info.SHOP.storeId=h,p.info.SHOP.zipcode=c,t&&(p.info.COMMON.storeId=h,p.info.COMMON.zipcode=c)):(r={},r.storeId=h,r.zipcode=c,r.preference=p.info.COMMON.preference,
351r.banner=n,p.info.offbanner=r)):"DELIVERY"===f.toUpperCase()||"PICKUP"===f.toUpperCase()?(p.info.COMMON.preference="DELIVERY"===f.toUpperCase()?"Delivery":"Dug",p.info.COMMON.Selection=m,p.info.COMMON.zipcode=c,p.info.COMMON.wfcStoreId=r,p.info.SHOP.storeId=h,p.info.SHOP.zipcode=c,t&&(p.info.COMMON.storeId=h,p.info.COMMON.zipcode=c),p.info.J4U.storeId=h,p.info.J4U.zipcode=c,t&&(p.info.COMMON.storeId=h,p.info.COMMON.zipcode=c),"R"!==g.toUpperCase()&&"C"!==g.toUpperCase()||AB.userInfo.banner.toUpperCase()===
352n.toUpperCase()||(f={},f.storeId=h,f.zipcode=c,f.preference=p.info.COMMON.preference,f.banner=n,f.wfcStoreId=r,p.info.offbanner=f)):(console.debug("GenerateSessionUpdateObject : not val
352id parameters"),p={});this.useCallBack(q,p)};this.deepLinkSetGSessionCookie=function(){var f={info:{COMMON:{},J4U:{},SHOP:{}}};if(SWY.deepLinkData.info&&prevLoginCookie){f.info.J4U.zipcode=SWY.deepLinkData.info.J4U.zipcode;f.info.J4U.storeId=SWY.deepLinkData.info.J4U.storeId;f.info.SHOP.zipcode=SWY.deepLinkData.info.SHOP.zipcode;
353f.info.SHOP.storeId=SWY.deepLinkData.info.SHOP.storeId;f.info.COMMON.zipcode=SWY.deepLinkData.info.SHOP.zipcode;f.info.COMMON.Selection=SWY.deepLinkData.info.COMMON.Selection;f.info.COMMON.preference=SWY.deepLinkData.info.COMMON.preference;var h,c,g,m;if(null==(h=SWY)?0:null==(c=h.deepLinkData)?0:null==(g=c.info)?0:null==(m=g.COMMON)?0:m.resolvedBy)f.info.COMMON.preference=SWY.deepLinkData.info.COMMON.resolvedBy}SWY.CONFIGSERVICE.setCookie("abs_gsession",JSON.stringify(f))};this.storeFlagsInit=function(){StoreFlagService.init()}}).call(SWY.ENFORCEMENT);
354(function(){var b="";this.parseSessionCookie=function(a){console.debug("SWY.ENFORCEMENTUTILS.parseSessionCookie ENTRY");var d=SWY.CONFIGSERVICE.getCookie(a);console.debug("SWY.ENFORCEMENTUTILS.parseSessionCookie"+a+"\x3d"+d);d="string"===typeof d&&0<d.length?JSON.parse(d):JSON.parse("{}");console.debug("SWY.ENFORCEMENTUTILS.parseSessionCookie EXIT: cvalue\x3d"+d);return d};this.isHtmlPage=function(a){var d=!1;"string"===typeof a&&""!=a&&(a=$("\x3ca\x3e\x3c/a\x3e").attr("href",a),a=$(a)[0].pathname,
355a=a.substr(a.lastIndexOf(".")+1),/(html|html)$/ig.test(a)&&(d=!0));return d};this.isEditorPage=function(a){"string"===typeof a&&a.match(/^\/libs/)};this.isContentPage=function(a){var d=!1;"string"===typeof a&&(a=a.match(/jcr:content/),null!=a&&(d=!0));return d};this.isPageMatched=function(a){var d=!1;var e=void 0!=a.path?a.path:location.pathname;a=a.configPagePath;if(0<e.length){var k=e.indexOf("?");0<k&&(e=e.substr(0,k));"/"!==e&&(e=e.split("/").pop());k=e.indexOf(".");0<k&&(e=e.substr(0,k));a&&
356a.substr(a.length-e.length)==e&&(d=!0)}return d};this.generateAuthenticateURL=function(a){console.debug("SWY.ENFORCEMENTUTILS.generateAuthenticateURL ENTRY: zipcode\x3d"+a);var d=SWY.authenticateGuestPath;d=d+"?zipcode\x3d"+a;console.debug("SWY.ENFORCEMENTUTILS.generateAuthenticateURL EXIT: url\x3d"+d);return d};this.isPageAllowed=function(a){console.debug("SWY.ENFORCEMENTUTILS.isPageAllowed ENTRY");a=SWY.CONFIGSERVICE.isPageInTheList(a);console.debug("SWY.ENFORCEMENTUTILS.isPageAllowed EXIT: isAllowed\x3d"+
357a);return a};this.isAuthenticated=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isAuthenticated ENTRY");if(this.isAuthenticatedAsGuest()||this.isAuthenticatedAsRegistered())console.debug("SWY.ENFORCEMENTUTILS.isAuthenticated User is authenticated."),a=!0;console.debug("SWY.ENFORCEMENTUTILS.isAuthenticated EXIT: isAuthenticated\x3d"+a);return a};this.isPreviouslyLoggedIn=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedIn ENTRY");if(this.isPreviouslyLoggedInAsGuest()||
358this.isPreviouslyLoggedInAsRegistered())a=!0;console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedIn EXIT: isPreviouslyLoggedIn\x3d"+a);return a};this.isPreviouslyLoggedInWWW=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInWWW ENTRY");SWY.previousLogin.info&&"object"==typeof SWY.previousLogin.info.J4U&&(a=!0);console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInWWW EXIT: isPreviouslyLoggedIn\x3d"+a);return a};this.isAuthenticatedAsGuest=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsGuest ENTRY");
359AB.userInfo&&this.isValidUserType("G")&&null!=AB.userInfo.zipcode&&""!=AB.userInfo.zipcode&&(console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsGuest User is guest user and has zipcode."),a=!0);console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsGuest EXIT: isAuthenticated\x3d"+a);return a};this.isPreviouslyLoggedInAsGuest=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInAsGuest ENTRY");"undefined"!=typeof SWY.previousLogin&&0<Object.keys(SWY.previousLogin).length&&"G"==
360SWY.previousLogin.userType&&(a=!0);console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInAsGuest EXIT: isPreviouslyLoggedIn\x3d"+a);return a};this.isAuthenticatedAsRegistered=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsRegistered ENTRY");AB.userInfo&&(this.isValidUserType("R")||this.isValidUserType("C"))&&(console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsRegistered User is authenticated as registered and has token."),a=!0);console.debug("SWY.ENFORCEMENTUTILS.isAuthenticatedAsRegistered EXIT: isAuthenticated\x3d"+
361a);return a};this.isPreviouslyLoggedInAsRegistered=function(){var a=!1;console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInAsRegistered ENTRY");"undefined"!=typeof SWY.previousLogin&&0<Object.keys(SWY.previousLogin).length&&("R"===SWY.previousLogin.userType||"C"===SWY.previousLogin.userType)&&(a=!0);console.debug("SWY.ENFORCEMENTUTILS.isPreviouslyLoggedInAsRegistered EXIT: isPreviouslyLoggedIn\x3d"+a);return a};this.isAnonymousUser=function(){var a=!0;console.debug("SWY.ENFORCEMENTUTILS.isAnonymousUser ENTRY");
362if(this.isAuthenticated()||this.isPreviouslyLoggedIn())console.debug("SWY.ENFORCEMENTUTILS.isAnonymousUser User is NOT anonymous."),a=!1;console.debug("SWY.ENFORCEMENTUTILS.isAnonymousUser EXIT: isAnonymous\x3d"+a);return a};this.decodeJWT=function(a){a=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(window.atob(a))};
362this.getScopesFromToken=function(a){return this.decodeJWT(a).scp};this.isElevatedScope=function(a){if((a=this.getScopesFromToken(a))&&0<a.length)for(var d=0;d<a.length;d++)if("used_credentials"===
363a[d])return!0;return!1};this.updateReInitSite=function(a){var d=!1;var e=SWY.ENFORCEMENTUTILS.parseReInitCookie();for(var k in e)e[k]==a&&(d=!0);d||(e[e.length]=a);"slot"==a&&localStorage.getItem("abSlot")&&localStorage.removeItem("abSlot");SWY.ENFORCEMENTUTILS.buildReInitCookie(e)};this.removeReInitSite=function(a){var d=SWY.ENFORCEMENTUTILS.parseReInitCookie();for(var e in d)d[e].trim()==a&&d.splice(e,1);SWY.ENFORCEMENTUTILS.buildReInitCookie(d)};this.parseReInitCookie=function(){var a,d=[];(a=
364decodeURIComponent(SWY.CONFIGSERVICE.getCookie("ECommReInit")))&&(d=a.split("|"));return d};this.buildReInitCookie=function(a){Array.isArray(a)&&(a=a.join("|"),SWY.CONFIGSERVICE.setDomainCookie("ECommReInit",a,SWY.CONFIGSERVICE.resolvedBanner+".com",0))};this.checkReInitSite=function(a){var d=SWY.CONFIGSERVICE.getCookie("ECommReInit"),e=!1;d&&a&&(arrMessage=d.split("|"),e=-1!=arrMessage.indexOf(a)?!0:!1);return e};this.isTrustedDomain=function(a){var d=!1,e;if(a)if(0==a.indexOf("/"))d=!0;else if(e=
365RegExp("^https?:\\/\\/(.+?\\.)?").test(a))a=a.split("?",2),a=a[0],SWY.ENFORCEMENTUTILS.generateTrustedDomainPattern(),d=(new RegExp(b)).test(a);return d};this.generateTrustedDomainPattern=function(){var a=SWY.CONFIGSERVICE.domainConfig.allTrustedDomains,d="";if(!b&&a){for(i in a)d&&(d+="|"),d+=a[i].replace(".","\\.");b="^https?:\\/\\/(.+?\\.)?";b+="("+d+")"}};this.isValidUserType=function(a){return AB.userInfo.userType===a}}).call(SWY.ENFORCEMENTUTILS);
366(function(){this.init=function(){this.readMetaData()};this.readMetaData=function(){SWY.allowedUserTypes=this.formatAsJson(this.getAllowedUserTypes());SWY.redirections=this.formatAsJson(this.getRedirections());SWY.showZipcodeModal=this.getShowZipcodeModal();SWY.isShopGuestAuthAllowed=this.isShopGuestAuthAllowed();SWY.isEscapeSSOAllowed=this.isEscapeSSOAllowed()};this.getAllowedUserTypes=function(){return $("meta[name\x3dallowedUserTypes]").attr("content")};this.getRedirections=function(){return $("meta[name\x3dredirections]").attr("content")};
367this.getShowZipcodeModal=function(){return"true"==$("meta[name\x3dshowZipcodeModal]").attr("content")};this.isShopGuestAuthAllowed=function(){var b=!1;var a=$("meta[name\x3dallowGuestAuthentication]").attr("content");AB.COMMON.isEmpty(a)||"true"===a&&(b=!0);return b};this.isEscapeSSOAllowed=function(){var b=!1;var a=$("meta[name\x3descapeSSO]").attr("content");AB.COMMON.isEmpty(a)||"true"===a&&(b=!0);return b};this.formatAsJson=function(b){"undefined"!==typeof b&&null!==b?(b=decodeURIComponent(b),
368b=JSON.parse(b)):b=JSON.parse("{}");return b};this.isAllowed=function(b){var a=!1;b&&SWY.allowedUserTypes&&(a=this.userInList(b,SWY.allowedUserTypes));return a};this.userInList=function(b,a){var d=!1;if(b&&a)for(var e in a)b===a[e]&&(d=!0);return d};this.getRedirectPath=function(b){var a=null;b&&SWY.redirections&&(a=this.checkForRedirectPaths(b,SWY.redirections));return a};this.checkForRedirectPaths=function(b,a){var d="",e="",k;if(b&&a){for(k in a){var f=a[k],h=f.userType,c;for(c in h)b===h[c]?d=
369f.redirectPath:"DEFAULT"===h[c]&&(e=f.redirectPath)}""===d&&(d=e)}return d}}).call(SWY.RESTRICTEDRESOURCE);(function(){var b="A",a=!1;this.setUserType=function(d){b=d};this.getUserType=function(){return b};this.setAuthorized=function(d){a=d};this.isAuthorized=function(){return a}}).call(SWY.USERTYPESTATE);
370(function(){this.storeFlagsLoadComplete=new Event("storeFlagsLoadComplete");this.init=function(){AB.userInfo.branchId&&this.getStoreFlags()};this.getStoreFlags=function(){var b=window.location.protocol+"//"+window.location.host+AB.webPreloadPath+"/"+AB.userInfo.branchId;AB.userInfo.zipcode&&(b=b+"?zipcode\x3d"+AB.userInfo.zipcode);$.ajax({url:b,type:"GET",headers:{"ocp-apim-subscription-key":AB.preloadStoreFlagsXapiApimKey},accept:"application/json"}).done(function(a){a=a&&0<Object.keys(a).length?
371{storeId:AB.userInfo.branchId,flags:a}:{};AB.storeFlagsData=a;AB.storeFlagsLoaded=!0;console.warn("\x3d\x3d STORE FLAG RECEIVED");document.dispatchEvent(SWY.STOREFLAGUTIL.storeFlagsLoadComplete)}).fail(function(a,d,e){console.log(a.status);AB.storeFlagsData={};AB.storeFlagsLoaded=!0;console.error("\x3d\x3d STORE FLAG FAILED");document.dispatchEvent(SWY.STOREFLAGUTIL.storeFlagsLoadComplete)})}}).call(SWY.STOREFLAGUTIL);
372(function(){this.init=function(){var b=new URL(window.location.href),a=new URLSearchParams(b.search),d,e,k,f,h,
372c;document.addEventListener("DOMContentLoaded",function(g){function m(){var v=document.querySelector(".search-deals-section_tab");v&&(v.classList.add("d-none"),(v=document.querySelector('.search-recipe-section_tab [role\x3d"tab"]'))&&v.setAttribute("data-index","1"));(v=document.querySelector(".search-tab-deals-grid"))&&v.classList.add("d-none")}function n(){setTimeout(function(){document.querySelector("#search-recipes-grid_0");
373var v=a.get("tab"),w=AB.RECIPESTABS.getTabElements();d=w.recipesGridEl;h=w.dealsGridEl;e=w.searchProdEl;k=w.recipesTabEl;c=w.dealsTabEl;f=w.searchTabEl;if(v&&"recipes"==v){if(AB.RECIPESTABS.updateFocus(d,k,e,f),w.hasDealsTab){var B;null==(B=h)||B.classList.add("d-none");var C;null==(C=c)||C.setAttribute("tabindex","-1");var z;null==(z=c)||z.setAttribute("aria-selected","false");var E,A;null==(E=c)||null==(A=E.parentElement)||A.classList.remove("active")}}else if(v&&"deals"==v&&w.hasDealsTab){AB.RECIPESTABS.updateFocus(h,
374c,e,f);var D;null==(D=d)||D.classList.add("d-none");var F;null==(F=k)||F.setAttribute("tabindex","-1");var G;null==(G=k)||G.setAttribute("aria-selected","false");var H,I;null==(H=k)||null==(I=H.parentElement)||I.classList.remove("active")}else if(v&&"products"==v||"/shop/search-results.html"==b.pathname)if(AB.RECIPESTABS.updateFocus(e,f,d,k),w.hasDealsTab){var J;null==(J=h)||J.classList.add("d-none");var K;null==(K=c)||K.setAttribute("tabindex","-1");var L;null==(L=c)||L.setAttribute("aria-selected",
375"false");var M,N;null==(M=c)||null==(N=M.parentElement)||N.classList.remove("active")}},0)}g=document.getElementById("search-tab-container");var q;null==g||null==(q=g.classList)||q.remove("d-none");var p,r;null==g||null==(p=g.closest(".column-control.aem-GridColumn"))||null==(r=p.classList)||r.remove("d-none");var t,u,x;q=null==(t=window.SWY)?void 0:null==(u=t.CONFIGSERVICE)?void 0:null==(x=u.featureToggleConfig)?void 0:x.globalDealSearchIntent;var y=document.querySelectorAll('#search-tab-container [role\x3d"tab"]');
376y&&0<y.length&&(y.forEach(function(v){v.addEventListener("mousedown",function(w){y.forEach(function(B){B.setAttribute("aria-selected",B===w.currentTarget?"true":"false")})});v.addEventListener("click",function(w){AB.RECIPESTABS.triggerTabActivation(w,w.currentTarget)})}),y.forEach(function(v){v.addEventListener("keydown",function(w){if("ArrowLeft"==w.key||"ArrowRight"==w.key||"Home"==w.key||"End"==w.key)w.preventDefault(),AB.RECIPESTABS.switchTabs(w,w.currentTarget,y),window.setTimeout(function(){document.body.classList.add("focus-outline")},
3770)})}));q?(t=window.AB&&window.AB.experimentation)&&"function"===typeof t.getExperimentByID?t.getExperimentByID("ACIP553196",!0).then(function(v){var w,B;if((v=null!=(B=null==v?void 0:null==(w=v.features)?void 0:w.find(function(C){return"ACIP553196"===(null==C?void 0:C.featureId)}))?B:null)&&v.eligible)switch(v.group){case "B":break;default:m()}else m();n()}).catch(function(){m();n()}):(m(),n()):(m(),n())})};this.getTabElements=function(){var b=document.querySelector("#search-tab-container"),a=null==
378b?void 0:b.querySelector(".search-tab-deals-grid"),d=null==b?void 0:b.querySelector(".search-deals-section_tab");d=!!a&&!(null==d?0:d.classList.contains("d-none"));var e;a={recipesGridEl:null==b?void 0:b.querySelector(".search-tab-recipes-grid"),dealsGridEl:a,searchProdEl:null==(e=document.getElementById("search-grid_0"))?void 0:e.closest(".full-bleed-container"),recipesTabEl:null==b?void 0:b.querySelector('.search-recipe-section_tab[role\x3d"tab"]'),dealsTabEl:d?null==b?void 0:b.querySelector('.search-deals-section_tab[role\x3d"tab"]'):
379null,searchTabEl:null==b?void 0:b.querySelector('.search-grid-section_tab[role\x3d"tab"]'),hasDealsTab:d};AB.RECIPESTABS.setTabPanelAttributes(a.searchTabEl,a.searchProdEl,"search-grid-section");AB.RECIPESTABS.setTabPanelAttributes(a.dealsTabEl,a.dealsGridEl,"search-deals-section");AB.RECIPESTABS.setTabPanelAttributes(a.recipesTabEl,a.recipesGridEl,"search-recipe-section");return a};this.setTabPanelAttributes=function(b,a,d){if(b&&a){var e=d+"-tab";b.setAttribute("id",e);b.setAttribute("aria-controls",
380d);a.setAttribute("id",d);a.setAttribute("role","tabpanel");a.setAttribute("aria-labelledby",e)}};this.switchTabs=function(b,a,d){d=Array.from(d).filter(function(f){var h;return!(null==(h=f.closest("li"))?0:h.classList.contains("d-none"))});a=d.indexOf(a);var e=d.length,k=a;switch(b.key){case "ArrowLeft":k=0>a-1?e-1:a-1;break;case "ArrowRight":k=a+1>=e?0:a+1;break;case "Home":k=0;break;case "End":k=e-1}AB.RECIPESTABS.triggerTabActivation(b,d[k])};this.triggerTabActivation=function(b,a){b.preventDefault();
381var d;null==a||null==(d=a.parentElement)||d.classList.remove("active");b=AB.RECIPESTABS.getTabElements();
381if(a.classList.contains("search-recipe-section_tab")){AB.RECIPESTABS.updateFocus(b.recipesGridEl,b.recipesTabEl,b.searchProdEl,b.searchTabEl);if(b.hasDealsTab){var e;null==(e=b.dealsGridEl)||e.classList.add("d-none");var k;null==(k=b.dealsTabEl)||k.setAttribute("tabindex","-1");var f;null==(f=b.dealsTabEl)||f.setAttribute("aria-selected","false");var h,c;null==(h=b.dealsTabEl)||null==(c=h.parentElement)||
382c.classList.remove("active")}AB.RECIPESTABS.performUrlChanges("recipes")}else if(b.hasDealsTab&&a.classList.contains("search-deals-section_tab")){AB.RECIPESTABS.updateFocus(b.dealsGridEl,b.dealsTabEl,b.searchProdEl,b.searchTabEl);var g;null==(g=b.recipesGridEl)||g.classList.add("d-none");var m;null==(m=b.recipesTabEl)||m.setAttribute("tabindex","-1");var n;null==(n=b.recipesTabEl)||n.setAttribute("aria-selected","false");var q,p;null==(q=b.recipesTabEl)||null==(p=q.parentElement)||p.classList.remove("active");
383AB.RECIPESTABS.performUrlChanges("deals")}else if(a.classList.contains("search-grid-section_tab")){AB.RECIPESTABS.updateFocus(b.searchProdEl,b.searchTabEl,b.recipesGridEl,b.recipesTabEl);if(b.hasDealsTab){var r;null==(r=b.dealsGridEl)||r.classList.add("d-none");var t;null==(t=b.dealsTabEl)||t.setAttribute("tabindex","-1");var u;null==(u=b.dealsTabEl)||u.setAttribute("aria-selected","false");var x,y;null==(x=b.dealsTabEl)||null==(y=x.parentElement)||y.classList.remove("active")}AB.RECIPESTABS.performUrlChanges("products")}};
384this.updateFocus=function(b,a,d,e){null==b||b.classList.remove("d-none");null==d||d.classList.add("d-none");var k;null==a||null==(k=a.parentElement)||k.classList.add("active");var f;null==e||null==(f=e.parentElement)||f.classList.remove("active");null==a||a.setAttribute("tabindex","0");null==a||a.setAttribute("aria-selected","true");null==a||a.focus();null==e||e.setAttribute("tabindex","-1");null==e||e.setAttribute("aria-selected","false")};this.performUrlChanges=function(b){var a=new URL(window.location.href),
385d=new URLSearchParams(a.search);a.search=d.toString();d.has("tab")&&d.get("tab")!=b?(d.set("tab",b),a.search=d.toString()):d.has("tab")||(d.append("tab",b),a.search=d.toString());a=window.location.pathname+""+a.search;d=new CustomEvent("onTabChange",{detail:{tab:b}});window.dispatchEvent(d);window.history.pushState({tab:b},"",a)};window.addEventListener("popstate",function(b){var a=new URL(window.location.href);b=b.state;var d=AB.RECIPESTABS.getTabElements();if(b&&"recipes"==b.tab){AB.RECIPESTABS.updateFocus(d.recipesGridEl,
386d.recipesTabEl,d.searchProdEl,d.searchTabEl);if(d.hasDealsTab){var e;null==(e=d.dealsGridEl)||e.classList.add("d-none");var k;null==(k=d.dealsTabEl)||k.setAttribute("tabindex","-1");var f;null==(f=d.dealsTabEl)||f.setAttribute("aria-selected","false");var h,c;null==(h=d.dealsTabEl)||null==(c=h.parentElement)||c.classList.remove("active")}AB.RECIPESTABS.performUrlChanges("recipes")}else if(b&&"deals"==b.tab&&d.hasDealsTab){AB.RECIPESTABS.updateFocus(d.dealsGridEl,d.dealsTabEl,d.searchProdEl,d.searchTabEl);
387var g;null==(g=d.recipesGridEl)||g.classList.add("d-none");var m;null==(m=d.recipesTabEl)||m.setAttribute("tabindex","-1");var n;null==(n=d.recipesTabEl)||n.setAttribute("aria-selected","false");var q,p;null==(q=d.recipesTabEl)||null==(p=q.parentElement)||p.classList.remove("active");AB.RECIPESTABS.performUrlChanges("deals")}else if(b&&"products"==b.tab||"/shop/search-results.html"==a.pathname){AB.RECIPESTABS.updateFocus(d.searchProdEl,d.searchTabEl,d.recipesGridEl,d.recipesTabEl);if(d.hasDealsTab){var r;
388null==(r=d.dealsGridEl)||r.classList.add("d-none");var t;null==(t=d.dealsTabEl)||t.setAttribute("tabindex","-1");var u;null==(u=d.dealsTabEl)||u.setAttribute("aria-selected","false");var x,y;null==(x=d.dealsTabEl)||null==(y=x.parentElement)||y.classList.remove("active")}AB.RECIPESTABS.performUrlChanges("products")}},!1);this.init()}).call(AB.RECIPESTABS);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.