function dcSetup(e,t){function i(){s()}function s(){n={},n.type=o(),n.time=u(),n.data=a()}function o(){var t="button";return e.type=="error"?t=e.type:$(e).data("type")!=undefined?t=$(e).data("type"):funcObj.panelSwipe.getPMove()&&(t="swipe"),t}function u(){var t;switch(n.type){case"enter":t=$(e).data("timeStamp").toISOString();break;case"error":t=(new Date).toISOString();break;default:t=(new Date(e.timeStamp)).toISOString()}return t}function a(){r={},r.origin=t;switch(n.type){case"button":var i=e.delegateTarget;r.target=i.outerHTML,r.targetText=i.textContent,f(i),$(i).data("form")=="submit"&&(r.action="submit",form=$(i).closest("section").find("form"),l(form));break;case"swipe":r.target=e.target.outerHTML,r.targetText=e.target.textContent,r.origin="setup",r.destination="setup",funcObj.panelSwipe.getPanelState()?r.origin="setup_help":r.destination="setup_help";break;case"enter":var i=e.delegateTarget[0];r.target=i.outerHTML,r.targetText=i.textContent,r.action="submit",f(i),form=$(i).closest("section").find("form"),l(form);break;case"setup_help":n.type="button",r.origin="setup_help",r.target=e.target.outerHTML,r.targetText=e.target.textContent;break;case"error":r.name=e.name}return r}function f(e){var t="",n=$(e).attr("id");idLen=n.length,n.split("_")[0]=="wizard"?n.split("_")[1]=="progress"?t=n.slice(23,idLen):n.split("_")[1]=="link"&&(t=n.slice(7,idLen)):n.split("_")[0]=="popup"?(r.origin="popup",n.split("_")[1]=="progress"&&(t=n.slice(22,idLen))):t=n,t!=""&&(r.callback=t)}function l(e){return e.length?(e=e[0],funcObj.Forms.local_validate("form#"+e.id)?!0:(r.form="invalid",!1)):!1}function c(){var e=funcObj.setupWizard.get_bose_accountID();return e==null||e==undefined?!1:!0}var n,r;i(),funcObj.dataCollection.addEvent(n)};