460: function(e, t, n) {
"use strict";
var i = n(59).trackV0ClickWithPromotedParams;
e.exports = n(54).extend(n(87), n(300), {
tagName: "a",
className: "sc-button-download",
attributes: {
rel: "nofollow"
},
ModelClass: n(65),
requiredAttributes: ["title", "download_url"],
buttonLabels: {
"default": function() {
return {
text: n(52).t("Download"),
title: n(52).t("Download this track")
}
}
},
renderDecorate: function() {
this.$el.attr("download", this.model.get("title"))
},
onClick: function() {
var e = this.getContextData()
, t = {
client_id: n(55).get("client_id"),
oauth_token: n(64).getAuthToken() || null
};
this.model.isPrivate() && (t.secret_token = this.model.get("secret_token"));
var r = n(63).modify(this.model.get("download_url"), {
query: t
});
n(64).login({
implicitAction: "download"
}).then(function() {
window.location.href = r,
i(null, {
click_name: "download",
click_object: e.urn,
context: e
})
})
}
})
}