(function(){"use strict";page.onInit=function(){var n=page.url.getLinkUid();u8.request("CampaignManagementChannel.GetActivityResponseState",{uid:n},function(r,i){if(i.error){return}var t=i.response;var a=t.activityResponseCatalogCode;var o=[];$.each(t.responseUsages,function(e,n){if(n.selected){o.push(n.code)}});u8.services.events.bind("CatalogItem.BeforeBuild",function(r,i){if(!e(i.catalogNo,a,i.link,n)){return}var t=$.inArray(i.code,o)>=0;i.explicitHide=!t})})};function e(e,n,r,i){if(!r||!i){return false}return r.infoAreaId===i.infoAreaId&&r.recordId===i.recordId&&e===n}})();