/*! profile.js | Huro | Css Ninja 2020-2021 */
"use strict";$((function(){$("#user-profile").length&&$(".languages-donut").peity("donut",{delimiter:null,fill:[themeColors.accent,"#efefef",themeColors.primaryMedium],height:50,innerRadius:22,radius:8,width:50}),$("#edit-profile").length&&($(".profile-h-avatar .edit-button").on("click",(function(){$(this).closest(".profile-h-avatar").find(".edit-button, .avatar, .filepond-profile-wrap").toggleClass("is-hidden")})),$(".add-setting-item, .fieldset-heading a").on("click",(function(){var e=$(this).closest(".fieldset");e.find(".setting-item, .setting-form").toggleClass("is-hidden"),e.find(".fieldset-heading h4, .fieldset-heading p, .fieldset-heading a").toggleClass("is-hidden")})),$("#save-button").on("click",(function(){var e=$(this);e.addClass("is-loading"),setTimeout((function(){e.removeClass("is-loading"),$(".profile-h-avatar").find(".is-back, .filepond-profile-wrap").addClass("is-hidden"),$(".profile-h-avatar").find(".is-edit, .avatar").removeClass("is-hidden"),notyf.success("Your changes have been successfully saved!")}),1200)})))}));