(function(){var h={},w,p=!1,q,x,v;h.helper={};h.hydra={};h.ati={};h.ga={};h.gtm={};h.comscore={};h.samurai={};try{if(function(a){var e,b;b=window.configTracking&&window.configTracking.environment?0<window.configTracking.environment.length?window.configTracking.environment:"production":"production";"production"===b?window.configTracking&&window.configTracking.siteUrl&&(e=window.configTracking.siteUrl.match(/^[\w\d\-]+\.(.*)/),e=null===e?window.configTracking.siteUrl:e[1]):e=window.location.host||null;
a.config={environment:b,siteUrl:window.configTracking&&window.configTracking.siteUrl?window.configTracking.siteUrl:"",callBack:window.configTracking&&window.configTracking.backendCallBack?window.configTracking.backendCallBack:null,cookieDomain:e,debug:window.configTracking&&window.configTracking.debug?window.configTracking.debug:null,unitTest:window.configTracking&&window.configTracking.unitTest?window.configTracking.unitTest:!1,specialNames:"trackPage trackEvent call cleanup event specificVar processed".split(" "),
knowVars:"language provinceId provinceName regionId regionName cityId cityName districtId districtName userId platformType extraPageName categoryLevel1Id categoryLevel1Name categoryLevel12d categoryLevel2Name categoryLevel13d categoryLevel3Name categoryLevel14d categoryLevel4Name resultSetType resultSetFormat searchString sortBy pageNumber pageCount resultCount itemId sellerId sellerType imagesCount creationDate session session_l adImpressions fadImpressions".split(" ")};a.fieldMap={olxClasic:{provinceName:"geo1",
cityName:"geo2",homePageName:"home_page",itemPageName:"detail_page"},tablica:{provinceName:"provinces",cityName:"cities",homePageName:"homepage",itemPageName:"adpage"}};a.defaultConfig={fieldMap:a.fieldMap.olxClasic,useTraking:{hydra:!1,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,ga:{trackerCountry:{sitespeed:1,events:1},trackerError:{code:"UA-1240664-4"}},hydraHost:"tracking.olx-st.com"};a.siteUrlConfig={"www.olx.com.pk":{countryCode:"PK",countryIsoId:586,countryId:162,platformId:8,fieldMap:a.fieldMap.tablica,
useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!0},useSamurai:!1,hydra:{path:"-pk"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.in":{countryCode:"IN",countryIsoId:356,countryId:99,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-sa"},ati:{desktop:{siteId:522842,logServer:"logw307"},mobile:{siteId:551147,logServer:"logw307"}},
ga:{trackerCountry:{desktop:{code:"UA-137146-4"},mobile:{code:"UA-54083301-2"}}},gtm:{code:"GTM-K8TJRJ"}},"www.olx.co.id":{countryCode:"ID",countryIsoId:360,countryId:100,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-id"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.ph":{countryCode:"PH",countryIsoId:608,countryId:168,
platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-ph"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.pl":{countryCode:"PL",countryIsoId:616,countryId:170,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,
logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.ro":{countryCode:"RO",countryIsoId:642,countryId:175,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.ua":{countryCode:"UA",countryIsoId:804,countryId:220,platformId:8,fieldMap:a.fieldMap.tablica,
useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.kz":{countryCode:"KZ",countryIsoId:398,countryId:109,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},
mobile:{code:""}}},gtm:{code:""}},"www.olx.uz":{countryCode:"UZ",countryIsoId:860,countryId:226,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.by":{countryCode:"BY",countryIsoId:112,countryId:20,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,
gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.bg":{countryCode:"BG",countryIsoId:100,countryId:33,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},
gtm:{code:""}},"www.olx.pt":{countryCode:"PT",countryIsoId:620,countryId:171,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-cee"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.com.bo":{countryCode:"BO",countryIsoId:68,countryId:26,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},
useSamurai:!1,hydra:{path:"-latam"},ati:{desktop:{siteId:522934,logServer:"logw306"},mobile:{siteId:533958,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-80"},mobile:{code:"UA-54083301-19"}}},gtm:{code:"GTM-NMTC6T"}},"www.olx.com.pa":{countryCode:"PA",countryIsoId:591,countryId:164,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522833,logServer:"logw306"},mobile:{siteId:533945,
logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-102"},mobile:{code:"UA-54083301-33"}}},gtm:{code:"GTM-PQ5K3J"}},"www.olx.com.py":{countryCode:"PY",countryIsoId:600,countryId:166,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-latam"},ati:{desktop:{siteId:522834,logServer:"logw306"},mobile:{siteId:533946,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-28"},mobile:{code:"UA-54083301-38"}}},
gtm:{code:"GTM-MCGZ9S"}},"www.olx.co.ao":{countryCode:"AO",countryIsoId:24,countryId:6,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-ceessa"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.co.mz":{countryCode:"MZ",countryIsoId:508,countryId:145,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,
comscore:!1},useSamurai:!1,hydra:{path:"-ceessa"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.co.tz":{countryCode:"TZ",countryIsoId:834,countryId:208,platformId:9,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:522912,logServer:"logw310"},mobile:{siteId:534034,logServer:"logw310"}},ga:{trackerCountry:{desktop:{code:"UA-137146-117"},
mobile:{code:"UA-54083301-34"}}},gtm:{code:"GTM-N2KG35"}},"www.olx.co.ug":{countryCode:"UG",countryIsoId:800,countryId:219,platformId:9,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.com.ni":{countryCode:"NI",countryIsoId:558,countryId:154,platformId:1,fieldMap:a.defaultConfig.fieldMap,
useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:"-latam"},ati:{desktop:{siteId:522832,logServer:"logw306"},mobile:{siteId:533944,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-93"},mobile:{code:"UA-54083301-26"}}},gtm:{code:""}},"www.olx.co.cr":{countryCode:"CR",countryIsoId:188,countryId:51,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522821,
logServer:"logw306"},mobile:{siteId:533933,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-81"},mobile:{code:"UA-54083301-31"}}},gtm:{code:"GTM-MLDLLF"}},"www.olx.com.uy":{countryCode:"UY",countryIsoId:858,countryId:225,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522840,logServer:"logw306"},mobile:{siteId:533952,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-35"},
mobile:{code:"UA-54083301-40"}}},gtm:{code:"GTM-KJCF97"}},"www.olx.com.gh":{countryCode:"GH",countryIsoId:288,countryId:82,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-NNK9J3"}},"www.olx.com.ng":{countryCode:"NG",countryIsoId:566,countryId:156,platformId:1,fieldMap:a.fieldMap.tablica,
useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-5G3GKZ"}},"www.olx.co.ke":{countryCode:"KE",countryIsoId:404,countryId:110,platformId:1,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},
ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-KGWKF4"}},"www.olx.com.ar":{countryCode:"AR",countryIsoId:32,countryId:2,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522930,logServer:"logw306"},mobile:{siteId:533954,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-10"},mobile:{code:"UA-54083301-22"}}},gtm:{code:"GTM-PTV242"}},"www.olx.com.pe":{countryCode:"PE",
countryIsoId:604,countryId:167,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522835,logServer:"logw306"},mobile:{siteId:533947,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-29"},mobile:{code:"UA-54083301-17"}}},gtm:{code:"GTM-5F9DC5"}},"www.olx.com.sv":{countryCode:"SV",countryIsoId:222,countryId:64,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,
ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522825,logServer:"logw306"},mobile:{siteId:533937,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-100"},mobile:{code:"UA-54083301-28"}}},gtm:{code:"GTM-NG6689"}},"www.olx.com.gt":{countryCode:"GT",countryIsoId:320,countryId:89,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522827,
logServer:"logw306"},mobile:{siteId:533939,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-84"},mobile:{code:"UA-54083301-32"}}},gtm:{code:"GTM-K7CCRZ"}},"www.olx.com.ve":{countryCode:"VE",countryIsoId:862,countryId:229,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522841,logServer:"logw306"},mobile:{siteId:533953,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-33"},
mobile:{code:"UA-54083301-1"}}},gtm:{code:"GTM-54Z3NS"}},"www.olx.com.ec":{countryCode:"EC",countryIsoId:218,countryId:62,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},ati:{desktop:{siteId:522824,logServer:"logw306"},mobile:{siteId:533936,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-21"},mobile:{code:"UA-54083301-18"}}},gtm:{code:"GTM-55DKNX"}},"www.olx.co.za":{countryCode:"ZA",countryIsoId:710,
countryId:193,platformId:1,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!0},useSamurai:!0,hydra:{path:"-ssafrica"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-5VXJMQ"}},"www.olx.com.co":{countryCode:"CO",countryIsoId:170,countryId:47,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!0,hydra:{path:"-latam"},
ati:{desktop:{siteId:522938,logServer:"logw306"},mobile:{siteId:533962,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-137146-20"},mobile:{code:"UA-54083301-27"}}},gtm:{code:"GTM-WTD54R"}},"www.dubizzle.com":{countryCode:"AE",countryIsoId:784,countryId:221,platformId:2,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-uae"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},
mobile:{code:""}}},gtm:{code:""}},"www.sellitforme.ae":{countryCode:"AE",countryIsoId:784,countryId:221,platformId:2,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!0,hydra:{path:"-uae"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:""}},"www.olx.com.eg":{countryCode:"EG",countryIsoId:818,countryId:63,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,
ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-57C6CL"}},"www.olx.sa.com":{countryCode:"SA",countryIsoId:682,countryId:184,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},
mobile:{code:""}}},gtm:{code:"GTM-NF2FNW"}},"www.olx.com.kw":{countryCode:"KW",countryIsoId:414,countryId:114,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-PQRXTK"}},"www.olx.com.bh":{countryCode:"BH",countryIsoId:48,countryId:17,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,
ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-K7CJQ2"}},"www.olx.com.om":{countryCode:"OM",countryIsoId:512,countryId:161,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},
mobile:{code:""}}},gtm:{code:"GTM-WZLJZS"}},"www.olxliban.com":{countryCode:"LB",countryIsoId:422,countryId:118,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-TKN3BG"}},"www.olx.qa":{countryCode:"QA",countryIsoId:634,countryId:173,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,
ati:!1,ga:!1,gtm:!0,comscore:!1},useSamurai:!1,hydra:{path:"-mena"},ati:{desktop:{siteId:0,logServer:""},mobile:{siteId:0,logServer:""}},ga:{trackerCountry:{desktop:{code:""},mobile:{code:""}}},gtm:{code:"GTM-K53RT4"}},"ninja.onap.io":{countryCode:"BR",countryIsoId:76,countryId:30,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!0,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:""},ati:{desktop:{siteId:522546,logServer:"logw306"},mobile:{siteId:533932,logServer:"logw306"}},
ga:{trackerCountry:{desktop:{code:"UA-31226936-2"},mobile:{code:"UA-5247560-4"}}},gtm:{code:"GTM-TKJ8C9"}},"ninja.onap.io.tablica":{countryCode:"BR",countryIsoId:76,countryId:30,platformId:8,fieldMap:a.fieldMap.tablica,useTraking:{hydra:!0,ati:!1,ga:!1,gtm:!1,comscore:!1},useSamurai:!1,hydra:{path:""},ati:{desktop:{siteId:522546,logServer:"logw306"},mobile:{siteId:533932,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-31226936-2"},mobile:{code:"UA-5247560-4"}}},gtm:{code:"GTM-TKJ8C9"}},
"www.clm.io":{countryCode:"BR",countryIsoId:76,countryId:30,platformId:1,fieldMap:a.defaultConfig.fieldMap,useTraking:{hydra:!0,ati:!1,ga:!0,gtm:!1,comscore:!0},useSamurai:!0,hydra:{path:"-demo"},ati:{desktop:{siteId:522546,logServer:"logw306"},mobile:{siteId:533932,logServer:"logw306"}},ga:{trackerCountry:{desktop:{code:"UA-31226936-2"},mobile:{code:"UA-5247560-4"}}},gtm:{code:"GTM-TKJ8C9"}}};a.checkParam=function(){function c(c,d){a[c](d)}var d,b,f,e;for(d in window.dataLayer)if(window.dataLayer.hasOwnProperty(d)&&
(b=window.dataLayer[d],"object"===typeof b&&void 0===b.processed))for(f in a.config.specialNames)a.config.specialNames.hasOwnProperty(f)&&(e=a.config.specialNames[f],"processed"!==e&&b[e]&&(window.dataLayer[d].processed=!0,window.trackingQueue.push(c(e,b[e]))))};a.trackPage=function(c){var d;c=a.getParams(c,null);for(d in a.siteUrlConfig[a.config.siteUrl].useTraking)a.siteUrlConfig[a.config.siteUrl].useTraking.hasOwnProperty(d)&&a.siteUrlConfig[a.config.siteUrl].useTraking[d]&&(v=d,a[d].trackPage(c))};
a.trackEvent=function(c){var d;c=a.getParams(null,c);for(d in a.siteUrlConfig[a.config.siteUrl].useTraking)a.siteUrlConfig[a.config.siteUrl].useTraking.hasOwnProperty(d)&&a.siteUrlConfig[a.config.siteUrl].useTraking[d]&&(v=d,a[d].trackEvent(c))};a.cleanup=function(c){for(var d,b,f=!0;f;)for(f=!1,b=window.dataLayer.length,d=0;d<b;d+=1)void 0!==window.dataLayer[d].event&&"gtm."===window.dataLayer[d].event.slice(0,4)||"object"!==typeof window.dataLayer[d]||void 0!==window.dataLayer[d].call||void 0!==
window.dataLayer[d].dynx_itemid||void 0!==window.dataLayer[d].dynx_totalvalue||void 0!==window.dataLayer[d].dynx_pagetype||(window.dataLayer.splice(d,1),d=b,f=!0);"function"===typeof c&&c.call()};a.event=function(c){a.config.callBack&&a.config.callBack.call(a,c)};a.specificVar=function(c){a[c[0]]&&a.siteUrlConfig[a.config.siteUrl].useTraking[c[0]]&&a[c[0]].specificVar(c)};a.call=function(c){void 0!==a.hydra.finished?window.trackingQueue.push(a.callModule(c)):a.wait=setInterval(function(){void 0!==
a.hydra.finished&&(clearInterval(a.wait),window.trackingQueue.push(a.callModule(c)))},500)};a.callModule=function(c){var d,b,f=!0,e={};if("string"===typeof c&&a[c]&&"function"===typeof a[c].init){for(;f;)for(f=!1,b=window.dataLayer.length,d=0;d<b;d+=1)"object"===typeof window.dataLayer[d]&&(void 0!==window.dataLayer[d].call?(window.dataLayer.splice(d,1),d=b,f=!0):void 0!==window.dataLayer[d].trackPage&&(e=window.dataLayer[d]));"samurai"===c&&a.siteUrlConfig[a.config.siteUrl].useSamurai&&(v="samurai",
a[c].init(e))}};a.getParams=function(c,d){return{customParams:a.getCustomParams(),invite:a.getInvite(),host:a.getHost(),hash:a.getHash(),referrer:a.getReferrer(),pageName:a.getPageName(c),eventData:a.getEventData(d)}};a.getCustomParams=function(){var c,d,b={};for(c in window.dataLayer)if(window.dataLayer.hasOwnProperty(c))for(d in window.dataLayer[c])window.dataLayer[c].hasOwnProperty(d)&&(a.helper.inArray(a.config.specialNames,d)||"gtm."===d.slice(0,4)||a.helper.inArray(["bind","push","prototype",
"eventTimeout"],d)||(b[d]=window.dataLayer[c][d]));return b};a.getInvite=function(){var c,d=window.location.search.replace(/^\?/,"").split("&"),b,f={};for(c=0;c<d.length;c+=1)b=d[c].split("="),f[b[0]]=b[1];return null!==(f.invite||null)?a.helper.convertToLatin(a.helper.deucex(f.invite)).replace(/\s/g,""):null};a.getHost=function(){return window.location.host||null};a.getHash=function(){return window.location.hash||null};a.getReferrer=function(){return document.referrer||null};a.getPageName=function(c){var d=
null;c&&(d=a.helper.deucex(c.toLowerCase()));return d};a.getEventData=function(c){var d=[];c&&(c[0]&&(d.category=a.helper.deucex(c[0])),c[1]&&(d.action=a.helper.deucex(c[1])),c[2]&&(d.label=a.helper.deucex(c[2])),c[3]&&(d.value=a.helper.deucex(c[3])),c[4]&&(d.interact=a.helper.deucex(c[4])));return d}}(h),function(a){a.eucex=function(a){var b;try{b=encodeURIComponent(decodeURIComponent(a))}catch(c){b=""}return b};a.deucex=function(a){var b;try{b=decodeURIComponent(a)}catch(c){b=""}return b};a.loadScript=
function(a,b,c){var d,g,f;"function"===typeof document.createElement&&(d=document.createElement("script"),d.type="text/javascript",d.async=!0,b&&(d.id=b),c&&(d.readyState?d.onreadystatechange=function(){if("loaded"===d.readyState||"complete"===d.readyState)d.onreadystatechange=null,c(a)}:d.onload=function(){c(a)}),d.src=a,b=document.getElementsByTagName("head"),g=document.getElementsByTagName("body"),f=document.getElementsByTagName("script"),b&&b[0]?b[0].appendChild(d):g&&g[0]?g[0].appendChild(d):
f&&f[0]&&f[0].parentNode&&f[0].parentNode.insertBefore(d,f[0]))};a.getCategoriesData=function(e,b){var c,d=[{},{},{},{},{}];for(c=4;0!==c;--c)if(e.customParams["categoryLevel"+c+"Id"]||e.customParams["categoryLevel"+c+"Name"])d[c]={id:e.customParams["categoryLevel"+c+"Id"]?b.convertString(a.deucex(e.customParams["categoryLevel"+c+"Id"])):0,name:e.customParams["categoryLevel"+c+"Name"]?b.convertString(a.deucex(e.customParams["categoryLevel"+c+"Name"])):""};return d};a.debug=function(e,b){window.configTracking.debug.call(a,
e,b)};a.getCurrentPath=function(){var a=window.location.pathname;"/"===a.charAt(0)&&1<a.length&&(a=a.slice(1));"/"===a.charAt(a.length-1)&&1<a.length&&(a=a.slice(0,a.length-1));0<a.search(/\./)&&(a=a.replace(/(\.[a-z]+$)/,"",a));if("/"===a||""===a)a="home";return a};a.inArray=function(a,b){var c,d=a.length,g=!1;for(c=0;c<d;c+=1)a[c]===b&&(g=!0);return g};a.jsonEncode=function(a){try{var b,c=window.JSON,d=function(c){try{c=encodeURIComponent(decodeURIComponent(c))}catch(d){}var a=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
b={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};a.lastIndex=0;return a.test(c)?'"'+c.replace(a,function(c){var d=b[c]||null;return"string"===typeof d?d:c})+'"':'"'+c+'"'},g=function(c,a){var b=0,f=b="",f=0,e=[],l=a[c];l&&"object"===typeof l&&"function"===typeof l.toJSON&&(l=l.toJSON(c));switch(typeof l){case "string":return d(l);case "number":return isFinite(l)?String(l):"null";case "boolean":case "null":return String(l);case "object":if(!l)return"null";e=[];if("[object Array]"===
Object.prototype.toString.apply(l)){f=l.length;for(b=0;b<f;b+=1)e[b]=g(b,l)||"null";return f=0===e.length?"[]":"["+e.join(",")+"]"}for(b in l)l.hasOwnProperty(b)&&(f=g(b,l))&&e.push(d(b)+":"+f);return f=0===e.length?"{}":"{"+e.join(",")+"}";default:throw new SyntaxError("json_encode");}};if("object"===typeof c&&"function"===typeof c.stringify){if(b=c.stringify(a),void 0===b)throw new SyntaxError("json_encode");}else b=g("",{"":a});try{b=encodeURIComponent(decodeURIComponent(b))}catch(f){b=null}return b}catch(l){if(!(l instanceof
SyntaxError))throw Error("Unexpected error type in json_encode()");return null}};a.jsonDecode=function(a){var b=window.JSON;if("object"===typeof b&&"function"===typeof b.parse)try{return b.parse(a)}catch(c){if(!(c instanceof SyntaxError))throw Error("Unexpected error type in json_decode()");return null}b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;b.lastIndex=0;b.test(a)&&(a=a.replace(b,function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)}));
return/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))?a=eval("("+a+")"):null};a.ajaxCall=function(a,b,c,d){var g,f;if(window.XDomainRequest){if(g=new XDomainRequest)g.onload=function(){c(g.responseText,d)},g.open(a,b,!0),g.send()}else{if(window.XMLHttpRequest)f=new XMLHttpRequest;else try{f=new ActiveXObject("MSXML2.XMLHTTP")}catch(l){f=new ActiveXObject("Microsoft.XMLHTTP")}try{f.onreadystatechange=
function(){4===f.readyState&&c(f.responseText,d)},f.open(a,b,!0),f.send()}catch(k){c("",d)}}};a.findElementsByClassName=function(e){a.getElementsByClassName=document.getElementsByClassName?function(a){var c=[],d=[],e;if((c=document.getElementsByClassName(a))&&c.length)for(e=c.length,a=0;a<e;a+=1)d.push(c[a]);return d}:document.evaluate?function(a){var c="",d=[],e,c="[contains(concat(' ', @class, ' '), ' "+a+" ')]";a="http://www.w3.org/1999/xhtml"===document.documentElement.namespaceURI?"http://www.w3.org/1999/xhtml":
null;try{e=document.evaluate(".//*"+c,document,a,0,null)}catch(f){e=document.evaluate(".//*"+c,document,null,0,null)}for(;c=e.iterateNext();)d.push(c);return d}:function(a){var c=[],d=[],e,f;a=new RegExp("(^|\\s)"+a+"(\\s|$)");if((c=document.all||document.getElementsByTagName("*"))&&c.length)for(f=c.length,e=0;e<f;e+=1)c[e].className&&a.test(c[e].className)&&d.push(c[e]);return d};return a.getElementsByClassName(e)};a.setCookie=function(a,b,c,d,g){var f=new Date,l;try{f.setTime(f.getTime()+6E4*c),
l=";expires="+f.toUTCString(),g=";domain=."+(g||h.config.cookieDomain),document.cookie=a+"="+b+l+g+(";path="+(d||"/"))}catch(k){}};a.getCookie=function(a,b){var c=a+"=",d="",g,f,l=null;try{d=document.cookie.split(";")}catch(k){}for(g=0;g<d.length;g+=1){for(f=d[g];" "===f.charAt(0);)f=f.substring(1);if(0===f.search(c)){c=f.substring(c.length,f.length);l=b?c.match(b):c;break}}return l};a.getProtocol=function(a,b){return"https:"===document.location.protocol?"https://"+(void 0!==a?a:""):"http://"+(void 0!==
b?a:"")};a.convertToLatin=function(a){var b={"\u00e1":"a","\u00c1":"A","\u00e9":"e","\u00c9":"E","\u00ed":"i","\u00cd":"I","\u00f3":"o","\u00d3":"O","\u00fa":"u","\u00da":"U","\u00f1":"n","\u00d1":"N"};return a.replace(/[^A-Za-z0-9\-_]/g,function(c){return b[c]||c})}}(h.helper),function(a,e){a.trackPage=function(b){a.finished=!1;a.init();a.trackWithImage(a.getUrl("it"+e.siteUrlConfig[e.config.siteUrl].hydra.path,b));a.finished=!0};a.trackEvent=function(b){a.finished=!1;a.trackPage(b);a.finished=!0};
a.specificVar=function(){};a.init=function(){var b;a.initPushed||(("www.olx.ph"===e.config.siteUrl||"www.olx.co.tz"===e.config.siteUrl||"www.olx.com.bo"===e.config.siteUrl||"www.olx.com.pa"===e.config.siteUrl||"www.olx.com.py"===e.config.siteUrl||"www.olx.com.ni"===e.config.siteUrl||"www.olx.co.cr"===e.config.siteUrl||"www.olx.com.uy"===e.config.siteUrl||"www.olx.com.ar"===e.config.siteUrl||"www.olx.com.pe"===e.config.siteUrl||"www.olx.com.sv"===e.config.siteUrl||"www.olx.com.gt"===e.config.siteUrl||
"www.olx.com.ve"===e.config.siteUrl||"www.olx.com.ec"===e.config.siteUrl||"www.olx.com.co"===e.config.siteUrl)&&"production"===e.config.environment&&navigator.cookieEnabled&&document.cookie&&(b=(document.cookie.match(/onap/g)||[]).length,1<b&&(document.cookie="onap=delete;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=.m."+e.config.cookieDomain+";path=/",document.cookie="onap=delete;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=.www."+e.config.cookieDomain+";path=/")),a.iframeReady=!0,a.initPushed=!0,
a.lastPageName=null,a.lastEventName=null)};a.getHost=function(){return"production"===e.config.environment?void 0!==e.siteUrlConfig[e.config.siteUrl].hydra.hostName?e.siteUrlConfig[e.config.siteUrl].hydra.hostName:e.defaultConfig.hydraHost:"tracking-dev.onap.io"};a.getUrl=function(b,c){var d,g=[],f,l,k,r,n,h,m,q,s,t,p,u=!1;d="production"===e.config.environment?a.getHost()+"/h/v2/":a.getHost()+"/h/";d=e.helper.getProtocol()+d+b+"?";try{navigator.cookieEnabled&&document.cookie?(f=new Date,k=Math.round(f.getTime()/
1E3),t=e.helper.getCookie("onap",/([a-z0-9]+)-([0-9]+)-([a-z0-9]+)-([0-9]+)-([0-9]+)-?(.*)?/),null!==t&&0<t.length?(n=t[1],m=parseInt(t[2],10),r=t[3],h=parseInt(t[4],10),q=t[5],s=t[6]||null,0<q-k?h+=1:(m+=1,r=a.generateSession(),h=1)):(n=a.generateSession(),m=1,r=n,h=1,s=null),p=n+"-"+m+"-"+r+"-"+h+"-"+(k+1800),null!==s&&(p=p+"-"+s),p=p.replace(/[^\w\-\=]/g,""),e.helper.setCookie("onap",p,518400)):(n=a.generateSession(),m=1,r=n,h=1,u=!0)}catch(v){n=a.generateSession(),m=1,r=n,h=1,u=!0}d=d+("sl="+
n)+("&s="+r);d+="&cl="+m;d+="&c="+h;u&&(d+="&nc=1");d+="&ivd=olx-"+e.siteUrlConfig[e.config.siteUrl].countryCode.toLowerCase()+"_organic";d+="&cou="+e.siteUrlConfig[e.config.siteUrl].countryCode;d+="&cisoid="+e.siteUrlConfig[e.config.siteUrl].countryIsoId;d+="&cid="+e.siteUrlConfig[e.config.siteUrl].countryId;d+="&pid="+e.siteUrlConfig[e.config.siteUrl].platformId;c.invite&&(d+="&iv="+e.helper.eucex(c.invite));c.host&&(d+="&host="+e.helper.eucex(c.host));c.hash&&(d+="&hash="+e.helper.eucex(c.hash));
c.referrer&&(d+="&referer="+e.helper.eucex(c.referrer));c.eventData.category&&(c.eventData.category&&g.push(c.eventData.category),c.eventData.action&&g.push(c.eventData.action),c.eventData.label&&g.push(c.eventData.label),c.eventData.value&&g.push(c.eventData.value),a.lastEventName=e.helper.eucex(a.convertString(g.join("_"))),d+="&eventName="+a.lastEventName,c.pageName||a.lastPageName&&(d+="&pageName="+a.lastPageName));c.pageName&&(a.lastPageName=e.helper.eucex(a.getPageName(c)),d+="&pageName="+a.lastPageName,
d+="&trackPage="+e.helper.eucex(c.pageName));f=a.getCustomParams(c);for(l in f)f.hasOwnProperty(l)&&(d="extraPageName"!==l&&"extra"!==l?d+("&"+e.helper.eucex(l)+"="+e.helper.eucex(f[l])):d+("&"+e.helper.eucex(l)+"="+e.helper.jsonEncode(f[l])));d+="&t="+(new Date).getTime();"function"===typeof window.configTracking.debug&&(c.pageName?e.helper.debug("hydra",[{customParams:f},{pageName:a.getPageName(c)}]):c.eventData.category&&e.helper.debug("hydra",[{eventName:a.convertString(g.join("_"))}]));return d};
a.getPageName=function(a){return"notfound"===a.pageName?"not_found":e.ga.getPageName(a)};a.getCustomParams=function(b){var c,d={};for(c in b.customParams)b.customParams.hasOwnProperty(c)&&"function"!==typeof b.customParams[c]&&("extraPageName"===c&&b.customParams[c].hydra?d[c]=b.customParams[c].hydra:"extraPageName"===c&&b.customParams[c].ga?d[c]=b.customParams[c].ga:"trackEvent"===c?d[c]=b.customParams[c]:e.helper.inArray("categoryLevel1Id categoryLevel1Name categoryLevel2Id categoryLevel2Name categoryLevel3Id categoryLevel3Name categoryLevel4Id categoryLevel4Name".split(" "),
c)?d[c]=a.convertCategoryString(e.helper.deucex(b.customParams[c])):e.helper.inArray(e.config.knowVars,c)?d[c]="adImpressions"===c||"fadImpressions"===c?e.helper.jsonEncode(b.customParams[c]):e.helper.deucex(b.customParams[c]):e.helper.inArray("t pageName stats title referer cookies lang host cou tid cat iid ivd invs invc iv hash uid emd5 bind push prototype itemTitle itemPrice imageUrl pageUrl pagecat dynx_itemid dynx_totalvalue dynx_pagetype loggedin isseller google_tag_params _trackPageview page_type is_lister city loggedin".split(" "),
c)||(d.extra||(d.extra={}),d.extra[c]="object"!==typeof b.customParams[c]?e.helper.eucex(b.customParams[c]):e.helper.jsonEncode(b.customParams[c])));for(c=1;5!==c;c+=1)b.customParams["categoryLevel"+c+"Id"]&&(d.cat=b.customParams["categoryLevel"+c+"Id"]);b.customParams.itemId&&(d.iid=b.customParams.itemId,delete d.itemId);b.customParams.userId&&("string"===typeof b.customParams.userId&&null!==b.customParams.userId.match("^[a-f0-9]{32}$")?d.emd5=b.customParams.userId:d.uid=b.customParams.userId,delete d.userId);
b.customParams.language&&(d.lang=b.customParams.language,delete d.language);b.customParams.regionId&&(d.provinceId=b.customParams.regionId,delete d.regionId);b.customParams.regionName&&(d.provinceName=b.customParams.regionName,delete d.regionName);return d};a.trackWithImage=function(b){var c;window.configTracking.unitTest||(b+="&source=image",c=new Image,c.onload=function(){c.onload=null},c.onerror=function(){var c,g,f,l;g="production"===e.config.environment?a.getHost()+"/h/v2/":a.getHost()+"/h/";
f=b.length;l=e.helper.getProtocol()+g+"it"+e.siteUrlConfig[e.config.siteUrl].hydra.path+"-err?";l+="errorType=firstError&urlLenght="+f+"&url="+e.helper.eucex(b);c=new Image;c.onload=function(){c.onload=null};c.onerror=function(){var c;c=new Image;c.onload=function(){c.onload=null};c.src=l.replace("firstError","secondError")};c.src=l},c.src=b)};a.convertString=function(a){return e.ga.convertString(a)};a.convertCategoryString=function(a){return e.ga.convertCategoryString(a)};a.generateSession=function(){return Number((new Date).getTime()).toString(16)+
"x"+Number(Math.floor(2147483647*Math.random()+1)).toString(16)}}(h.hydra,h),function(a,e){a.trackPage=function(b){var c=document.getElementById("ati-script-tag");c&&c.parentNode.removeChild(c);a.initPushed=!1;a.init(b)};a.trackEvent=function(b){a.init(b,function(){if(b.eventData.category){var c=[],d;b.eventData.action&&c.push(b.eventData.action);b.eventData.label&&c.push(b.eventData.label);b.eventData.value&&c.push(b.eventData.value);d=setInterval(function(){"function"===typeof window.xt_med&&(window.clearInterval(d),
window.configTracking.unitTest||window.xt_med("C",a.convertString(b.eventData.category),a.convertString(c.join("_")),"N"),"function"===typeof window.configTracking.debug&&e.helper.debug("ati",[{"Event Category":a.convertString(b.eventData.category)},{eventLabel:a.convertString(c.join("_"))}]))},100)}})};a.specificVar=function(){};a.init=function(b,c){if(!1===a.initPushed){var d=0,g="";"production"===e.config.environment?b.customParams.platformType&&"desktop"!==b.customParams.platformType?(d=e.siteUrlConfig[e.config.siteUrl].ati.mobile.siteId,
g=e.siteUrlConfig[e.config.siteUrl].ati.mobile.logServer):(d=e.siteUrlConfig[e.config.siteUrl].ati.desktop.siteId,g=e.siteUrlConfig[e.config.siteUrl].ati.desktop.logServer):(d=b.customParams.platformType&&"desktop"!==b.customParams.platformType?533932:522546,g="logw306");window.xtdmc=e.config.cookieDomain;window.xtnv=document;window.xtsd=e.helper.getProtocol()+g;window.xtsite=d;window.xtinviteparam=a.getInvite(b.invite);window.xtcustom=a.getCustomParams(b);window.xtergo="home"===b.pageName?1:0;"function"===
typeof window.configTracking.debug&&e.helper.debug("ati",[{customParams:window.xtcustom}]);window.configTracking.unitTest?c&&c():e.helper.loadScript(e.helper.getProtocol()+"ninja.onap.io/xtcore.js","ati-script-tag",c);a.initPushed=!0}else c&&c()};a.getInvite=function(a){return a};a.getCustomParams=function(b){var c,d={},g,f;for(c in b.customParams)b.customParams.hasOwnProperty(c)&&(e.helper.inArray("geo1 geo2 provinces cities page_name language user_id category subcategory subsubcategory subsubsubcategory parentName categoryName ad_category ad_subcategory keywords page_nb ad_id poster_id ad_photo action_type poster_type posting_to_action provinceId provinceName cityId cityName userId platformType categoryLevel1Id categoryLevel1Name categoryLevel2Id categoryLevel2Name categoryLevel3Id categoryLevel3Name categoryLevel4Id categoryLevel4Name resultSetType resultSetFormat searchString sortBy pageNumber pageCount resultCount extraPageName clientId itemId sellerId sellerType imagesCount creationDate t pageName stats title referer cookies lang host cou tid cat uid emd5 iid ivd invs invc session_l session iv".split(" "),
c)||(d[c]=b.customParams[c]));b.customParams.provinceId&&(c=e.siteUrlConfig[e.config.siteUrl].fieldMap.provinceName,d[c]=parseInt(b.customParams.provinceId,10));b.customParams.cityId&&(c=e.siteUrlConfig[e.config.siteUrl].fieldMap.cityName,d[c]=parseInt(b.customParams.cityId,10));b.customParams.language&&(d.language=e.helper.eucex(b.customParams.language));!b.customParams.userId||"string"===typeof b.customParams.userId&&null!==b.customParams.userId.match("^[a-f0-9]{32}$")||(d.user_id=b.customParams.userId);
b.customParams.platformType&&"desktop"!==b.customParams.platformType&&(d.platform=b.customParams.platformType.replace("mobile-",""));!e.helper.inArray("home resultset postingformstep1 postingformstep2 postingformstep3 login registerformstep1 registerformstep2 registersent myaccount".split(" "),b.pageName)&&b.customParams.itemId&&(d.ad_id=e.helper.eucex(b.customParams.itemId),b.customParams.sellerId&&(d.poster_id=b.customParams.sellerId),b.customParams.imagesCount&&0<parseInt(b.customParams.imagesCount,
10)?d.ad_photo=parseInt(b.customParams.imagesCount,10):d.ad_photo=0);e.helper.inArray("home login registerformstep1 registerformstep2 registersent myaccount".split(" "),b.pageName)||(g=e.helper.getCategoriesData(b,a),g[4].id?(d.category=g[1].id?parseInt(g[1].id,10):"",d.subcategory=g[2].id?parseInt(g[2].id,10):"",d.subsubcategory=g[3].id?parseInt(g[3].id,10):"",d.subsubsubcategory=parseInt(g[4].id,10)):g[3].id?(d.category=g[1].id?parseInt(g[1].id,10):"",d.subcategory=g[2].id?parseInt(g[2].id,10):
"",d.subsubcategory=parseInt(g[3].id,10)):g[2].id?(d.category=g[1].id?parseInt(g[1].id,10):"",d.subcategory=parseInt(g[2].id,10)):g[1].id&&(d.category=parseInt(g[1].id,10)));switch(b.pageName){case "home":g=e.siteUrlConfig[e.config.siteUrl].fieldMap.homePageName;d.page_name=g;break;case "resultset":d.page_name="listing";b.customParams.resultSetType||(b.customParams.resultSetType="browse");d.page_name="user"===b.customParams.resultSetType?d.page_name+"_all":g[4].name?d.page_name+("_"+a.convertCategoryString(g[4].name)):
g[3].name?d.page_name+("_"+a.convertCategoryString(g[3].name)):g[2].name?d.page_name+("_"+a.convertCategoryString(g[2].name)):g[1].name?d.page_name+("_"+a.convertCategoryString(g[1].name)):d.page_name+"_all";"search"===b.customParams.resultSetType||"static"===b.customParams.resultSetType?(b.customParams.searchString&&("search"===b.customParams.resultSetType?(d.keywords=e.helper.deucex(b.customParams.searchString),d.action_type="search"):d.page_name="staticsearch_"+e.helper.deucex(b.customParams.searchString)),
d.page_nb=b.customParams.pageCount?parseInt(b.customParams.pageCount,10):0):"browse"===b.customParams.resultSetType&&(d.action_type="browse");break;case "item":case "replyform":case "replysent":case "tapemail":case "tapsms":case "tapcall":switch(b.pageName){case "replyform":d.page_name="contact_seller_form";break;case "replysent":d.page_name="contact_seller_done";break;case "tapemail":d.page_name="tap_email";break;case "tapcall":d.page_name="tap_call";break;case "tapsms":d.page_name="tap_sms";break;
default:g=e.siteUrlConfig[e.config.siteUrl].fieldMap.itemPageName,d.page_name=g}b.customParams.hasPicture||(b.customParams.hasPicture=!1);b.customParams.creationDate&&(g=new Date,c=(new Date(b.customParams.creationDate)).getTime(),d.posting_to_action=Math.abs(Math.floor((g.getTime()-c)/36E5))-g.getTimezoneOffset()/60);switch(b.pageName){case "replyform":d.action_type="message_form";break;case "replysent":d.action_type="message_sent";break;case "tapemail":d.action_type="tap_email";break;case "tapcall":d.action_type=
"tap_call";break;case "tapsms":d.action_type="tap_sms";break;default:d.action_type="loaded"}b.customParams.sellerType&&(d.poster_type=e.helper.eucex(b.customParams.sellerType));break;case "postingformstep1":case "postingformstep2":case "postingformstep3":case "postingsent":case "editformstep1":case "editformstep2":case "editformstep3":case "editsent":switch(b.pageName){case "postingformstep1":d.page_name="posting_step1";d.action_type="posting";break;case "postingformstep2":d.page_name="posting_step2";
break;case "postingformstep3":d.page_name="posting_step3";break;case "postingsent":d.page_name="posting_success";d.action_type=b.customParams.userId?"posted_logged":"posted";break;case "editformstep1":case "editformstep2":case "editformstep3":d.page_name="posting_edit";break;case "editsent":d.page_name="posting_edit_success",d.action_type="edited"}break;case "login":d.page_name="login";break;case "registerformstep1":d.page_name="register_form";d.action_type="registration";break;case "registerformstep2":d.page_name=
"register_confirmation";d.action_type="registration_pending_confirmation";break;case "registersent":d.page_name="register_success";d.action_type="registered";break;case "myaccount":d.page_name="my_account";break;case "notfound":d.page_name="not_found";break;default:d.page_name=a.convertPageNameString(e.helper.deucex(b.pageName))}if(b.customParams.extraPageName)for(f in b.customParams.extraPageName.ati)b.customParams.extraPageName.ati.hasOwnProperty(f)&&(d.page_name+="/"+a.convertString(f)+"_"+a.convertString(b.customParams.extraPageName.ati[f]));
return d};a.convertString=function(a){"string"===typeof a&&(a=a.toLowerCase().replace(/\s{2}/g," ").replace(/\s/g,"_").replace(/\//g,"_").replace(/-/g,"_"));return a};a.convertCategoryString=function(a){return a.replace(/[^a-z0-9&]/g,"_").replace(/[_]+/g,"_")};a.convertPageNameString=function(a){return a.replace(/[^a-z0-9\/]/g,"_")}}(h.ati,h),function(a,e){a.trackPage=function(b){"notfound"===b.pageName?a.initError():a.init(b);"function"===typeof window.configTracking.debug&&e.helper.debug("ga",[{pageName:a.getPageName(b)}]);
window.configTracking.unitTest||("notfound"===b.pageName?window._gaq.push(["trackerError._trackPageview",a.getPageName(b)]):window._gaq.push(["trackerCountry._trackPageview",a.getPageName(b)]))};a.trackEvent=function(b){var c=0;"notfound"!==b.pageName&&(c=b.customParams.platformType&&"desktop"!==b.customParams.platformType?void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.mobile.events?e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.mobile.events:e.defaultConfig.ga.trackerCountry.events:
void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.desktop.events?e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.desktop.events:e.defaultConfig.ga.trackerCountry.events)&&(a.init(b),c=["trackerCountry._trackEvent"],b.eventData.category&&c.push(a.convertString(b.eventData.category)),b.eventData.action&&c.push(a.convertString(b.eventData.action)),b.eventData.label&&c.push(a.convertString(b.eventData.label)),b.eventData.value&&c.push(a.convertString(b.eventData.value)),b.eventData.interact&&
c.push(!1),window.configTracking.unitTest||window._gaq.push(c),"function"===typeof window.configTracking.debug&&e.helper.debug("ga",[{eventParams:[a.convertString(b.eventData.category),a.convertString(b.eventData.action),a.convertString(b.eventData.label)]}]))};a.specificVar=function(a){var c,d=["trackerCountry._setCustomVar"];for(c in a)a.hasOwnProperty(c)&&0!==c&&d.push(a[c]);window._gaq.push(d)};a.init=function(b){var c;a.initPushed||(c="production"===e.config.environment?b.customParams.platformType&&
"desktop"!==b.customParams.platformType?e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.mobile.code:e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.desktop.code:b.customParams.platformType&&"desktop"!==b.customParams.platformType?"UA-5247560-4":"UA-31226936-2",b=b.customParams.platformType&&"desktop"!==b.customParams.platformType?void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.mobile.sitespeed?e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.mobile.sitespeed:e.defaultConfig.ga.trackerCountry.sitespeed:
void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.desktop.sitespeed?e.siteUrlConfig[e.config.siteUrl].ga.trackerCountry.desktop.sitespeed:e.defaultConfig.ga.trackerCountry.sitespeed,a.initCall("trackerCountry",c,b),a.initPushed=!0)};a.initError=function(){var b;b=void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerError&&void 0!==e.siteUrlConfig[e.config.siteUrl].ga.trackerError.code?e.siteUrlConfig[e.config.siteUrl].ga.trackerError.code:e.defaultConfig.ga.trackerError.code;a.initErrorPushed||
(a.initCall("trackerError",b,0),a.initErrorPushed=!0)};a.initCall=function(b,c,d){var g=e.config.cookieDomain,f="emptyReferrer",l=!0;window._gaq||(window._gaq=[]);window._gaq.push([b+"._setAccount",c]);window._gaq.push([b+"._setAllowLinker",!0]);window._gaq.push([b+"._setAllowAnchor",!0]);window._gaq.push([b+"._setDomainName",e.config.cookieDomain]);window._gaq.push([b+"._addOrganic","Mail","q"]);window._gaq.push([b+"._addOrganic","Rambler","words"]);window._gaq.push([b+"._addOrganic","Aport","r"]);
window._gaq.push([b+"._addOrganic","Webalta","q"]);d||window._gaq.push([b+"._setSiteSpeedSampleRate",0]);void 0!==document.referrer&&""!==document.referrer&&(f=document.referrer.match(/:\/\/(.[^\/]+)/),null!==f&&(f=f[1],-1!==f.search(g)&&(l=!1)));l&&a.specificVar(["ga",2,"keep_referral",f,2]);window.configTracking.unitTest||e.helper.loadScript(e.helper.getProtocol("ssl","www")+".google-analytics.com/ga.js")};a.getPageName=function(b){var c,d,g=e.helper.getCategoriesData(b,a),f="";switch(b.pageName){case "home":c=
"/home/";break;case "resultset":b.customParams.resultSetType||(b.customParams.resultSetType="browse");b.customParams.resultSetFormat||(b.customParams.resultSetFormat="list");switch(b.customParams.resultSetType){case "expired":c="expiredlisting/";break;case "static":c="staticsearch/";break;case "search":c="search/";break;case "user":c="userlisting/";break;default:c="listing/"}d=0;g[1].name?(f+=a.convertCategoryString(g[1].name)+"/",d=g[1].id,g[2].id&&(f+=g[2].id+"/",d=g[2].id),g[3].id&&(f+=g[3].id+
"/",d=g[3].id),g[4].id&&(f+=g[4].id+"/",d=g[4].id)):"user"!==b.customParams.resultSetType&&(f+="nocat/");c=f+c;"static"===b.customParams.resultSetType&&b.customParams.searchString?c+="/statickw_"+e.helper.eucex(b.customParams.searchString).replace("%20","+"):(c+=a.addExtraPageName(b,"/"),b.customParams.pageNumber&&1<parseInt(b.customParams.pageNumber,10)&&(c+="/pag_"+parseInt(b.customParams.pageNumber,10)),"gallery"===b.customParams.resultSetFormat&&(c+="/ig"),b.customParams.sortBy&&(c+="-sort_"+
a.convertString(e.helper.deucex(b.customParams.sortBy))),"search"===b.customParams.resultSetType&&b.customParams.searchString&&(c+="?searchbox="+e.helper.eucex(b.customParams.searchString).replace("%20","+")+"&section="+d));c=c.replace("//","/");break;case "item":case "replysent":case "tapemail":case "tapcall":case "tapsms":b.customParams.imagesCount||(b.customParams.imagesCount=0);switch(b.pageName){case "replysent":c="reply";break;case "tapemail":c="tap_email";break;case "tapcall":c="tap_call";
break;case "tapsms":c="tap_sms";break;default:c="item"}g[1].name&&(f+=a.convertCategoryString(g[1].name)+"/",g[2].id&&(f+=g[2].id+"/"),g[3].id&&(f+=g[3].id+"/"),g[4].id&&(f+=g[4].id+"/"));c=f+c;c=0<b.customParams.imagesCount?c+"/img_1":c+"/img_0";c+=a.addExtraPageName(b,"-");break;case "replyform":c="ContactForm";break;case "postingformstep1":c="posting_step1";break;case "postingformstep2":c="posting_step2";break;case "postingformstep3":c="posting_step3";break;case "postingsent":c="posting_success";
break;case "editformstep1":case "editformstep2":case "editformstep3":c="posting_edit";break;case "editsent":c="posting_edit_success";break;case "login":c="login";break;case "registerformstep1":case "registerformstep2":case "registersent":c="register";break;case "myaccount":case "payment":c=e.helper.getCurrentPath().toLowerCase();break;case "notfound":c="/error/404/params?page="+document.location.pathname+document.location.search+"&from="+document.referrer;break;default:c=a.convertString(b.pageName)}e.helper.inArray("resultset item replyform replysent tapemail tapcall tapsms".split(" "),
b.pageName)||(c+=a.addExtraPageName(b,"/"),c=c.replace("//","/"));return c};a.convertString=function(a){return a.toLowerCase().replace(/[^a-z0-9\/_]/g,"-").replace(/\s{2}/g," ").replace(/\s/g,"-").replace(/---/g,"-").replace(/---/g,"-").replace(/--/g,"-")};a.convertCategoryString=function(b){return a.convertString(b).replace(/\//g,"-")};a.addExtraPageName=function(a,c){var d="",e,f;if(a.customParams.extraPageName)for(f in e=a.customParams.extraPageName.ga||a.customParams.extraPageName.hydra||[],e)e.hasOwnProperty(f)&&
(d+=c+f,e[f]&&("object"===typeof e[f]?"function"===typeof e[f].join&&(d+="_"+e[f].join("_")):d+="_"+e[f]));return d}}(h.ga,h),function(a,e){a.trackPage=function(b){a.getCustomParams(b);a.init()};a.trackEvent=function(){a.init()};a.specificVar=function(){};a.init=function(){a.initPushed||(window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),e.helper.loadScript(e.helper.getProtocol()+"www.googletagmanager.com/gtm.js?id="+e.siteUrlConfig[e.config.siteUrl].gtm.code),a.initPushed=!0)};
a.getCustomParams=function(a){var c={},d=[],g,f,l,k;e.hydra.lastPageName&&(c.pageName=e.helper.deucex(e.hydra.lastPageName));if(a.invite){if(g=a.invite.match(/^\s*([a-zA-Z0-9\-]{1,64})(?:_([a-zA-Z0-9%\-]{0,128})).*/),null!==g&&0<g.length){d=g;try{navigator.cookieEnabled&&document.cookie&&(f=new Date,l='"sr='+d[1]+"&cn="+d[2]+"&td="+Math.floor(f.getTime()/1E3)+'"',e.helper.setCookie("invite",l,43200))}catch(r){}}}else try{navigator.cookieEnabled&&document.cookie&&(g=e.helper.getCookie("invite",/"sr=([A-Za-z0-9\-]+)&cn=([A-Za-z0-9%\-]+)&td=[0-9]+"/),
null!==g&&0<g.length&&(d=g))}catch(h){}1<d.length&&(c.invs=d[1].toLowerCase(),c.invc=d[2].toLowerCase());c.event="INV_AVAILABLE";try{navigator.cookieEnabled&&document.cookie&&(k=e.helper.getCookie("ldTd",/true/),null===k&&(e.helper.setCookie("ldTd","true"),c.landing_page="true"))}catch(p){}window.dataLayer.push(c)}}(h.gtm,h),function(a,e){a.init=function(){void 0===a.initPushed&&(window._comscore=window._comscore||[],window._comscore.push({c1:"2",c2:"6035490"}),e.helper.loadScript(e.helper.getProtocol("sb",
"b")+".scorecardresearch.com/beacon.js"),a.initPushed=!0)};a.trackPage=function(){window.configTracking.unitTest||a.init()};a.trackEvent=function(){};a.specificVar=function(){}}(h.comscore,h),function(a,e){a.atlasCountries="IN PK PH ID PL RO UA BY BG KZ UZ PT AO MZ TZ GH UG KE ZA NG".split(" ");a.arwenCountries="NI PY BO SV GT VE VZ EC PE UY PA CR CO AR".split(" ");a.dubizzleCountries=["AE"];a.suggestion={};(function(c){c.isAtlas=function(a){return e.helper.inArray(c.atlasCountries,a)};c.isArwen=
function(a){return e.helper.inArray(c.arwenCountries,a)};c.isDubizzle=function(a){return e.helper.inArray(c.dubizzleCountries,a)};c.init=function(a){var b=e.helper.findElementsByClassName("clm-samurai"),f={},l,k=c.getDiceValue(),r,h;c.resursive=[];c.params=a;for(a=0;a<b.length;a+=1)if(null===b[a].getAttribute("data-processed"))if(f=c.readParams(b[a]),void 0!==f.abtest&&"true"===f.abtest){if(f.abtestData=c.processAbTest(b[a]),b[a])if(0===k){for(r in f.abtestData)if(f.abtestData.hasOwnProperty(r)){h=
f.abtestData[r];break}h.data=h.data.slice(0,1);c.resursive.push({div:b[a],segment:"nocookies",groupData:h})}else l=c.getSegment(k,f),f.abtestData[l]&&c.resursive.push({div:b[a],segment:l,groupData:f.abtestData[l]})}else l=0===k?"nocookies":"default",c[f.module]&&b[a]&&c.resursive.push({div:b[a],segment:l,groupData:{data:[f],percent:100}});c.callResursive()};c.readParams=function(a){a=a.attributes;var c={},f,b;for(b=0;b<a.length;b+=1)f=a[b].nodeName,0===f.search(/data-/)&&(f=f.replace("data-",""),
c[f]=a[b].value);return c};c.processAbTest=function(a){var b,f=[],e={},k=null,h=100,n;n=!1;b=a.getElementsByTagName("div")||[];for(a=0;a<b.length;a+=1)f.push(c.readParams(b[a]));for(a=0;a<f.length;a+=1)void 0!==f[a]["abtest-group"]&&void 0!==f[a]["abtest-group-percent"]&&k!==f[a]["abtest-group"]?(n=parseInt(f[a]["abtest-group-percent"],10),100<n||0>=n?n=!1:(0>h-n&&(n=h),k=f[a]["abtest-group"].replace(/^[a-z0-9]/,""),0<n?(e[k]={},e[k].percent=n,h-=n,n=!0):n=!1)):n&&k&&e[k]&&void 0!==f[a].module&&(void 0===
e[k].data&&(e[k].data=[]),e[k].data.push(f[a]));0<h&&(k&&e[k]&&e[k].percent?e[k].percent+=h:(k="A",e[k]={},e[k].data=[],e[k].percent=h));return e};c.getSegment=function(a,c){var f,b,e=[],h=1;for(b in c.abtestData)c.abtestData.hasOwnProperty(b)&&e.push({group:b,percent:c.abtestData[b].percent});e.sort(function(a,c){return c.percent-a.percent});for(b=0;b<e.length;b+=1)a>=h&&a<=h+e[b].percent-1&&(f=e[b].group),h+=e[b].percent;return f};c.getDiceValue=function(){var a,c,b;try{navigator.cookieEnabled&&
document.cookie?(c=e.helper.getCookie("onap",/([a-z0-9]+-[0-9]+-[a-z0-9]+-[0-9]+-[0-9]+)(-?dies=[0-9]{1,3})?(-?.*)?/),null!==c&&0<c.length?c[2]?(a=c[2].split("=")[1],100<a&&(a=100)):(a=Math.floor(100*Math.random()+1),b=c[1]+"-dies="+a,e.helper.setCookie("onap",b,518400)):a=0):a=0}catch(l){a=0}return a};c.callResursive=function(){0<c.resursive.length&&(c.pickOne=c.resursive.shift(),c.callGroupResursive())};c.callGroupResursive=function(){var a;c.divPosition=c.getRandom();0<c.pickOne.groupData.data.length?
(a=c.pickOne.groupData.data.shift(),c[a.module]&&(c[a.module].allowCall(c.params,a)?(c.pickOne.div.innerHTML+='<div id="clm-spinner-'+c.divPosition+'" class="clm-spinner">'+c.getLoadingString(a.country)+" ...</div>",c[a.module].render(c.params,c.pickOne.div,a,c.pickOne.segment,function(){var a=document.getElementById("clm-spinner-"+c.divPosition);a&&(a.style.display="none");c.callGroupResursive()})):c.callGroupResursive())):(c.pickOne.div.setAttribute("data-processed","true"),c.callResursive())};
c.getRandom=function(){return Number((new Date).getTime()).toString(16)+"x"+Number(Math.floor(2147483647*Math.random()+1)).toString(16)};c.getLoadingString=function(a){var b="Loading";2!==a.length&&(a=a.replace("olx","").toUpperCase());c.isArwen(a)&&(b="Cargando");return b}})(a);try{(function(a,b,e){a.allowCall=function(a,c){return void 0!==a.trackPage&&void 0!==a.itemId&&void 0!==c.item&&"item"===a.trackPage&&parseInt(a.itemId,10)===parseInt(c.item,10)?!0:!1};a.render=function(f,e,k,g,h){var p=b.getRandom();
if(!k.country)throw"County is Empty";2!==k.country.length&&(k.country=k.country.replace("olx","").toUpperCase());f={data:[],tmpData:[],itemIdsContainer:[],items:[],customParams:f,target:e,dataModel:k,segment:g,random:p,internalCallBack:h,isAtlas:b.isAtlas(k.country),isArwen:b.isArwen(k.country),isDubizzle:b.isDubizzle(k.country),isControl:void 0!==k&&void 0!==k.noshow&&"true"===k.noshow,showHtml:void 0!==k&&(void 0===k.callback||"function"!==typeof window[k.callback])};a.callService(f)};a.callService=
function(b){var d=null;if(!b.dataModel.item)throw"Item is Empty";b.dataModel.group=b.dataModel.group?parseInt(b.dataModel.group,10):2;b.dataModel.quantity=b.dataModel.quantity?10<b.dataModel.quantity?10:parseInt(b.dataModel.quantity,10):10;if(b.dataModel.testads&&"production"!==e.config.environment)d='{"response": {"suggestedAds": ['+b.dataModel.testads.replace(/\'/g,'"')+"]}}",a.collectSuggestionData(d,b);else{switch(b.dataModel.country){case "IN":case "PK":case "PH":d="ss-sa.onap.io/rest";break;
case "NI":case "PY":case "BO":case "SV":case "GT":case "VE":case "VZ":case "EC":case "PE":case "UY":case "PA":case "CR":case "CO":case "AR":d="ss.onap.io/rest";break;case "KE":case "TZ":case "ZA":case "GH":case "NG":d="ss.onap.io/rest";break;case "AE":d="ss.onap.io/rest"}if(null===d)a.finishAll(b);else{d=e.helper.getProtocol()+d+"/country/"+b.dataModel.country;if(b.isDubizzle)if(b.customParams.categoryLevel2Id)d+="/ad/"+b.customParams.categoryLevel2Id+"-"+b.dataModel.item;else{a.finishAll(b);return}else d+=
"/ad/"+b.dataModel.item;d+="/group/"+b.dataModel.group;e.helper.ajaxCall("get",d,a.collectSuggestionData,b)}}};a.collectSuggestionData=function(b,d){var k=e.helper.jsonDecode(b);k&&k.response&&k.response.suggestedAds&&0<k.response.suggestedAds.length?(d.items=k.response.suggestedAds,a.getItemData(d,0,d.dataModel.quantity)):a.finishCollect(d)};a.getItemData=function(b){var d=b.dataModel.location||window.location.hostname;if(b.isAtlas)d=e.helper.getProtocol()+d+"/apiclm/ads/"+b.items.join(",")+("oneweb"!==
b.customParams.platformType?"/":"");else if(b.isArwen)d=e.helper.getProtocol()+"api-v2.olx.com/items/"+b.items.join(",")+"?platform=html5";else if(b.isDubizzle)d=e.helper.getProtocol()+"shuriken.dubizzle.com/apiclm/ads/"+b.items.join(",");else{a.finishAll(b);return}e.helper.ajaxCall("get",d,a.collectResults,b)};a.collectResults=function(b,d){var k;try{if(b=e.helper.jsonDecode(b),d.isAtlas||d.isDubizzle){if(b.ads)for(k in b.ads)b.ads.hasOwnProperty(k)&&b.ads[k].status&&"active"===b.ads[k].status&&
d.tmpData.push(b.ads[k])}else if(d.isArwen&&b)for(k in b)b.hasOwnProperty(k)&&b[k].status&&b[k].status.open&&d.tmpData.push(b[k])}catch(h){}a.finishCollect(d)};a.finishCollect=function(b){var d,e;for(d in b.items)if(b.items.hasOwnProperty(d))for(e in b.tmpData)b.tmpData.hasOwnProperty(e)&&b.tmpData[e].id&&(b.isDubizzle?parseInt(b.tmpData[e].id,10)===parseInt(b.items[d].slice(b.items[d].indexOf("-")+1),10)&&b.data.push(b.tmpData[e]):parseInt(b.tmpData[e].id,10)===parseInt(b.items[d],10)&&b.data.push(b.tmpData[e]));
a.drawResults(b)};a.drawResults=function(b){var d=!1,k,h,n,p=1,m,q,s;b.isAtlas?(d=window.location.pathname&&window.location.pathname.match(/\/i2\//g)?!0:e.helper.inArray(["KE","TZ","ZA","GH","NG"],b.dataModel.country)?window.location.pathname&&window.location.pathname.match(/\/m\//g)?!0:!1:!1,h=window.location.hash?(k=window.location.hash.match(/[:;#]clm-[a-z]{2}_r[0-9]{1}-[0-9]{1,2}_id[0-9]+/g))?window.location.hash.replace(/([:;#])clm-[a-z]{2}_r[0-9]{1}-[0-9]{1,2}_id[0-9]+/g,"$1"):window.location.hash+
(d?":":";"):"#"):(d=b.isArwen?window.location.pathname&&window.location.pathname.match(/html5\.m\./g)?!0:!1:window.location.pathname&&window.location.pathname.match(/\/m\//g)?!0:!1,h="#");p=1;k=b.dataModel;h=h+"clm-"+k.country.toLowerCase()+"_r"+k.group+"-";for(n in b.data)b.data.hasOwnProperty(n)&&(m=b.data[n],m.id=m.id,m.title=m.title,b.isAtlas||b.isDubizzle?(d?e.helper.inArray(["KE","TZ","ZA","GH","NG"],b.dataModel.country)?m.slug=m.url_i2.replace("i2/","m/"):m.slug=m.url_i2:m.slug=m.url,b.isDubizzle&&
b.customParams.language&&"ar"===b.customParams.language&&(s=m.slug,q=s.indexOf("/",8),m.slug=d?s.slice(0,q)+"/m/ar/"+s.slice(q+3):s.slice(0,q)+"/ar/"+s.slice(q+1))):d&&(m.slug=m.slugMobile),m.slug=b.isDubizzle&&b.customParams.categoryLevel2Id?m.slug+(h+p+"_id"+b.customParams.categoryLevel2Id+"-"+k.item):m.slug+(h+p+"_id"+k.item),m.thumbnail=b.isAtlas?m.image_url_medium_list||null:b.isArwen?void 0!==m.images&&void 0!==m.images[0]&&void 0!==m.images[0].thumbnail?m.images[0].thumbnail:null:m.image_url_small_list||
null,m.displayPrice=b.isAtlas||b.isDubizzle?m.price||"":m.price?m.price.displayPrice||"":"",b.itemIdsContainer.length<b.dataModel.quantity&&(b.isDubizzle?b.itemIdsContainer.push(m.category_id+"-"+m.id):b.itemIdsContainer.push(parseInt(m.id,10))),b.data[n]=m,p+=1);b.isControl?(d=b.showHtml?"":a.getJson(b),0<b.data.length?a.track(b,"noshow"):a.track(b,"noshow_noresults")):0<b.data.length?(d=b.showHtml?a.getHtml(b):a.getJson(b),a.track(b,"show")):(d=b.showHtml?"":a.getJson(b),a.track(b,"noresults"));
b.showHtml?b.target.innerHTML+='<div class="clm-suggestion-box-'+b.random+'">'+d+"</div>":window[k.callback].call(this,b.target,d);a.finishAll(b)};a.getHtml=function(a){var b,c="",d;if("nocookies"===a.segment)return c;d=a.data.slice(0,a.dataModel.quantity);c=c+'<div class="samurai-suggestions">'+("<h2>"+a.dataModel.title+"</h2>");c+='<div class="samurai-related">';c+='<ul class="samurai-items">';for(b in d)d.hasOwnProperty(b)&&(a=d[b],c+='<li class="samurai-item">',c+='<a href="'+a.slug+'" onClick="suggestionManageLinks(this); return false;" title="'+
a.title+'" class="samurai-image">',c=a.thumbnail?c+('<img src="'+a.thumbnail+'" alt="'+a.title+'" title="'+a.title+'" class="img-thumbnail"/>'):c+"",c+="</a>",c+='<a href="'+a.slug+'" onClick="suggestionManageLinks(this); return false;" title="'+a.title+'">',c+='<span class="title">'+a.title+"</span>",c+="</a>",a.displayPrice&&(c+='<a href="'+a.slug+'" onClick="suggestionManageLinks(this); return false;" title="'+a.title+'">',c+='<span class="price">'+a.displayPrice+"</span>",c+="</a>"),c+="</li>");
c+="</ul>";c+="</div>";c+='<div style="clear:both"></div>';c+="</div>";return c+='<br class="clear"/>'};a.getJson=function(a){var b,c,d={};d.group=a.dataModel.group;d.segment=a.segment;d.random=a.random;d.noshow=a.isControl||"nocookies"===a.segment;d.title=a.dataModel.title;d.elements=[];c=a.data.slice(0,a.dataModel.quantity);for(b in c)c.hasOwnProperty(b)&&(a=c[b],d.elements.push({href:a.slug,title:a.title,thumbnail:a.thumbnail,price:a.displayPrice}));return d};a.track=function(a,b){window.dataLayer=
window.dataLayer||[];"show"===b?b=b+"_"+a.segment+"_"+a.dataModel.group:a.isControl||(b=b+"_"+a.segment+"_"+a.dataModel.group);window.dataLayer.push({adImpressions:a.itemIdsContainer||[],trackEvent:["item","relatedAds",b]})};a.finishAll=function(a){"function"===typeof a.internalCallBack&&a.internalCallBack.call()};window.suggestionManageLinks=function(a){a=a.getAttribute("href");var b=window.i2||null;null!==b&&b.load&&"function"===typeof b.load?b.load({url:a.replace("i2/","i2/ajax/"),href:a,first:!0}):
window.location.href=a;return!1}})(a.suggestion,a,e)}catch(b){}}(h.samurai,h),h.siteUrlConfig[h.config.siteUrl]){window.dataLayer=window.dataLayer||[];w=window.dataLayer.push;window.dataLayer.push=function(a){a=w.apply(window.dataLayer,[a]);h.checkParam();return a};window.trackingQueue||(window.trackingQueue=[]);for(window.trackingQueue.push=function(a){"function"===typeof a&&a()};0<window.trackingQueue.length;)window.trackingQueue.push(window.trackingQueue.shift());for(q in window.dataLayer)window.dataLayer.hasOwnProperty(q)&&
(x=window.dataLayer[q],x.trackPage&&(p=!0));p?h.checkParam():window.configTracking.unitTest||(window.location.pathname?window.dataLayer.push({trackPage:h.helper.eucex(h.helper.getCurrentPath())}):window.dataLayer.push({trackPage:"home"}))}}catch(u){q=u.description?u.description:u.message?u.message:u,q+="::"+v,p="production"===h.config.environment?h.hydra.getHost()+"/h/v2/":h.hydra.getHost()+"/h/",p=h.helper.getProtocol()+p+"it"+h.siteUrlConfig[h.config.siteUrl].hydra.path+"-err?",p+="errorType=jsError&url="+
h.helper.eucex(q),q=new Image,q.src=p}})();
