{"version":3,"sources":["core.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"core.min.js","sourcesContent":["\"use strict\";\n\nfunction lazyLoad(){\n\tif (\"IntersectionObserver\" in window) {\n\t\tconst lazyObserver = new IntersectionObserver(function(entries) {\n\t\t\tentries.forEach(function(entry){\n\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\tentry.target.src = entry.target.dataset.src;\n\t\t\t\t\tentry.target.classList.remove(\"lazy\");\n\t\t\t\t\tlazyObserver.unobserve(entry.target);\n\t\t\t\t}\n\t\t\t});\n\t\t}, { root: null});\n\t\tdocument.querySelectorAll(\".lazy\").forEach(function(image){lazyObserver.observe(image)});\n\t} \n\telse {\n\t\tlet lazyTimeOut;\n\t\tlet imageList=document.querySelectorAll(\".lazy\");\n\t\tfunction lazyLoad () {\n\t\t\tif(lazyTimeOut) clearTimeout(lazyTimeOut);\n\t\t\tlazyTimeOut = setTimeout(function(){\n\t\t\t\tArray.prototype.slice.call(imageList).forEach(function (element) {\n\t\t\t\t\tif(element.getBoundingClientRect().top < window.innerHeight + window.scrollY || document.documentElement.scrollTop) {\n\t\t\t\t\t\telement.setAttribute(\"src\", element.getAttribute(\"data-src\"));\n\t\t\t\t\t\telement.classList.remove(\"lazy\");\n\t\t\t\t\t\timageList = document.querySelectorAll(\".lazy\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(imageList.length == 0) {\n\t\t\t\t\t$(document).off(\"scroll\");\n\t\t\t\t\t$(window).off(\"resize\");\n\t\t\t\t}\n\t\t\t}, 20);\n\t\t}\n\t\t$(document).on(\"scroll\", lazyLoad.bind(this));\n\t\t$(window).on(\"resize\", lazyLoad.bind(this));\n\t}\n}\n\nif(document.addEventListener){\n\tdocument.addEventListener(\"DOMContentLoaded\", function(){if(document.readyState === \"interactive\") lazyLoad();}, false );\n}else if(document.attachEvent){\n \tdocument.attachEvent(\"onreadystatechange\", function(){if(document.readyState === \"interactive\") lazyLoad();});\n}\n\ndocument.oncontextmenu = document.body.oncontextmenu = function() {return false;}\n\nvar main = {\n\tnavigation: function () {\n\t\tvar navTimer;\n\t\tvar navMenu = $(\"header nav .nav-menu\");\n\n\t\t$(\"> li\", navMenu).each(function (index, menuItem) {\n\t\t\tvar id = $(menuItem).data(\"id\");\n\t\t\tvar url = $(menuItem).data(\"url\");\n\n\t\t\t$.ajax({\n\t\t\t\turl: url,\n\t\t\t\ttype: \"GET\",\n\t\t\t\tdata: {\n\t\t\t\t\tid: id\n\t\t\t\t}\n\t\t\t})\n\t\t\t\t.done(function (response) {\n\t\t\t\t\tvar responseHtml = $.parseHTML(response);\n\n\t\t\t\t\t$(menuItem).append(responseHtml);\n\t\t\t\t\tlazyLoad();\n\t\t\t\t\t$(menuItem).on({\n\t\t\t\t\t\tmouseenter: function () {\n\t\t\t\t\t\t\tvar $this= $(this);\n\n\t\t\t\t\t\t\tif (window.matchMedia(\"(min-width: 992px)\").matches) {\n\t\t\t\t\t\t\t\t$(window).on(\"mousemove\", function (event) {\n\t\t\t\t\t\t\t\t\tclearTimeout(navTimer);\n\n\t\t\t\t\t\t\t\t\tnavTimer = setTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tvar width = $this.outerWidth();\n\t\t\t\t\t\t\t\t\t\tvar left = $this.offset().left;\n\n\t\t\t\t\t\t\t\t\t\t$(\"header .indicator\").stop().animate({\n\t\t\t\t\t\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\t\t\t\t\t\tleft: left\n\t\t\t\t\t\t\t\t\t\t}, 300, \"easeOutExpo\");\n\n\t\t\t\t\t\t\t\t\t\t$(\".search-container input[type='text']\").blur().focus();\n\n\t\t\t\t\t\t\t\t\t\t$(\"> li\", navMenu).removeClass('hover');\n\t\t\t\t\t\t\t\t\t\t$this.addClass('hover');\n\t\t\t\t\t\t\t\t\t}, 50);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$(\"> li\", navMenu).removeClass('hover');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmouseleave: function () {\n\t\t\t\t\t\t\tvar $this = $(this);\n\n\t\t\t\t\t\t\tif (window.matchMedia(\"(min-width: 992px)\").matches) {\n\t\t\t\t\t\t\t\t$(window).on(\"mousemove\", function (event) {\n\t\t\t\t\t\t\t\t\tclearTimeout(navTimer);\n\n\t\t\t\t\t\t\t\t\tnavTimer = setTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t$(\"header .indicator\").stop().animate({\n\t\t\t\t\t\t\t\t\t\t\twidth: 0\n\t\t\t\t\t\t\t\t\t\t}, 300, \"easeOutExpo\");\n\t\t\t\t\t\t\t\t\t\t$this.removeClass('hover');\n\n\t\t\t\t\t\t\t\t\t}, 50);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\".sub-nav\", menuItem).each(function (index, element) {\n\t\t\t\t\t\t$(\".sub-menu > ul > li\", element).first().addClass(\"active\");\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t});\n\n\t\tnavMenu.on(\"mouseenter\", \"> li\", function () {\n\t\t\tvar $this= $(this);\n\n\t\t\tif (window.matchMedia(\"(min-width: 992px)\").matches) {\n\t\t\t\t$(window).on(\"mousemove\", function (event) {\n\t\t\t\t\tclearTimeout(navTimer);\n\n\t\t\t\t\tnavTimer = setTimeout(function () {\n\t\t\t\t\t\tvar width = $this.outerWidth();\n\t\t\t\t\t\tvar left = $this.offset().left;\n\n\t\t\t\t\t\t$(\"header .indicator\").stop().animate({\n\t\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\t\tleft: left\n\t\t\t\t\t\t}, 300, \"easeOutExpo\");\n\n\t\t\t\t\t\t$(\".search-container input[type='text']\").blur().focus();\n\n\t\t\t\t\t\t$(\"> li\", navMenu).removeClass('hover');\n\t\t\t\t\t\t$this.addClass('hover');\n\t\t\t\t\t}, 50);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t$(\"> li\", navMenu).removeClass('hover');\n\t\t\t}\n\t\t});\n\n\t\tnavMenu.on(\"mouseleave\", \"> li\", function () {\n\t\t\tvar $this = $(this);\n\n\t\t\tif (window.matchMedia(\"(min-width: 992px)\").matches) {\n\t\t\t\t$(window).on(\"mousemove\", function (event) {\n\t\t\t\t\tclearTimeout(navTimer);\n\n\t\t\t\t\tnavTimer = setTimeout(function () {\n\t\t\t\t\t\t$(\"header .indicator\").stop().animate({\n\t\t\t\t\t\t\twidth: 0\n\t\t\t\t\t\t}, 300, \"easeOutExpo\");\n\t\t\t\t\t\t$this.removeClass('hover');\n\n\t\t\t\t\t}, 50);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tnavMenu.on(\"click\", \"> li > a\", function (event) {\n\t\t\tif (window.matchMedia('(min-width: 992px)').matches && $(\"html\").hasClass(\"touchevents\") && !$(this).hasClass(\"go-link\")) {\n\t\t\t\t$(\"> li > a\", navMenu).removeClass(\"go-link\");\n\t\t\t\t$(this).addClass(\"go-link\");\n\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\n\t\tnavMenu.on(\"mouseenter\", \".sub-nav .sub-menu > ul > li > a\", function (event) {\n\t\t\tif ($(window).width() >= 992) {\n\t\t\t\t$(this).parents(\".sub-nav\").find(\".sub-menu > ul > li\").removeClass(\"active\");\n\t\t\t\t$(this).parent().addClass(\"active\");\n\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\n\t\tnavMenu.on(\"click\", \"> li:not(.single) > a\", function (event) {\n\t\t\tif ($(window).width() < 992) {\n\t\t\t\tif ($(this).hasClass(\"active\")) {\n\t\t\t\t\t$(this).removeClass(\"active\");\n\t\t\t\t\t$(this).next(\".sub-nav\").stop().slideUp(300);\n\t\t\t\t} else {\n\t\t\t\t\t$(\"> li > a\", navMenu).removeClass(\"active\");\n\t\t\t\t\t$(\"> li > .sub-nav\", navMenu).stop().slideUp(300);\n\n\t\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\t\t$(this).next(\".sub-nav\").stop().slideDown(300);\n\t\t\t\t}\n\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\n\t\t$(window).on({\n\t\t\tscroll: function () {\n\t\t\t\tvar trigger = 0;\n\n\t\t\t\tif ($(\".module-slider-main\").length) {\n\t\t\t\t\ttrigger = 3000;\n\t\t\t\t}\n\n\t\t\t\tif ($(window).scrollTop() > trigger) {\n\t\t\t\t\t$(\"header\").addClass(\"sticky\");\n\t\t\t\t} else {\n\t\t\t\t\t$(\"header\").removeClass(\"sticky\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(\"header .bar .bar-button\").on({\n\t\t\tclick: function () {\n\t\t\t\t$(\"header\").removeClass(\"collapsed\");\n\t\t\t\t$(\".module-content-nav.has-sticky\").addClass(\"menu-opened\");\n\n\t\t\t\tif ($(window).width() <= 768) {\n\t\t\t\t\t$(\"header .menu-button\").trigger(\"click\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(\"header .menu-button\").on({\n\t\t\tclick: function () {\n\t\t\t\t$(\"header nav\").addClass(\"opened\");\n\t\t\t\t$(\"header .nav-overlay\").addClass(\"opened\");\n\t\t\t}\n\t\t});\n\n\t\t$(\"header nav .nav-header .close\").on({\n\t\t\tclick: function () {\n\t\t\t\t$(\"header nav\").removeClass(\"opened\");\n\t\t\t\t$(\"header .nav-overlay\").removeClass(\"opened\");\n\t\t\t}\n\t\t});\n\n\t\t$(window).on({\n\t\t\tresize: function () {\n\t\t\t\tif ($(window).width() >= 992) {\n\t\t\t\t\t$(\"> li > a\", navMenu).removeClass(\"active\");\n\t\t\t\t\t$(\"> li > .sub-nav\", navMenu).removeAttr(\"style\");\n\t\t\t\t\t$(\"header nav\").removeClass(\"opened\");\n\t\t\t\t\t$(\"header .nav-overlay\").removeClass(\"opened\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tnewsletter: function () {\n\t\tvar lang = $(\"html\").attr(\"lang\");\n\n\t\t$(\".module-newsletter form\").validate({\n\t\t\tignore: [],\n\t\t\tonkeyup: false,\n\t\t\thighlight: function(element, errorClass, validClass) {\n\t\t\t\t$(element).parent().addClass(errorClass).removeClass(validClass);\n\t\t\t},\n\t\t\tunhighlight: function(element, errorClass, validClass) {\n\t\t\t\t$(element).parent().removeClass(errorClass).addClass(validClass);\n\t\t\t},\n\t\t\tsubmitHandler: function (form) {\n\t\t\t\tvar url = $(form).attr(\"action\");\n\t\t\t\tvar type = $(form).attr(\"method\") || \"GET\";\n\t\t\t\tvar data = $(form).serialize();\n\t\t\t\t$(\"input[type='submit']\", form).attr(\"disabled\", true);\n\n\t\t\t\t$(form).addClass(\"loading\");\n\n\t\t\t\t$.ajax({\n\t\t\t\t\turl: url,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\tdata: data,\n\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t$(form).removeClass(\"loading\");\n\t\t\t\t\t\t$(\"input[type='submit']\", form).removeAttr(\"disabled\");\n\n\t\t\t\t\t\tif (response.status == 1) {\n\t\t\t\t\t\t\t$(\".module-newsletter .text, .module-newsletter .form\").hide();\n\t\t\t\t\t\t\t$(\".module-newsletter .result p\").html(response.messages);\n\t\t\t\t\t\t\t$(\".module-newsletter .result\").show();\n\t\t\t\t\t\t\t$(\".module-newsletter .form .form-input label.error\").remove();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(\".module-newsletter .form .form-input input\").addClass(\"error\");\n\t\t\t\t\t\t\t$(\".module-newsletter .form .form-input\").append(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\trules: {\n\t\t\t\temail: {\n\t\t\t\t\trequired: true,\n\t\t\t\t\temail: true\n\t\t\t\t},\n\t\t\t\tticariElektronik: {\n\t\t\t\t\trequired: true\n\t\t\t\t},\n\t\t\t\taydinlatmaMetni: {\n\t\t\t\t\trequired : true\n\t\t\t\t},\n\t\t\t\tacikRizaMetni: {\n\t\t\t\t\trequired : true\n\t\t\t\t}\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\temail: {\n\t\t\t\t\trequired: main.localization[lang][0],\n\t\t\t\t\temail: main.localization[lang][1]\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(\".module-newsletter form input[type='text']\").on({\n\t\t\tkeydown: function () {\n\t\t\t\t$(this).removeClass(\"error\");\n\t\t\t\t$(this).next(\"label.error\").remove();\n\t\t\t}\n\t\t});\n\n\t\t$(\".page-newsletter .form form\").validate({\n\t\t\thighlight: function(element, errorClass, validClass) {\n\t\t\t\t$(element).parent().addClass(errorClass).removeClass(validClass);\n\t\t\t},\n\t\t\tunhighlight: function(element, errorClass, validClass) {\n\t\t\t\t$(element).parent().removeClass(errorClass).addClass(validClass);\n\t\t\t},\n\t\t\trules: {\n\t\t\t\tname: \"required\",\n\t\t\t\tsurname: \"required\"\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\tname: \"Lütfen adınızı girin\",\n\t\t\t\tsurname: \"Lütfen soyadınızı girin\"\n\t\t\t}\n\t\t});\n\t},\n\tsliders: {\n\t\tmain: {\n\t\t\tcontroller: null,\n\t\t\tscene: null,\n\t\t\tinit: function () {\n\t\t\t\t$(\".module-slider-main .slider, .module-slider-main .mobile-slider .item\").css({\n\t\t\t\t\theight: $(window).height() - $(\"header\").height()\n\t\t\t\t});\n\n\t\t\t\tif ($(window).width() >= 768) {\n\t\t\t\t\tif ($(\".module-slider-main\").length && !$(\".module-slider-main\").hasClass(\"scrollmagic-active\")) {\n\t\t\t\t\t\t$(\"html, body\").scrollTop(0);\n\t\t\t\t\t\t$(\".module-slider-main\").addClass(\"scrollmagic-active\");\n\t\t\t\t\t\tmain.sliders.main.create();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$(\".module-slider-main\").removeClass(\"scrollmagic-active\");\n\t\t\t\t\tmain.sliders.main.destroy();\n\t\t\t\t}\n\t\t\t},\n\t\t\tcreate: function () {\n\t\t\t\tmain.sliders.main.controller = new ScrollMagic.Controller();\n\t\t\t\tvar tween = new TimelineMax();\n\t\t\t\tvar slider = \".module-slider-main .slider\";\n\t\t\t\tvar text = $(\".content-text\", slider);\n\t\t\t\tvar controls = $(\".controls\", slider);\n\t\t\t\tvar items = $(\".item\", slider);\n\t\t\t\tvar spacer = $(\".slider-spacer\");\n\t\t\t\tvar spacerInner = $(\".slider-spacer-inner\");\n\t\t\t\tvar offset = $(slider).height() / 2;\n\t\t\t\tvar duration = 3000;\n\n\t\t\t\t$(\".pager\", controls).html(\"\");\n\n\t\t\t\titems.each(function (index, item) {\n\t\t\t\t\t// z-index\n\t\t\t\t\t$(item).css({\n\t\t\t\t\t\tzIndex: items.length - index\n\t\t\t\t\t});\n\n\t\t\t\t\t// controls\n\t\t\t\t\t$(\".pager\", controls).append(\"
  • \");\n\n\t\t\t\t\t// tween\n\t\t\t\t\tif (index < items.length - 1) {\n\t\t\t\t\t\ttween.to(item, .3, {\n\t\t\t\t\t\t\ty: \"-30%\",\n\t\t\t\t\t\t\tease: Power0.easeNone\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.to(item, .7, {\n\t\t\t\t\t\t\ty: \"-100%\",\n\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\tease: Power0.easeNone\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.to(item, .5, {\n\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\tease: Power0.easeNone\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tvar scene = new ScrollMagic.Scene({\n\t\t\t\t\tduration: duration,\n\t\t\t\t\ttriggerHook: 0,\n\t\t\t\t\t// triggerElement: slider\n\t\t\t\t})\n\t\t\t\t.setTween(tween)\n\t\t\t\t.setPin(slider)\n\t\t\t\t.addTo(main.sliders.main.controller);\n\n\t\t\t\tmain.sliders.main.scene = scene;\n\n\t\t\t\tfunction getActive () {\n\t\t\t\t\tvar sliderTop = Math.ceil($(slider).offset().top);\n\t\t\t\t\tvar active;\n\n\t\t\t\t\titems.each(function (index, item) {\n\t\t\t\t\t\tif (sliderTop - $(item).offset().top < offset) {\n\t\t\t\t\t\t\tactive = index;\n\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\treturn active;\n\t\t\t\t}\n\n\t\t\t\tfunction goTo (index) {\n\t\t\t\t\tvar step = duration / (items.length - 1);\n\t\t\t\t\tvar scrollTop = index * step;\n\n\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\tscrollTop: scrollTop\n\t\t\t\t\t}, 1000);\n\t\t\t\t}\n\n\t\t\t\tfunction calculate () {\n\t\t\t\t\t// calculate spacer\n\t\t\t\t\tvar windowTop = $(window).scrollTop();\n\t\t\t\t\tvar css;\n\n\t\t\t\t\tif (windowTop < duration) {\n\t\t\t\t\t\tspacer.css({\n\t\t\t\t\t\t\theight: spacerInner.height()\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tspacerInner.addClass(\"fixed\").css({\n\t\t\t\t\t\t\ttop: $(slider).height() + $(\"header\").height() + $(\".cookie-policy:visible\").outerHeight()\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tspacer.css({\n\t\t\t\t\t\t\theight: \"auto\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tspacerInner.removeClass(\"fixed\").css({\n\t\t\t\t\t\t\ttop: \"auto\"\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// controls\n\t\t\t\t\tvar active = getActive();\n\n\t\t\t\t\t$(\".pager li\", controls).removeClass(\"active\");\n\t\t\t\t\t$(\".pager li\", controls).eq(active).addClass(\"active\");\n\n\t\t\t\t\t$(\".text\", text).removeClass(\"active\");\n\t\t\t\t\t$(\".text\", text).eq(active).addClass(\"active\");\n\n\t\t\t\t\tif (active == 0) {\n\t\t\t\t\t\t$(\".prev\", controls).addClass(\"disabled\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".prev\", controls).removeClass(\"disabled\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (active == items.length - 1) {\n\t\t\t\t\t\t$(\".next\", controls).addClass(\"disabled\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".next\", controls).removeClass(\"disabled\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcalculate();\n\n\t\t\t\t$(window).on(\"load scroll\", function () {\n\t\t\t\t\tcalculate();\n\t\t\t\t});\n\n\t\t\t\t$(\".pager li\", controls).on({\n\t\t\t\t\tclick: function () {\n\t\t\t\t\t\tvar index = $(this).index();\n\t\t\t\t\t\tgoTo(index);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(\".prev\", controls).on({\n\t\t\t\t\tclick: function () {\n\t\t\t\t\t\tif (!$(this).hasClass(\"disabled\")) {\n\t\t\t\t\t\t\tvar active = getActive();\n\t\t\t\t\t\t\tvar prev = active - 1;\n\n\t\t\t\t\t\t\tif (prev >= 0) {\n\t\t\t\t\t\t\t\tgoTo(prev);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(\".next\", controls).on({\n\t\t\t\t\tclick: function () {\n\t\t\t\t\t\tif (!$(this).hasClass(\"disabled\")) {\n\t\t\t\t\t\t\tvar active = getActive();\n\t\t\t\t\t\t\tvar next = active + 1;\n\n\t\t\t\t\t\t\tif (next < items.length) {\n\t\t\t\t\t\t\t\tgoTo(next);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\tdestroy: function () {\n\t\t\t\tif (main.sliders.main.controller) {\n\t\t\t\t\tmain.sliders.main.controller.destroy(true);\n\t\t\t\t\tmain.sliders.main.controller = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlist: function (onResize) {\n\t\t\t$(\".module-slider-list .slider .item\").css({\n\t\t\t\theight: $(window).height() - $(\"header\").height()\n\t\t\t});\n\n\t\t\tif (!onResize) {\n\t\t\t\tvar slideSpeed = 800;\n\n\t\t\t\tif ($(\"html\").hasClass(\"touchevents\")) {\n\t\t\t\t\tslideSpeed = 200;\n\t\t\t\t}\n\n\t\t\t\t$(\".module-slider-list .slider\").owlCarousel({\n\t\t\t\t\tsingleItem: true,\n\t\t\t\t\tnavigation: true,\n\t\t\t\t\tnavigationText: false,\n\t\t\t\t\tslideSpeed: slideSpeed\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tcards: function () {\n\n\t\t\t$(\".module-slider-cards .slider\").each(function (index, slider) {\n\t\t\t\tvar items = $(slider).data(\"items\");\n\t\t\t\tvar items_sm = $(slider).data(\"items-sm\");\n\t\t\t\tvar items_xs = $(slider).data(\"items-xs\");\n\n\t\t\t\tif (!items_sm) {\n\t\t\t\t\titems_sm = items;\n\t\t\t\t}\n\n\t\t\t\tif (!items_xs) {\n\t\t\t\t\titems_xs = items_sm;\n\t\t\t\t}\n\n\t\t\t\t// if(items == 2 && $(\".item\", slider).length < 2 && windowWidth >= 768){\n\t\t\t\t// \t$(slider).addClass(\"single two\");\n\t\t\t\t// }\n\t\t\t\t//\n\t\t\t\t// if(items == 4 && $(\".item\", slider).length < 4 && windowWidth >= 768){\n\t\t\t\t// \t$(slider).addClass(\"single four\");\n\t\t\t\t// }\n\n\t\t\t\tvar slideSpeed = items * 150;\n\n\t\t\t\tif ($(\"html\").hasClass(\"touchevents\")) {\n\t\t\t\t\tslideSpeed = 200;\n\t\t\t\t}\n\n\t\t\t\t$(slider).owlCarousel({\n\t\t\t\t\titems: items,\n\t\t\t\t\titemsDesktop: false,\n\t\t\t\t\titemsTablet: false,\n\t\t\t\t\titemsTabletSmall: false,\n\t\t\t\t\titemsMobile: false,\n\t\t\t\t\titemsCustom: [\n\t\t\t\t\t\t[0, items_xs],\n\t\t\t\t\t\t[768, items_sm],\n\t\t\t\t\t\t[992, items]\n\t\t\t\t\t],\n\t\t\t\t\tnavigation: true,\n\t\t\t\t\tnavigationText: false,\n\t\t\t\t\tscrollPerPage: true,\n\t\t\t\t\tslideSpeed: slideSpeed\n\t\t\t\t});\n\n\t\t\t\tsliderResize();\n\t\t\t});\n\n\t\t\tfunction sliderResize () {\n\t\t\t\t$(window).off(\"resize\").resize(function() {\n\t\t\t\t\tvar windowWidth = $(window).width();\n\n\t\t\t\t\t$(\".module-slider-cards .slider\").each(function (index, slider) {\n\t\t\t\t\t\tvar items = $(slider).data(\"items\");\n\n\t\t\t\t\t\tif(items == 2 && $(\".item\", slider).length < 2 && windowWidth >= 768){\n\t\t\t\t\t\t\t$(slider).addClass(\"singleTwo\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(slider).removeClass(\"singleTwo\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(items == 4 && $(\".item\", slider).length < 4 && windowWidth >= 768){\n\t\t\t\t\t\t\t$(slider).addClass(\"singleFour\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(slider).removeClass(\"singleFour\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t}).trigger(\"resize\");\n\t\t\t}\n\t\t},\n\t\tgallery: function (onResize) {\n\t\t\tvar sliderMain = $(\".module-slider-gallery .slider .main\");\n\t\t\tvar sliderThumbnails = $(\".module-slider-gallery .slider .thumbnails\");\n\n\t\t\tif (!onResize) {\n\t\t\t\t$(\".item\", sliderMain).each(function () {\n\t\t\t\t\tvar thumbnail = $(this).data(\"thumbnail\");\n\n\t\t\t\t\tsliderThumbnails.append('
    \"\"
    ');\n\t\t\t\t});\n\n\t\t\t\tvar slideSpeed = 800;\n\n\t\t\t\tif ($(\"html\").hasClass(\"touchevents\")) {\n\t\t\t\t\tslideSpeed = 200;\n\t\t\t\t}\n\n\t\t\t\tif ($(\".item\", sliderThumbnails).length < 8) {\n\t\t\t\t\tsliderThumbnails.addClass(\"centered\");\n\t\t\t\t}\n\n\t\t\t\tsliderThumbnails.owlCarousel({\n\t\t\t\t\titems: 8,\n\t\t\t\t\titemsDesktop: false,\n\t\t\t\t\titemsDesktopSmall: false,\n\t\t\t\t\titemsTablet: false,\n\t\t\t\t\tnavigation: true,\n\t\t\t\t\tpagination: false,\n\t\t\t\t\tnavigationText: false,\n\t\t\t\t\tscrollPerPage: true,\n\t\t\t\t\tslideSpeed: slideSpeed\n\t\t\t\t});\n\n\t\t\t\tsliderMain.owlCarousel({\n\t\t\t\t\tsingleItem: true,\n\t\t\t\t\tnavigation: true,\n\t\t\t\t\tpagination: false,\n\t\t\t\t\tnavigationText: false,\n\t\t\t\t\tslideSpeed: slideSpeed,\n\t\t\t\t\tafterAction: function () {\n\t\t\t\t\t\tvar current = this.currentItem;\n\n\t\t\t\t\t\t$(\".owl-item\", sliderThumbnails).removeClass(\"active\");\n\t\t\t\t\t\t$(\".owl-item\", sliderThumbnails).eq(current).addClass(\"active\");\n\n\t\t\t\t\t\tif ($.inArray(current, sliderThumbnails.data(\"owlCarousel\").owl.visibleItems) < 0) {\n\t\t\t\t\t\t\tsliderThumbnails.data(\"owlCarousel\").goTo(current);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// lazy load\n\t\t\t\t\t\tvar _owl = this;\n\n\t\t\t\t\t\t$.each(_owl.owl.visibleItems, function (index, itemIndex) {\n\t\t\t\t\t\t\tvar item = $(\".item\", _owl.owl.owlItems[itemIndex]);\n\t\t\t\t\t\t\tvar bg = item.data(\"image\");\n\n\t\t\t\t\t\t\titem.addClass(\"loaded\").css({\n\t\t\t\t\t\t\t\tbackgroundImage: \"url('\" + bg + \"')\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(\".owl-item\", sliderThumbnails).on({\n\t\t\t\t\tclick: function () {\n\t\t\t\t\t\tvar index = $(this).data(\"owlItem\");\n\n\t\t\t\t\t\tsliderMain.data(\"owlCarousel\").goTo(index);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t$(\".item\", sliderMain).css({\n\t\t\t\theight: $(window).height() - $(\".module-content-nav\").height() - 36\n\t\t\t});\n\t\t},\n\t\tcast: function () {\n\t\t\tvar sliderMain = $(\".module-cast .slider .main\");\n\t\t\tvar sliderThumbnails = $(\".module-cast .slider .thumbnails\");\n\n\t\t\tvar slideSpeed = 800;\n\n\t\t\tif ($(\"html\").hasClass(\"touchevents\")) {\n\t\t\t\tslideSpeed = 200;\n\t\t\t}\n\n\t\t\tsliderThumbnails.owlCarousel({\n\t\t\t\titems: 5,\n\t\t\t\titemsDesktop: false,\n\t\t\t\titemsDesktopSmall: false,\n\t\t\t\titemsTablet: false,\n\t\t\t\titemsCustom: [\n\t\t\t\t\t[0, 1],\n\t\t\t\t\t[768, 3],\n\t\t\t\t\t[992, 4],\n\t\t\t\t\t[1200, 5]\n\t\t\t\t],\n\t\t\t\tnavigation: true,\n\t\t\t\tpagination: false,\n\t\t\t\tnavigationText: false,\n\t\t\t\tscrollPerPage: true,\n\t\t\t\tslideSpeed: slideSpeed\n\t\t\t});\n\n\t\t\tsliderMain.owlCarousel({\n\t\t\t\tsingleItem: true,\n\t\t\t\tpagination: false,\n\t\t\t\tslideSpeed: slideSpeed,\n\t\t\t\tafterAction: function () {\n\t\t\t\t\tvar current = this.currentItem;\n\n\t\t\t\t\t$(\".owl-item\", sliderThumbnails).removeClass(\"active\");\n\t\t\t\t\t$(\".owl-item\", sliderThumbnails).eq(current).addClass(\"active\");\n\n\t\t\t\t\tif ($.inArray(current, sliderThumbnails.data(\"owlCarousel\").owl.visibleItems) < 0) {\n\t\t\t\t\t\tsliderThumbnails.data(\"owlCarousel\").goTo(current);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tafterMove: function () {\n\t\t\t\t\t$(\".module-cast .slider .main .content\").each(function (index, element) {\n\t\t\t\t\t\tvar content = $(element);\n\t\t\t\t\t\tvar more = $(\".read-more\", content);\n\t\t\t\t\t\tvar text1 = more.data(\"text1\");\n\n\t\t\t\t\t\tcontent.removeClass(\"active\");\n\t\t\t\t\t\t$(\"span\", more).text(text1);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".owl-item\", sliderThumbnails).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar index = $(this).data(\"owlItem\");\n\n\t\t\t\t\tsliderMain.data(\"owlCarousel\").goTo(index);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".module-cast .slider .main .content\").each(function (index, element) {\n\t\t\t\tvar content = $(element);\n\t\t\t\tvar text = $(\".text\", content);\n\t\t\t\tvar more = $(\".read-more\", content);\n\n\t\t\t\tif (text[0].scrollHeight < text.height() + 50) {\n\t\t\t\t\tcontent.addClass(\"more-hidden\");\n\t\t\t\t}\n\n\t\t\t\tmore.on({\n\t\t\t\t\tclick: function () {\n\t\t\t\t\t\tvar text1 = $(this).data(\"text1\");\n\t\t\t\t\t\tvar text2 = $(this).data(\"text2\");\n\n\t\t\t\t\t\tif (content.hasClass(\"active\")) {\n\t\t\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\t\t\tscrollTop: $(\".module-cast\").offset().top - $(\"header .inner\").height() - $(\".module-content-nav\").height()\n\t\t\t\t\t\t\t}, 500, function () {\n\t\t\t\t\t\t\t\tcontent.removeClass(\"active\");\n\t\t\t\t\t\t\t\t$(\"span\", more).text(text1);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent.addClass(\"active\");\n\t\t\t\t\t\t\t$(\"span\", this).text(text2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t},\n\tpromo: function () {\n\t\tvar height = $(window).height() - $(\"header\").height();\n\n\t\tif ($(window).width() >= 768) {\n\t\t\theight -= $(\".module-content-nav\").height();\n\t\t}\n\n\t\t$(\".module-promo-detail\").css({\n\t\t\theight: height\n\t\t});\n\t},\n\tbackgroundImage: function (container) {\n\t\tif (!container) {\n\t\t\tcontainer = \"body\";\n\t\t}\n\n\t\t$(\"[data-bg]\", container).each(function (index, element) {\n\t\t\tvar image = $(element).data(\"bg\");\n\t\t\tvar imageMobile = $(element).data(\"bg-mobile\");\n\t\t\tvar bg = image;\n\n\t\t\tif ($(window).width() < 768 && imageMobile) {\n\t\t\t\tbg = imageMobile;\n\t\t\t}\n\n\t\t\tif (bg) {\n\t\t\t\t$(element).css({\n\t\t\t\t\tbackgroundImage: \"url(\" + bg + \")\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t$(\"\").attr(\"src\", bg).on({\n\t\t\t\tload: function () {\n\t\t\t\t\t$(this).remove();\n\n\t\t\t\t\t$(element).addClass(\"bg-loaded\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tcontentNav: function () {\n\t\t$(\".module-content-nav ul\").niceScroll({\n\t\t\ttouchbehavior: true,\n\t\t\tcursoropacitymax: 0\n\t\t});\n\n\t\t$(\".module-content-nav ul\").on({\n\t\t\tscroll: function () {\n\t\t\t\tvar container = $(this).parents(\".container\");\n\t\t\t\tvar innerWidth = 0;\n\t\t\t\tvar scrollLeft = $(this).scrollLeft();\n\n\t\t\t\t$(\"li\", this).each(function (index, element) {\n\t\t\t\t\tinnerWidth += $(element).width();\n\t\t\t\t});\n\n\t\t\t\tif (scrollLeft > 0) {\n\t\t\t\t\tcontainer.addClass(\"gradient-left\");\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.removeClass(\"gradient-left\");\n\t\t\t\t}\n\n\t\t\t\tif (innerWidth - $(this).width() <= scrollLeft) {\n\t\t\t\t\tcontainer.removeClass(\"gradient-right\")\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.addClass(\"gradient-right\")\n\t\t\t\t}\n\t\t\t}\n\t\t}).trigger(\"scroll\");\n\n\t\t$(window).on({\n\t\t\tresize: function () {\n\t\t\t\t$(\".module-content-nav ul\").trigger(\"scroll\");\n\t\t\t}\n\t\t});\n\n\t\tif ($(\".module-content-nav.has-sticky\").length) {\n\t\t\t$(window).on({\n\t\t\t\tscroll: function () {\n var navTop = $(\".module-content-nav.has-sticky\").offset().top - $(window).scrollTop();\n\n if($(\".cookie-policy\").is(\":visible\") && $(window).width() < 992 ){\n var cookieHeight = $(\".cookie-policy:visible\").outerHeight(),\n totalHeight = cookieHeight + 36,\n \t\tnavTop = $(\".module-content-nav.has-sticky\").offset().top - totalHeight - $(window).scrollTop();\n\t\t\t\t\t}\n\n\t\t\t\t\t$(\".module-content-nav.has-sticky\").removeClass(\"menu-opened\");\n\n\t\t\t\t\tif (navTop <= 0 && $(window).width() >= 375) {\n\t\t\t\t\t\t$(\".module-content-nav.has-sticky\").addClass(\"sticky\");\n\t\t\t\t\t\t$(\"header .search\").removeClass(\"active\");\n\t\t\t\t\t\t$(\"header .search-container\").removeClass(\"active\");\n\t\t\t\t\t\t$(\".search-overlay\").removeClass(\"active\");\n\n\t\t\t\t\t\tif (!$(\"header nav\").hasClass(\"opened\")) {\n\t\t\t\t\t\t\t$(\"header\").addClass(\"collapsed\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".module-content-nav.has-sticky\").removeClass(\"sticky\");\n\t\t\t\t\t\t$(\"header\").removeClass(\"collapsed\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".module-content-nav.has-url a\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tvar url = $(this).attr(\"href\").replace(\"#\", \"\");\n\t\t\t\t\tvar scrollTop = $(\"[data-url='\" + url + \"']\").offset().top - $(\".module-content-nav.has-url\").height() + 1;\n\n\t\t\t\t\tif ($(window).width() >= 375) {\n\t\t\t\t\t\tscrollTop -= 36;\n\t\t\t\t\t}\n\n\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\tscrollTop: scrollTop\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif ($(\".module-content-nav.has-url\").length) {\n\t\t\t\t$(window).on({\n\t\t\t\t\tscroll: function () {\n\t\t\t\t\t\tvar elements = [];\n\n\t\t\t\t\t\t$(\"[data-url]\").each(function (index, element) {\n\t\t\t\t\t\t\tconsole.log($(element).data('url') );\n\t\t\t\t\t\t\tif ($(element).data('url').indexOf('ajax') < 0) {\n\t\t\t\t\t\t\t\tif ($(window).scrollTop() + $(\".module-content-nav.has-url\").height() + 36 >= $(element).offset().top) {\n\t\t\t\t\t\t\t\t\telements.push(element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t$(\".module-content-nav.has-url a\").removeClass(\"active\");\n\n\t\t\t\t\t\tif (elements.length) {\n\t\t\t\t\t\t\tvar activeElement = elements[elements.length - 1];\n\t\t\t\t\t\t\tvar url = $(activeElement).data(\"url\");\n\n\t\t\t\t\t\t\tvar activeButton = $(\".module-content-nav.has-url a[href='#\" + url + \"']\");\n\n\t\t\t\t\t\t\tvar width = activeButton.outerWidth(true);\n\t\t\t\t\t\t\tvar offset = activeButton.length ? activeButton.position().left : 0;\n\t\t\t\t\t\t\tvar scrollLeft = $(\".module-content-nav ul\").scrollLeft();\n\t\t\t\t\t\t\tvar scrollTo = (scrollLeft + offset) - ($(\".module-content-nav ul\").width() / 2) + (width / 2);\n\n\t\t\t\t\t\t\t$(\".module-content-nav ul\").getNiceScroll(0).doScrollLeft(scrollTo, 0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tactiveButton.addClass(\"active\");\n\n\t\t\t\t\t\t\thistory.replaceState(undefined, undefined, \"#\" + url);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\thistory.replaceState(undefined, undefined, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tload: function () {\n\t\t\t\t\t\tvar hash = window.location.hash.replace(\"#\", \"\");\n\n\t\t\t\t\t\tif (hash) {\n\t\t\t\t\t\t\t$(\".module-content-nav.has-url a[href='#\" + hash + \"']\").trigger(\"click\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t$(\".module-content-nav a.filter\").on({\n\t\t\tclick: function (event) {\n\t\t\t\tvar width = $(this).outerWidth(true);\n\t\t\t\tvar offset = $(this).position().left;\n\t\t\t\tvar scrollLeft = $(\".module-content-nav ul\").scrollLeft();\n\t\t\t\tvar scrollTo = (scrollLeft + offset) - ($(\".module-content-nav ul\").width() / 2) + (width / 2);\n\t\t\t\tvar value = $(this).data(\"value\");\n\n\t\t\t\t$(this).parents(\".module-content-nav\").find(\"a.filter\").removeClass(\"active\");\n\t\t\t\t$(this).addClass(\"active\");\n\n\t\t\t\t$(\".module-content-nav input[type='hidden']\").val(value).trigger(\"change\");\n\n\t\t\t\t$(\".module-content-nav ul\").getNiceScroll(0).doScrollLeft(scrollTo, 0);\n\n\t\t\t\t$(\".module-slider-list[data-category]\").hide();\n\t\t\t\t$(\".module-slider-list[data-category='\" + value + \"']\").show( 0, function () {\n\t\t\t\t\tif (!event.isTrigger) { // fix\n\t\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\t\tscrollTop: $(\".module-content-nav\").offset().top - $(\"header\").outerHeight()\n\t\t\t\t\t\t}, 800);\n\t\t\t\t\t}\n });\n\n\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\n\t\t$(\".module-content-nav a.filter.active\").trigger(\"click\");\n\t},\n\teventCalendar: function () {\n\t\tvar calendar = $(\".module-event-calendar .calendar\");\n\t\tvar templateURL = calendar.data(\"mobile-template\");\n\t\tvar listURL = calendar.data(\"list\");\n\t\tvar mobileItems = $(\".module-event-calendar .mobile-items\");\n\t\tvar mobileError = $(\".module-event-calendar .mobile-error\");\n\n\t\tvar cellSize = function () {\n\t\t\tvar cellHeight = (calendar.width() / 7) - $(\".fc-day-number\", calendar).outerHeight()\n\n\t\t\t$(\"head #cell-height\").remove();\n\t\t\t\n\t\t\t$(\"head\").append('');\n\t\t}\n\n\t\tif (mobileItems.length) {\n\t\t\tvar template;\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: templateURL,\n\t\t\t\tasync: false,\n\t\t\t\tsuccess: function (response) {\n\t\t\t\t\ttemplate = response;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tvar lightboxArr;\n\n\t\tcalendar.fullCalendar({\n\t\t\tevents: function (start, end, timezone, callback) {\n\t\t\t\tvar startDate = moment(start).format(\"YYYY-MM-DD\");\n\t\t\t\tvar endDate = moment(end).format(\"YYYY-MM-DD\");\n\n\t\t\t\tvar data = $(\".module-event-calendar .filters :input\").serialize();\n\t\t\t\tdata += \"&start=\" + startDate + \"&end=\" + endDate;\n\n\t\t\t\t$.ajax({\n\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\turl: listURL,\n\t\t\t\t\tasync: false,\n\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\tdata: data,\n\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\tvar events = [];\n\t\t\t\t\t\tlightboxArr = [];\n\n\t\t\t\t\t\t$.each(response.data, function (index, event) {\n\t\t\t\t\t\t\tevents.push({\n\t\t\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\t\t\ttitle: event.title,\n\t\t\t\t\t\t\t\tstart: event.date.full,\n\t\t\t\t\t\t\t\ttype: event.type,\n\t\t\t\t\t\t\t\tcalendar:event.isPastCalender\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t//console.log(event.isPastCalender);\n\n\t\t\t\t\t\t\tlightboxArr.push({\n\t\t\t\t\t\t\t\thref: event.lightbox\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcallback(events);\n\n\t\t\t\t\t\tif (events.length) {\n\t\t\t\t\t\t\tvar output = Mustache.render(template, response);\n\t\t\t\t\t\t\tmobileItems.html(output);\n\t\t\t\t\t\t\tmobileError.text(\"\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmobileItems.html(\"\");\n\t\t\t\t\t\t\tmobileError.text(response.errorText);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\tcolumnFormat: \"dddd\",\n\t\t\tfixedWeekCount: false,\n\t\t\theader: false,\n\t\t\theight: \"auto\",\n\t\t\tlang: $(\"html\").attr(\"lang\"),\n\t\t\teventRender: function (event, element, view) {\n\t\t\t\tvar type = event.type;\n\t\t\t\tvar title = event.title;\n\t\t\t\tvar time = moment(event.start).format(\"HH:mm\");\n\t\t\t\tvar response = event.calendar;\n\t\t\t\tif (response){\n\t\t\t\t\treturn '

    ' + type + '

    ' + title + '

    ' + time + '
    ';\n\t\t\t\t}else{\n\t\t\t\t\treturn '

    ' + type + '

    ' + title + '

    ' + time + '
    ';\n\t\t\t\t}\n\t\t\t},\n\t\t\teventClick: function (event) {\n\t\t\t\tvar index = event.index;\n\n\t\t\t\t$.fancybox(lightboxArr, {\n\t\t\t\t\tindex: index,\n\t\t\t\t\ttype: \"ajax\",\n\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\theight: \"auto\",\n\t\t\t\t\tmaxWidth: 370,\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\tfitToView: false,\n\t\t\t\t\tautoSize: false,\n\t\t\t\t\tscrolling: \"no\",\n\t\t\t\t\tautoCenter: true\n\t\t\t\t});\n\t\t\t},\n\t\t\tviewRender: function (view, element) {\n\t\t\t\tvar date = view.intervalStart;\n\t\t\t\tvar prevMonthName = moment(date).subtract(1, \"months\").format(\"MMMM\");\n\t\t\t\tvar nextMonthName = moment(date).add(1, \"months\").format(\"MMMM\");\n\t\t\t\tvar month = moment(date).format(\"MM\");\n\t\t\t\tvar year = moment(date).format(\"YYYY\");\n\n\t\t\t\t$(\".module-event-calendar .head .prev span\").text(prevMonthName);\n\t\t\t\t$(\".module-event-calendar .head .next span\").text(nextMonthName);\n\t\t\t\t$(\".module-event-calendar .head .month\").val(month).trigger(\"change.select2\");\n\t\t\t\t$(\".module-event-calendar .head .year\").val(year).trigger(\"change.select2\");\n\n\t\t\t\tcellSize();\n\t\t\t},\n\t\t\twindowResize: function () {\n\t\t\t\tcellSize();\n\t\t\t}\n\t\t});\n\n\t\t$(\".module-event-calendar .filters :input\").on(\"change ifChecked\", function () {\n\t\t\tcalendar.fullCalendar(\"refetchEvents\");\n\t\t});\n\n\t\t$(\".module-event-calendar .head .prev\").on({\n\t\t\tclick: function () {\n\t\t\t\tcalendar.fullCalendar(\"prev\");\n\t\t\t}\n\t\t});\n\n\t\t$(\".module-event-calendar .head .next\").on({\n\t\t\tclick: function () {\n\t\t\t\tcalendar.fullCalendar(\"next\");\n\t\t\t}\n\t\t});\n\n\t\t$(\".module-event-calendar .head select\").on({\n\t\t\tchange: function () {\n\t\t\t\tvar month = $(\".module-event-calendar .head .month\").val();\n\t\t\t\tvar year = $(\".module-event-calendar .head .year\").val();\n\n\t\t\t\tcalendar.fullCalendar(\"gotoDate\", year + \"-\" + month + \"-01\");\n\t\t\t}\n\t\t});\n\t},\n\tcustomInputs: function () {\n\t\tif ($(\"html\").hasClass(\"no-touchevents\") || $(window).width() >= 768) {\n\t\t\t$(\"select\").each(function (index, element) {\n\t\t\t\tif($(element).attr(\"name\") == \"district\"){\n\t\t\t\t\t$(element).select2({\n\t\t\t\t\t\t\"language\": {\n\t\t\t\t\t\t\t\"noResults\": function(){\n\t\t\t\t\t\t\t\tvar errorsText;\n\t\t\t\t\t\t\t\tif($(\"html\").attr(\"lang\") == \"tr\"){\n\t\t\t\t\t\t\t\t\terrorsText = \"Sonuç bulunamadı\"\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrorsText = \"No Results Found\"\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif($(element).attr(\"name\") == \"district\" && $(element).parents(\".discount-form\").length && $(\"html\").attr(\"lang\") == \"tr\"){\n\t\t\t\t\t\t\t\t\tif($(element).parents(\".row\").find(\"select[name='city']\").val() == \"\"){\n\t\t\t\t\t\t\t\t\t\terrorsText = \"Şehir Seçiniz\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn errorsText;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdropdownAutoWidth: true,\n\t\t\t\t\t\tdropdownParent: $(element).parent()\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\t$(element).select2({\n\t\t\t\t\t\t\"language\": {\n\t\t\t\t\t\t\t\"noResults\": function(){\n\t\t\t\t\t\t\t\tvar errorsText;\n\t\t\t\t\t\t\t\tif($(\"html\").attr(\"lang\") == \"tr\"){\n\t\t\t\t\t\t\t\t\terrorsText = \"Sonuç bulunamadı\"\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrorsText = \"No Results Found\"\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif($(element).attr(\"name\") == \"district\" && $(element).parents(\".discount-form\").length && $(\"html\").attr(\"lang\") == \"tr\"){\n\t\t\t\t\t\t\t\t\tif($(element).parents(\".row\").find(\"select[name='city']\").val() == \"\"){\n\t\t\t\t\t\t\t\t\t\terrorsText = \"Şehir Seçiniz\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn errorsText;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tminimumResultsForSearch: Infinity,\n\t\t\t\t\t\tdropdownAutoWidth: true,\n\t\t\t\t\t\tdropdownParent: $(element).parent()\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t});\n\t\t\t\n\t\t\t$(\"select\").on(\"select2:open\", function (event) {\n\t\t\t\t$(\".select2-results__options\").niceScroll({\n\t\t\t\t\tautohidemode: false,\n\t\t\t\t\tcursorborder: 0\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\t$(\"input\").iCheck();\n\n\t\t$(\"input\").on({\n\t\t\tifChanged: function () {\n\t\t\t\tif ($(this).is(\":checked\")) {\n\t\t\t\t\t$(this).parents(\"label\").addClass(\"checked\");\n\t\t\t\t} else {\n\t\t\t\t\t$(this).parents(\"label\").removeClass(\"checked\");\n\t\t\t\t}\n\t\t\t}\n\t\t}).trigger(\"ifChanged\");\n\n\t\t$(\".input-1\").each(function (index, element) {\n\t\t\t$(\"input\", element).on({\n\t\t\t\tkeyup: function () {\n\t\t\t\t\tvar length = $(this).val().length;\n\n\t\t\t\t\tif (length == 0) {\n\t\t\t\t\t\t$(\".remove\", element).hide();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".remove\", element).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).trigger(\"keyup\");\n\n\t\t\t$(\".remove\", element).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\t$(\"input\", element).val(\"\").trigger(\"focus\").trigger(\"keyup\");\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\n\t\t$(\".input-2\").each(function (index, element) {\n\t\t\tvar input = $(\"input\", element);\n\t\t\tvar placeholder = $(\".placeholder\", element);\n\n\t\t\tinput.on({\n\t\t\t\tfocusin: function () {\n\t\t\t\t\tplaceholder.addClass(\"focus\");\n\t\t\t\t},\n\t\t\t\tfocusout: function () {\n\t\t\t\t\tif (input.val() == \"\") {\n\t\t\t\t\t\tplaceholder.removeClass(\"focus\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tplaceholder.addClass(\"focus\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).trigger(\"focusout\");\n\t\t});\n\n\t\t$(\".submit\").on({\n\t\t\tclick: function () {\n\t\t\t\t$(this).parents(\"form\").submit();\n\t\t\t}\n\t\t});\n\t},\n\tlightbox: function () {\n\n\t\t/* fancybox-all-dates için kullanıldı */\n\t\tvar windowWidth = $(window).outerWidth();\n\t\tvar maxHeight = \"80%\";\n\t\tif(windowWidth < 768){\n\t\t\tvar maxHeight = \"100%\";\n\t\t}\n\t\t/* fancybox-all-dates için kullanıldı */\n\n\t\t// Ticket & sessions\n\t\tvar sessions = \".lightbox-ticket .sessions\";\n\n\t\tvar templateURL, listURL, template;\n\n\t\tvar getTemplate = function () {\n\t\t\ttemplateURL = $(sessions).data(\"template\");\n\t\t\tlistURL = $(sessions).data(\"list\");\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: templateURL,\n\t\t\t\tasync: false,\n\t\t\t\tsuccess: function (response) {\n\t\t\t\t\ttemplate = response;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tvar getSessions = function () {\n\t\t\tvar data = $(\".form :input\", sessions).serialize();\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: listURL,\n\t\t\t\tasync: false,\n\t\t\t\tdataType: \"json\",\n\t\t\t\tdata: data,\n\t\t\t\tsuccess: function (response) {\n\t\t\t\t\tvar output = Mustache.render(template, response);\n\t\t\t\t\t$(\".items\", sessions).html(output);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n $(\".fancybox-genc-yetenek\").fancybox({\n width: \"100%\",\n height: \"100%\",\n maxWidth: 720,\n maxHeight: 600,\n margin: 0,\n padding: 0,\n fitToView: false,\n autoSize: false,\n wrapCSS: \"fancybox-skin-2\",\n autoCenter: true\n });\n\n\t\t$(\".fancybox-ticket\").fancybox({\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tmaxWidth: 720,\n\t\t\tmaxHeight: 600,\n\t\t\tmargin: 0,\n\t\t\tpadding: 0,\n\t\t\tfitToView: false,\n\t\t\tautoSize: false,\n\t\t\twrapCSS: \"fancybox-skin-2\",\n\t\t\tautoCenter: true,\n\t\t\tbeforeShow: function () {\n\t\t\t\tif ($(sessions).length) {\n\t\t\t\t\tgetTemplate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmain.customInputs();\n\n\t\t\t\t$(\".form input[type='radio']:checked\", sessions).trigger(\"ifChecked\");\n\n\t\t\t\tif ($(\"html\").hasClass(\"no-touchevents\")) {\n\t\t\t\t\t$(\".lightbox-ticket .contents\").niceScroll({\n\t\t\t\t\t\tautohidemode: false,\n\t\t\t\t\t\tcursorborder: 0\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t$(\".lightbox-ticket .tabs li.active\").trigger(\"click\");\n\t\t\t}\n\t\t});\n\n\t\t$(\"body\").on(\"click\", \".lightbox-ticket .tabs li\", function () {\n\t\t\t$(this).parents(\".tabs\").find(\"li\").removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\n\t\t\tvar index = $(this).index();\n\n\t\t\t$(\".lightbox-ticket .contents .content\").hide();\n\t\t\t$(\".lightbox-ticket .contents .content\").eq(index).show();\n\t\t});\n\n\t\t$(\"body\").on(\"ifChecked\", sessions + \" .form input[type='radio']\", function () {\n\t\t\tvar select = $(this).data(\"select\");\n\n\t\t\t$(\".form .select-content\", sessions).hide();\n\t\t\t$(\".form .select-content[data-select='\" + select + \"']\", sessions).show();\n\t\t});\n\n\t\t$(\"body\").on(\"change\", sessions + \" .form select[name='city']\", function () {\n\t\t\tvar data = $(this).serialize();\n\t\t\tvar url = $(this).data(\"url\");\n\t\t\tvar district = $(\".form select[name='district']\", sessions);\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: url,\n\t\t\t\tasync: false,\n\t\t\t\tdataType: \"json\",\n\t\t\t\tsuccess: function (response) {\n\t\t\t\t\tdistrict.html('');\n\n\t\t\t\t\t$.each(response.data, function (index, element) {\n\t\t\t\t\t\tdistrict.append('');\n\t\t\t\t\t});\n\n\t\t\t\t\tdistrict.trigger(\"change.select2\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\t$(\"body\").on(\"change ifChecked\", \".lightbox-ticket .sessions .form :input\", function () {\n\t\t\tgetSessions();\n\t\t});\n\n\t\t// Cast mobile\n\t\t$(\".module-cast .mobile a\").fancybox({\n\t\t\ttype: \"ajax\",\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tmargin: 0,\n\t\t\tpadding: 0,\n\t\t\tfitToView: false,\n\t\t\tautoSize: false,\n\t\t\twrapCSS: \"fancybox-skin-2\",\n\t\t\tarrows: false,\n\t\t\tautoCenter: true,\n\t\t\tafterShow: function () {\n\t\t\t\t$(\".fancybox-wrap\").swipe({\n\t\t\t\t\tswipeLeft: function () {\n\t\t\t\t\t\t$.fancybox.next();\n\t\t\t\t\t},\n\t\t\t\t\tswipeRight: function () {\n\t\t\t\t\t\t$.fancybox.prev();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t$(\"body\").on(\"click\", \".lightbox-cast .image .prev\", function () {\n\t\t\t$.fancybox.prev();\n\t\t});\n\n\t\t$(\"body\").on(\"click\", \".lightbox-cast .image .next\", function () {\n\t\t\t$.fancybox.next();\n\t\t});\n\n\t\t// Maps\n\t\t$(\"body\").on(\"click\", \".fancybox-maps\", function (event) {\n\t\t\tvar href = $(this).data(\"fancybox-href\");\n\n\t\t\tif ($(window).width() > 568) {\n\t\t\t\t$.fancybox({\n\t\t\t\t\thref: href,\n\t\t\t\t\ttype: \"iframe\",\n\t\t\t\t\twidth: 800,\n\t\t\t\t\theight: 450,\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\taspectRatio: true,\n\t\t\t\t\tautoCenter: true\n\t\t\t\t});\n\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\n\t\t// Gallery\n\t\t$(\".fancybox-gallery\").fancybox({\n\t\t\twidth: 1200,\n\t\t\theight: 674,\n\t\t\tmaxHeight: \"90%\",\n\t\t\tpadding: 0,\n\t\t\taspectRatio: true,\n\t\t\tautoCenter: true\n\t\t});\n\n\t\t// All dates\n\t\t$(\".fancybox-all-dates\").fancybox({\n\t\t\ttype: \"ajax\",\n\t\t\twidth: \"100%\",\n\t\t\theight: \"auto\",\n\t\t\tmaxWidth: 720,\n\t\t\tmaxHeight: maxHeight,\n\t\t\tmargin: 0,\n\t\t\tpadding: 0,\n\t\t\tfitToView: false,\n\t\t\tautoSize: false,\n\t\t\twrapCSS: \"fancybox-skin-2\",\n\t\t\tautoCenter: true,\n\t\t\tbeforeShow: function () {\n\t\t\t\tif ($(\"html\").hasClass(\"no-touchevents\")) {\n\t\t\t\t\t$(\".lightbox-all-dates .content\").niceScroll({\n\t\t\t\t\t\tautohidemode: false,\n\t\t\t\t\t\tcursorborder: 0\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Announcement\n\t\tif (!Cookies.get(\"announcementDisabled\")) {\n\t\t\tvar announcement = $(\"body\").data(\"announcement\");\n\n\t\t\tif (announcement) {\n\t\t\t\t$.fancybox({\n\t\t\t\t\thref: announcement,\n\t\t\t\t\tmaxWidth: \"90%\",\n\t\t\t\t\tmaxHeight: \"90%\",\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\tafterClose: function () {\n\t\t\t\t\t\tCookies.set(\"announcementDisabled\", true, {expires: 1});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n\tfeeds: function () {\n\t\tif ($(\".module-social-feed .feeds\").length) {\n\t\t\tvar feed = $(\".module-social-feed .feeds\").packery({\n\t\t\t\titemSelector: \".item\"\n\t\t\t});\n\n\t\t\tfeed.imagesLoaded().progress(function () {\n\t\t\t\tfeed.packery();\n\t\t\t});\n\t\t}\n\t},\n\tsynopsis: function () {\n\t\t$(\".module-synopsis .content\").each(function (index, element) {\n\t\t\tvar content = $(element);\n\t\t\tvar text = $(\".text\", content);\n\t\t\tvar more = $(\".read-more\", content);\n\n\t\t\tif (text[0].scrollHeight < text.height() + 50) {\n\t\t\t\tcontent.addClass(\"more-hidden\");\n\t\t\t}\n\n\t\t\tmore.on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar text1 = $(this).data(\"text1\");\n\t\t\t\t\tvar text2 = $(this).data(\"text2\");\n\n\t\t\t\t\tif (content.hasClass(\"active\")) {\n\t\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\t\tscrollTop: $(\".module-synopsis\").offset().top - $(\"header .inner\").height() - $(\".module-content-nav\").height()\n\t\t\t\t\t\t}, 500, function () {\n\t\t\t\t\t\t\tcontent.removeClass(\"active\");\n\t\t\t\t\t\t\t$(\"span\", more).text(text1);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontent.addClass(\"active\");\n\t\t\t\t\t\t$(\"span\", this).text(text2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tdirector: function () {\n\t\t$(\".module-director .content\").each(function (index, element) {\n\t\t\tvar content = $(element);\n\t\t\tvar text = $(\".text\", content);\n\t\t\tvar more = $(\".read-more\", content);\n\n\t\t\tif (text[0].scrollHeight < text.height() + 50) {\n\t\t\t\tcontent.addClass(\"more-hidden\");\n\t\t\t}\n\n\t\t\tmore.on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar text1 = $(this).data(\"text1\");\n\t\t\t\t\tvar text2 = $(this).data(\"text2\");\n\n\t\t\t\t\tif (content.hasClass(\"active\")) {\n\t\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\t\tscrollTop: $(\".module-director\").offset().top - $(\"header .inner\").height() - $(\".module-content-nav\").height()\n\t\t\t\t\t\t}, 500, function () {\n\t\t\t\t\t\t\tcontent.removeClass(\"active\");\n\t\t\t\t\t\t\t$(\"span\", more).text(text1);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontent.addClass(\"active\");\n\t\t\t\t\t\t$(\"span\", this).text(text2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tpagination: function () {\n\t\t$(\".pagination\").each(function (index, pagination) {\n\t\t\t$(\"select\", pagination).on({\n\t\t\t\tchange: function () {\n\t\t\t\t\tvar prev = $(\"option:selected\", this).prev(\"option\");\n\t\t\t\t\tvar next = $(\"option:selected\", this).next(\"option\");\n\n\t\t\t\t\tif (prev.length) {\n\t\t\t\t\t\t$(\".prev\", pagination).removeClass(\"disabled\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".prev\", pagination).addClass(\"disabled\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (next.length) {\n\t\t\t\t\t\t$(\".next\", pagination).removeClass(\"disabled\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".next\", pagination).addClass(\"disabled\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).trigger(\"change\");\n\n\t\t\t$(\".prev\", pagination).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar select = $(\"select\", pagination);\n\t\t\t\t\tvar prev = $(\"option:selected\", select).prev(\"option\");\n\n\t\t\t\t\tif (prev.length) {\n\t\t\t\t\t\tprev.prop(\"selected\", true);\n\t\t\t\t\t\tselect.trigger(\"change\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".next\", pagination).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar select = $(\"select\", pagination);\n\t\t\t\t\tvar next = $(\"option:selected\", select).next(\"option\");\n\n\t\t\t\t\tif (next.length) {\n\t\t\t\t\t\tnext.prop(\"selected\", true);\n\t\t\t\t\t\tselect.trigger(\"change\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tlist: function (container) {\n\t\tvar isInfinite = false;\n\n\t\tif ($(container).length) {\n\t\t\tvar templateURL = $(container).data(\"template\");\n\t\t\tvar listURL = $(container).data(\"list\");\n\n\t\t\tif ($(container).is(\".module-list-events\")) {\n\t\t\t\tinfiniteBinder(true);\n\t\t\t}\n\n\t\t\t// template\n\t\t\tvar deferredTemplate = $.ajax({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: templateURL\n\t\t\t});\n\n\t\t\t// list\n\t\t\tvar getList = function (pagination) {\n\t\t\t\tif (!(pagination && isInfinite) && $(window).scrollTop() > 0) {\n\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\tscrollTop: $(\".module-content-nav\").next().offset().top - $(\".module-content-nav\").height() - 35\n\t\t\t\t\t}, 800);\n\t\t\t\t}\n\n\t\t\t\tif (!pagination) {\n\t\t\t\t\t$(\".pagination select\", container).val(\"1\").data(\"value\", \"1\");\n\t\t\t\t}\n\n\t\t\t\tvar category = $(\".module-content-nav :input\").serialize();\n\t\t\t\tvar filters = $(\":input\", container).serialize();\n\t\t\t\tvar data = category + \"&\" + filters;\n\n\t\t\t\tif (pagination && isInfinite) {\n\t\t\t\t\t$(\".loading-bottom\", container).addClass(\"active\");\n\t\t\t\t} else {\n\t\t\t\t\t$(\".loading-top\", container).addClass(\"active\");\n\t\t\t\t}\n\n\t\t\t\t$(container).addClass(\"loading\");\n\n\t\t\t\tvar deferredData = $.ajax({\n\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\turl: listURL,\n\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\tdata: data\n\t\t\t\t});\n\n\t\t\t\t$.when(deferredTemplate, deferredData)\n\t\t\t\t\t.done(function (template, data) {\n\t\t\t\t\t\t$(\".loading-top\", container).removeClass(\"active\");\n\t\t\t\t\t\t$(\".loading-bottom\", container).removeClass(\"active\");\n\t\t\t\t\t\t$(container).removeClass(\"loading\");\n\n\t\t\t\t\t\t// title\n\t\t\t\t\t\t$(\".page-sub-heading\", container).html(data[0].pageTitle);\n\n\t\t\t\t\t\tif(data[0].url){\n\t\t\t\t\t\t\thistory.replaceState(null, null, data[0].url);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// items\n\t\t\t\t\t\tif (data[0].data.length) {\n\t\t\t\t\t\t\tvar output = Mustache.render(template[0], data[0]);\n\n\t\t\t\t\t\t\t$(\".error-text\", container).text(\"\").hide();\n\n\t\t\t\t\t\t\tif (pagination && isInfinite) {\n\t\t\t\t\t\t\t\t$(\".items\", container).append(output).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$(\".items\", container).html(output).show();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tmain.backgroundImage($(\".items\", container));\n\n\t\t\t\t\t\t\tif (data[0].pages > 1 && !isInfinite) {\n\t\t\t\t\t\t\t\t$(\".pagination\", container).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$(\".pagination\", container).hide();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data[0].data.length < 4) {\n\t\t\t\t\t\t\t\t$(container).addClass(\"centered\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$(container).removeClass(\"centered\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(\".items\", container).html(\"\").hide();\n\t\t\t\t\t\t\t$(\".error-text\", container).text(data[0].errorText).show();\n\n\t\t\t\t\t\t\t$(\".pagination\", container).hide();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// pagination\n\t\t\t\t\t\tif (!pagination) {\n\t\t\t\t\t\t\t$(\".pagination select\", container).html(\"\");\n\n\t\t\t\t\t\t\tfor (var i = 1; i <= data[0].pages; i++) {\n\t\t\t\t\t\t\t\t$(\".pagination select\", container).append('');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$(\".pagination select\", container).trigger(\"change\");\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t};\n\n\t\t\tgetList();\n\n\t\t\t// events\n\t\t\t$(\".module-content-nav :input\").on({\n\t\t\t\tchange: function (event) {\n\t\t\t\t\t$(\".filters form\", container)[0].reset();\n\t\t\t\t\t$(\".filters form input\", container).iCheck(\"update\");\n\t\t\t\t\t\n\t\t\t\t\tgetList();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".filters form\", container).on({\n\t\t\t\tsubmit: function (event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".filters :input\", container).on(\"change ifChecked\", function () {\n\t\t\t\tgetList();\n\t\t\t});\n\n\t\t\t$(\".select-date :input\", container).on(\"change\", function () {\n\t\t\t\tvar value = $(this).val();\n\n\t\t\t\tinfiniteBinder(value == \"guncel\");\n\t\t\t});\n\n\t\t\t// keyword event\n\t\t\tvar timer;\n\n\t\t\t$(\".filters input[name='search_keyword']\", container).unbind(\"change\").on({\n\t\t\t\tkeyup: function (event) {\n\t\t\t\t\tif ($(this).val().length >= 3 || $(this).val() == \"\") {\n\t\t\t\t\t\tclearTimeout(timer);\n\n\t\t\t\t\t\ttimer = setTimeout(function () {\n\t\t\t\t\t\t\tgetList();\n\t\t\t\t\t\t}, 500);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// pagination event\n\t\t\t$(\".pagination select\", container).on({\n\t\t\t\tchange: function () {\n\t\t\t\t\tif ($(this).val() && $(this).val() != $(this).data(\"value\")) {\n\t\t\t\t\t\t$(this).data(\"value\", $(this).val());\n\n\t\t\t\t\t\tgetList(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t// infinite\n\t\tvar infiniteTimer;\n\n\t\tfunction infinite () {\n\t\t\tvar scrollTop = $(window).scrollTop();\n\t\t\tvar windowHeight = $(window).height();\n\t\t\tvar infiniteOffset = $(\".infinite\", container).offset().top + 20;\n\n\t\t\tif ((scrollTop + windowHeight > infiniteOffset) && !$(container).hasClass(\"loading\")) {\n\t\t\t\tclearTimeout(infiniteTimer);\n\n\t\t\t\tinfiniteTimer = setTimeout(function () {\n\t\t\t\t\t$(\".pagination .next\").trigger(\"click\");\n\t\t\t\t}, 200);\n\t\t\t}\n\t\t}\n\n\t\tfunction infiniteBinder (isBind) { // true: bind, false: unbind\n\t\t\tisInfinite = isBind;\n\n\t\t\tif (isBind) {\n\t\t\t\t$(window).bind(\"scroll\", infinite);\n\t\t\t} else {\n\t\t\t\t$(window).unbind(\"scroll\", infinite);\n\t\t\t}\n\t\t}\n\t},\n\tsearch: function () {\n\t\tvar search = $(\".search-container\");\n\t\tvar searchOverlay = $(\".search-overlay\");\n\n\t\tfunction open () {\n\t\t\t$(\"input\", search).trigger(\"focus\");\n\n\t\t\t$(\"header .search\").addClass(\"active\");\n\t\t\tsearch.addClass(\"active\");\n\t\t\tsearchOverlay.addClass(\"active\");\n\t\t}\n\n\t\tfunction close () {\n\t\t\t$(\"header .search\").removeClass(\"active\");\n\t\t\tsearch.removeClass(\"active\");\n\t\t\tsearchOverlay.removeClass(\"active\");\n\n\t\t\t$(\"input\", search).val(\"\").trigger(\"keyup\").trigger(\"blur\");\n\t\t}\n\n\t\t$(\"header .search\").on({\n\t\t\tclick: function () {\n\t\t\t\tif (!$(\".page-search-results\").length) {\n\t\t\t\t\topen();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(\"header .bar .bar-search\").on({\n\t\t\tclick: function () {\n\t\t\t\t$(\"header\").removeClass(\"collapsed\");\n\t\t\t\t$(\".module-content-nav.has-sticky\").addClass(\"menu-opened\");\n\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t$(\"header .search\").trigger(\"click\");\n\t\t\t\t}, 100);\n\t\t\t}\n\t\t});\n\n\t\t$(window).on({\n\t\t\tclick: function (event) {\n\t\t\t\tvar target = $(event.target);\n\n\t\t\t\tif (!(target.is(search) || target.parents(\".search-container\").length || target.is(\".search\") || target.parents(\".search\").length || $(\".page-search-results\").length)) {\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t},\n\t\t\tkeyup: function (event) {\n\t\t\t\tif (event.keyCode == 27) {\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t},\n\t\t\tkeydown: function (event) {\n\t\t\t\tif(!$(\".discount-form\").length){\n\t\t\t\t\tvar target = $(event.target);\n\n\t\t\t\t\tif (!(event.keyCode == 27 || event.keyCode == 9 || target.is(\":input\") || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey || $(\".page-search-results\").length || $(\".fancybox-overlay\").length || $(\".side-content-overlay\").hasClass(\"active\"))) {\n\t\t\t\t\t\t$(\"header\").removeClass(\"collapsed\");\n\t\t\t\t\t\t$(\".module-content-nav.has-sticky\").addClass(\"menu-opened\");\n\n\t\t\t\t\t\topen();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(\"input\", search).on({\n\t\t\tkeyup: function () {\n\t\t\t\tvar length = $(this).val().length;\n\n\t\t\t\tif (length == 0) {\n\t\t\t\t\t$(\".remove\", search).removeClass(\"active\");\n\t\t\t\t} else {\n\t\t\t\t\t$(\".remove\", search).addClass(\"active\");\n\t\t\t\t}\n\t\t\t}\n\t\t}).trigger(\"keyup\");\n\n\t\t$(\".remove\", search).on({\n\t\t\tclick: function () {\n\t\t\t\t$(\"input\", search).val(\"\").trigger(\"focus\").trigger(\"keyup\");\n\t\t\t}\n\t\t});\n\n\t\t$(\"form\", search).each(function (index, element) {\n\t\t\t$(element).validate({\n\t\t\t\terrorPlacement: function (error, element) {}, // remove error labels\n\t\t\t\thighlight: function(element, errorClass, validClass) {\n\t\t\t\t\t$(element).parent().addClass(errorClass).removeClass(validClass);\n\t\t\t\t},\n\t\t\t\tunhighlight: function(element, errorClass, validClass) {\n\t\t\t\t\t$(element).parent().removeClass(errorClass).addClass(validClass);\n\t\t\t\t},\n\t\t\t\trules: {\n\t\t\t\t\tsearch: {\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tminlength: 3\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\t$(window).on(\"mousewheel touchmove\", function (event) {\n\t\t\tif ($(\".search-overlay\").hasClass(\"active\")) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\tif ($(event.target).is(\".side-content-overlay\")) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t});\n\t},\n\tshare: {\n\t\tpopup: function (url) {\n\t\t\tvar D = 550, A = 450, C = screen.height, B = screen.width, H = Math.round((B / 2) - (D / 2)), G = 0;\n\t\t\twindow.open(url, '', 'left=' + H + ',top=' + G + ',width=' + D + ',height=' + A + ',personalbar=0,toolbar=0,scrollbars=1,resizable=1');\n\t\t},\n\t\tfacebook: function () {\n\t\t\tvar url = window.location.href;\n\n\t\t\tmain.share.popup(\"http://www.facebook.com/sharer/sharer.php?u=\" + encodeURIComponent(url));\n\t\t},\n\t\ttwitter: function (text) {\n\t\t\tvar url = window.location.href;\n\n\t\t\tmain.share.popup(\"http://twitter.com/intent/tweet?text=\" + encodeURIComponent(text) + \" - \" + encodeURIComponent(url));\n\t\t},\n\t\tinit: function () {\n\t\t\t$(\".social-widget > ul > li > a\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tvar container = $(this).parent();\n\n\t\t\t\t\tif (container.hasClass(\"active\")) {\n\t\t\t\t\t\tcontainer.removeClass(\"active\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".social-widget > ul > li\").removeClass(\"active\");\n\t\t\t\t\t\tcontainer.addClass(\"active\");\n\t\t\t\t\t}\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(window).on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tif (!$(event.target).parents(\".social-widget\").length) {\n\t\t\t\t\t\t$(\".social-widget > ul > li\").removeClass(\"active\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".social-widget .share a.facebook-ico\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tmain.share.facebook();\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".social-widget .share a.twitter-ico\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tvar text = $(this).data(\"text\");\n\t\t\t\t\tvar hashtag = $(this).data(\"hashtag\");\n\n\t\t\t\t\tmain.share.twitter(text + \" \" + hashtag);\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Mobile band\n\t\t\tvar controller = new ScrollMagic.Controller();\n\n\t\t\tvar scene = new ScrollMagic.Scene({\n\t\t\t\tduration: function () {\n\t\t\t\t\treturn $(\".mobile-band\").offset().top + $(\".mobile-band\").height() - $(\".module-promo-detail .text .buttons\").offset().top - $(window).height();\n\t\t\t\t},\n\t\t\t\ttriggerHook: 0,\n\t\t\t\ttriggerElement: \".module-promo-detail .text .buttons\"\n\t\t\t})\n\t\t\t.setClassToggle(\".mobile-band\", \"active\")\n\t\t\t.addTo(controller);\n\n\n\t\t\t$(\".mobile-band .social > ul > li > a\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tvar container = $(this).parent();\n\n\t\t\t\t\tif (container.hasClass(\"active\")) {\n\t\t\t\t\t\tcontainer.removeClass(\"active\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\".mobile-band .social > ul > li\").removeClass(\"active\");\n\t\t\t\t\t\tcontainer.addClass(\"active\");\n\t\t\t\t\t}\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(window).on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tif (!$(event.target).parents(\".mobile-band\").length) {\n\t\t\t\t\t\t$(\".mobile-band .social > ul > li\").removeClass(\"active\");\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tscroll: function () {\n\t\t\t\t\t$(\".mobile-band .social > ul > li\").removeClass(\"active\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".mobile-band .share a.facebook-ico\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tmain.share.facebook();\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".mobile-band .share a.twitter-ico\").on({\n\t\t\t\tclick: function (event) {\n\t\t\t\t\tvar text = $(this).data(\"text\");\n\n\t\t\t\t\tmain.share.twitter(text);\n\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\ttooltip: function () {\n\t\tfunction create (element) {\n\t\t\t$(element).qtip({\n\t\t\t\tcontent: $(element).html(),\n\t\t\t\tposition: {\n\t\t\t\t\tmy: \"bottom center\",\n\t\t\t\t\tat: \"top center\"\n\t\t\t\t},\n\t\t\t\tstyle: {\n\t\t\t\t\twidth: $(element).width(),\n\t\t\t\t\ttip: {\n\t\t\t\t\t\twidth: 9,\n\t\t\t\t\t\theight: 6\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tfunction init () {\n\t\t\t$(\".card-movie .date, .module-cast .slider .thumbnails .item .thumbnail .text .name\").each(function (index, element) {\n\t\t\t\t$(element).qtip(\"destroy\", true);\n\n\t\t\t\tif (element.scrollWidth > $(element).innerWidth()) {\n\t\t\t\t\tcreate(element);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".card-movie h3 span, .card-event-2 h3 a\").each(function (index, element) {\n\t\t\t\t$(element).qtip(\"destroy\", true);\n\n\t\t\t\tif ($(element).height() > $(element).parent().height()) {\n\t\t\t\t\tcreate(element);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tinit();\n\n\n\t\tvar timer;\n\n\t\t$(window).on({\n\t\t\tresize: function () {\n\t\t\t\tclearTimeout(timer);\n\n\t\t\t\ttimer = setTimeout(function () {\n\t\t\t\t\tinit();\n\t\t\t\t}, 200);\n\t\t\t}\n\t\t});\n\t},\n\tisMobile: {\n\t\tAndroid: function () {\n\t\t\treturn navigator.userAgent.match(/Android/i);\n\t\t},\n\t\tBlackBerry: function () {\n\t\t\treturn navigator.userAgent.match(/BlackBerry/i);\n\t\t},\n\t\tiOS: function () {\n\t\t\treturn navigator.userAgent.match(/iPhone|iPad|iPod/i);\n\t\t},\n\t\tOpera: function () {\n\t\t\treturn navigator.userAgent.match(/Opera Mini/i);\n\t\t},\n\t\tWindows: function () {\n\t\t\treturn navigator.userAgent.match(/IEMobile/i);\n\t\t},\n\t\tany: function () {\n\t\t\treturn (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());\n\t\t}\n\t},\n\tsinekafa: function () {\n\t\tif (main.isMobile.iOS()) {\n\t\t\t$(\"footer .sinekafa .buttons .android\").hide();\n\t\t} else if (main.isMobile.Android()) {\n\t\t\t$(\"footer .sinekafa .buttons .ios\").hide();\n\t\t}\n\t},\n\tawards: function () {\n\t\t$(\".module-awards-mobile ul\").niceScroll({\n\t\t\ttouchbehavior: true,\n\t\t\tcursoropacitymax: 0\n\t\t});\n\n\t\t$(\".module-awards-mobile ul\").on({\n\t\t\tscroll: function () {\n\t\t\t\tvar container = $(this).parents(\".container\");\n\t\t\t\tvar innerWidth = 0;\n\t\t\t\tvar scrollLeft = $(this).scrollLeft();\n\n\t\t\t\t$(\"li\", this).each(function (index, element) {\n\t\t\t\t\tinnerWidth += $(element).outerWidth(true);\n\t\t\t\t});\n\n\t\t\t\tif (scrollLeft > 0) {\n\t\t\t\t\tcontainer.addClass(\"gradient-left\");\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.removeClass(\"gradient-left\");\n\t\t\t\t}\n\n\t\t\t\tif (innerWidth - $(this).width() - 1 <= scrollLeft) {\n\t\t\t\t\tcontainer.removeClass(\"gradient-right\")\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.addClass(\"gradient-right\")\n\t\t\t\t}\n\t\t\t}\n\t\t}).trigger(\"scroll\");\n\n\t\t$(window).on({\n\t\t\tresize: function () {\n\t\t\t\t$(\".module-awards-mobile ul\").trigger(\"scroll\");\n\t\t\t}\n\t\t});\n\t},\n\tcrew: function () {\n\t\tif ($(\".module-crew\").length) {\n\t\t\t$(\".module-crew .text ul\").packery({\n\t\t\t\titemSelector: \"li\"\n\t\t\t});\n\t\t}\n\t},\n\tnotFound: function (onResize) {\n\t\t$(\".page-not-found\").css({\n\t\t\theight: $(window).height()\n\t\t});\n\n\t\tif (!onResize) {\n\t\t\tvar random = Math.floor(Math.random() * 7) + 1;\n\n\t\t\t$(\".page-not-found\").css({\n\t\t\t\tbackgroundImage: \"url('/assets/images/404/404-\" + random + \".jpg')\"\n\t\t\t});\n\t\t}\n\t},\n\tabout: function () {\n\t\t$(\".module-about .content\").each(function (index, element) {\n\t\t\tvar content = $(element);\n\t\t\tvar text = $(\".text\", content);\n\t\t\tvar more = $(\".read-more\", content);\n\n\t\t\tif (text[0].scrollHeight < text.height() + 50) {\n\t\t\t\tcontent.addClass(\"more-hidden\");\n\t\t\t}\n\n\t\t\tmore.on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tvar text1 = $(this).data(\"text1\");\n\t\t\t\t\tvar text2 = $(this).data(\"text2\");\n\n\t\t\t\t\tif (content.hasClass(\"active\")) {\n\t\t\t\t\t\t$(\"html, body\").stop().animate({\n\t\t\t\t\t\t\tscrollTop: $(\".module-about\").offset().top - $(\"header .inner\").height() - $(\".module-content-nav\").height()\n\t\t\t\t\t\t}, 500, function () {\n\t\t\t\t\t\t\tcontent.removeClass(\"active\");\n\t\t\t\t\t\t\t$(\"span\", more).text(text1);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontent.addClass(\"active\");\n\t\t\t\t\t\t$(\"span\", this).text(text2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tsideContent: {\n\t\topen: function () {\n\t\t\t$(\".side-content-overlay\").addClass(\"active\");\n\t\t\t$(\".side-content\").addClass(\"active\");\n\t\t},\n\t\tclose: function () {\n\t\t\t$(\".side-content-overlay\").removeClass(\"active\");\n\t\t\t$(\".side-content\").removeClass(\"active\");\n\t\t},\n\t\tcreate: function () {\n\t\t\tvar formContent = $(\".side-content .form-content\");\n\t\t\tvar agreementContent = $(\".side-content .agreement-content\");\n\t\t\tvar resultContent = $(\".side-content .result-content\");\n\n\t\t\tif ($(\"html\").hasClass(\"no-touchevents\")) {\n\t\t\t\tformContent.niceScroll({\n\t\t\t\t\tautohidemode: false,\n\t\t\t\t\tcursorborder: 0\n\t\t\t\t});\n\n\t\t\t\tagreementContent.niceScroll({\n\t\t\t\t\tautohidemode: false,\n\t\t\t\t\tcursorborder: 0\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t$(\".agreement\", formContent).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tagreementContent.addClass(\"active\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".back\", agreementContent).on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tagreementContent.removeClass(\"active\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$(\".side-content .close\").on({\n\t\t\t\tclick: function () {\n\t\t\t\t\tmain.sideContent.close();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$.validator.addMethod(\"captcha\", function(value, element) {\n\t\t\t\treturn grecaptcha.getResponse() != \"\";\n\t\t\t}, \"Lütfen doğrulama alanını işaretleyin\");\n\n\n\t\t\t$(\"form\", formContent).validate({\n\t\t\t\tignore: \"\",\n\t\t\t\tonkeyup: false,\n\t\t\t\thighlight: function(element, errorClass, validClass) {\n\t\t\t\t\t$(element).parent().addClass(errorClass).removeClass(validClass);\n\t\t\t\t},\n\t\t\t\tunhighlight: function(element, errorClass, validClass) {\n\t\t\t\t\t$(element).parent().removeClass(errorClass).addClass(validClass);\n\t\t\t\t},\n\t\t\t\tsubmitHandler: function (form) {\n\t\t\t\t\tvar url = $(form).attr(\"action\");\n\t\t\t\t\tvar type = $(form).attr(\"method\");\n\t\t\t\t\tvar data = $(form).serialize();\n\t\t\t\t\t$(\"input[type='submit']\", form).attr(\"disabled\", true);\n\n\t\t\t\t\t$.ajax({\n\t\t\t\t\t\ttype: type,\n\t\t\t\t\t\turl: url,\n\t\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\t\tdata: data,\n\t\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t\t$(\"input[type='submit']\", form).removeAttr(\"disabled\");\n\n\t\t\t\t\t\t\tif (response.status == 1) {\n\t\t\t\t\t\t\t\tformContent.hide();\n\t\t\t\t\t\t\t\tresultContent.show();\n\n\t\t\t\t\t\t\t\tCookies.set(\"landingDisabled\", true, {expires: 365});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\trules: {\n\t\t\t\t\tname: \"required\",\n\t\t\t\t\temail: {\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\temail: true\n\t\t\t\t\t},\n\t\t\t\t\tbirthDay: \"required\",\n\t\t\t\t\tbirthMonth: \"required\",\n\t\t\t\t\tbirthYear: \"required\",\n\t\t\t\t\tgender: \"required\",\n\t\t\t\t\tcity: \"required\",\n\t\t\t\t\tphone: {\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tnumber: true\n\t\t\t\t\t},\n\t\t\t\t\tcampaigns: \"required\",\n\t\t\t\t\tagreement: \"required\",\n\t\t\t\t\thiddenRecaptcha: \"captcha\"\n\t\t\t\t},\n\t\t\t\tmessages: {\n\t\t\t\t\tname: \"Lütfen adınızı girin\",\n\t\t\t\t\temail: {\n\t\t\t\t\t\trequired: \"Lütfen e-posta adresinizi girin\",\n\t\t\t\t\t\temail: \"Lütfen geçerli bir e-posta adresi girin\"\n\t\t\t\t\t},\n\t\t\t\t\tphone: {\n\t\t\t\t\t\trequired: \"Lütfen telefon numaranızı girin\",\n\t\t\t\t\t\tnumber: \"Lütfen geçerli bir telefon numarası girin\"\n\t\t\t\t\t},\n\t\t\t\t\thiddenRecaptcha: \"Lütfen doğrulama alanını işaretleyin\"\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tinit: function () {\n\t\t\tvar landingCount = parseInt(Cookies.get(\"landingCount\")) || 0;\n\t\t\tvar landingDisabled = Cookies.get(\"landingDisabled\");\n\n\t\t\tif (landingCount >= 2) {\n\t\t\t\tCookies.set(\"landingDisabled\", true, {expires: 365});\n\n\t\t\t\tlandingDisabled = true;\n\t\t\t}\n\n\t\t\tif (!landingDisabled) {\n\t\t\t\tmain.sideContent.create();\n\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\tmain.sideContent.open();\n\t\t\t\t\tCookies.set(\"landingDisabled\", true);\n\t\t\t\t\tCookies.set(\"landingCount\", landingCount + 1, {expires: 365});\n\t\t\t\t}, 5000);\n\t\t\t}\n\t\t}\n\t},\n cookiePolicy:{\n\t\tinit: function () {\n\n\t\t\tif (!Cookies.get(\"cookiePolicyDisabled\")) {\n $(\".cookie-policy\").addClass(\"active\");\n $(window).on(\"resize scroll\", main.cookiePolicy.calculate).trigger(\"resize\",\"scroll\");\n\n $(\".cookie-policy .close\").on({\n click: function () {\n $(\".cookie-policy\").removeClass(\"active\").hide();\n Cookies.set(\"cookiePolicyDisabled\", true, {expires: 365});\n main.cookiePolicy.calculate();\n if (main.sliders.main.scene) {\n main.sliders.main.scene.update(true);\n }\n }\n });\n }\n },\n\t\tcalculate: function () {\n if(($(\".cookie-policy\").length)){\n var cookieHeight = $(\".cookie-policy:visible\").outerHeight();\n\n if($(window).width() < 992){\n $(\".cookie-policy\").css(\"top\", 0);\n $(\"header, header .inner, .module-content-nav.has-sticky .inner\").removeAttr(\"style\");\n $(\"header\").css(\"margin-top\", cookieHeight).find(\".inner\").css(\"top\", cookieHeight);\n\n if($(\".module-content-nav.has-sticky\").length && $(window).width() >= 375){\n $(\".module-content-nav.has-sticky.sticky .inner\").css({\n top: cookieHeight + 36\n });\n }\n } else {\n\t\t\t\t\t$(\".cookie-policy\").removeAttr(\"style\");\n $(\"header, header .inner, .module-content-nav.has-sticky .inner\").removeAttr(\"style\");\n $(\"header\").css(\"margin-top\", 0).find(\".inner\").css(\"top\", 0);\n }\n\t\t\t}\n }\n\t},\n\tlocalization: {\n\t\ttr: [\n\t\t\t\"Lütfen e-posta adresinizi girin\",\n\t\t\t\"Lütfen geçerli bir e-posta adresi girin\"\n\t\t],\n\t\ten: [\n\t\t\t\"Please enter a valid email address\",\n\t\t\t\"Please enter a valid email address\"\n\t\t]\n\t},\n\tlanguage: function () {\n\t\tif (!Cookies.get(\"langDisabled\")) {\n\t\t\tCookies.set(\"langDisabled\", true);\n\n\t\t\t$.fancybox({\n\t\t\t\thref: \"/assets/ajax/language.html\",\n\t\t\t\ttype: \"ajax\",\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"auto\",\n\t\t\t\tmaxWidth: 440,\n\t\t\t\tmaxHeight: \"100%\",\n\t\t\t\tpadding: 0,\n\t\t\t\tfitToView: false,\n\t\t\t\tautoSize: false,\n\t\t\t\tautoCenter: true,\n\t\t\t\tmodal: true\n\t\t\t});\n\t\t}\n\t},\n discountPopUp: {\n\t\tinit:function () {\n // if(!$(\".not-discount-pop-up\").length){\n // var _cookieDiscount = Cookies.get(\"cookieDiscount\");\n //\n // if(_cookieDiscount != \"true\" && $(\"html\").attr(\"lang\") == \"tr\" ){\n // $.fancybox({\n // padding : 0,\n // autoScale : false,\n // href\t\t : \"/assets/ajax/discount-fancy.html\",\n // type : \"ajax\"\n // });\n // Cookies.set(\"cookieDiscount\", \"true\", { expires: 1 });\n // }\n // }\n if ($(\".discount-form\").length) {\n \tmain.discountPopUp.formValidate();\n\t\t\t}\n },\n formValidate: function () {\n\n jQuery.validator.addMethod('atLeastOneChecked', function(value, element) {\n return ($('.areasOfInterest input:checked').length > 0);\n });\n\n jQuery.validator.addMethod('dateOfBirth', function(value, element) {\n return (!$('.form-row-birthdate select').val() == \"\");\n });\n\n $(\".discount-form\").validate({\n onkeyup: false,\n highlight: function(element, errorClass, validClass) {\n if($(element).attr(\"type\") == \"checkbox\"){\n $(element).parents(\".checkboxes\").addClass(errorClass).removeClass(validClass);\n } else {\n $(element).parent().addClass(errorClass).removeClass(validClass);\n }\n },\n unhighlight: function(element, errorClass, validClass) {\n if($(element).attr(\"type\") == \"checkbox\"){\n $(element).parents(\".checkboxes\").removeClass(errorClass).addClass(validClass);\n } else {\n $(element).parent().removeClass(errorClass).addClass(validClass);\n }\n },\n rules: {\n nameSurname: {\n required: true\n },\n email: {\n required: true,\n email: true\n },\n phone: {\n required: true,\n\t\t\t\t\t\tminlength: 17\n },\n yourInterests: {\n atLeastOneChecked: true\n },\n agreement: \"required\"\n },\n groups: {\n dateGroup: \"birthDay birthMonth birthYear\"\n },\n messages: {\n nameSurname: \"Lütfen adınızı ve soyadınızı girin.\",\n email: {\n required: \"Lütfen e-posta adresinizi girin.\",\n email: \"Lütfen geçerli bir e-posta adresi girin\"\n },\n phone: {\n required: \"Lütfen cep telefonu numaranızı girin.\",\n\t\t\t\t\t\tminlength: \"Lütfen geçerli bir cep telefonu girin\"\n },\n birthDay: \"Lütfen doğum tarihinizi girin.\",\n birthMonth: \"Lütfen doğum tarihinizi girin.\",\n birthYear: \"Lütfen doğum tarihinizi girin.\",\n\t\t\t\t\tcity: \"Lütfen il bilgisini girin.\",\n\t\t\t\t\tdistrict: \"Lütfen ilçe bilgisini girin.\",\n yourInterests: {\n atLeastOneChecked: \"Lütfen ilgi alanlarınızı seçin.\"\n },\n agreement: \"Lütfen Kişisel Verilerin Korunması formunu okuduğunuzu onaylayın.\"\n },\n errorPlacement: function(error, element) {\n var name = element.attr(\"name\");\n\n if (name == \"birthDay\" || name == \"birthMonth\" || name == \"birthYear\") {\n error.insertAfter(\".form-row-birthdate .row\");\n } else if(element.attr(\"type\") == \"checkbox\"){\n error.insertAfter(element.parents(\".form-row\"));\n } else if(name == \"city\" || name == \"district\"){\n \telement.parents(\".select-1\").append(error);\n\t\t\t\t\t} else {\n error.insertAfter(element);\n }\n }\n });\n\n $.ajax({\n url: \"/ajax/sehir-listesi\",\n method: 'GET'\n }).done(function (response) {\n if (response.Status) {\n for (var i = 0; i < response.Data.length; i++) {\n $(\"select[name='city']\").append($(\"\")\n .attr(\"value\", response.Data[i].name)\n .attr(\"data-id\", response.Data[i].id)\n .text(response.Data[i].name));\n }\n }\n }).error(function (response) {\n\n });\n\n $(\"select[name='city']\").on(\"change\", function () {\n $.ajax({\n url: \"/ajax/ilce-listesi/\" + $(\"select[name='city'] option:selected\").data(\"id\"),\n method: 'GET'\n }).done(function (response) {\n $('select[name=district] option').remove();\n if (response.Status) {\n for (var i = 0; i < response.Data.length; i++) {\n \tvar optionValue = response.Data[i].name,\n\t\t\t\t\t\t\t\toptionName = response.Data[i].name;\n\n \tif(optionName == \"Seçiniz\"){\n\t\t\t\t\t\t\t\toptionValue = \"\"\n\t\t\t\t\t\t\t}\n\n $(\"select[name='district']\").append($(\"\")\n .attr(\"value\", optionValue)\n .text(optionName));\n }\n }\n $(\"select[name='district']\").attr(\"disabled\", false);\n }).error(function (response) {\n\n });\n });\n }\n\t},\n\tinputMask:function () {\n\n\t\t$('#phone').mask('(500) 000 00 00', {\n\t\t\t'translation': {\n\t\t\t\t0: {\n\t\t\t\t\tpattern: /[0-9*]/\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t$('#phoneSecond').mask('+90 ### ### ## ##', {\n\t\t\ttranslation: {\n\t\t\t\t'9': null,\n\t\t\t\t'0': null,\n\t\t\t\t'#': { pattern: /[0-9]/},\n\t\t\t}\n\t\t});\n\t},\n\tcalendarShow:function(){\n\t\t$('.module-event-calendar .head').show();\n\t\t$('.module-event-calendar .filters').show();\n\t},\n\tslideItem: function(){\n\t\tvar t_slide = $('.module-slider-cards.alternate');\n\t\tvar t_slide_count = t_slide.find('.owl-carousel .owl-item').length;\n\t\tt_slide.attr('data-slide-item',t_slide_count);\n\t\tif (t_slide_count==1) {\n\t\t\tt_slide.find('.slider').addClass('slideOne');\n\t\t}else if(t_slide_count==2){\n\t\t\tt_slide.find('.slider').addClass('slideTwo');\n\t\t}else{\n\t\t\tt_slide.find('.slider').removeClass('slideOne SlideTwo');\n\t\t}\n\t},\n};\n\nvar checkCaptcha = function () {\n\t$(\".g-recaptcha\").parents(\"form\").valid();\n}\n\n$(function() {\n\tmain.navigation();\n\tmain.newsletter();\n\tmain.sliders.main.init();\n\tmain.sliders.list();\n\tmain.sliders.cards();\n\tmain.sliders.gallery();\n\tmain.sliders.cast();\n\tmain.promo();\n\tmain.backgroundImage();\n\tmain.contentNav();\n\tmain.eventCalendar();\n\tmain.customInputs();\n\tmain.lightbox();\n\tmain.feeds();\n\tmain.synopsis();\n\tmain.director();\n\tmain.pagination();\n\tmain.search();\n\tmain.list(\".module-list-films\");\n\tmain.list(\".module-list-events\");\n\tmain.list(\".module-list-press-release\");\n\tmain.sinekafa();\n\tmain.awards();\n\tmain.crew();\n\tmain.notFound();\n\tmain.about();\n\t// main.sideContent.init();\n\tmain.cookiePolicy.init();\n\tmain.discountPopUp.init();\n\tmain.inputMask();\n\tmain.slideItem();\n\t$(\"*\").on({ // iOS mouseout fix\n\t\tclick: function () {\n\t\t\treturn true;\n\t\t}\n\t});\n\n\t$(window).on({\n\t\tresize: function () {\n\t\t\tmain.sliders.main.init();\n\t\t\tmain.promo();\n\t\t\tmain.sliders.list(true);\n\t\t\tmain.sliders.gallery(true);\n\t\t\tmain.backgroundImage();\n\t\t\tmain.notFound(true);\n\t\t},\n\t\tload: function () {\n\t\t\tmain.tooltip();\n\t\t\tmain.share.init();\n\t\t\tmain.calendarShow();\n\t\t}\n\t});\n});"]}