(function(n){var t={storeAvailabilityTypeList:[{name:"productViewChooseAStore",value:"Fiche Produit : Choix d'un magasin"},{name:"productViewGeolocalizeMeLink",value:"Fiche Produit : Lien Geo-localisez-moi"},{name:"productViewSearchAvailabilityStore",value:"Fiche Produit : Recherche dispo magasin"},{name:"productViewChooseStoreLink",value:"Fiche Produit : Lien Choisir mon magasin"},{name:"headerChooseAStore",value:"Header : Lien Choix d'un magasin"},{name:"headerGeolocalizeMeLink",value:"Header : Lien Geo-localisez-moi"},{name:"headerChooseStoreLink",value:"Header : Lien Choisir mon magasin"},],getStoreAvailabilityType:function(n){for(var i=null,t=0;t<this.storeAvailabilityTypeList.length;t++)if(this.storeAvailabilityTypeList[t].name===n){i=this.storeAvailabilityTypeList[t];break}return i},getDefaultProductDataObject:function(){return{product_name:null,product_class_model:null,product_codecolor:null,product_url_page:null,product_url_picture:null,product_discount:null,product_instock:null,product_is_bundle:null,product_rating:null,product_rating_number:null,product_trademark:null,product_quantity:null,product_reference:null,product_color_label:null,product_size_label_label:null,product_breadcrumb_label:null,product_breadcrumb_id:null,product_originalprice_ati:null,product_currentprice_ati:null,product_season:null,product_document:null}},getDefaultListProductDataObject:function(){return{list_product_name:null,list_product_class_model:null,list_product_codecolor:null,list_product_url_page:null,list_product_url_picture:null,list_product_discount:null,list_product_instock:null,list_product_is_bundle:null,list_product_rating:null,list_product_rating_number:null,list_product_trademark:null,list_product_quantity:null,list_product_reference:null,list_product_color_label:null,list_product_size_label_label:null,list_product_breadcrumb_label:null,list_product_breadcrumb_id:null,list_product_originalprice_ati:null,list_product_currentprice_ati:null,list_product_season:null,list_product_document:null}},getQueryStringList:function(){var e={},o,i,r,t,n,u,f;if(document.location.search)for(o=document.location.search.indexOf("?"),i=document.location.search,i=i.substring(o+1,document.location.search.length),r=i.split("&"),t=0;t<r.length;t++)try{r[t]&&(n=r[t].split("="),n&&n.length>1&&(u=null,f=null,n[0]&&(n[1]&&(u=n[1].toString()),f=n[0].toString(),e[f]=u)))}catch(s){}return e},tagCommanderEnumAction:{none:0,bindPageListShowAllProductsEvent:1,callPageListShowAllProducts:2,bindProductPageListEvent:3,callProductPageListEvent:4,bindBreadcrumbEvent:5,callBreadcrumbEvent:6,bindLayerEvent:7,callLayerEvent:8,bindZoomEvent:9,callZoomEvent:10,bindStoreAvailabilityEvent:11,callStoreAvailabilityEvent:12,bindAskCatalogEvent:13,callAskCatalogEvent:14,bindSubscribeNewsletterEvent:15,callSubscribeNewsletterEvent:16,bindValidateOrderEvent:17,callValidateOrderEvent:18,bindSizeGuideEvent:19,callSizeGuideEvent:20,bindDeleteItemBasketEvent:21,callDeleteItemBasketEvent:22,bindAddBasketItemsEvent:23,callAddBasketItemsEvent:24,bindQuicklookOpenEvent:25,callQuicklookOpenEvent:26,bindCrossSellEvent:27,callCrossSellEvent:28,bindDirectOrderAddBasketEvent:29,callDirectOrderAddBasketEvent:30,bindAddItemToWishlistEvent:31,callAddItemToWishlistEvent:32,bindCreateWishlistEvent:33,callCreateWishlistEvent:34,bindShareWishlistEvent:35,callShareWishlistEvent:36,bindPageProductChangePaiementEvent:37,callPageProductChangePaiement:38,bindPageProductValidatePaiementEvent:39,callPageProductValidatePaiement:40,bindPageSearchEvent:41,callPageSearch:42,bindSearchTextEvent:43,callSearchText:44,callAddBirthListItems:45,callCreateBirthList:46,properties:{0:{name:"none"},1:{name:"bindPageListShowAllProductsEvent"},2:{name:"callPageListShowAllProducts"},3:{name:"bindProductPageListEvent"},4:{name:"callProductPageListEvent"},5:{name:"bindBreadcrumbEvent"},6:{name:"callBreadcrumbEvent"},7:{name:"bindLayerEvent"},8:{name:"callLayerEvent"},9:{name:"bindZoomEvent"},10:{name:"callZoomEvent"},11:{name:"bindStoreAvailabilityEvent"},12:{name:"callStoreAvailabilityEvent"},13:{name:"bindAskCatalogEvent"},14:{name:"callAskCatalogEvent"},15:{name:"bindSubscribeNewsletterEvent"},16:{name:"callSubscribeNewsletterEvent"},17:{name:"bindValidateOrderEvent"},18:{name:"callValidateOrderEvent"},19:{name:"bindSizeGuideEvent"},20:{name:"callSizeGuideEvent"},21:{name:"bindDeleteItemBasketEvent"},22:{name:"callDeleteItemBasketEvent"},23:{name:"bindAddBasketItemsEvent"},24:{name:"callAddBasketItemsEvent"},25:{name:"bindQuicklookOpenEvent"},26:{name:"callQuicklookOpenEvent"},27:{name:"bindCrossSellEvent"},28:{name:"callCrossSellEvent"},29:{name:"bindDirectOrderAddBasketEvent"},30:{name:"callDirectOrderAddBasketEvent"},31:{name:"bindAddItemToWishlistEvent"},32:{name:"callAddItemToWishlistEvent"},33:{name:"bindCreateWishlistEvent"},34:{name:"callCreateWishlistEvent"},35:{name:"bindShareWishlistEvent"},36:{name:"callShareWishlistEvent"},37:{name:"bindPageProductChangePaiementEvent"},38:{name:"callPageProductChangePaiement"},39:{name:"bindPageProductValidatePaiementEvent"},40:{name:"callPageProductValidatePaiement"},41:{name:"bindPageSearchEvent"},42:{name:"callPageSearch"},43:{name:"bindSearchTextEvent"},44:{name:"callSearchText"},45:{name:"callAddBirthListItems"},46:{name:"callCreateBirthList"}}},objectIsValid:function(n){return n&&typeof n!="undefined"&&n!==null}};n.widget("memo.tagCommanderWidget",{options:{action:null,targetActionSelectorList:null,options:null},_create:function(){var n=this;n.options.action&&n.options.action!=t.tagCommanderEnumAction.none&&(n.options._actionDataSelector=n,n.options.action==t.tagCommanderEnumAction.bindPageListShowAllProductsEvent?n.bindPageListShowAllProductsEvent():n.options.action==t.tagCommanderEnumAction.bindProductPageListEvent?n.bindProductPageListEvent():n.options.action==t.tagCommanderEnumAction.bindBreadcrumbEvent?n.bindBreadcrumbEvent():n.options.action==t.tagCommanderEnumAction.bindLayerEvent?n.bindLayerEvent():n.options.action==t.tagCommanderEnumAction.bindZoomEvent?n.bindZoomEvent():n.options.action==t.tagCommanderEnumAction.bindStoreAvailabilityEvent?n.bindStoreAvailabilityEvent():n.options.action==t.tagCommanderEnumAction.bindValidateOrderEvent?n.bindValidateOrderEvent():n.options.action==t.tagCommanderEnumAction.bindSizeGuideEvent?n.bindSizeGuideEvent():n.options.action==t.tagCommanderEnumAction.bindDeleteItemBasketEvent?n.bindDeleteItemBasketEvent():n.options.action==t.tagCommanderEnumAction.bindQuicklookOpenEvent?n.bindQuicklookOpenEvent(n.options.options):n.options.action==t.tagCommanderEnumAction.bindCrossSellEvent?n.bindCrossSellEvent():n.options.action==t.tagCommanderEnumAction.bindDirectOrderAddBasketEvent?n.bindDirectOrderAddBasketEvent():n.options.action==t.tagCommanderEnumAction.callStoreAvailabilityEvent?n.callStoreAvailabilityEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callAskCatalogEvent?n.callAskCatalogEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callSubscribeNewsletterEvent?n.callSubscribeNewsletterEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callDeleteItemBasketEvent?n.callDeleteItemBasketEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callAddBasketItemsEvent?n.callAddBasketItemsEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callQuicklookOpenEvent?n.callQuicklookOpenEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callDirectOrderAddBasketEvent?n.callDirectOrderAddBasketEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callAddItemToWishlistEvent?n.callAddItemToWishlistEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callCreateWishlistEvent?n.callCreateWishlistEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callShareWishlistEvent?n.callShareWishlistEvent(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callPageProductChangePaiement?n.callPageProductChangePaiement(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callPageProductValidatePaiement?n.callPageProductValidatePaiement(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callPageSearch?n.callPageSearch(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callSearchText?n.callSearchText(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callAddBirthListItems?n.callAddBirthListItems(n,n.options.options):n.options.action==t.tagCommanderEnumAction.callCreateBirthList&&n.callCreateBirthList(n,n.options.options))},_canAttachEvent:function(n,t){for(var r=!0,i=0;i<n.length;i++)if(n[i]==t){r=!1;break}return r},_bindEvent:function(t,i){var u,f,r,s,o,e;u=t?n(t):n(this);f="$([0]).[1]([2]);";this.options._actionIdSelector?(s="#"+this.options._actionIdSelector,r=f.replace("[0]","'"+s+"'"),r=r.replace("[2]","")):this.options._actionDataSelector?(r=f.replace("[0]","document"),r=r.replace("[2]","this")):(r=f.replace("[0]","this"),r=r.replace("[2]",""));r=r.replace("[1]",i);u&&(o=u.attr("onclick"),e=r,o&&(e=e+o),u.attr("onclick",e))},_buildBindEvent:function(i,r,u){var f=this,o=null,e;o=r!=null&&typeof r!="undefined"?r:f.options.targetActionSelectorList;o!=null&&o.length>0?n.each(o,function(r,e){var o=n(e).data("actionListAlreadyUsed");t.objectIsValid(o)||(o=[]);f._canAttachEvent(o,f.options.action)&&(o.push(f.options.action),n(e).data("actionListAlreadyUsed",o),n(e).data("tagtargetelement",u.element),f._bindEvent(e,i))}):(e=n(f).data("actionListAlreadyUsed"),t.objectIsValid(e)||(e=[]),f._canAttachEvent(e,f.options.action)&&(e.push(f.options.action),n(f).data("actionListAlreadyUsed",e),n(f).data("tagtargetelement",u.element),f._bindEvent(f.element,i)))},GetActionName:function(n,t){var i=n;return typeof i=="undefined"&&(i=t),i},bindPageListShowAllProductsEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderShowAllProductsPageEvent.name,"tagCommanderShowAllProductsPageEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindProductPageListEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderProductPageListEvent.name,"tagCommanderProductPageListEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindBreadcrumbEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderBreadcrumbEvent.name,"tagCommanderBreadcrumbEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindLayerEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderLayerEvent.name,"tagCommanderLayerEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindZoomEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderZoomEvent.name,"tagCommanderZoomEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindStoreAvailabilityEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderStoreAvailabilityEvent.name,"tagCommanderStoreAvailabilityEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindValidateOrderEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderValidateOrderEvent.name,"tagCommanderValidateOrderEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindSizeGuideEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderSizeGuideEvent.name,"tagCommanderSizeGuideEvent");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindDeleteItemBasketEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderDeletedBasketItem.name,"tagCommanderDeletedBasketItem");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindQuicklookOpenEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderQuicklookOpen.name,"tagCommanderQuicklookOpen");t&&typeof t!="undefined"&&t.productPageUrl&&n(i.element).data("productpageurl",t.productPageUrl);t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindCrossSellEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderCrossSell.name,"tagCommanderCrossSell");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},bindDirectOrderAddBasketEvent:function(t){var i=this,r=i.GetActionName(n.fn.tagCommanderDirectOrderAddBasket.name,"tagCommanderDirectOrderAddBasket");t&&typeof t!="undefined"&&t.targetActionSelectorList?i._buildBindEvent(r,t.targetActionSelectorList,i):i._buildBindEvent(r,null,i)},callStoreAvailabilityEvent:function(t,i){n(document).tagCommanderStoreAvailabilityEvent(t,i)},callAskCatalogEvent:function(t,i){n(document).tagCommanderAskCatalogEvent(t,i)},callSubscribeNewsletterEvent:function(t,i){n(document).tagCommanderNewsletterEvent(t,i)},callDeleteItemBasketEvent:function(t,i){n(document).tagCommanderDeletedBasketItem(t,i)},callAddBasketItemsEvent:function(t,i){i.addBasketItems&&n(document).tagCommanderAddBasketItems(t,i)},callQuicklookOpenEvent:function(t,i){(i.productData||i.productDataSelector)&&n(document).tagCommanderQuicklookOpen(t,i)},callDirectOrderAddBasketEvent:function(t,i){i.addBasketItems&&n(document).tagCommanderDirectOrderAddBasket(t,i)},callAddItemToWishlistEvent:function(t,i){i.addWishlistItems&&n(document).tagCommanderAddItemToWishlist(t,i)},callCreateWishlistEvent:function(t,i){i.wishlistThemeLabel&&n(document).tagCommanderCreateWishlist(t,i)},callShareWishlistEvent:function(t,i){i.shareType&&n(document).tagCommanderShareWishlist(t,i)},callPageProductChangePaiement:function(t,i){i.selectedPaiement&&n(document).tagCommanderChangePaiement(t,i)},callPageProductValidatePaiement:function(t,i){i.selectedPaiement&&n(document).tagCommanderValidatePaiement(t,i)},callPageSearch:function(t,i){i.search_keywords&&n(document).tagCommanderSearch(t,i)},callSearchText:function(t,i){i.search_keywords&&n(document).tagCommanderTextSearch(t,i)},callAddBirthListItems:function(t,i){n(document).tagCommanderAddBirthListItems(t,i)},callCreateBirthList:function(t,i){n(document).tagCommanderCreateBirthList(t,i)}});n.fn.extend({tagCommanderGlobalEvent:function(n,t,i){try{DEBUG_TAGCO===!0&&console.debug("tagCommanderGlobalEvent: ["+n+"] ["+t+"]",i)}catch(r){}try{tc_events_global(n,t,i)}catch(r){}return!0},tagCommanderShowAllProductsPageEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"voir-tous-les-produits",name:"voir-tous-les-produits"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderProductPageListEvent:function(i,r){var s=n(this),h,u,o,f,e;try{h={eventName:"clic-produit-page-liste",name:null,label:null,position:null,value:null};u=n.extend({},h,r);t.objectIsValid(r)||(o=s.tryGetTargetData(i),t.objectIsValid(o)&&(f=n.fn.tagCommander.tryParseDataToJson(o),t.objectIsValid(f)&&(u.name=n.fn.tagCommander.getDataValue(f.classmodel),u.label=n.fn.tagCommander.getDataValue(f.colorcode),u.position=n.fn.tagCommander.getDataValue(f.position),u.value=n.fn.tagCommander.getDataValue(f.price))));e={};e.name=u.name;e.label=u.label;e.position=u.position;e.value=u.value;s.tagCommanderGlobalEvent(i,u.eventName,e)}catch(c){}return!0},tagCommanderBreadcrumbEvent:function(i,r){var s=n(this),h,u,f,e,o;try{h={eventName:"clic-fil-ariane",name:""};u=n.extend({},h,r);t.objectIsValid(r)||(f=s.tryGetTargetData(i),t.objectIsValid(f)&&(e=n.fn.tagCommander.tryParseDataToJson(f),t.objectIsValid(e)&&(u.name=n.fn.tagCommander.getDataValue(e.name))));o={};o.name=u.name;s.tagCommanderGlobalEvent(i,u.eventName,o)}catch(c){}return!0},tagCommanderLayerEvent:function(i,r){var s=n(this),h,u,f,e,o;try{h={eventName:"clic-arbo-laterale",name:""};u=n.extend({},h,r);t.objectIsValid(r)||(f=s.tryGetTargetData(i),t.objectIsValid(f)&&(e=n.fn.tagCommander.tryParseDataToJson(f),t.objectIsValid(e)&&(u.name=n.fn.tagCommander.getDataValue(e.name))));o={};o.name=u.name;s.tagCommanderGlobalEvent(i,u.eventName,o)}catch(c){}return!0},tagCommanderZoomEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"zoom",name:"zoom-produit"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderStoreAvailabilityEvent:function(i,r){var h=n(this),s,u,e,o,f;try{s={eventName:"disponibilite-magasin",name:"",label:""};u=n.extend({},s,r);t.objectIsValid(r)||(e=n(i).data("tagtargetelement"),t.objectIsValid(e)||(e=i),u.name=n(e).data("tagname"),u.label=n(e).data("taglink"));o=t.getStoreAvailabilityType(u.label);o!=null&&(u.label=o.value);f={};f.name=u.name;f.label=u.label;f.label&&(f.label=f.label.trim());h.tagCommanderGlobalEvent(i,u.eventName,f)}catch(c){}return!0},tagCommanderAskCatalogEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"demande-de-catalogue",name:"demande-de-catalogue"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderNewsletterEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"inscription-newsletter",name:"inscription newsletter"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderValidateOrderEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"valider-commande",name:"valider la commande"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderSizeGuideEvent:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"guides-des-tailles",name:"guides-des-tailles"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderDeletedBasketItem:function(i,r){var s=n(this),h,u,o,f,l,c,e;try{h={eventName:"suppression-produit",name:"",label:"",value:""};u=n.extend({},h,r);t.objectIsValid(r)||(o=s.tryGetTargetData(i),t.objectIsValid(o)&&(f=n.fn.tagCommander.tryParseDataToJson(o),t.objectIsValid(f)&&(u.name=n.fn.tagCommander.getDataValue(f.classmodel),u.label=n.fn.tagCommander.getDataValue(f.colorcode),l=n.fn.tagCommander.tryParseFloat(f.pricewas),c=n.fn.tagCommander.tryParseFloat(f.price),c!=NaN&&(u.value=f.price))));e={};e.name=u.name;e.label=u.label;e.value=u.value;s.tagCommanderGlobalEvent(i,u.eventName,e)}catch(a){}return!0},tagCommanderAddBasketItems:function(i,r){var c=n(this),h,u,o,s,e,f;try{if(h={eventName:"ajout-panier",name:"ajout panier",addBasketItems:null,list_products:[],product:t.getDefaultProductDataObject()},u=n.extend({},h,r),u.addBasketItems&&u.addBasketItems.length>0)if(u.addBasketItems.length==1)o=n(u.addBasketItems[0]).data("tagdata"),s=n.fn.tagCommander.tryParseDataToJson(o),u.product=n.fn.tagCommander.buildProductData(s);else for(e=0;e<u.addBasketItems.length;e++){var o=n(u.addBasketItems[e]).data("tagdata"),s=n.fn.tagCommander.tryParseDataToJson(o),l=n.fn.tagCommander.buildProductListData(s);u.list_products.push(l)}f={};f.name=u.name;f.list_products=u.list_products;f.product=u.product;c.tagCommanderGlobalEvent(i,u.eventName,f)}catch(a){}return!0},tagCommanderAddBirthListItems:function(i,r){var o=n(this),e,u,f;try{e={eventName:"ajout-liste-ldn",name:"ajout-liste-ldn",data:null,list_products:[],product:t.getDefaultProductDataObject()};u=n.extend({},e,r);u.product=n.fn.tagCommander.buildProductBirthListData(u.data);f={};f.name=u.name;f.list_products=u.list_products;f.product=u.product;o.tagCommanderGlobalEvent(i,u.eventName,f)}catch(s){}return!0},tagCommanderQuicklookOpen:function(i,r){var h=n(this),s,l,c,o,e;try{var u=n.extend({},{eventName:"quicklook",name:null,label:null,position:null,value:null,productData:null,productDataSelector:null,shopping_tool:null,shopping_tool_detailed:null,productPageUrl:null},r),f=null;t.objectIsValid(u.productData)&&u.productData instanceof Object?f=u.productData:(s=null,t.objectIsValid(u.productDataSelector)&&u.productDataSelector instanceof Object?(s=n(u.productDataSelector).data("tagdata"),u.productPageUrl=n(u.productDataSelector).data("productpageurl")):(s=h.tryGetTargetData(i),u.productPageUrl=h.tryGetTargetData(i,{dataTargetDataName:"productpageurl",parseData:!1})),t.objectIsValid(s)&&(f=n.fn.tagCommander.tryParseDataToJson(s)));t.objectIsValid(f)&&(u.name=n.fn.tagCommander.getDataValue(f.AgCat),u.label=n.fn.tagCommander.getDataValue(f.AgCat+f.CodeCouleur),u.position=n.fn.tagCommander.getDataValue(f.Position),l=n.fn.tagCommander.tryParseFloat(f.PrixBarre),c=n.fn.tagCommander.tryParseFloat(f.Prix),c!=NaN&&(u.value=n.fn.tagCommander.getDataValue(f.Prix)),o={shopping_tool:null,shopping_tool_detailed:null},u.productPageUrl==null&&(u.productPageUrl=f.pageurl),u.productPageUrl?shoppingToolInfo.updateShoppingToolData(u.productPageUrl,o):t.objectIsValid(tc_vars)&&(o.shopping_tool=tc_vars.shopping_tool,o.shopping_tool_detailed=tc_vars.shopping_tool_detailed),u.shopping_tool=o.shopping_tool,u.shopping_tool_detailed=o.shopping_tool_detailed);e={};e.name=u.name;e.label=u.label;e.position=u.position;e.value=u.value;e.shopping_tool=u.shopping_tool;e.shopping_tool_detailed=u.shopping_tool_detailed;h.tagCommanderGlobalEvent(i,u.eventName,e)}catch(a){}return!0},tagCommanderCrossSell:function(i,r){var s=n(this),h,u,o,f,e;try{h={eventName:"cross-sell",name:null,label:null};u=n.extend({},h,r);t.objectIsValid(r)||(o=s.tryGetTargetData(i),t.objectIsValid(o)&&(f=n.fn.tagCommander.tryParseDataToJson(o),t.objectIsValid(f)&&(u.name=n.fn.tagCommander.getDataValue(f.outfitid),u.name==null&&(u.name=n.fn.tagCommander.getDataValue(f.classmodel)),u.label=n.fn.tagCommander.getDataValue(f.colorcode),u.action=n.fn.tagCommander.getDataValue(f.action))));e={};e.name=u.name;e.label=u.label;e.action=u.action;s.tagCommanderGlobalEvent(i,u.eventName,e)}catch(c){}return!0},tagCommanderDirectOrderAddBasket:function(i,r){var c=n(this),s,h,o;try{var l={eventName:"ajout-direct",name:"ajout panier direct",product:t.getDefaultProductDataObject(),addBasketItems:null,list_products:[]},u=n.extend({},l,r),f=null,e=null;if(t.objectIsValid(r)){if(u.addBasketItems&&u.addBasketItems.length>0)if(u.addBasketItems.length==1)e=n(u.addBasketItems[0]).data("tagdata"),t.objectIsValid(e)&&(f=n.fn.tagCommander.tryParseDataToJson(e),t.objectIsValid(f)&&(u.product=n.fn.tagCommander.buildProductData(f)));else for(s=0;s<u.addBasketItems.length;s++)e=n(u.addBasketItems[s]).data("tagdata"),t.objectIsValid(e)&&(f=n.fn.tagCommander.tryParseDataToJson(e),t.objectIsValid(f)&&(h=n.fn.tagCommander.buildProductListData(f),u.list_products.push(h)))}else e=this.tryGetTargetData(i),t.objectIsValid(e)&&(f=n.fn.tagCommander.tryParseDataToJson(e),t.objectIsValid(f)&&(u.product=n.fn.tagCommander.buildProductData(f)));o={};o.name=u.name;o.label=u.label;o.product=u.product;o.list_products=u.list_products;c.tagCommanderGlobalEvent(i,u.eventName,o)}catch(a){}return!0},tagCommanderReferralEvent:function(i,r){var h=n(this),s,u,f,e,o;try{s={eventName:"parrainage",refereesCount:0};u=n.extend({},s,r);t.objectIsValid(r)||(f=this.tryGetTargetData(i),t.objectIsValid(f)&&(e=parseInt(f.refereesCount),isNaN(e)||(u.refereesCount=e)));o={};o.name=u.refereesCount.toString();h.tagCommanderGlobalEvent(i,u.eventName,o)}catch(c){}return!0},tagCommanderAddItemToWishlist:function(i,r){var h=n(this),o,u,s,f,e;try{o={eventName:"ajout-wishlist",name:null,label:null,addWishlistItems:null};u=n.extend({},o,r);u.addWishlistItems&&u.addWishlistItems.length>0&&u.addWishlistItems.length==1&&(s=n(u.addWishlistItems[0]).data("tagdata"),f=n.fn.tagCommander.tryParseDataToJson(s),t.objectIsValid(f)&&(u.name=n.fn.tagCommander.getDataValue(f.classmodel),u.label=n.fn.tagCommander.getDataValue(f.colorcode)));e={};e.name=u.name;e.label=u.label;h.tagCommanderGlobalEvent(i,u.eventName,e)}catch(c){}return!0},tagCommanderCreateWishlist:function(t,i){var e=n(this),f,r,u;try{f={eventName:"creation-wishlist",wishlistThemeLabel:null,name:null};r=n.extend({},f,i);r.name=n.fn.tagCommander.getDataValue(r.wishlistThemeLabel);u={};u.name=r.name;e.tagCommanderGlobalEvent(t,r.eventName,u)}catch(o){}return!0},tagCommanderShareWishlist:function(t,i){var e=n(this),f,r,u;try{f={eventName:"partage-wishlist",name:null,shareType:null};r=n.extend({},f,i);r.name=n.fn.tagCommander.getDataValue(r.shareType);u={};u.name=r.name;e.tagCommanderGlobalEvent(t,r.eventName,u)}catch(o){}return!0},tagCommanderChangePaiement:function(t,i){var e=n(this),f,r,u;try{f={eventName:"methode-paiement",name:i.selectedPaiement,label:"selection"};r=n.extend({},f,i);r.name=n.fn.tagCommander.getDataValue(r.selectedPaiement);u={};u.name=r.name;u.label="selection";e.tagCommanderGlobalEvent(t,r.eventName,u)}catch(o){}return!0},tagCommanderValidatePaiement:function(t,i){var e=n(this),f,r,u;try{f={eventName:"methode-paiement",name:i.selectedPaiement,label:"validation"};r=n.extend({},f,i);r.name=n.fn.tagCommander.getDataValue(r.selectedPaiement);u={};u.name=r.name;u.label="validation";e.tagCommanderGlobalEvent(t,r.eventName,u)}catch(o){}return!0},tagCommanderSearch:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"clic-recherche",name:"clic recherche",search_keywords:null},i),u={};u.name=r.name;u.search_keywords=r.search_keywords;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderTextSearch:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"recherche_partenaire",name:"recherche_partenaire",search_keywords:null},i),u={};u.name=r.name;u.search_keywords=r.search_keywords;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tagCommanderCreateBirthList:function(t,i){var f=n(this);try{var r=n.extend({},{eventName:"creation-liste-ldn",name:"creation-liste-ldn"},i),u={};u.name=r.name;f.tagCommanderGlobalEvent(t,r.eventName,u)}catch(e){}return!0},tryGetTargetData:function(i,r){var u,s;try{if(u=n(i),u.length==0)return null;var f=n.extend({},{dataTargetElementName:"tagtargetelement",dataTargetDataName:"tagdata",parseData:!0},r),o=u.data(f.dataTargetElementName),e=null;return e=t.objectIsValid(o)?n(o).data(f.dataTargetDataName):u.data(f.dataTargetDataName),s=null,t.objectIsValid(e)&&f.parseData?n.fn.tagCommander.tryParseDataToJson(e):e}catch(h){return null}},getOrCreateTagCommanderInstance:function(t){var i={isNewInstance:!0,instance:null},r=n(this).data("memoTagCommanderWidget");return r!=null&&typeof r!="undefined"?(i.isNewInstance=!1,i.instance=r):i.instance=n(this).tagCommanderWidget(t),i}});n.fn.tagCommander={tryParseFloat:function(n){return typeof n=="string"?(n=n.replace(",","."),parseFloat(n)):NaN},buildProductData:function(i){var r=t.getDefaultProductDataObject();return i&&typeof i!="undefined"&&(r.product_name=n.fn.tagCommander.getDataValue(i.name),r.product_class_model=n.fn.tagCommander.getDataValue(i.classmodel),r.product_codecolor=n.fn.tagCommander.getDataValue(i.colorcode),r.product_color_label=n.fn.tagCommander.getDataValue(i.colorlabel),r.product_size_label_label=n.fn.tagCommander.getDataValue(i.sizelabel),r.product_instock=n.fn.tagCommander.getDataValue(i.isinstock),r.product_is_bundle=n.fn.tagCommander.getDataValue(i.isbundle),r.product_discount=n.fn.tagCommander.getDataValue(i.isdiscount),r.product_document=n.fn.tagCommander.getDataValue(i.documentcode),r.product_season=n.fn.tagCommander.getDataValue(i.seasoncode),r.product_reference=n.fn.tagCommander.getDataValue(i.reference),r.product_rating=n.fn.tagCommander.getDataValue(i.rating),r.product_rating_number=n.fn.tagCommander.getDataValue(i.ratingsNumber),r.product_trademark=n.fn.tagCommander.getDataValue(i.brandcode),r.product_quantity=n.fn.tagCommander.getDataValue(i.quantity),r.product_url_page=n.fn.tagCommander.getDataValue(i.pageurl),r.product_url_picture=n.fn.tagCommander.getDataValue(i.pictureurl),r.product_originalprice_ati=n.fn.tagCommander.getDataValue(i.pricewas),r.product_currentprice_ati=n.fn.tagCommander.getDataValue(i.price),r.product_breadcrumb_id=n.fn.tagCommander.getDataValue(i.sectorid),r.product_breadcrumb_label=n.fn.tagCommander.getDataValue(i.sectorlabel)),r},buildProductBirthListData:function(i){var r=t.getDefaultProductDataObject();return i&&typeof i!="undefined"&&(r.product_name=n.fn.tagCommander.getDataValue(i.Name),r.product_class_model=n.fn.tagCommander.getDataValue(i.classemodele),r.product_codecolor=n.fn.tagCommander.getDataValue(i.CodeCouleur),r.product_color_label=n.fn.tagCommander.getDataValue(i.LibelleColoris),r.product_size_label_label=n.fn.tagCommander.getDataValue(i.LibelleTaille),r.product_instock=n.fn.tagCommander.getDataValue(i.Disponibilite),r.product_is_bundle=n.fn.tagCommander.getDataValue(i.isbundle),r.product_discount=n.fn.tagCommander.getDataValue(i.isdiscount),r.product_document=n.fn.tagCommander.getDataValue(i.DocumentCode),r.product_season=n.fn.tagCommander.getDataValue(i.CodeSaison),r.product_reference=n.fn.tagCommander.getDataValue(i.ReferencePresentation),r.product_rating=n.fn.tagCommander.getDataValue(i.Rating),r.product_rating_number=n.fn.tagCommander.getDataValue(i.RatingsNumber),r.product_trademark=n.fn.tagCommander.getDataValue(i.BrandCode),r.product_quantity=n.fn.tagCommander.getDataValue(i.Quantite),r.product_url_page=n.fn.tagCommander.getDataValue(i.PageUrl),r.product_url_picture=n.fn.tagCommander.getDataValue(i.PictureUrl),r.product_originalprice_ati=n.fn.tagCommander.getDataValue(i.PrixBarre),r.product_currentprice_ati=n.fn.tagCommander.getDataValue(i.Prix),r.product_breadcrumb_id=n.fn.tagCommander.getDataValue(i.SectorId),r.product_breadcrumb_label=n.fn.tagCommander.getDataValue(i.SectorLabel)),r},buildProductListData:function(i){var r=t.getDefaultListProductDataObject();return i&&typeof i!="undefined"&&(r.list_product_name=n.fn.tagCommander.getDataValue(i.name),r.list_product_class_model=n.fn.tagCommander.getDataValue(i.classmodel),r.list_product_codecolor=n.fn.tagCommander.getDataValue(i.colorcode),r.list_product_color_label=n.fn.tagCommander.getDataValue(i.colorlabel),r.list_product_size_label_label=n.fn.tagCommander.getDataValue(i.sizelabel),r.list_product_instock=n.fn.tagCommander.getDataValue(i.isinstock),r.list_product_is_bundle=n.fn.tagCommander.getDataValue(i.isbundle),r.list_product_discount=n.fn.tagCommander.getDataValue(i.isdiscount),r.list_product_document=n.fn.tagCommander.getDataValue(i.documentcode),r.list_product_season=n.fn.tagCommander.getDataValue(i.seasoncode),r.list_product_reference=n.fn.tagCommander.getDataValue(i.reference),r.list_product_rating=n.fn.tagCommander.getDataValue(i.rating),r.list_product_rating_number=n.fn.tagCommander.getDataValue(i.ratingsNumber),r.list_product_trademark=n.fn.tagCommander.getDataValue(i.brandcode),r.list_product_quantity=n.fn.tagCommander.getDataValue(i.quantity),r.list_product_url_page=n.fn.tagCommander.getDataValue(i.pageurl),r.list_product_url_picture=n.fn.tagCommander.getDataValue(i.pictureurl),r.list_product_originalprice_ati=n.fn.tagCommander.getDataValue(i.pricewas),r.list_product_currentprice_ati=n.fn.tagCommander.getDataValue(i.price),r.list_product_breadcrumb_id=n.fn.tagCommander.getDataValue(i.sectorid),r.list_product_breadcrumb_label=n.fn.tagCommander.getDataValue(i.sectorlabel)),r},getDataValue:function(n){return n&&typeof n!="undefined"?n:null},hasAttribute:function(t,i){var r=n(t).data(i);return r&&typeof r!="undefined"},tryParseDataToJson:function(n){return n instanceof Object?n:JSON.parse(n)},getValue:function(n,t){var i=null,u,r;if(t instanceof Array){for(u=0;u<t.length;u++)if(r=n.indexOf(t[u]),r>-1){i=n.substring(r+t[u].length,n.length);i=unescape(i);i=i.trim().toLowerCase();break}}else n&&(r=n.indexOf(t),r>-1&&(i=n.substring(r+t.length,n.length),i=unescape(i),i=i.trim().toLowerCase()));return i},getUrlData:function(n){var i={hash:null,search:null,path:null},r,t;return n&&(r=n.indexOf("?"),t=n.indexOf("#"),r>-1&&(i.search=n.substring(r,t>-1?t:n.length),t>-1&&(i.hash=n.substring(t,n.length)),i.pathname=n.substring(0,r))),i},getTagCommanderAction:function(){return t.tagCommanderEnumAction},callAskCatalogEvent:function(i,r){if(r&&r.itemSelector){var u=t.getQueryStringList();u&&typeof u!="undefined"&&u.t&&u.t==="0"&&n(document).tagCommanderAskCatalogEvent(i,r)}},callSubscribeNewsletterEvent:function(i,r){if(r&&r.itemSelector){var u=t.getQueryStringList();u&&typeof u!="undefined"&&(u.t&&u.t==="3"?n(document).tagCommanderNewsletterEvent(i,r):u.a&&u.a.length>0&&n(document).tagCommanderNewsletterEvent(i,r))}},callReferralEvent:function(t,i){i&&typeof i!="undefined"&&i.itemSelector&&n(document).tagCommanderReferralEvent(t,i)}}})(jQuery)