define("wml!ContragentsSbisRu/ContractorCard/Common/contactsItem",["UI/Executor","ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton"],function(e,t){function r(){debugger}var C="ContragentsSbisRu/ContractorCard/Common/contactsItem",m=e.TClosure,a=Array.prototype.slice.call(arguments),y={},w={},n,o;y["ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton"]=a[1];var c=function e(a,l,t,r,n,o,c){var i=0,p=m.validateNodeKey(l&&l.key),u={id:[],def:void 0},d=m.calcParent(this,"undefined"===typeof currentPropertyName?void 0:currentPropertyName,a);if("undefined"===typeof o)o=false;var f=m.createGenerator(r,o,c),s=m.getContext(this),v,_;try{var g=f.joinElements([f.createTag("div",{attributes:{class:"cCard__Contacts-String ws-flexbox"},events:"undefined"===typeof window?{}:{},key:p+"0_"},[f.createTag("div",{attributes:{class:"icon-16 icon-primary cCard__Contacts-Icon "+m.wrapUndef(f.escape(m.getter(a,["icon"])))},events:"undefined"===typeof window?{}:{},key:p+"0_0_"},[],l?{context:l.context,key:p+"0_0_"}:{},u,d),f.createTag("div",{attributes:{class:"cCard__Contacts-Values"},events:"undefined"===typeof window?{}:{},key:p+"0_1_"},[m.getter(a,["isLinks"])?[function e(){for(var r=void 0,t=0;t<m.iterators.length&&!r;t++)if(m.iterators[t].is(f.escape(m.getter(a,["values"]))))r=m.iterators[t].iterator;var s=[];return a.viewController=d||null,function e(){var o=m.createScope(this);if(r){var t=0,c=p+"_0",i=0;r(f.escape(m.getter(o,["values"])),function e(t,r){var a=o;o=Object.create(o),m.presetScope(t,o,r,{value:"value"}),r=c+"_for_"+i+"_",i++;var n=[f.createTag("a",{attributes:{class:"cCard__Contacts-site-element ws-ellipsis "+m.wrapUndef(f.escape(m.getter(o,["values","length"])>1?"cCard__Contacts-Value_Multi":"")),href:m.wrapUndef(f.escape("mail"==m.getter(o,["linkType"])?"mailto:":"http://"))+""+m.wrapUndef(f.escape(m.getter(o,["value"]))),target:"_blank",title:m.wrapUndef(f.escape(m.getter(o,["value"]))),itemprop:m.wrapUndef(f.escape(m.getter(o,["itemprop"])))},events:"undefined"===typeof window?{}:{},key:r+"0_"},[f.createText(""+m.wrapUndef(f.escape(m.getter(o,["value"]))),r+"0_0_")],l?{context:l.context,key:r+"0_"}:{},u,d)];s=s.concat(n),o=a}.bind(o))}else s=f.createText("")}.call(a),s}.call(this)]:[function e(){for(var r=void 0,t=0;t<m.iterators.length&&!r;t++)if(m.iterators[t].is(f.escape(m.getter(a,["values"]))))r=m.iterators[t].iterator;var s=[];return a.viewController=d||null,function e(){var o=m.createScope(this);if(r){var t=0,c=p+"_1",i=0;r(f.escape(m.getter(o,["values"])),function e(t,r){var a=o;o=Object.create(o),m.presetScope(t,o,r,{value:"value"}),r=c+"_for_"+i+"_",i++;var n=[f.createTag("div",{attributes:{class:"cCard__Contacts-Value ws-ellipsis "+m.wrapUndef(f.escape(m.getter(o,["values","length"])>1?"cCard__Contacts-Value_Multi":"")),itemprop:m.wrapUndef(f.escape(m.getter(o,["itemprop"])))},events:"undefined"===typeof window?{}:{},key:r+"0_"},[f.createText(""+m.wrapUndef(f.escape(m.getter(o,["value"]))),r+"0_0_")],l?{context:l.context,key:r+"0_"}:{},u,d)];s=s.concat(n),o=a}.bind(o))}else s=f.createText("")}.call(a),s}.call(this)],m.getter(a,["count"])>m.getter(a,["values","length"])?[f.createControlNew("wsControl","ws:ContragentsSbisRu/ContractorCard/Common/RefferalPopupButton",{},{},{fontSize:"l",caption:m.getter(a,["moreMsg"])},{attr:l,data:a,ctx:this,isVdom:r,defCollection:u,depsLocal:"undefined"!==typeof y?y:{},includedTemplates:w,pName:"undefined"!==typeof currentPropertyName?currentPropertyName:void 0,viewController:d,context:t,compositeAttributes:null,scope:null,key:p+"0_1_2_0_",isRootTag:false,internal:r?{}:{},mergeType:"context"})]:f.createText("")],l?{context:l.context,key:p+"0_1_"}:{},u,d)],l,u,d)],p,u);if(u&&u.def)g=f.chain(g,u,this),u=void 0}catch(e){m.templateError(C,e,a)}return g||f.createText("")};return c.stable=true,c.reactiveProps=["icon","isLinks","values","linkType","itemprop","count","moreMsg"],c.isWasabyTemplate=true,c});