function genAndShowTopics(){$.ajax({type:"GET",url:appPath+"/api/ProfileContentCard/GetProfiles",contentType:"application/json; charset=utf-8",data:{tagId:PROFILE_ID},success:function(n){let t=n.status,i=n.result;t===200&&renderTopics(i)}})}function genAndShowProfiles(n){$.ajax({type:"GET",url:appPath+"/api/ProfileContentCard/GetProfileContents",contentType:"application/json; charset=utf-8",data:{profileId:PROFILE_ID,topicId:n},success:function(n){let t=n.status,i=n.result;if(t===200&&(renderProfiles(i),pageResultUrl!=="")){let n='See all<\/a>';$(".url-see-all").html(n)}}})}function isMobileScreen(){return window.innerWidth<=768}function renderViewAllUrl(){let n=isMobileScreen()?$(".profile-topic-step-1-mobile span.active").data("name"):$(".step-1 .active").data("name"),t=isMobileScreen()?$(".profile-topic-step-1-mobile span.active").text():$(".step-1 .active").text(),i=isMobileScreen()?$(".topics-container span.dropdown-item.active").text().trim():$(".topics-container button.active").text();return pageResultUrl+"?q=&tab=all&profile="+n+"&profile-topic="+encodeURIComponent(i)+"&profile_title="+encodeURIComponent(t)}function renderTopics(n){function i(){return n.map(function(n){return' '+n.Title.join("")+"<\/span>"}).join("")}function u(){return n.map(function(n){return'