var version;function t_zeroForms__init(t,e,r){var o,n,i=document.getElementById("rec"+t),a=i?i.querySelector('.tn-elem[data-elem-id="'+e+'"]'):null;a&&(o=t_zeroForms__getTildaMode(),n=document.querySelector('script[src*="tilda-blocks-2.7"]'),t_zeroForms__waitForTN(function(){t_zeroForms__renderForm(a,r,t,o)}),t_zeroForms__onFuncLoad("t396_elem__renderViewOneField",function(){t396_elem__renderViewOneField(n?$(a):a,"left"),t396_elem__renderViewOneField(n?$(a):a,"top")}))}function t_zeroForms__waitForTN(t){window.tn&&window.tn.curResolution?t():setTimeout(function(){t_zeroForms__waitForTN(t)},300)}function t_zeroForms__renderForm(t,e,r,o){if(t=t_zeroForms__getEl(t),o=o||t_zeroForms__getTildaMode(),r||"zero"===o||"edit"===o||(r=t.closest(".r").id.replace("rec","")),"string"==typeof e)try{e=JSON.parse(e)}catch(t){}var n=document.querySelector(".t-records"),n=(n=!!n&&"edit"===n.getAttribute("data-tilda-mode"))||"published"!==o;if(!t.classList.contains("zero-form-rendered")||n){n=t.closest(".r");if(!t_zeroForms__isRecordHidden(n)&&!t_zeroForms__isFormOutside(t)||"published"!==o){if(!e){n=t.querySelector(".tn-atom__inputs-textarea");if(n&&n.value)try{e=JSON.parse(n.value)}catch(t){e={}}else e={}}n=t_zeroForms__fromObjToArray(e),e=t.querySelector(".tn-atom");if("zero"===o||"edit"===o)e.innerHTML="";else if(e.querySelector(".t-form"))return;r=t_zeroForms__createForm(r,o,n,t);r&&(e.insertAdjacentElement("beforeend",r),(o=document.createEvent("Event")).initEvent("render",!0,!0),t.dispatchEvent(o),t.classList.add("zero-form-rendered"),t_zeroForms__initMaskAfterRender(t))}}}function t_zeroForms__initMaskAfterRender(t){t_zeroForms__onRender(t,!0,function(){t.querySelector(".js-tilda-mask")&&t_zeroForms__onFuncLoad("tildaForm_initMasks",function(){setTimeout(function(){t.querySelector('.js-tilda-mask:not([data-tilda-mask-init="1"])')&&tildaForm_initMasks()},500)})})}function t_zeroForms__createForm(e,t,r,o){t=t||t_zeroForms__getTildaMode();var n=t_zeroForms__createFormObj(o),i="published"===t,a=r.filter(function(t){return"y"!==t.loff&&"hd"!==t.li_type}),s=document.createElement(i?"form":"div");s.classList.add("t-form"),s.classList.add("t-form_inputs-total_"+a.length),n.inputsstyle&&s.classList.add("t-form_bbonly"),"h"===n.inputpos&&s.classList.add("tn-form_horiz"),i&&(s.id="form"+e,s.name="form"+e,s.action="https://forms.tildacdn.com/procces/",s.method="POST",s.classList.add("js-form-proccess"),s.setAttribute("role","form"),s.setAttribute("data-formactiontype","2"),s.setAttribute("data-inputbox",".t-input-group"),s.setAttribute("data-success-callback","t396_onSuccess"),s.setAttribute("data-success-popup","y"),s.setAttribute("data-error-popup","y"),n.formmsgurl&&s.setAttribute("data-success-url",n.formmsgurl));(n.receivers?n.receivers.split(","):[]).forEach(function(t){t=t_zeroForms__createHiddenField(t,"formservices[]","js-formaction-services");s.insertAdjacentElement("beforeend",t)}),n.formname&&(a=t_zeroForms__createHiddenField(n.formname,"tildaspec-formname",""),s.insertAdjacentElement("beforeend",a));var l,d,i=document.createElement("div"),a=(i.classList.add("js-successbox"),i.classList.add("t-form__successbox"),i.classList.add("t-text"),i.classList.add("t-text_sm"),i.style.display="none",i.innerHTML=n.formmsgsuccess,s.insertAdjacentElement("beforeend",i),{color:n.inputtitlecolor||"",fontWeight:n.inputtitlefontweight||"",fontFamily:n.inputfontfamily||"",fontSize:n.inputtitlefontsize||"",paddingBottom:n.inputtitlemargbottom||""}),i=t_zeroForms__generateInputsBlock(e,o,r,n,a),c=(s.insertAdjacentElement("beforeend",i),o.getAttribute("data-elem-id")),a=(n.formbottomtext&&((r=document.createElement("div")).style.textAlign="center"===n.buttonalign?"center":"left",r.style.color=a.color,r.style.fontWeight=a.fontWeight,r.style.fontFamily=a.fontFamily,r.style.marginTop="15px",r.style.fontSize="13px",i=t_zeroForms__getBottomText(c,n,e,o),r.appendChild(i),s.insertAdjacentElement("beforeend",r)),s.insertAdjacentElement("beforeend",t_zeroForms__createErrorBox(n,"bottom")),s.insertAdjacentElement("beforeend",t_zeroForms__createCommentField()),t_zeroForms__createInputPlaceholderStyles(c,n,e,o),"h"===n.inputpos&&t_zeroForms__setScriptOrStyle("t-zero-form-h-styles","tilda-zero-form-horizontal.min.css","","link",!1),t_zeroForms__setScriptOrStyle("t-zero-form-c-styles","",".tn-atom .t-input-block {position: relative;}","style",o),"y"===n.inputsstyle2&&t_zeroForms__onRender(o,!1,function(){t_zeroForms__animateInputs(o,n,e,c)}),"t-zero-form-font-family-"+e+"-"+c),a=(n.fieldfontfamily?(l=t_zeroForms__createSelector(e,c,""),t_zeroForms__setScriptOrStyle(a,"",(d=(d=['input[type="text"]',"textarea","select",".t-input__vis-ph"]).reduce(function(t,e,r){return t+=l+".t-input-block "+e,r!==d.length-1&&(t+=", "),t},""))+' {font-family: "'+n.fieldfontfamily+'";}',"style",o)):(i=document.getElementById(a))&&i.parentElement&&i.parentElement.removeChild(i),"preview"!==t&&"published"!==t||t_zeroForms__onFuncLoad("tildaForm_initMasks",function(){tildaForm_initMasks()}),"published"===t&&(r=document.querySelectorAll('[data-record-type="803"]'),Array.prototype.forEach.call(r,function(t){var e=t.id.replace("rec","");t_zeroForms__onFuncLoad("t803_init",function(){t803_init(e)})})),window.t_zeroForms__isMobile||"ontouchend"in document?"orientationchange":"resize"),_=t_zeroForms__getTildaMode(),u=0;return window.addEventListener(a,function(){u=u||setTimeout(function(){var t;void 0!==window.t396_detectResolution&&void 0!==window.t396_switchResolution&&"edit"!==_&&(t=t396_detectResolution(e),t396_switchResolution(e,t)),t_zeroForms__updateStylesOnResize(e,o),clearTimeout(u),u=0},600)}),s}function t_zeroForms__updateStylesOnResize(t,e){var r=t_zeroForms__createFormObj(e),o=e.getAttribute("data-elem-id"),n=e.querySelector(".t-form"),i="variation"===r.inputfontweight?r.inputvariationweight:r.inputfontweight,a=document.querySelectorAll(".t-input-phonemask__wrap"),s=(Array.prototype.forEach.call(a,function(t){t.classList.add("t-input-inline-styles")}),"h"===r.inputpos?(n&&n.classList.add("tn-form_horiz"),t_zeroForms__setScriptOrStyle("t-zero-form-h-styles","tilda-zero-form-horizontal.min.css","","link",!1)):n&&n.classList.remove("tn-form_horiz"),t_zeroForms__initInputStyles(r,i)),a=e.querySelectorAll(".t-input-inline-styles"),l=(Array.prototype.forEach.call(a,function(t){t_zeroForms__appendStylesToField(t,s);var e=t.getAttribute("data-rows");e&&(t.style.height=25*e+10+"px")}),{color:r.inputtitlecolor||"",fontWeight:r.inputtitlefontweight||"",fontFamily:r.inputfontfamily||"",fontSize:r.inputtitlefontsize||"",paddingBottom:r.inputtitlemargbottom||""}),d="variation"===r.inputtitlefontweight?r.inputtitlevariationweight:r.inputtitlefontweight,n=e.querySelectorAll(".t-input-title"),i=(Array.prototype.forEach.call(n,function(t){t_zeroForms__setTitleStyles(t,l,d)}),e.querySelectorAll(".t-input-group")),c=r.inputmargbottom?"margin-bottom:"+r.inputmargbottom+"px;":"",a=((c+=r.inputmargright&&"h"===r.inputpos?"padding-right:"+r.inputmargright+"px;":"")&&Array.prototype.forEach.call(i,function(t){t.style=c}),e.querySelector(".t-submit"));a&&(t_zeroForms__setBtnInlineStyles(r,a),t_zeroForms__generateBtnStyles(a,t,o,r,e),(n=a.closest(".tn-form__submit"))&&(n.style.textAlign=r.buttonalign,n.style.marginTop=r.buttonmargtop+"px"))}function t_zeroForms__createCommentField(){var t=document.createElement("div"),e=(t.style.position="absolute",t.style.left="-5000px",t.style.bottom="0",t.style.display="none",document.createElement("input"));return e.type="text",e.name="form-spec-comments",e.value="Its good",e.classList.add("js-form-spec-comments"),e.tabIndex=-1,t.insertAdjacentElement("beforeend",e),t}function t_zeroForms__generateInputsBlock(e,r,t,o,n){var i=r.getAttribute("data-elem-id"),t=t.filter(function(t){return"y"!==t.loff&&t.li_type}),a=document.createElement("div");return a.classList.add("t-form__inputsbox"),t.forEach(function(t){t=t_zeroForms__parseIntoElement(e,r,t,o,n,i);t&&a.insertAdjacentElement("beforeend",t)}),a.insertAdjacentElement("beforeend",t_zeroForms__createErrorBox(o,"middle")),a.insertAdjacentElement("beforeend",t_zeroForms__createFormButton(e,r,i,o)),a}function t_zeroForms__parseIntoElement(e,r,o,n,t,i){if("hd"===o.li_type)return t_zeroForms__createHiddenField(o.li_value,o.li_nm,"");e=e||(e=r.closest(".r")?r.closest(".r").id:"").replace("rec","");var a,s,l=n.inputmargbottom?"margin-bottom:"+n.inputmargbottom+"px;":"",d=(l+=n.inputmargright&&"h"===n.inputpos?"padding-right:"+n.inputmargright+"px;":"",document.createElement("div")),l=(d.classList.add("t-input-group"),d.classList.add("t-input-group_"+o.li_type),d.setAttribute("data-input-lid",o.lid),l&&(d.style=l),"variation"===n.inputfontweight?n.inputvariationweight:n.inputfontweight),c="variation"===n.inputelsfontweight?n.inputelsvariationweight:n.inputelsfontweight,_="variation"===n.inputtitlefontweight?n.inputtitlevariationweight:n.inputtitlefontweight,u=(o.li_title&&t_zeroForms__generateTitle(o,t,d,_),o.li_subtitle&&t_zeroForms__generateSubtitle(o,t,d),t_zeroForms__initInputStyles(n,l)),m={fontSize:n.inputelsfontsize||"",fontWeight:c||""},p={name:o.li_nm,placeholder:o.li_ph||"",secondaryClassName:n.inputsstyle?"t-input_bbonly":"",require:"y"===o.li_req,rule:o.li_rule||"",mask:o.li_mask||""},_=document.createElement("div");switch(_.classList.add("t-input-block"),o.li_type){case"em":f=t_zeroForms__createInput(o,u,p,"email");break;case"ph":f=t_zeroForms__createPhoneInput(e,o,u,p),"a"===o.li_masktype&&(t_zeroForms__setScriptOrStyle("t-zero-phonemask","tilda-phone-mask-1.1.min.js","","script",!1),t_zeroForms__onRender(r,!0,function(){t_zeroForms__onFuncLoad("t_form_phonemask_load",function(){var t="#rec"+e+' .js-phonemask-input[data-phonemask-lid="'+o.lid+'"]',t=document.querySelector(t);t&&t_form_phonemask_load(t)})}));break;case"nm":f=t_zeroForms__createInput(o,u,p,"name");break;case"in":f=t_zeroForms__createInput(o,u,p,"oneline");break;case"ta":f=t_zeroForms__createInput(o,u,p,"textarea");break;case"sb":var f=t_zeroForms__createSelect(o,u,p);(n.inputsstyle&&n.inputelscolor||u.color)&&(g=document.createElement("style"),b=t_zeroForms__createSelector(e,i,".t-select__wrapper:after"),y=n.inputsstyle?n.inputelscolor:u.color,g.textContent=b+"{border-top-color:"+y+";}",f.insertAdjacentElement("beforeend",g));break;case"rd":f=t_zeroForms__createRadio(o,n,p,m);var b="cb"===o.li_radcb?"checkbox":"radio",y=(t_zeroForms__setIndicatorStyles(e,i,n.inputelscolor,b,f),e?"#rec"+e+" ":"");t_zeroForms__setScriptOrStyle("t-zero-form-fieldset-"+e,"",y+="fieldset {padding: 0; margin: 0; border: none;}","style",r),"checkbox"==b&&t_zeroForms__onRender(r,!1,function(){var t=r.querySelector('[data-input-lid="'+o.lid+'"]');t&&Array.prototype.slice.call(t.querySelectorAll(".t-checkbox")).forEach(function(t){t.addEventListener("input",t_zeroForms__updateCheckboxesValues)})});break;case"ri":f=t_zeroForms__createRadioImage(o,n,p),t_zeroForms__setIndicatorStyles(e,i,n.inputelscolor,"img-select",f),t_zeroForms__setScriptOrStyle("t-zero-img-select-styles","tilda-img-select-1.0.min.css","","link",!1),t_zeroForms__setScriptOrStyle("t-zero-img-select-script","tilda-img-select-1.0.min.js","","script",!1),t_zeroForms__onRender(r,!1,function(){t_zeroForms__onFuncLoad("t_input_imgselect_init",function(){t_input_imgselect_init(e,o.lid),t_input_imgselect_invertColor(e)})});break;case"cb":f=t_zeroForms__createCheckbox(o,m,n,p),t_zeroForms__setIndicatorStyles(e,i,n.inputelscolor,"checkbox",f);break;case"uw":f=t_zeroForms__createUploadField(o,p,"uw"),"published"===window.tildamode&&t_zeroForms__onRender(r,!0,function(){t_zeroForms__onFuncLoad("t_upwidget__init",function(){t_upwidget__init()})});break;case"uc":f=t_zeroForms__createUploadField(o,p,"uc");var g='UPLOADCARE_LOCALE ="'+o.li_inp+'";';t_zeroForms__setScriptOrStyle("t-zero-uploadcare-"+i,"",g+='UPLOADCARE_TABS = "all";',"script",!1);break;case"da":f=t_zeroForms__createDateField(o,p,u,n),t_zeroForms__onRender(r,!0,function(){t_zeroForms__onFuncLoad("t_datepicker_init",function(){t_datepicker_init(e,o.lid,i)})});break;case"tm":f=t_zeroForms__createInput(o,u,p,"time");break;case"qn":f=t_zeroForms__createQuantityField(o,u,n.inputelscolor,p),r.removeEventListener("click",t_zeroForms__initQuanityClickCount),r.addEventListener("click",t_zeroForms__initQuanityClickCount);break;case"rg":f=t_zeroForms__createQuantityRange(o,u,n,p),n.inputelscolor&&(a=document.createElement("style"),s=t_zeroForms__createSelector(e,i,".t-range"),["::-webkit-slider-thumb","::-moz-range-thumb","::-ms-thumb"].forEach(function(t){a.textContent+=s+t+"{background:"+n.inputelscolor+";}"}),f.insertAdjacentElement("beforeend",a)),t_zeroForms__onRender(r,!1,function(){t_zeroForms__onFuncLoad("t_input_range_init",function(){try{t_input_range_init(e,o.lid)}catch(t){console.log(t)}})});break;case"ur":f=t_zeroForms__createInput(o,u,p,"url");break;case"tx":(f=document.createElement("div")).classList.add("t-text"),f.setAttribute("field","li_text__"+o.lid),f.style.fontWeight=m.fontWeight,f.style.fontSize=m.fontSize+"px",f.style.fontFamily=t.fontFamily,f.style.color=t.color,f.innerHTML=o.li_text||"";break;case"ws":(f=document.createElement("div")).innerHTML=" ";o.li_rows&&(f.style.height=34*o.li_rows+"px");break;case"fr":f=t_zeroForms__createCalculation(o,u,p,t),n.inputfrbgcolor&&(y=document.createElement("style"),b=t_zeroForms__createSelector(e,i,".t-input-group_fr"),y.textContent=b+"{background-color:"+n.inputfrbgcolor+"; padding: 20px 30px 25px;}",f.insertAdjacentElement("beforeend",y)),t_zeroForms__onRender(r,!1,function(){t_zeroForms__onFuncLoad("tcalc__init",function(){t_zeroForms__waitCalcFields(e,o,r)})})}f&&_.appendChild(f);l=document.createElement("div");return l.classList.add("t-input-error"),_.insertAdjacentElement("beforeend",l),d.insertAdjacentElement("beforeend",_),d}function t_zeroForms__waitCalcFields(t,e,r){var o=t_zeroForms__removeStringQuotes(e.li_expr).match(/[A-z0-9_]+/gi);o&&((o=o.filter(function(t){return isNaN(parseInt(t,10))})).every(function(t){return r.querySelector('[name="'+t+'"]')})?tcalc__init(t,e.lid):setTimeout(function(){tcalc__init(t,e.lid)},500))}function t_zeroForms__generateSubtitle(e,t,r){var o=["rd","ri","uw","uc","fr","cb"].some(function(t){return t===e.li_type}),o=document.createElement(e.li_title||o?"div":"label");"LABEL"===o.tagName&&(o.style.display="block"),"LABEL"===o.tagName&&o.setAttribute("for",e.li_type+"-"+e.lid),o.classList.add("t-input-subtitle"),o.classList.add("t-descr"),o.classList.add("t-descr_xxs"),o.classList.add("t-opacity_70"),o.setAttribute("field","nullli_subtitle__"+e.lid),t_zeroForms__setTitleStyles(o,t,""),o.textContent=e.li_subtitle,r.insertAdjacentElement("beforeend",o)}function t_zeroForms__generateTitle(e,t,r,o){var n=["rd","ri","uw","uc","fr","cb"].some(function(t){return t===e.li_type}),n=document.createElement(n?"div":"label");"LABEL"===n.tagName&&(n.style.display="block"),"LABEL"===n.tagName&&n.setAttribute("for",e.li_type+"-"+e.lid),n.classList.add("t-input-title"),n.setAttribute("data-redactor-toolbar","no"),n.setAttribute("field","nullli_title__"+e.lid),t_zeroForms__setTitleStyles(n,t,o),n.textContent=e.li_title,r.insertAdjacentElement("beforeend",n)}function t_zeroForms__createPhoneInput(t,e,r,o){var n=e.li_masktype,i=document.createElement("input");return e.li_title||e.li_subtitle?i.id=e.li_type+"-"+e.lid:i.ariaLabel="phone",t_zeroForms__appendMainSettingToField(i,o,"tel",""),"a"===n?i.classList.add("js-phonemask-input"):e.li_mask&&i.classList.add("js-tilda-mask"),"a"===n?(n="RU"===window.t_zeroForms__browserLang?"+7":"+1",i.placeholder=n+"(999)999-9999",i.setAttribute("data-phonemask-init","no"),i.setAttribute("data-phonemask-id",t),i.setAttribute("data-phonemask-lid",e.lid),e.li_maskcountry&&i.setAttribute("data-phonemask-maskcountry",e.li_maskcountry),o.secondaryClassName&&i.classList.add(o.secondaryClassName),o.require&&i.setAttribute("data-tilda-req","1")):(t_zeroForms__appendAttributes(i,o),i.setAttribute("data-tilda-rule","phone"),o.mask&&i.setAttribute("data-tilda-mask",o.mask)),t_zeroForms__appendStylesToField(i,r),i}function t_zeroForms__createInput(t,e,r,o){var n=document.createElement("textarea"===o?"textarea":"input");t.li_title||t.li_subtitle?n.id=t.li_type+"-"+t.lid:n.ariaLabel=o,t_zeroForms__appendMainSettingToField(n,r,"textarea"===o?"":"text","");return["name","time","url","email"].some(function(t){return t===o})&&n.setAttribute("data-tilda-rule",o),"time"===o&&(n.setAttribute("data-tilda-mask","99:99"),n.classList.add("t-inputtime")),("time"===o||"oneline"===o&&t.li_mask)&&n.classList.add("js-tilda-mask"),"oneline"===o&&(r.rule&&n.setAttribute("data-tilda-rule",r.rule),r.mask&&n.setAttribute("data-tilda-mask",r.mask)),t_zeroForms__appendAttributes(n,r),t_zeroForms__appendStylesToField(n,e),"textarea"===o&&(t_zeroForms__setScriptOrStyle("zero-forms-textarea-styles","",".t396__elem .t-input-group_ta textarea.t-input {padding-top:10px; vertical-align: unset; resize: none;}","style",!1),t_zeroForms__setTextareaHeight(t,n)),n}function t_zeroForms__setTextareaHeight(t,e){1'),t_zeroForms__setScriptOrStyle("t-zero-date-styles","tilda-date-picker-1.0.min.css","","link",!1),t_zeroForms__setScriptOrStyle("t-zero-date-script","tilda-date-picker-1.0.min.js","","script",!1),n}function t_zeroForms__createQuantityField(t,e,r,o){var n=t_zeroForms__createWrapper("t-inputquantity__wrapper"),i=t_zeroForms__createQuantityBtn("minus",r),r=t_zeroForms__createQuantityBtn("plus",r),a=document.createElement("input");return t_zeroForms__appendMainSettingToField(a,o,"text",["t-input","t-inputquantity"]),t_zeroForms__appendAttributes(a,o),t_zeroForms__appendStylesToField(a,e),a.value=t.li_value||"",a.id=t.li_type+"-"+t.lid,a.setAttribute("data-tilda-rule","number"),n.insertAdjacentElement("beforeend",i),n.insertAdjacentElement("beforeend",a),n.insertAdjacentElement("beforeend",r),n}function t_zeroForms__createQuantityBtn(t,e){var r=document.createElement("span");return r.classList.add("t-inputquantity__btn"),r.classList.add("t-inputquantity__btn-"+t),e&&(r.style.color=e),r.innerHTML="minus"===t?"–":"+",r}function t_zeroForms__createQuantityRange(t,e,r,o){var n=t_zeroForms__createWrapper("t-range__wrapper"),i=document.createElement("input"),o=(t_zeroForms__appendMainSettingToField(i,o,"range","t-range"),r.inputelscolor&&i.setAttribute("data-range-color",r.inputelscolor),i.min=t.li_vmin||"0",i.max=t.li_vmax||"10",i.step=t.li_step||"1",i.value=t.li_value,i.style.width="100%",t.li_title||t.li_subtitle?i.id=t.li_type+"-"+t.lid:i.ariaLabel="range",n.insertAdjacentElement("beforeend",i),document.createElement("div")),i=(o.classList.add("t-range__value-txt"),o.classList.add("t-descr"),o.classList.add("t-descr_xxs"),o.style.display="none",n.insertAdjacentElement("beforeend",o),document.createElement("div")),o=(i.classList.add("t-range__interval-txt-wrapper"),t_zeroForms__createRangeField("min",r.inputtitlecolor,t.li_vmin||"0")),r=t_zeroForms__createRangeField("max",r.inputtitlecolor,t.li_vmax||"10");return i.insertAdjacentElement("beforeend",o),i.insertAdjacentElement("beforeend",r),n.insertAdjacentElement("beforeend",i),t_zeroForms__setScriptOrStyle("t-zero-range-script","tilda-range-1.0.min.js","","script",!1),t_zeroForms__setScriptOrStyle("t-zero-range-styles","tilda-range-1.0.min.css","","link",!1),n}function t_zeroForms__createRangeField(t,e,r){var o=document.createElement("div");return o.classList.add("t-range__interval-txt"),o.classList.add("t-range__interval-txt_"+t),o.classList.add("t-descr"),o.classList.add("t-descr_xxs"),e&&(o.style.color=e),o.textContent=r,o}function t_zeroForms__createCalculation(t,e,r,o){var n=document.createDocumentFragment(),i=document.createElement("input"),r=(t_zeroForms__appendMainSettingToField(i,r,"hidden","t-calc__hiddeninput"),i.tabIndex=-1,i.value="0",n.appendChild(i),t_zeroForms__createWrapper(["t-calc__wrapper","t-name","t-name_md"])),i=(r.style.color=e.color,r.style.fontFamily=o.fontFamily,r.style.fontSize=e.fontSize,r.style.fontWeight=e.fontWeight,t_zeroForms__createCalcTextField(t.li_prefix,"prefix",r),document.createElement("span"));return i.classList.add("t-calc"),i.setAttribute("data-calc-expr",t_zeroForms__removeStringQuotes(t.li_expr)),i.textContent="0",r.insertAdjacentElement("beforeend",i),t_zeroForms__createCalcTextField(t.li_postfix,"postfix",r),t_zeroForms__setScriptOrStyle("t-zero-calc","tilda-calc-1.0.min.js","","script",!1),n.appendChild(r),"y"!==t.li_addtocart||(t.li_prod_title&&(o=t_zeroForms__createHiddenField(t.li_prod_title,"prod_title","t-calc__hidden__prod_title"),r.insertAdjacentElement("beforeend",o)),t.li_prod_img&&(e=t_zeroForms__createHiddenField(t.li_prod_img,"prod_img","t-calc__hidden__prod_img"),r.insertAdjacentElement("beforeend",e))),n}function t_zeroForms__createCalcTextField(t,e,r){var o;t&&((o=document.createElement("span")).classList.add("t-calc__"+e+"-text"),o.textContent=t,r.insertAdjacentElement("beforeend",o))}function t_zeroForms__createFormButton(t,e,r,o){var n=document.createElement("div"),i=(n.classList.add("tn-form__submit"),n.style.textAlign=o.buttonalign,n.style.marginTop=o.buttonmargtop+"px",document.createElement("button")),a=(i.type="submit",i.classList.add("t-submit"),"center"===o.buttonalign&&(i.style.marginLeft="auto",i.style.marginRight="auto"),i.style.padding="0 15px",i.style.display="block",o.buttontitle);return a&&(-1!==a.indexOf("r.height&&!e;return a<0&&!i&&!e||t||n