UNPKG

rizzo-next

Version:

The next generation of Lonely Planet's style guide and pattern library.

24 lines (18 loc) 490 B
import map from "lodash/map"; let _ = { map }; /** * Must return an object w/ name and date, and optional trackers [] */ export default { search(data) { let place = window.lp.place; data.booking.city = `${place.continentName}:${place.countryName}:${place.cityName}`; let serialized = _.map(data.booking, (val, key) => { return `${key}=${val}`; }).join("&"); return { name: "Partner Search", data: `partner=booking&${serialized}` }; } };