{"version":3,"sources":["tipi.component.form.unified-checkbox/tipi.component.form.unified-checkbox.js","tipi.component.form.unified-radio/tipi.component.form.unified-radio.js","tipi.component.form.unified-select/tipi.component.form.unified-select.js","tipi.component.form.unified-selection-list/tipi.component.form.unified-selection-list.js","tipi.component.form.uploader/tipi.component.form.uploader.js","tipi.component.tabs/tipi.component.tabs.js","tipi.component.top-bar/tipi.component.top-bar.js","tipi.component.touch-menu/tipi.component.touch-menu.js","categories-dropdown.js","collapsible-description.js","collapsible-trigger.js","confirm-delete.js","datepicker.js","selection-list-group.js","uploader-widget.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;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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":"tipi.js","sourcesContent":["/*\n\tTipi Component - Unified Checkbox\n\n\tCreated by: ToolbarThomas\n\tBuild: 18.04.16\n*/\n\nfunction setUnifiedCheckbox() {\n\tvar unifiedCheckboxElements = {\n\t\troot \t\t: 'checkbox',\n\t\tlabel\t\t: 'label',\n\t\tinput\t\t: 'input[type=\"checkbox\"]',\n\t\tform\t\t: 'form',\n\t};\n\n\tvar unifiedCheckboxStates = {\n\t\tready \t\t: '__checkbox--ready',\n\t\tfocus \t\t: '__checkbox--focus',\n\t\tchecked \t: '__checkbox--checked',\n\t\tdisabled \t: '__checkbox--disabled',\n\t\tplaceholder : '__checkbox--placeholder'\n\t};\n\n\tvar unifiedCheckbox = $('.' + unifiedCheckboxElements.root).not('.' + unifiedCheckboxStates.ready);\n\tif(unifiedCheckbox.length > 0) {\n\t\tunifiedCheckbox.each(function() {\n\t\t\tvar unifiedCheckboxEach = $(this);\n\t\t\tvar unifiedCheckboxLabel = getUnifiedCheckboxElement(unifiedCheckboxEach, 'label', unifiedCheckboxElements);\n\t\t\tvar unifiedCheckboxInput = getUnifiedCheckboxElement(unifiedCheckboxEach, 'input', unifiedCheckboxElements);\n\t\t\tvar unifiedCheckboxForm = getUnifiedCheckboxElement(unifiedCheckboxEach, 'form', unifiedCheckboxElements);\n\n\t\t\tif(unifiedCheckboxLabel.length > 0 && unifiedCheckboxInput.length > 0) {\n\n\t\t\t\t//Set the disabled state on the .checkbox container.\n\t\t\t\tif(unifiedCheckboxInput.prop('disabled') === true) {\n\t\t\t\t\tunifiedCheckboxEach.addClass(unifiedCheckboxStates.disabled);\n\t\t\t\t} else {\n\t\t\t\t\tunifiedCheckboxEach.removeClass(unifiedCheckboxStates.disabled);\n\t\t\t\t}\n\n\t\t\t\tif(typeof unifiedCheckboxForm != 'undefined') {\n\t\t\t\t\tunifiedCheckboxForm.on({\n\t\t\t\t\t\treset : function() {\n\t\t\t\t\t\t\tunifiedCheckboxInput.not('[disabled]').prop('checked', false).trigger('change');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tunifiedCheckboxInput.on({\n\t\t\t\t\tclick : function(event) {\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t},\n\t\t\t\t\tfocus : function(event) {\n\t\t\t\t\t\tvar unifiedCheckbox = getUnifiedCheckboxElement($(this), 'root', unifiedCheckboxElements);\n\t\t\t\t\t\tunifiedCheckbox.addClass(unifiedCheckboxStates.focus);\n\t\t\t\t\t},\n\t\t\t\t\tblur : function(event) {\n\t\t\t\t\t\tvar unifiedCheckbox = getUnifiedCheckboxElement($(this), 'root', unifiedCheckboxElements);\n\t\t\t\t\t\tunifiedCheckbox.removeClass(unifiedCheckboxStates.focus);\n\t\t\t\t\t},\n\t\t\t\t\tchange : function(event) {\n\t\t\t\t\t\tchangeUnifiedCheckbox($(this), unifiedCheckboxElements, unifiedCheckboxStates);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tunifiedCheckboxEach.on({\n\t\t\t\t\tclick : function(event) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tevent.stopPropagation();\n\n\t\t\t\t\t\tvar unifiedCheckboxInput = getUnifiedCheckboxElement($(this), 'input', unifiedCheckboxElements);\n\n\t\t\t\t\t\tif(unifiedCheckboxInput.prop('disabled') === false) {\n\t\t\t\t\t\t\tif(unifiedCheckboxInput.prop('checked')) {\n\t\t\t\t\t\t\t\tunifiedCheckboxInput.prop('checked', false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tunifiedCheckboxInput.prop('checked', true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tunifiedCheckboxInput.trigger('change');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tunifiedCheckboxEach.addClass(unifiedCheckboxStates.ready);\n\t\t\t\tsetUnifiedCheckboxAttributes(unifiedCheckboxEach, unifiedCheckboxInput, unifiedCheckboxStates);\n\t\t\t}\n\t\t});\n\t}\n}\n\nfunction setUnifiedCheckboxAttributes(unifiedCheckbox, unifiedCheckboxInput, unifiedCheckboxStates) {\n\tif(unifiedCheckboxInput.prop('checked') === true) {\n\t\tunifiedCheckbox.addClass(unifiedCheckboxStates.checked);\n\t}\n}\n\nfunction changeUnifiedCheckbox(unifiedCheckboxInput, unifiedCheckboxElements, unifiedCheckboxStates) {\n\tvar unifiedCheckbox = getUnifiedCheckboxElement(unifiedCheckboxInput, 'root', unifiedCheckboxElements);\n\n\tif(unifiedCheckboxInput.prop('checked')) {\n\t\tunifiedCheckbox.addClass(unifiedCheckboxStates.checked);\n\t} else {\n\t\tunifiedCheckbox.removeClass(unifiedCheckboxStates.checked);\n\t}\n\n}\n\nfunction getUnifiedCheckboxElement(origin, unifiedCheckboxType, unifiedCheckboxElements) {\n\tif(typeof origin != 'undefined' && typeof unifiedCheckboxType != 'undefined') {\n\t\tvar element;\n\n\t\tswitch(unifiedCheckboxType) {\n\t\t\tcase 'root':\n\t\t\t\telement = origin.parents('.' + unifiedCheckboxElements.root).first();\n\t\t\tbreak;\n\t\t\tcase 'roots':\n\t\t\t\telement = origin.parents('.' + unifiedCheckboxElements.container).first().find('.' + unifiedCheckboxElements.root);\n\t\t\tbreak;\n\t\t\tcase 'label':\n\t\t\t\telement = origin.find(unifiedCheckboxElements.label).first();\n\t\t\tbreak;\n\t\t\tcase 'input':\n\t\t\t\telement = origin.find(unifiedCheckboxElements.input).first();\n\t\t\tbreak;\n\t\t\tcase 'form':\n\t\t\t\telement = origin.parents(unifiedCheckboxElements.form).first();\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\telement = undefined;\n\t\t}\n\n\t\treturn element;\n\t}\n}","function setUnifiedRadio() {\n\tvar unifiedRadioElements = {\n\t\troot \t\t: 'radio',\n\t\tcontainer\t: 'radio-group',\n\t\tlabel\t\t: 'label',\n\t\tinput\t\t: 'input[type=\"radio\"]',\n\t\tform\t\t: 'form',\n\t};\n\n\tvar unifiedRadioStates = {\n\t\tready \t\t: '__radio--ready',\n\t\tfocus \t\t: '__radio--focus',\n\t\tchecked \t: '__radio--checked',\n\t\tdisabled \t: '__radio--disabled',\n\t\tplaceholder : '__radio--placeholder'\n\t};\n\n\tvar unifiedRadio = $('.' + unifiedRadioElements.root).not('.' + unifiedRadioStates.ready);\n\tif(unifiedRadio.length > 0) {\n\t\tunifiedRadio.each(function() {\n\t\t\tvar unifiedRadioEach = $(this);\n\t\t\tvar unifiedRadioLabel = getUnifiedRadioElement(unifiedRadioEach, 'label', unifiedRadioElements);\n\t\t\tvar unifiedRadioInput = getUnifiedRadioElement(unifiedRadioEach, 'input', unifiedRadioElements);\n\t\t\tvar unifiedRadioForm = getUnifiedRadioElement(unifiedRadioEach, 'form', unifiedRadioElements);\n\n\t\t\tif(unifiedRadioLabel.length > 0 && unifiedRadioInput.length > 0) {\n\n\t\t\t\t//Set the disabled state on the .radio container.\n\t\t\t\tif(unifiedRadioInput.prop('disabled') === true) {\n\t\t\t\t\tunifiedRadioEach.addClass(unifiedRadioStates.disabled);\n\t\t\t\t} else {\n\t\t\t\t\tunifiedRadioEach.removeClass(unifiedRadioStates.disabled);\n\t\t\t\t}\n\n\t\t\t\tif(typeof unifiedRadioForm != 'undefined') {\n\t\t\t\t\tunifiedRadioForm.on({\n\t\t\t\t\t\treset : function() {\n\t\t\t\t\t\t\tunifiedRadioInput.not('[disabled]').prop('checked', false).trigger('change');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tunifiedRadioInput.on({\n\t\t\t\t\tclick : function(event) {\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t},\n\t\t\t\t\tfocus : function(event) {\n\t\t\t\t\t\tvar unifiedRadio = getUnifiedRadioElement($(this), 'root', unifiedRadioElements);\n\t\t\t\t\t\tunifiedRadioEach.addClass(unifiedRadioStates.focus);\n\t\t\t\t\t},\n\t\t\t\t\tblur : function(event) {\n\t\t\t\t\t\tvar unifiedRadio = getUnifiedRadioElement($(this), 'root', unifiedRadioElements);\n\t\t\t\t\t\tunifiedRadioEach.removeClass(unifiedRadioStates.focus);\n\t\t\t\t\t},\n\t\t\t\t\tchange : function(event) {\n\t\t\t\t\t\tvar unifiedRadio = getUnifiedRadioElement($(this), 'root', unifiedRadioElements);\n\t\t\t\t\t\tunifiedRadioEach.trigger('tipi.ui.unified.radio.change', [$(this)]);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tunifiedRadioEach.on({\n\t\t\t\t\tclick : function(event) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tevent.stopPropagation();\n\n\t\t\t\t\t\tvar unifiedRadioInput = getUnifiedRadioElement($(this), 'input', unifiedRadioElements);\n\n\t\t\t\t\t\tif(unifiedRadioInput.prop('disabled') === false) {\n\t\t\t\t\t\t\tunifiedRadioInput.prop('checked', true);\n\t\t\t\t\t\t\tunifiedRadioInput.trigger('change');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'tipi.ui.unified.radio.change' : function(event, input) {\n\t\t\t\t\t\tchangeUnifiedRadio(input, unifiedRadioElements, unifiedRadioStates);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tunifiedRadioEach.addClass(unifiedRadioStates.ready);\n\t\t\t\tsetUnifiedRadioAttributes(unifiedRadioEach, unifiedRadioInput, unifiedRadioStates);\n\t\t\t}\n\t\t});\n\t}\n}\n\nfunction setUnifiedRadioAttributes(unifiedRadio, unifiedRadioInput, unifiedRadioStates) {\n\tif(unifiedRadioInput.prop('checked') === true) {\n\t\tunifiedRadio.addClass(unifiedRadioStates.checked);\n\t}\n}\n\nfunction changeUnifiedRadio(unifiedRadioInput, unifiedRadioElements, unifiedRadioStates, firstRun) {\n\tvar unifiedRadio = getUnifiedRadioElement(unifiedRadioInput, 'root', unifiedRadioElements);\n\tvar unifiedRadios = getUnifiedRadioElement(unifiedRadioInput, 'roots', unifiedRadioElements);\n\n\tunifiedRadios.removeClass(unifiedRadioStates.checked);\n\n\tif(unifiedRadioInput.prop('checked') === true) {\n\t\tunifiedRadio.addClass(unifiedRadioStates.checked);\n\t} else {\n\t\tunifiedRadio.removeClass(unifiedRadioStates.checked);\n\t}\n}\n\nfunction getUnifiedRadioElement(origin, unifiedRadioType, unifiedRadioElements) {\n\tif(typeof origin != 'undefined' && typeof unifiedRadioType != 'undefined') {\n\t\tvar element;\n\n\t\tswitch(unifiedRadioType) {\n\t\t\tcase 'container':\n\t\t\t\telement = origin.parents('.' + unifiedRadioElements.container).first();\n\t\t\tbreak;\n\t\t\tcase 'root':\n\t\t\t\telement = origin.parents('.' + unifiedRadioElements.root).first();\n\t\t\tbreak;\n\t\t\tcase 'roots':\n\t\t\t\telement = origin.parents('.' + unifiedRadioElements.container).first().find('.' + unifiedRadioElements.root);\n\t\t\tbreak;\n\t\t\tcase 'label':\n\t\t\t\telement = origin.find(unifiedRadioElements.label).first();\n\t\t\tbreak;\n\t\t\tcase 'input':\n\t\t\t\telement = origin.find(unifiedRadioElements.input).first();\n\t\t\tbreak;\n\t\t\tcase 'form':\n\t\t\t\telement = origin.parents(unifiedRadioElements.form).first();\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\telement = undefined;\n\t\t}\n\n\t\treturn element;\n\t}\n}","function setUnifiedSelect()\n{\n\tvar data = {\n\t\telements : {\n\t\t\troot \t\t: 'select',\n\t\t\tvalue\t\t: 'select-value',\n\t\t\tselect\t\t: 'select',\n\t\t\toption\t\t: 'option',\n\t\t\tform \t\t: 'form'\n\t\t},\n\t\tstates: {\n\t\t\tready \t\t: '__select--ready',\n\t\t\tfocus \t\t: '__select--focus',\n\t\t\tchecked \t: '__select--checked',\n\t\t\tdisabled \t: '__select--disabled',\n\t\t\tplaceholder : '__select--placeholder'\n\t\t},\n\t\tattributes: {\n\t\t\tdisabled: 'disabled',\n\t\t\tselected : 'select-selected',\n\t\t\tplaceholder : 'select-placeholder'\n\t\t}\n\t}\n\n\tvar unified_select = $('.' + data.elements.root).not('.' + data.states.ready);\n\tif(unified_select.length == 0)\n\t{\n\t\treturn;\n\t}\n\n\tunified_select.on({\n\t\t'tipi.unified-select.reset' : function(event, unified_select) {\n\t\t\tsetUnifiedSelectDefaultSelectedOption(unified_select, data);\n\t\t\tsetUnifiedSelectDisabledState(unified_select, data);\n\t\t\tsetUnifiedSelectPlaceholder(unified_select, data);\n\t\t},\n\t\t'tipi.unified-select.change' : function(event, unified_select) {\n\t\t\tchangeUnifiedSelectValue(unified_select, data);\n\t\t}\n\t});\n\n\tunified_select.each(function() {\n\t\tvar unified_select = $(this);\n\t\tvar unified_select_value = getUnifiedSelectElement(unified_select, 'select-value', data);\n\t\tvar select = getUnifiedSelectElement(unified_select, 'select', data);\n\t\tvar option = getUnifiedSelectElement(select, 'option', data);\n\t\tvar form = getUnifiedSelectElement(unified_select, 'form', data);\n\n\t\tif(unified_select_value.length == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tif(select.length == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tif(option.length == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tform.on({\n\t\t\treset : function() {\n\t\t\t\tunified_select.trigger('tipi.unified-select.reset', [unified_select]);\n\t\t\t}\n\t\t});\n\n\t\tselect.on({\n\t\t\tfocus : function() {\n\t\t\t\tvar unified_select = getUnifiedSelectElement($(this), 'root', data);\n\t\t\t\tunified_select.addClass(data.states.focus);\n\t\t\t},\n\t\t\tblur : function() {\n\t\t\t\tvar unified_select = getUnifiedSelectElement($(this), 'root', data);\n\t\t\t\tunified_select.removeClass(data.states.focus);\n\t\t\t},\n\t\t\tkeyup: function() {\n\t\t\t\t$(this).blur().focus();\n\t\t\t},\n\t\t\tchange: function() {\n\t\t\t\tvar unified_select = getUnifiedSelectElement($(this), 'root', data);\n\t\t\t\tunified_select.trigger('tipi.unified-select.change', [unified_select]);\n\t\t\t}\n\t\t});\n\n\t\tunified_select.trigger('tipi.unified-select.reset', [unified_select]);\n\n\t\tunified_select.addClass(data.states.ready);\n\t});\n}\n\n//Set the selected option for the select\nfunction setUnifiedSelectDefaultSelectedOption(unified_select, data)\n{\n\tvar option = getUnifiedSelectElement(unified_select, 'option', data);\n\tvar selected_index = option.filter(':selected').first().index();\n\n\tif(selected_index < 0)\n\t{\n\t\tselected_index = option.not(':disabled').first().index();\n\t}\n\n\toption.prop('selected', false).eq(selected_index).prop('selected', true);\n}\n\n//Toggle the Disabled classname on the container element\nfunction setUnifiedSelectDisabledState(unified_select, data)\n{\n\tvar select = getUnifiedSelectElement(unified_select, 'select', data);\n\tif(typeof select == 'undefined')\n\t{\n\t\treturn;\n\t}\n\n\tif(select.prop(data.attributes.disabled))\n\t{\n\t\tunified_select.addClass(data.states.disabled);\n\t}\n\telse\n\t{\n\t\tunified_select.removeClass(data.states.disabled);\n\t}\n}\n\n//Set the placeholder to the select\nfunction setUnifiedSelectPlaceholder(unified_select, data)\n{\n\tvar placeholder = unified_select.data(data.attributes.placeholder);\n\n\tvar unified_select_value = getUnifiedSelectElement(unified_select, 'select-value', data);\n\tvar select = getUnifiedSelectElement(unified_select, 'select', data);\n\tvar option = getUnifiedSelectElement(select, 'option', data);\n\n\t//Use the value of the first option as placeholder fallback\n\tif(typeof placeholder == 'undefined') {\n\t\tplaceholder = option.filter(':selected').first().text();\n\t}\n\n\tunified_select.addClass(data.states.placeholder);\n\n\tunified_select_value.html(placeholder);\n}\n\n//Change innerHtml of the the value container\nfunction changeUnifiedSelectValue(unified_select, data)\n{\n\tvar unified_select_value = getUnifiedSelectElement(unified_select, 'select-value', data);\n\tvar select = getUnifiedSelectElement(unified_select, 'select', data);\n\tvar option = getUnifiedSelectElement(select, 'option', data);\n\tvar selected = option.filter(':selected').first();\n\n\tif(selected.length == 0)\n\t{\n\t\treturn;\n\t}\n\n\tunified_select.removeClass(data.states.placeholder);\n\n\tunified_select_value.html(selected.text());\n}\n\nfunction getUnifiedSelectElement(origin, type, data)\n{\n\tif(typeof origin == 'undefined')\n\t{\n\t\treturn;\n\t}\n\n\tif(origin.length == 0)\n\t{\n\t\treturn;\n\t}\n\n\tif(typeof data.elements == 'undefined')\n\t{\n\t\treturn;\n\t}\n\n\tvar element;\n\n\tswitch(type) {\n\t\tcase 'root':\n\t\t\telement = origin.parents('.' + data.elements.root).first();\n\t\tbreak;\n\t\tcase 'select-value':\n\t\t\telement = origin.find('.' + data.elements.value).first();\n\t\tbreak;\n\t\tcase 'select':\n\t\t\telement = origin.find(data.elements.select).first();\n\t\tbreak;\n\t\tcase 'option':\n\t\t\telement = origin.find(data.elements.option);\n\t\tbreak;\n\t\tcase 'form':\n\t\t\telement = origin.parents(data.elements.form).first();\n\t\tbreak;\n\t\tdefault:\n\t\t\telement = null;\n\t}\n\n\treturn element;\n}","(function(win, doc, $) {\n var data = {\n classes : {\n selection_list : 'selection-list',\n selection_list_toggle : 'selection-list-toggle',\n selection_list_toggle_label : 'selection-list-toggle-label',\n selection_list_checkbox : 'selection-list-checkbox',\n selection_list_checkbox_label : 'selection-list-checkbox-label',\n selection_list_selections : 'selection-list-selections',\n selection_list_selection : 'selection-list-selection',\n selection_list_selection_remove : 'selection-list-selection-remove'\n },\n states : {\n ready : '__selection-list--ready',\n active : '__selection-list--active',\n checkbox_focus : '__selection-list-checkbox--focus',\n checkbox_checked : '__selection-list-checkbox--checked',\n selections_active : '__selection-list-selections--active',\n selection_checked : '__selection-list-selection--checked'\n },\n attributes : {\n checkbox_index : 'selection-list-checkbox-index',\n checkbox_label : 'selection-list-checkbox-label',\n selection_label : 'selection-list-selection-label',\n selection_label_prefix : 'selection-list-selection-label-prefix',\n selection_label_suffix : 'selection-list-selection-label-suffix'\n }\n };\n\n /**\n * Selection List - Javascript function written with jQuery for creating a selection list with checkboxes\n */\n\n window.setUnifiedSelectionList = function()\n {\n var selection_list = $('.' + data.classes.selection_list).not('.' + data.states.ready);\n\n if(selection_list.length === 0)\n {\n return;\n }\n\n //Define the events we need to use so they can be shared by other scripts\n $(document).off('tipi.UnifiedSelectionList.open tipi.unifiedSelectionList.close tipi.unifiedSelectionList.toggle tipi.unifiedSelectionList.toggle tipi.unifiedSelectionList.focus tipi.unifiedSelectionList.blur tipi.unifiedSelectionList.change tipi.selectionList.update tipi.selectionList.init').on({\n 'tipi.UnifiedSelectionList.open' : function(event, selection_list)\n {\n openUnifiedSelectionList(selection_list);\n },\n 'tipi.unifiedSelectionList.close' : function(event, selection_list)\n {\n closeUnifiedSelectionList(selection_list);\n },\n 'tipi.unifiedSelectionList.toggle' : function(event, input)\n {\n toggleUnifiedSelectionListCheckbox(input);\n },\n 'tipi.unifiedSelectionList.focus' : function(event, input)\n {\n focusUnifiedSelectionListCheckbox(input);\n },\n 'tipi.unifiedSelectionList.blur' : function(event, input)\n {\n blurUnifiedSelectionListCheckbox(input, selection_list);\n },\n 'tipi.unifiedSelectionList.change' : function(event, selection_list, input)\n {\n changeUnifiedSelectionListCheckbox(input);\n updateUnifiedSelectionListSelections(input, selection_list);\n countUnifiedSelectionListSelection(selection_list);\n },\n 'tipi.selectionList.update' : function(event, selection_list)\n {\n generateSelectionListSelections(selection_list);\n },\n 'tipi.selectionList.init' : function(event, selection_list, input)\n {\n generateUnifiedSelectionListCheckboxIndex(selection_list);\n generateSelectionListSelections(selection_list);\n changeUnifiedSelectionListCheckbox(input);\n updateUnifiedSelectionListSelections(input, selection_list);\n countUnifiedSelectionListSelection(selection_list);\n }\n });\n\n $('body').on({\n click : function(event)\n {\n clickedWithinUnifiedSelectionList(event, selection_list);\n }\n });\n\n selection_list.each(function() {\n var selection_list = $(this);\n var selection_list_toggle = selection_list.find('.' + data.classes.selection_list_toggle);\n var selection_list_checkbox = selection_list.find('.' + data.classes.selection_list_checkbox);\n var selection_list_label = selection_list.find('label');\n var selection_list_input = selection_list.find('input:checkbox');\n\n if(selection_list_toggle.length === 0 || selection_list_checkbox.length === 0)\n {\n return;\n }\n\n selection_list_toggle.on({\n click : function(event) {\n event.preventDefault();\n\n var toggle = $(this);\n var selection_list = toggle.closest('.' + data.classes.selection_list);\n\n if(selection_list.hasClass(data.states.active))\n {\n $(document).trigger('tipi.unifiedSelectionList.close', [selection_list]);\n }\n else\n {\n $(document).trigger('tipi.UnifiedSelectionList.open', [selection_list]);\n }\n }\n });\n\n selection_list_checkbox.on({\n click : function(event) {\n var checkbox = $(this);\n var input = checkbox.find('input:checkbox');\n\n $(document).trigger('tipi.unifiedSelectionList.toggle', [input]);\n }\n });\n\n selection_list_label.on({\n click : function(event) {\n event.preventDefault();\n }\n });\n\n selection_list_input.on({\n click : function(event) {\n event.stopImmediatePropagation();\n },\n focus : function() {\n var input = $(this);\n var selection_list = input.closest('.' + data.classes.selection_list);\n\n $(document).trigger('tipi.UnifiedSelectionList.open', [selection_list]);\n $(document).trigger('tipi.unifiedSelectionList.focus', [input, selection_list]);\n },\n blur : function() {\n var input = $(this);\n var selection_list = input.closest('.' + data.classes.selection_list);\n\n $(document).trigger('tipi.unifiedSelectionList.blur', [input, selection_list]);\n },\n change : function() {\n var input = $(this);\n var selection_list = input.closest('.' + data.classes.selection_list);\n\n $(document).trigger('tipi.unifiedSelectionList.change', [selection_list, input]);\n }\n });\n\n //Define our ready class so we can add styling within the top_bar\n selection_list.addClass(data.states.ready);\n\n //Init the current selection_list\n $(document).trigger('tipi.selectionList.init', [selection_list, selection_list_input]);\n });\n\n }\n\n function openUnifiedSelectionList(selection_list)\n {\n selection_list.addClass(data.states.active);\n }\n\n function closeUnifiedSelectionList(selection_list)\n {\n selection_list.removeClass(data.states.active);\n\n var input = selection_list.find('input:checkbox');\n if(input.length === 0)\n {\n return;\n }\n }\n\n function toggleUnifiedSelectionListCheckbox(input)\n {\n if(input.prop('checked'))\n {\n input.prop('checked', false).blur();\n }\n else\n {\n input.prop('checked', true).focus();\n }\n\n input.trigger('change');\n }\n\n function focusUnifiedSelectionListCheckbox(input)\n {\n var checkbox = input.closest('.' + data.classes.selection_list_checkbox);\n\n if(checkbox.length === 0)\n {\n return;\n }\n\n checkbox.addClass(data.states.checkbox_focus);\n }\n\n function blurUnifiedSelectionListCheckbox(input)\n {\n var checkbox = input.closest('.' + data.classes.selection_list_checkbox);\n\n if(checkbox.length === 0)\n {\n return;\n }\n\n checkbox.removeClass(data.states.checkbox_focus);\n }\n\n function changeUnifiedSelectionListCheckbox(input)\n {\n input.each(function() {\n var input = $(this);\n var checkbox = input.closest('.' + data.classes.selection_list_checkbox);\n\n if(checkbox.length === 0)\n {\n return;\n }\n\n if(input.prop('disabled'))\n {\n return;\n }\n\n if(input.prop('checked'))\n {\n checkbox.addClass(data.states.checkbox_checked);\n } else {\n checkbox.removeClass(data.states.checkbox_checked);\n }\n });\n }\n\n function getSelectionListCheckboxIndex(checkbox, selection_list)\n {\n var index = checkbox.data(data.attributes.checkbox_index);\n\n //Check if we have an actual index\n if(typeof index == 'undefined')\n {\n generateUnifiedSelectionListCheckboxIndex(selection_list);\n index = checkbox.data(data.attributs.checkbox_index);\n }\n\n if(isNaN(parseFloat(index)))\n {\n return;\n }\n\n return index;\n }\n\n function generateUnifiedSelectionListCheckboxIndex(selection_list)\n {\n selection_list_checkbox = selection_list.find('input:checkbox');\n\n if(selection_list_checkbox.length === 0)\n {\n return;\n }\n\n //Generate a index on each checkbox so we can select the correct selection_list_selection item\n selection_list_checkbox.each(function(index) {\n var checkbox = $(this);\n checkbox.data(data.attributes.checkbox_index, index);\n });\n }\n\n function generateSelectionListSelections(selection_list)\n {\n //Check if we have a selection list selections container and empty it so we can regenerate the items, or generate a empty one\n var selection_list_selections = selection_list.find('.' + data.classes.selection_list_selections);\n if(selection_list_selections.length === 0)\n {\n selection_list.after('
');\n selection_list_selections = selection_list.find('.' + data.classes.selection_list_selections);\n }\n else\n {\n selection_list_selections.empty();\n }\n\n //Generate our selections based on the available input toggles\n var selection_list_checkbox = selection_list.find('.' + data.classes.selection_list_checkbox);\n var input = selection_list.find('input:checkbox');\n\n if(selection_list_checkbox.length === 0)\n {\n return;\n }\n\n selection_list_checkbox.each(function(index) {\n var toggle = $(this);\n\n //Define a label we can use for setting the selections\n var label = toggle.data(data.attributes.checkbox_label);\n if(typeof label === 'undefined')\n {\n label = toggle.find('.' + data.classes.selection_list_checkbox_label).text();\n }\n\n selection_list_selections.append('