define("wml!ContragentsSbisRu/ContractorCard/Common/affiliatedList",["UI/Executor","i18n!ContragentsSbisRu","wml!ContragentsSbisRu/ContractorCard/Common/hintMark","ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton"],function(e,y){function t(){debugger}var g="ContragentsSbisRu/ContractorCard/Common/affiliatedList",w=e.TClosure,n=Array.prototype.slice.call(arguments),T={},x={},o,r;T["wml!ContragentsSbisRu/ContractorCard/Common/hintMark"]=n[2],T["ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton"]=n[3];var a=function e(t,n,o,r,a,i,c){var d=0,s=w.validateNodeKey(n&&n.key),l={id:[],def:void 0},_=w.calcParent(this,"undefined"===typeof currentPropertyName?void 0:currentPropertyName,t);if("undefined"===typeof i)i=false;var u=w.createGenerator(r,i,c),p=w.getContext(this),f,C;try{var m=u.joinElements([u.createTag("div",{attributes:{class:"cCard__Owners-AffilatedList-block"},events:"undefined"===typeof window?{}:{},key:s+"0_"},[w.getter(t,["data","АффилированноеЛицоИНН"])?[u.createTag("div",{attributes:{class:"cCard__BlockTitle"},events:"undefined"===typeof window?{}:{},key:s+"0_0_0_"},[u.createTag("div",{attributes:{class:"cCard__BlockTitle-title"},events:"undefined"===typeof window?{}:{},key:s+"0_0_0_0_"},[w.getter(t,["data","АффилированноеЛицоАктуальнаяСвязь"])?[u.createText(""+y("Связанные лица"),s+"0_0_0_0_0_0_")]:[u.createText(""+y("Возможные совпадения"),s+"0_0_0_0_1_0_")]],n?{context:n.context,key:s+"0_0_0_0_"}:{},l,_),u.createControlNew("template","wml!ContragentsSbisRu/ContractorCard/Common/hintMark",{},{},{hintTpl:"wml!ContragentsSbisRu/ContractorCard/Common/HintMark/fns"},{attr:n,data:t,ctx:this,isVdom:r,defCollection:l,depsLocal:"undefined"!==typeof T?T:{},includedTemplates:x,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:_,context:o,compositeAttributes:null,scope:null,key:s+"0_0_0_1_",isRootTag:false,internal:r?{}:{},mergeType:"context"})],n?{context:n.context,key:s+"0_0_0_"}:{},l,_),u.createTag("div",{attributes:{class:"cCard__Owners-AffCompany"},events:"undefined"===typeof window?{}:{},key:s+"0_0_1_"},[u.createTag("a",{attributes:{href:"/contragents/"+w.wrapUndef(u.escape(w.getter(t,["data","АффилированноеЛицоИНН"])))+w.wrapUndef(u.escape(w.getter(t,["data","АффилированноеЛицоКПП"])?"/"+w.getter(t,["data","АффилированноеЛицоКПП"]):"")),target:"_blank"},events:"undefined"===typeof window?{}:{},key:s+"0_0_1_0_"},[u.createText(""+w.wrapUndef(u.escape(w.getter(t,["data","АффилированноеЛицоНазвание"]))),s+"0_0_1_0_0_")],n?{context:n.context,key:s+"0_0_1_0_"}:{},l,_),!w.getter(t,["data","АффилированноеЛицоАктуальнаяСвязь"])?[u.createControlNew("template","wml!ContragentsSbisRu/ContractorCard/Common/hintMark",{},{},{hintTpl:"wml!ContragentsSbisRu/ContractorCard/Common/HintMark/pastAffil"},{attr:n,data:t,ctx:this,isVdom:r,defCollection:l,depsLocal:"undefined"!==typeof T?T:{},includedTemplates:x,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:_,context:o,compositeAttributes:null,scope:null,key:s+"0_0_1_1_0_",isRootTag:false,internal:r?{}:{},mergeType:"context"})]:u.createText("")],n?{context:n.context,key:s+"0_0_1_"}:{},l,_),w.getter(t,["data","КоличествоАффилированных"])-1>0?[u.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton",{},{},{fontSize:"l",caption:w.getter(t,["data","КоличествоАффилированныхТекст"])},{attr:n,data:t,ctx:this,isVdom:r,defCollection:l,depsLocal:"undefined"!==typeof T?T:{},includedTemplates:x,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:_,context:o,compositeAttributes:null,scope:null,key:s+"0_0_2_0_",isRootTag:false,internal:r?{}:{},mergeType:"context"})]:u.createText("")]:w.getter(t,["isIP"])?[u.createTag("div",{attributes:{class:"cCard__BlockTitle"},events:"undefined"===typeof window?{}:{},key:s+"0_1_0_"},[u.createTag("div",{attributes:{class:"cCard__BlockTitle-title"},events:"undefined"===typeof window?{}:{},key:s+"0_1_0_0_"},[u.createText(""+y("Связанные лица"),s+"0_1_0_0_0_")],n?{context:n.context,key:s+"0_1_0_0_"}:{},l,_),u.createControlNew("template","wml!ContragentsSbisRu/ContractorCard/Common/hintMark",{},{},{hintTpl:"wml!ContragentsSbisRu/ContractorCard/Common/HintMark/fns"},{attr:n,data:t,ctx:this,isVdom:r,defCollection:l,depsLocal:"undefined"!==typeof T?T:{},includedTemplates:x,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:_,context:o,compositeAttributes:null,scope:null,key:s+"0_1_0_1_",isRootTag:false,internal:r?{}:{},mergeType:"context"})],n?{context:n.context,key:s+"0_1_0_"}:{},l,_),u.createTag("div",{attributes:{class:"cCard__NoData"},events:"undefined"===typeof window?{}:{},key:s+"0_1_1_"},[u.createText(""+y("Нет данных о связанных лицах"),s+"0_1_1_0_")],n?{context:n.context,key:s+"0_1_1_"}:{},l,_)]:u.createText("")],n,l,_)],s,l);if(l&&l.def)m=u.chain(m,l,this),l=void 0}catch(e){w.templateError(g,e,t)}return m||u.createText("")};return a.stable=true,a.reactiveProps=["data","isIP"],a.isWasabyTemplate=true,a});