(function (w) { function start() { w.removeEventListener('YaTravelAffiliateLoaded', start); w.YaTravelAffiliate.createWidget({ "type": "hotelsSearchForm", "containerId": "travelWidget", "widgetParams": {}, "urlParams": { "origin": "https://travel.yandex.ru/", "partner": "distribution", "params": { "affiliate_clid": "9668427", "service": "hotelsSearchForm", "utm_source": "distribution", "utm_medium": "cpa" } }, "theme": "dark" }); } w.YaTravelAffiliate ? start() : w.addEventListener('YaTravelAffiliateLoaded', start); })(window);