define("wml!ContragentsSbisRu/ContractorCard/Company/sameBy",["UI/Executor","i18n!ContragentsSbisRu","ContragentsSbisRu/ContractorCard/Company/SameByBlock"],function(e,f){function t(){debugger}var g="ContragentsSbisRu/ContractorCard/Company/sameBy",w=e.TClosure,a=Array.prototype.slice.call(arguments),x={},v={},o,n;x["ContragentsSbisRu/ContractorCard/Company/SameByBlock"]=a[2];var r=function e(t,a,o,n,r,c,s){var i=0,d=w.validateNodeKey(a&&a.key),l={id:[],def:void 0},y=w.calcParent(this,"undefined"===typeof currentPropertyName?void 0:currentPropertyName,t);if("undefined"===typeof c)c=false;var _=w.createGenerator(n,c,s),u=w.getContext(this),p,m;try{var C=_.joinElements([_.createTag("div",{attributes:{class:"cCard__SameCompany"},events:"undefined"===typeof window?{}:{},key:d+"0_"},[_.createTag("div",{attributes:{class:"cCard__SameCompany-By-Revenue"},events:"undefined"===typeof window?{}:{},key:d+"0_0_"},[w.getter(t,["data","ПохожиеВРегионеПоВыручке"])&&w.getter(t,["data","ПохожиеВРегионеПоВыручке","getCount"]).apply(w.getter(t,["data","ПохожиеВРегионеПоВыручке"]),[])>0?[_.createTag("div",{attributes:{class:"cCard__BlockTitle"},events:"undefined"===typeof window?{}:{},key:d+"0_0_0_0_"},[_.createText(""+f("Похожие по объему выручки"),d+"0_0_0_0_0_")],a?{context:a.context,key:d+"0_0_0_0_"}:{},l,y),_.createTag("div",{attributes:{class:"cCard__SameCompany-Block ws-flexbox ws-justify-content-between"},events:"undefined"===typeof window?{}:{},key:d+"0_0_0_1_"},[_.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Company/SameByBlock",{},{},{title:f("В регионе"),sameByItems:w.getter(t,["data","ПохожиеВРегионеПоВыручке"])},{attr:a,data:t,ctx:this,isVdom:n,defCollection:l,depsLocal:"undefined"!==typeof x?x:{},includedTemplates:v,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:y,context:o,compositeAttributes:null,scope:null,key:d+"0_0_0_1_0_",isRootTag:false,internal:n?{}:{},mergeType:"context"}),_.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Company/SameByBlock",{},{},{title:f("В отрасли"),sameByItems:w.getter(t,["data","ПохожиеВОтраслиПоВыручке"])},{attr:a,data:t,ctx:this,isVdom:n,defCollection:l,depsLocal:"undefined"!==typeof x?x:{},includedTemplates:v,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:y,context:o,compositeAttributes:null,scope:null,key:d+"0_0_0_1_1_",isRootTag:false,internal:n?{}:{},mergeType:"context"})],a?{context:a.context,key:d+"0_0_0_1_"}:{},l,y)]:_.createText("")],a?{context:a.context,key:d+"0_0_"}:{},l,y),_.createTag("div",{attributes:{class:"cCard__SameCompany-By-Revenue"},events:"undefined"===typeof window?{}:{},key:d+"0_1_"},[w.getter(t,["data","ПохожиеВРегионеПоСтоимости"])&&w.getter(t,["data","ПохожиеВРегионеПоСтоимости","getCount"]).apply(w.getter(t,["data","ПохожиеВРегионеПоСтоимости"]),[])>0?[_.createTag("div",{attributes:{class:"cCard__BlockTitle"},events:"undefined"===typeof window?{}:{},key:d+"0_1_0_0_"},[_.createText(""+f("Похожие по стоимости бизнеса"),d+"0_1_0_0_0_")],a?{context:a.context,key:d+"0_1_0_0_"}:{},l,y),_.createTag("div",{attributes:{class:"cCard__SameCompany-Block ws-flexbox ws-justify-content-between"},events:"undefined"===typeof window?{}:{},key:d+"0_1_0_1_"},[_.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Company/SameByBlock",{},{},{title:f("В регионе"),sameByItems:w.getter(t,["data","ПохожиеВРегионеПоСтоимости"])},{attr:a,data:t,ctx:this,isVdom:n,defCollection:l,depsLocal:"undefined"!==typeof x?x:{},includedTemplates:v,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:y,context:o,compositeAttributes:null,scope:null,key:d+"0_1_0_1_0_",isRootTag:false,internal:n?{}:{},mergeType:"context"}),_.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Company/SameByBlock",{},{},{title:f("В отрасли"),sameByItems:w.getter(t,["data","ПохожиеВОтраслиПоСтоимости"])},{attr:a,data:t,ctx:this,isVdom:n,defCollection:l,depsLocal:"undefined"!==typeof x?x:{},includedTemplates:v,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:y,context:o,compositeAttributes:null,scope:null,key:d+"0_1_0_1_1_",isRootTag:false,internal:n?{}:{},mergeType:"context"})],a?{context:a.context,key:d+"0_1_0_1_"}:{},l,y)]:_.createText("")],a?{context:a.context,key:d+"0_1_"}:{},l,y)],a,l,y)],d,l);if(l&&l.def)C=_.chain(C,l,this),l=void 0}catch(e){w.templateError(g,e,t)}return C||_.createText("")};return r.stable=true,r.reactiveProps=["data"],r.isWasabyTemplate=true,r});