{"version":3,"sources":["ItemTools.js.src.js"],"names":["define","$","Roc","FavoritesManager","getGroupId","val","updatestarIcon","productId","selected","$star","next","addClass","removeClass","productSelectionsUpdate","product","id","isProductSavedToFavorites","done","resp","fail","favoritesListAdded","data","Result","each","this","prepend","name","itemFavorited","UI","unblock","info","groupId","displayErrorPopup","redirectToLoginToAddFavoriteItemEvt","document","on","e","$selections","length","preventDefault","urlParam","href","attr","startIndex","indexOf","newUrl","substring","location","addItemToFavoritesEvt","closest","listId","addItem","block","createFavoritesListAndAddItemEvt","addListAndMoveItem","bindEvents","EventManager","bind","Events","favorites","ADD_LIST","ADD_ITEM","products","SELECTIONS_UPDATE","init","ItemToolsHandler","target","parents","off","toolTimer","currentItem","currentTarget","find","toggleClass","type","window","clearTimeout","setTimeout","ItemTools","Logger","debug"],"mappings":"AAWAA,QACI,SACA,aACA,sCACD,SAAUC,EAAGC,EAAKC,GACjB,YAEA,SAASC,KACL,MAAOH,GAAE,eAAeI,MAG5B,QAASC,GAAeC,EAAWC,GAC/B,GAAIC,GAAQR,EAAE,wCAA0CM,EAAY,MAC/DG,KAAK,kBAENF,GACAC,EAAME,SAAS,iBAEfF,EAAMG,YAAY,iBAI1B,QAASC,GAAwBC,GAC7B,GAAIP,GAAYH,KAAgBU,EAAQC,EACxCZ,GACKa,0BAA0BF,EAAQC,IAClCE,KAAK,SAASC,GACXZ,EAAeC,EAAWW,KAC3BC,KAAK,WACJb,EAAeC,GAAW,KAItC,QAASa,GAAmBC,GACpBA,EAAKC,UAAW,GAAQD,EAAKN,IAC7Bd,EAAE,wBAAwBsB,KAAK,WAC3BtB,EAAEuB,MAAMC,QAAQ,wDAA0DJ,EAAKN,GAAK,KAAOM,EAAKK,KAAO,oBAKnH,QAASC,GAAcN,GAEnB,GADAnB,EAAI0B,GAAGC,UACHR,EAAKC,UAAW,EAAM,CACtBpB,EAAI0B,GAAGE,KAAK,oCAEZ,IAAIvB,GAAYc,EAAKU,SAAWV,EAAKd,SACrCD,GAAeC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