56c3b8455c6bbcf463b4ee3184a742754eef7e8305.12.2026, 07:01:09 МСК411411}412412413/*414* Строка «старая цена + скидка» занимает ширину по содержимому, но не больше 240px:415* обычно помещается в одну строку, а при длинной цене/валюте/скидке бейдж целиком уходит под цену.416*/417
285285display:block;286286padding-bottom:0}287.t706__product-amount-old{288-ms-flex-align:center;289-webkit-align-items:center;290align-items:center;291
3939import { t_cart__maskEmail } from '../src/tilda-cart/shared/maskEmail/index.ts';4040import {41t_cart__cleanPrice,42t_cart__roundPrice,43t_cart__formatWeight,44t_cart__formatPrice,45
2626function p(t){2727if(!_(t))throw new TypeError("Attempted to access private element on non-instance")}28var y=[].concat(e[0]),w=e[3],g=!s,b=1===n,S=3===n,A=4===n,T=2===n;29function E(e,r,o){28var y=[].concat(e[0]),w=e[3],g=!s,b=1===n,S=3===n,A=4===n,P=2===n;29function T(e,r,o){30
4455import { t_cart__useRootZone } from '../src/tilda-cart/shared/rootZone/index.ts';6import {7t_catalog__addVideoIconForGallery,8t_catalog__getVideoElement,9t_catalog__svgVideoIcon,10
2929function x(e,r,o){3030return function(n,i){31return r&&(i=n,n=t),o&&o(n),C[e].call(n,i)}31return r&&(i=n,n=t),o&&o(n),A[e].call(n,i)}3232}3333if(!b){34
В каталоге мобильный режим «в одну строку» теперь определяется только для контейнера с классом js-catalog-grid-cont, так что вложенные сетки больше не задевают отступы, фильтры и стрелки прокрутки. Для страницы товара добавлено, что body растягивается минимум на высоту экрана, а #allrecords занимает свободное место, и на узких экранах у вкладок товара (t-catalog__tabs) появились боковые отступы по 20px.
9999100100@media screen and (max-width: 960px) {101.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont,102.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont_indent {101.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont,
В каталог добавлена инициализация шаблона страницы товара: новая функция t_catalog_productTemplateInit запускает сниппет товара по данным из script.js-catalog-product-init-data, а попап товара теперь строится через модуль product-template и только при его отказе откатывается на прежний HTML. Кроме того, блок похожих товаров (relevants) может выводиться в произвольный контейнер через relevantsOpts.container, а relevantsOpts передаётся дальше в t_catalog_process.
8383t_catalog_editCache__respond,8484} from '../src/tilda-catalog/shared/edit-cache/index.ts';85import { t_catalog_productTemplate__initPopup, t_catalog_productTemplate__initPopupShell } from '../src/tilda-catalog/product-template/popup.ts';86import { t_catalog_productTemplate__initSnippet } from '../src/tilda-catalog/product-template/snippet.ts';87
Для страниц товара каталога (класс `t-catalog-product-template-page`) body стал flex-колонкой с минимальной высотой 100vh, а `#allrecords` растягивается, так что контент занимает всё свободное место. Вкладки товара `t-catalog__tabs` в сниппете получили боковые отступы по 20px, а мобильные правила для сетки в одну строку (`mobile-one-row`) теперь срабатывают только на контейнере с классом `js-catalog-grid-cont`.
166166padding:0 20px}167167@media screen and (max-width:960px){168.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont,.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont_indent{168.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont,.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont_indent{169
Diff показывает только переименование локальных переменных (x↔A, P↔T↔k) в минифицированном коде декораторов и хлебных крошек, логика не изменилась. Но список новых имён (t_catalog_productTemplateInit, js-catalog-product-template, data-st-product-repeat, нулевой остаток t-catalog__prod__quantity_zero и др.) говорит о том, что в бандл добавлена система шаблонов карточки товара каталога: сборка данных, галерея, вкладки, навигация, попап и сниппет, связанные связкой связанных товаров и условными блоками, а также оформление иконки для нулевого остатка.
2727if(!_(t))throw new TypeError("Attempted to access private element on non-instance")}2828var f=[].concat(e[0]),m=e[3],b=!c,w=1===a,S=3===a,E=4===a,C=2===a;29function x(e,r,o){29function A(e,r,o){3030
Для подписи слайда в карточках CMS (t-slds__caption) убран жирный шрифт — теперь текст выводится обычным начертанием (font-weight:400).
10391039padding-left:0}10401040.t-cms__page__caption-container .t-slds__caption{1041font-weight:400;10411042overflow:hidden;10421043position:static;
Только переименованы локальные переменные и функции в минифицированном бандле (например, `o` и `i` поменялись местами). Логика форматирования дат, подстановки значений в текст и атрибуты, а также построения превью-ссылок на thb.tildacdn не изменилась — похоже на побочный эффект пересборки.
11!function(){2function e(o,i,a,s,l){3if(!o)return"";4var u=new Date(o),c;2function e(i,o,a,s,l){3
12751275* @typedef {Object} ConditionalStepFormConfig12761276* @property {string} recId1277* @property {Element=} formContainer - контейнер формы, если форма лежит не в #rec{recId} (например, в Zero Block)1278* @property {boolean=} listenFields - следить ли за изменением полей, по умолчанию true.1279* Без слушателей условия рассчитываются один раз при инициализации (холст редактора Zero Block)12771280* @property {NodeListOf<Element>} steps
478478}479479function t_form__conditionals__initStepForm(t){480var n=t.ignoredSteps||[],e=t.ignoredInputGroups||[],o=t.recId,i=t.onConditionalFieldChange,r=Array.prototype.slice.call(t.steps),a=t.activeStepIndex,c=r[a],u,l,_,d,s=t_form__conditionals_initFields(o,e);481function f(){480var n=t.ignoredSteps||[],e=t.ignoredInputGroups||[],o=t.recId,i=t.onConditionalFieldChange,r=Array.prototype.slice.call(t.steps),a=t.activeStepIndex,c=r[a],u,l,_,d,s=t.formContainer||o,f=null;481
5151}525253/* Поля скрыты, пока загружается маска телефона. Место под поля сохраняется, чтобы форма не меняла высоту */54.t-contact-method__loading {55visibility: hidden;56}57
14141515function t_contactMethod__init(recId, lid) {16const rec = document.querySelector(`#rec${recId}`);16const rec = t_contactMethod__getRec(recId);1717if (!rec) return;1818
4545.t-contact-method__hidden{4646display:none!important}47.t-contact-method__loading{48visibility:hidden}4749.t-form__inputsbox_inrow .t-contact-method__value-container .t-input-block.t-input-block{4850width:100%}
11function t_contactMethod__init(t,e){2var o=document.querySelector("#rec"+t);2var o=t_contactMethod__getRec(t);33if(o){44var n=o.querySelector('[data-input-lid="'+e+'"][data-field-type="contact_method"]');
88.t706__product-amount-old { display: flex; align-items: center; flex-wrap: wrap; column-gap: 5px; row-gap: 0; width: max-content; max-width: 240px; margin-top: 2px; font-size: 12px; line-height: 1.35; font-weight: 300;} .t706__product-amount-old-price { opacity: 0.5; text-decoration: line-through; text-decoration-thickness: from-font;} /* inline-block не наследует зачёркивание родителя, поэтому цену и валюту делаем строчными */.t706__product-amount-old-price .t706__cartwin-prodamount-price,.t706__product-amount-old-price .t706__cartwin-prodamount-currency { display: inline;} /* отступ padding'ом не зачёркивается — заменяем его неразрывным пробелом, чтобы линия была сплошной */.t706__product-amount-old-price .t706__cartwin-prodamount-currency + .t706__cartwin-prodamount-price::before,.t706__product-amount-old-price .t706__cartwin-prodamount-price + .t706__cartwin-prodamount-currency::before { content: '\00a0'; padding-left: 0;} .t706__product-amount-old-price,.t706__product-amount-badge { white-space: nowrap;} .t706__product-amount-badge { opacity: 0.8;} .t706__product-del { cursor: pointer;511557}512558559/* ST-3277: отступ перед бейджем — у текста, чтобы перенесённый на новую строку бейдж вставал по левому краю */560.t706_promocode-details561.t706__cartwin-totalamount-wrap_flextotals562.t706__cartwin-totalamount-info_label-text:not(:last-child) {563margin-right: 5px;564}565566.t706_promocode-details .t706__cartwin-totalamount-wrap_flextotals .t706__cartwin-totalamount-badge {567margin-left: 0;568}569513570.t706__cartwin-totalamount-wrap_flextotals .t706__cartwin-totalamount-info_value {514571display: block;
549606}550607608/* ST-3277: подпись с кодом промокода переносится как текст, бейджи не переносятся */609.t706_promocode-details .t706__cartwin-totalamount-badge {610white-space: nowrap;611}612613.t706_promocode-details .t706__cartwin-totalamount-hint {614display: inline-block;615width: 100%;616}617618/* Отступ после подписи задаёт margin-right у .t706__cartwin-totalamount-hint-label */619.t706_promocode-details .t706__cartwin-totalamount-hint_loyalty {620display: flex;621align-items: center;622flex-wrap: wrap;623gap: 0;624}625551626.t706__cartwin-totalamount-hint-level {552627display: flex;
567642}568643644.t706_promocode-details .t706__cartwin-totalamount-hint-label {645margin-right: 5px;646white-space: nowrap;647}648569649.t706__cartwin-totalamount-hint-name {570650color: #000;
731811}732812813/* ST-3277: кнопки количества по центру блока цены, когда под ценой есть старая цена со скидкой */814.t706_promocode-details .t706__product-plusminus,815.t706_promocode-details .t706__product-amount {816vertical-align: middle;817}818733819.t706__product-del {734820position: absolute;
12081294background-color: #ececec;12091295margin-bottom: 20px;1210flex: 1;1296/* Отдельная строка в .t-form__inputsbox_flex, иначе плашка встаёт в ряд с объединёнными полями */1297flex: 0 0 100%;1298box-sizing: border-box;12111299}12121300
-webkit-column-gap:5px;column-gap:5px;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:12px;font-weight:300;line-height:1.35;margin-top:2px;max-width:240px;row-gap:0;width:-webkit-max-content;width:max-content}.t706__product-amount-old-price{opacity:.5;text-decoration:line-through;text-decoration-thickness:from-font}.t706__product-amount-old-price .t706__cartwin-prodamount-currency,.t706__product-amount-old-price .t706__cartwin-prodamount-price{display:inline}.t706__product-amount-old-price .t706__cartwin-prodamount-currency+.t706__cartwin-prodamount-price:before,.t706__product-amount-old-price .t706__cartwin-prodamount-price+.t706__cartwin-prodamount-currency:before{content:"\00a0";padding-left:0}.t706__product-amount-badge,.t706__product-amount-old-price{white-space:nowrap}.t706__product-amount-badge{opacity:.8}.t706__product-del{cursor:pointer;360393.t706__cartwin-totalamount-wrap_flextotals .t706__cartwin-totalamount-info_label-text{361394vertical-align:middle}395.t706_promocode-details396.t706__cartwin-totalamount-wrap_flextotals397.t706__cartwin-totalamount-info_label-text:not(:last-child){398margin-right:5px}399.t706_promocode-details .t706__cartwin-totalamount-wrap_flextotals .t706__cartwin-totalamount-badge{400margin-left:0}362401.t706__cartwin-totalamount-wrap_flextotals .t706__cartwin-totalamount-info_value{363402display:block;
370409white-space:nowrap}371410.t706__cartwin-totalamount-badge{372-ms-flex-align:center;373411-ms-flex-pack:center;374-webkit-align-items:center;375align-items:center;376412background:#cd7f32;377413border-radius:30px;
384420-webkit-justify-content:center;385421justify-content:center;386line-height:1.35;387422margin-left:5px;388423padding:2px 8px;389424vertical-align:middle}425.t706__cartwin-totalamount-badge,.t706__cartwin-totalamount-hint{426-ms-flex-align:center;427-webkit-align-items:center;428align-items:center;429line-height:1.35}390430.t706__cartwin-totalamount-hint{431display:-webkit-flex;432display:-ms-flexbox;433display:flex;391434-webkit-flex-wrap:wrap;392435-ms-flex-wrap:wrap;
395438font-weight:400;396439gap:5px;397line-height:1.35;398440max-width:100%;399441min-width:0;400442overflow-wrap:break-word;401443overflow-wrap:anywhere}402.t706__cartwin-totalamount-hint,.t706__cartwin-totalamount-hint-level{444.t706_promocode-details .t706__cartwin-totalamount-badge{445white-space:nowrap}446.t706_promocode-details .t706__cartwin-totalamount-hint{447display:inline-block;448width:100%}449.t706_promocode-details .t706__cartwin-totalamount-hint_loyalty{450-webkit-flex-wrap:wrap;451-ms-flex-wrap:wrap;452flex-wrap:wrap;453gap:0}454.t706__cartwin-totalamount-hint-level,.t706_promocode-details .t706__cartwin-totalamount-hint_loyalty{403455-ms-flex-align:center;404456-webkit-align-items:center;
415467color:#000;416468opacity:.5}469.t706_promocode-details .t706__cartwin-totalamount-hint-label{470margin-right:5px;471white-space:nowrap}417472.t706__cartwin-totalamount-hint-name{418473color:#000;
521576vertical-align:bottom;522577width:auto}578.t706_promocode-details .t706__product-amount,.t706_promocode-details .t706__product-plusminus{579vertical-align:middle}523580.t706__product-del{524581padding:0;
875932.t706__auth{876933background-color:#ececec;877-webkit-flex:1;878-ms-flex:1;879flex:1;934box-sizing:border-box;935-webkit-flex:0 0 100%;936-ms-flex:0 0 100%;937flex:0 0 100%;880938font-size:16px;881939margin-bottom:20px;
} from '../src/tilda-cart/domain/format/index.ts';import { t_cart__getAuthExternalIconHtml, t_cart__getAuthLogoutIconHtml,46524753const TCART_LOYALTY_DEFAULT_LEVEL_COLOR = '#F3C89D';54const TCART_PROMOCODE_BADGE_COLOR = '#EBEBEB';55// Сколько ждем мемберсы, прежде чем показать форму корзины без авторизации56const TCART_MEMBERS_WAIT_TIMEOUT = 10 * 1000;48574958window.t_cart__isiOS = false;
7685const tcart_dict = (msg) => translate(msg);7786window.tcart_dict = tcart_dict;877888/**89* Возвращает блоки корзины (ST100) на странице без удалённых.90* В редакторе в режиме просмотра удалённых блоков (viewtrash=yes) они есть в DOM91* с атрибутом data-record-trash="y" и не должны учитываться92*93* @returns {HTMLElement[]}94*/95function tcart__getCartBlocks() {96return Array.from(/** @type {NodeListOf<HTMLElement>} */ (document.querySelectorAll('.t706'))).filter(97cart => !cart.closest('[data-record-trash="y"]')98);99}100101/**102* Возвращает первый блок корзины (ST100) на странице без учёта удалённых103*104* @returns {HTMLElement | null}105*/106function tcart__getCartBlock() {107return tcart__getCartBlocks()[0] || null;108}109110/**79111* Инит корзины80112*
87119}8812089const cartBlock = document.querySelector('.t706');121const cartBlock = tcart__getCartBlock();90122if (!cartBlock) return;91123124// ST-3277: скидка и код промокода в итоге и в ценах товаров — пока только для team-пользователей125const isPromocodeDetails = isTeamUser();92126document.querySelectorAll('.t706').forEach(cart => {93127cart.classList.add('t706_flextotals');128if (isPromocodeDetails) cart.classList.add('t706_promocode-details');94129});9513096131const { ymapApiKey = cartBlock.getAttribute('data-yandexmap-apikey') || '', cssClassName } = options;9713298const cartBlocksLength = document.querySelectorAll('.t706').length;133const cartBlocksLength = tcart__getCartBlocks().length;99134const rec = document.querySelector('#rec' + recid);100135
108143tcart__form__hideFormFields();109144tcart__hideBottomTotalAmount();145// Поля снова покажет tcart__initAuthAndDelivery, поэтому сбрасываем флаг: иначе при повторной инициализации146// (перерисовка блока в редакторе после сохранения, смена ширины у полноэкранной корзины) поля останутся скрытыми147window.tcart_isAuthInited = false;110148111149window.t_cart__browserLang = t_cart__getCartLang();
565603**/566604function tcart__updateMinimals() {567var cartBlock = document.querySelector('.t706');605var cartBlock = tcart__getCartBlock();568606569607// TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)
655693**/656694function tcart__loadLocalObj() {657const cartBlock = document.querySelector('.t706');695const cartBlock = tcart__getCartBlock();658696659697window.tcart = t_cart__loadCartData();
9901028var cartBtnLink = cartBtn.getAttribute('href');9911029var price = '0';1030/** Цена числом после tcart__cleanPrice. Пока её нет, цена товара — строка price */1031/** @type {number | undefined} */1032var cleanedPrice;9921033var name = '';9931034var img = '';
return function(n,a){return r&&(a=n,n=t),o&&o(n),L[e].call(n,a)}return r&&(a=n,n=t),o&&o(n),E[e].call(n,a)}}if(!g){var L={var E={},P=[],D=S?"get":A||b?"set":"value";if(d?(l||b?L={,L=[],D=S?"get":A||b?"set":"value";if(d?(l||b?E={get:_setFunctionName((function(){return w(this)}4141e[4](this,t)}4242}43:L[D]=w,l||_setFunctionName(L[D],o,T?"":D)):l||(L=Object.getOwnPropertyDescriptor(t,o)),!l&&!d){44if((c=m[+u][o])&&7!=(c^n))throw Error("Decorating two elements with the same name ("+L[D].name+") is not supported yet");43:E[D]=w,l||_setFunctionName(E[D],o,P?"":D)):l||(E=Object.getOwnPropertyDescriptor(t,o)),!l&&!d){44if((c=m[+u][o])&&7!=(c^n))throw Error("Decorating two elements with the same name ("+E[D].name+") is not supported yet");4545m[+u][o]=n<3?1:n}4646}
4848C>=0;4949C-=r?2:1){50var j=h(y[C],"A decorator","be",!0),k=r?y[C-1]:void 0,q={50var k=h(y[C],"A decorator","be",!0),M=r?y[C-1]:void 0,j={5151}52,M={52,R={5353kind:["field","accessor","method","getter","setter","class"][n],name:o,metadata:i,addInitializer:function(t,e){5454if(t.v)throw new TypeError("attempted to call addInitializer after decoration was finished");5555h(e,"An initializer","be",!0),a.push(e)}56.bind(null,q)}56.bind(null,j)}5757;58if(g)c=j.call(k,O,M),q.v=1,h(c,"class decorators","return")&&(O=c);59else if(M.static=u,M.private=d,c=M.access={58if(g)c=k.call(M,O,R),j.v=1,h(c,"class decorators","return")&&(O=c);59else if(R.static=u,R.private=d,c=R.access={6060has:d?_.bind():function(t){6161return o in t}6262}63,A||(c.get=d?T?function(t){64return p(t),L.value}65:E("get",0,p):function(t){63,A||(c.get=d?P?function(t){64return p(t),E.value}65:T("get",0,p):function(t){6666return t[o]}67),T||S||(c.set=d?E("set",0,p):function(t,e){67),P||S||(c.set=d?T("set",0,p):function(t,e){6868t[o]=e}69),O=j.call(k,b?{70get:L.get,set:L.set}71:L[D],M),q.v=1,b){72if("object"==typeof O&&O)(c=h(O.get,"accessor.get"))&&(L.get=c),(c=h(O.set,"accessor.set"))&&(L.set=c),(c=h(O.init,"accessor.init"))&&P.unshift(c);69),O=k.call(M,b?{70get:E.get,set:E.set}71:E[D],R),j.v=1,b){72if("object"==typeof O&&O)(c=h(O.get,"accessor.get"))&&(E.get=c),(c=h(O.set,"accessor.set"))&&(E.set=c),(c=h(O.init,"accessor.init"))&&L.unshift(c);7373else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}74else h(O,(l?"field":"method")+" decorators","return")&&(l?P.unshift(O):L[D]=O)}75return n<2&&s.push(v(P,u,1),v(a,u,0)),l||g||(d?b?s.splice(-1,0,E("get",u),E("set",u)):s.push(T?L[D]:h.call.bind(L[D])):f(t,o,L)),O}74else h(O,(l?"field":"method")+" decorators","return")&&(l?L.unshift(O):E[D]=O)}75return n<2&&s.push(v(L,u,1),v(a,u,0)),l||g||(d?b?s.splice(-1,0,T("get",u),T("set",u)):s.push(P?E[D]:h.call.bind(E[D])):f(t,o,E)),O}7676function b(t){7777return f(t,p,{
17101710}17111711else{1712var T=p;1712var P=p;17131713p=function(t,e){1714return T.call(t,e)}1714return P.call(t,e)}17151715}17161716t.push(p)}
18041804}18051805:g[S]=v,_||_setFunctionName(g[S],o,2===n?"":S)):_||(g=Object.getOwnPropertyDescriptor(t,o))}1806for(var A=t,T=w.length-1;1807T>=0;1808T-=r?2:1){1809var E=w[T],L=r?w[T-1]:void 0,P={1806for(var A=t,P=w.length-1;1807P>=0;1808P-=r?2:1){1809var T=w[P],E=r?w[P-1]:void 0,L={18101810}18111811,D={
18131813if(t.v)throw Error("attempted to call addInitializer after decoration was finished");18141814s(e,"An initializer","be",!0),c.push(e)}1815.bind(null,P)}1815.bind(null,L)}18161816;18171817try{1818if(h)(m=s(E.call(L,A,D),"class decorators","return"))&&(A=m);1818if(h)(m=s(T.call(E,A,D),"class decorators","return"))&&(A=m);18191819else{18201820var O,C;
18261826t[o]=e}18271827));1828var j=D.access={1828var k=D.access={18291829has:l?f.bind():function(t){18301830return o in t}18311831}18321832;1833if(O&&(j.get=O),C&&(j.set=C),A=E.call(L,p?{1833if(O&&(k.get=O),C&&(k.set=C),A=T.call(E,p?{18341834get:g.get,set:g.set}18351835:g[S],D),p){
18391839}18401840finally{1841P.v=!0}1841L.v=!0}18421842}18431843return(_||p)&&u.push((function(t,e){
} from '../src/tilda-catalog/gallery-video/index.ts'; // global variables declaration61776182}617861836184// Обёртки t_store__getVideoElement, t_store_addVideoIconForGallery и t_store_svgVideoIcon6185// сохраняют глобальные функции для tilda-catalog-slds-1.0 и старых шаблонов.618661796187/**61806188* @typedef {Object} VideoParams
61886196/**61896197* Возвращает элемент видео (iframe или video) на основе переданных параметров.6190* @param {'youtube' | 'youtube.com' | 'vimeo' | 'vimeo.com' | 'kinescope' | 'rutube' | 'vk' } videoType - Тип видео6198* @param {'youtube' | 'youtube.com' | 'vimeo' | 'vimeo.com' | 'kinescope' | 'rutube' | 'vk' | 'mp4' | 'webm' } videoType - Тип видео61916199* @param {VideoParams} params - Параметры видео.6192* @returns {HTMLIFrameElement | undefined} - Возвращает элемент iframe или video в зависимости от типа видео.6200* @returns {HTMLIFrameElement | HTMLVideoElement | null} - Возвращает элемент iframe или video в зависимости от типа видео.61936201*/61946202function t_store__getVideoElement(videoType, params) {6195if (!videoType) return null;61966197const { videoId: id, videoHash: hash, videoTime: time, vkOID, videoParams } = params;61986199const filteredType = videoType.replace(/\.com/, '');62006201const videoTypeConfig = {6202youtube: {6203baseUrl: `https://www.youtube.com/embed/${id}`,6204params: [6205'rel=0',6206'fmt=18',6207'html5=1',6208'showinfo=0',6209'autoplay=1',6210'muted=1',6211'enable',6212time && `start=${time}`,6213],6214},6215vimeo: {6216baseUrl: `https://player.vimeo.com/video/${id}`,6217params: [6218'title=0',6219'byline=0',6220'portrait=0',6221'badge=0',6222'color=ffffff',6223'autoplay=1',6224'muted=1',6225hash && `h=${hash}`,6226],6227hashtag: time ? `#t=${time}` : '',6228},6229kinescope: {6230baseUrl: `https://kinescope.io/embed/${id}`,6231params: ['autoplay=1', 'muted=1', time && `t=${time}`],6232},6233rutube: {6234baseUrl: `https://rutube.ru/embed/${id}`,6235params: ['autoplay=1', 'muted=1', time && `t=${time}`, hash && `p=${hash}`],6236},6237vk: {6238baseUrl: 'https://vkvideo.ru/video_ext.php',6239params: [6240'js_api=1',6241'hd=2',6242'autoplay=1',6243'muted=1',6244`id=${id}`,6245`oid=${vkOID}`,6246hash && `hash=${hash}`,6247time && `t=${time}`,6248],6249},6250};6251const config = videoTypeConfig[filteredType];6252if (!config) return null;62536254const { baseUrl, params: hashQueryArr, hashtag = '' } = config;6255if (videoParams) {6256hashQueryArr.push(videoParams);6257}6258const hashQueryStr = hashQueryArr.filter(param => param).join('&');6259const src = `${baseUrl}?${hashQueryStr}${hashtag}`;62606261return createIframe(src);62626263/**6264* Создает и возвращает элемент iframe6265* @param {string} src - URL для iframe.6266* @param {Record<string, string>} [attrs] - Дополнительные атрибуты для iframe.6267* @returns {HTMLIFrameElement} - Возвращает элемент iframe.6268*/6269function createIframe(src, attrs) {6270const iframe = document.createElement('iframe');6271iframe.src = src;6272iframe.classList.add('t-slds__frame');6273iframe.width = '100%';6274iframe.height = '100%';6275iframe.frameBorder = '0';6276iframe.allowFullscreen = true;6277// Поддержка разными браузерами6278iframe.setAttribute('mozallowfullscreen', 'true');6279iframe.setAttribute('msallowfullscreen', 'true');6280iframe.setAttribute('oallowfullscreen', 'true');6281iframe.setAttribute('webkitallowfullscreen', 'true');6282iframe.scrolling = 'no';6283iframe.allow =6284'clipboard-write; autoplay; fullscreen; picture-in-picture; encrypted-media; gyroscope; accelerometer;';62856286// Применение всех атрибутов из объекта attrs6287for (let key in attrs) {6288if (attrs.hasOwnProperty(key)) {6289iframe.setAttribute(key, attrs[key]);6290}6291}6292return iframe;6293}6203return t_catalog__getVideoElement(videoType, params);62946204}629562056296// get the video's play button62976206function t_store_addVideoIconForGallery(options, element) {6298let str = '';6299const video = element.video;6300if (video) {6301const { videoid = '', vtype = '', vhash = '', vtime = '' } = element;6302const vkOID = element.void || ''; // vk oid63036304// TODO Video Для чего это?6305var params = '';6306if (element.vtype === 'youtube.com') {6307if (video.indexOf('?v=' + element.videoid) !== -1) {6308params = video.split('?v=' + element.videoid)[1];6309params = params.replace(/&/g, '&');6310if (params.indexOf('loop=1') !== -1 && params.indexOf('&playlist=') === -1) {6311params += '&playlist=' + element.videoid;6312}6313}6314}63156316str += `6317<div class="t-slds__videowrapper">6318<div class="t-slds__play_icon"6319data-slider-video-url="${videoid}"6320data-slider-video-type="${vtype}"6321data-slider-video-hash="${vhash}"6322data-slider-video-oid="${vkOID}"6323data-slider-video-time="${vtime}"6324data-slider-video-params="${params}"6325>6326${t_store_svgVideoIcon(options)}6327</div>6328<div class="t-slds__frame-wrapper"></div>6329</div>`;6330}6331return str;6207return t_catalog__addVideoIconForGallery(options, element);63326208}6333620963346210function t_store_svgVideoIcon(options) {6335var str = '';6336var iconColor = options.slider_opts.videoPlayerIconColor || '#fff';63376338str +=6339'<svg xmlns="http://www.w3.org/2000/svg" width="70px" height="70px" viewBox="0 0 60 60" style="width:100%;height:100%;">';6340str += '<g stroke="none" stroke-width="1" fill="" fill-rule="evenodd">';6341str += '<g transform="translate(-691.000000, -3514.000000)" fill="' + iconColor + '">';6342str +=6343'<path d="M721,3574 C737.568542,3574 751,3560.56854 751,3544 C751,3527.43146 737.568542,3514 721,3514 C704.431458,3514 691,3527.43146 691,3544 C691,3560.56854 704.431458,3574 721,3574 Z M715,3534 L732,3544.5 L715,3555 L715,3534 Z"></path>';6344str += '</g>';6345str += '</g>';6346str += '</svg>';63476348return str;6211return t_catalog__svgVideoIcon(options);63496212}63506213
7051691470526915var optsValsBeforeChangedArr = [];6916var hasAvailableEdition = product.editions.some(function (edition) {6917return parseInt(edition.quantity, 10) !== 0;6918});7053691970546920if (product.editionOptions.length > 0) {
71036969el_optionTag.setAttribute('disabled', 'disabled');71046970// опция была выбрана ранее, а теперь отключена7105if (el_optionTag.selected) {6971// Выбор не сбрасывается, если переключаться не на что или проверка вызвана из обработчика change,6972// иначе обработчик и проверка бесконечно вызывают друг друга6973if (el_optionTag.selected && hasAvailableEdition && !el_product.isEditionVerifying) {71066974el_optionTag.selected = false;71076975var optionParent = el_optionTag.closest('.js-product-edition-option-variants');71086976if (optionParent) {7109t_store_triggerEvent(optionParent, 'change');6977el_product.isEditionVerifying = true;6978try {6979t_store_triggerEvent(optionParent, 'change');6980} finally {6981el_product.isEditionVerifying = false;6982}71106983}71116984}
var C={var A={},A=[],j=S?"get":E||w?"set":"value";if(d?(p||w?C={,C=[],j=S?"get":E||w?"set":"value";if(d?(p||w?A={get:_setFunctionName((function(){return g(this)}4141e[4](this,t)}4242}43:C[j]=g,p||_setFunctionName(C[j],o,P?"":j)):p||(C=Object.getOwnPropertyDescriptor(t,o)),!p&&!d){44if((a=v[+l][o])&&7!=(a^n))throw Error("Decorating two elements with the same name ("+C[j].name+") is not supported yet");43:A[j]=g,p||_setFunctionName(A[j],o,P?"":j)):p||(A=Object.getOwnPropertyDescriptor(t,o)),!p&&!d){44if((a=v[+l][o])&&7!=(a^n))throw Error("Decorating two elements with the same name ("+A[j].name+") is not supported yet");4545v[+l][o]=n<3?1:n}4646}
6262}6363,E||(a.get=d?P?function(t){64return _(t),C.value}64return _(t),A.value}6565:x("get",0,_):function(t){6666return t[o]}
6868t[o]=e}6969),O=L.call(T,w?{70get:C.get,set:C.set}71:C[j],I),q.v=1,w){72if("object"==typeof O&&O)(a=h(O.get,"accessor.get"))&&(C.get=a),(a=h(O.set,"accessor.set"))&&(C.set=a),(a=h(O.init,"accessor.init"))&&A.unshift(a);70get:A.get,set:A.set}71:A[j],I),q.v=1,w){72if("object"==typeof O&&O)(a=h(O.get,"accessor.get"))&&(A.get=a),(a=h(O.set,"accessor.set"))&&(A.set=a),(a=h(O.init,"accessor.init"))&&C.unshift(a);7373else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}74else h(O,(p?"field":"method")+" decorators","return")&&(p?A.unshift(O):C[j]=O)}75return n<2&&c.push(m(A,l,1),m(i,l,0)),p||b||(d?w?c.splice(-1,0,x("get",l),x("set",l)):c.push(P?C[j]:h.call.bind(C[j])):f(t,o,C)),O}74else h(O,(p?"field":"method")+" decorators","return")&&(p?C.unshift(O):A[j]=O)}75return n<2&&c.push(m(C,l,1),m(i,l,0)),p||b||(d?w?c.splice(-1,0,x("get",l),x("set",l)):c.push(P?A[j]:h.call.bind(A[j])):f(t,o,A)),O}7676function w(t){7777return f(t,_,{
18071807P>=0;18081808P-=r?2:1){1809var x=g[P],C=r?g[P-1]:void 0,A={1809var x=g[P],A=r?g[P-1]:void 0,C={18101810}18111811,j={
18131813if(t.v)throw Error("attempted to call addInitializer after decoration was finished");18141814c(e,"An initializer","be",!0),a.push(e)}1815.bind(null,A)}1815.bind(null,C)}18161816;18171817try{1818if(h)(v=c(x.call(C,E,j),"class decorators","return"))&&(E=v);1818if(h)(v=c(x.call(A,E,j),"class decorators","return"))&&(E=v);18191819else{18201820var O,k;
18311831}18321832;1833if(O&&(L.get=O),k&&(L.set=k),E=x.call(C,_?{1833if(O&&(L.get=O),k&&(L.set=k),E=x.call(A,_?{18341834get:b.get,set:b.set}18351835:b[S],j),_){
18391839}18401840finally{1841A.v=!0}1841C.v=!0}18421842}18431843return(u||_)&&l.push((function(t,e){
.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__grid-cont_indent { padding: 0; } .t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper, .t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container { .t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper, .t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container { box-sizing: border-box; } .t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper, .t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper, .t-catalog-parts-above__container:not( :has(.t-catalog__parts-above-single, .t-catalog__parts-above-single--mobile)116116}117117118.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single, .t-catalog__parts-above-single--mobile)118.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single, .t-catalog__parts-above-single--mobile)119119.t-catalog__parts-above-scroll-arrow--right {120120margin-right: 20px;121121}122122123.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single, .t-catalog__parts-above-single--mobile)123.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single, .t-catalog__parts-above-single--mobile)124124.t-catalog__parts-above-scroll-arrow--left {125125margin-left: 20px;
127127128128.t-catalog__grid-cont_mobile-one-row .t-catalog__stretch-col:first-child,129.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__parts-above-single .t-catalog__parts-above-item:first-child {129.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__parts-above-single .t-catalog__parts-above-item:first-child {130130margin-left: 20px;131131}132132133.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-container {133.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-container {134134max-width: unset;135135}
28742874/* snippet */287528752876body.t-catalog-product-template-page {2877min-height: 100vh;2878display: flex;2879flex-direction: column;2880}28812882body.t-catalog-product-template-page #allrecords {2883flex: 1 0 auto;2884}288528762886.t-catalog__prod-snippet__container {28772887padding-top: 120px;
29022912}290329132914.t-catalog .t-catalog__product-snippet .t-catalog__tabs.t-col[data-st-product-if='tabs'] {2915padding-left: 20px;2916padding-right: 20px;2917}291829042919.t-catalog__product-snippet .t-catalog__prod-popup__col-right,29052920.t-catalog__product-snippet .t-catalog__prod-popup__col-left {
import { t_catalog_productTemplate__updateEditionCharacteristics } from '../src/tilda-catalog/product-template/hydrate.ts'; // Expose for t_onFuncLoad from block templates (ST340 tile slider)9497// global variables declaration9598// TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)96// @ts-expect-error ST-2949_19799window.tCatalogIsSearchBot = /Bot/i.test(navigator.userAgent);98100// @ts-expect-error ST-2949_1
141143142144/**145* Инициализирует сниппет товара из общего шаблона на странице товара.146* Вызывается init-скриптом template с настройками блока из Smarty (tpl_catalog_setup_options.tpl);147* данные товара берутся из `script.js-catalog-product-init-data` в блоке.148*149* @param {string} recid150* @param {CatalogOptions} options151*/152function t_catalog_productTemplateInit(recid, options) {153t_onReady(function () {154t_catalog_productTemplate__initSnippet(recid, options);155});156}157158/**143159* Инициализация блоков с списком карточек товаров144160*
250266// @ts-expect-error ST-2949_3251267var el_store = rec.querySelector('.js-catalog');252var prodPopup = t_catalog_get_productPopup_html(recid, options);253if (el_store) {254el_store.insertAdjacentHTML('beforeend', prodPopup);268if (rec && !t_catalog_productTemplate__initPopupShell(rec, options)) {269var prodPopup = t_catalog_get_productPopup_html(recid, options);270if (el_store) {271el_store.insertAdjacentHTML('beforeend', prodPopup);272}255273}256274
13651383* @param {number} slice - the number of the slice to load13661384* @param {object} relevantsOpts1385* @param {HTMLElement} [relevantsOpts.container]13671386**/13681387function t_catalog_loadProducts(method, recid, options, slice, relevantsOpts) {
13841403if (!rec) return;13851404var gridContainer = showRelevants1386? rec.querySelector('.js-catalog-relevants-grid-cont')1405? (relevantsOpts && relevantsOpts.container) || rec.querySelector('.js-catalog-relevants-grid-cont')13871406: rec.querySelector('.js-catalog-grid-cont');13881407
14031422sort: relevantsOpts.relevantsSort,14041423};1405gridContainer = rec.querySelector('.t-catalog__relevants-grid-cont');1424gridContainer =1425(relevantsOpts && relevantsOpts.container) || rec.querySelector('.t-catalog__relevants-grid-cont');14061426if (gridContainer) {14071427// TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)
16671687// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)16681688// @ts-expect-error ST-2949_51669t_catalog_process(productsArr, recid, options, !!slice, showRelevants, obj);1689t_catalog_process(productsArr, recid, options, !!slice, showRelevants, obj, relevantsOpts);1670169016711691// TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)
padding:0}.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container,.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper{.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container,.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper{box-sizing:border-box}.t-catalog-parts-above__container:not(:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile)),.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper{.t-catalog-parts-above__container:not(:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile)),.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__filter-wrapper{padding:0 20px}.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile).t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile).t-catalog__parts-above-scroll-arrow--right{margin-right:20px}.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile).t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog-parts-above__container:has(.t-catalog__parts-above-single,.t-catalog__parts-above-single--mobile).t-catalog__parts-above-scroll-arrow--left{margin-left:20px}.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-catalog__parts-above-single .t-catalog__parts-above-item:first-child,.t-catalog__grid-cont_mobile-one-row .t-catalog__stretch-col:first-child{.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-catalog__parts-above-single .t-catalog__parts-above-item:first-child,.t-catalog__grid-cont_mobile-one-row .t-catalog__stretch-col:first-child{margin-left:20px}.t-catalog:has(.t-catalog__grid-cont_mobile-one-row) .t-container{.t-catalog:has(:where(.js-catalog-grid-cont).t-catalog__grid-cont_mobile-one-row) .t-container{max-width:unset}}20102010right:10px}20112011}2012body.t-catalog-product-template-page{2013display:-webkit-flex;2014display:-ms-flexbox;2015display:flex;2016-webkit-flex-direction:column;2017-ms-flex-direction:column;2018flex-direction:column;2019min-height:100vh}2020body.t-catalog-product-template-page #allrecords{2021-webkit-flex:1 0 auto;2022-ms-flex:1 0 auto;2023flex:1 0 auto}20122024.t-catalog__prod-snippet__container{20132025padding-bottom:120px;
20282040.t-catalog__product-snippet .t-container{20292041max-width:640px}2030.t-catalog__product-snippet .t-catalog__prod-popup__col-left,.t-catalog__product-snippet .t-catalog__prod-popup__col-right{2042.t-catalog .t-catalog__product-snippet .t-catalog__tabs.t-col[data-st-product-if=tabs],.t-catalog__product-snippet .t-catalog__prod-popup__col-left,.t-catalog__product-snippet .t-catalog__prod-popup__col-right{20312043padding-left:20px;20322044padding-right:20px}
return function(a,n){return r&&(n=a,a=t),o&&o(a),A[e].call(a,n)}return r&&(n=a,a=t),o&&o(a),x[e].call(a,n)}}if(!b){var A={var x={},P=[],k=S?"get":E||w?"set":"value";if(d?(u||w?A={,T=[],P=S?"get":E||w?"set":"value";if(d?(u||w?x={get:_setFunctionName((function(){return m(this)}4141e[4](this,t)}4242}43:A[k]=m,u||_setFunctionName(A[k],o,C?"":k)):u||(A=Object.getOwnPropertyDescriptor(t,o)),!u&&!d){44if((l=v[+s][o])&&7!=(l^a))throw Error("Decorating two elements with the same name ("+A[k].name+") is not supported yet");43:x[P]=m,u||_setFunctionName(x[P],o,C?"":P)):u||(x=Object.getOwnPropertyDescriptor(t,o)),!u&&!d){44if((l=v[+s][o])&&7!=(l^a))throw Error("Decorating two elements with the same name ("+x[P].name+") is not supported yet");4545v[+s][o]=a<3?1:a}4646}47for(var T=t,L=f.length-1;47for(var k=t,L=f.length-1;4848L>=0;4949L-=r?2:1){
5656.bind(null,I)}5757;58if(b)l=O.call(j,T,R),I.v=1,h(l,"class decorators","return")&&(T=l);58if(b)l=O.call(j,k,R),I.v=1,h(l,"class decorators","return")&&(k=l);5959else if(R.static=s,R.private=d,l=R.access={6060has:d?_.bind():function(t){
6262}6363,E||(l.get=d?C?function(t){64return p(t),A.value}65:x("get",0,p):function(t){64return p(t),x.value}65:A("get",0,p):function(t){6666return t[o]}67),C||S||(l.set=d?x("set",0,p):function(t,e){67),C||S||(l.set=d?A("set",0,p):function(t,e){6868t[o]=e}69),T=O.call(j,w?{70get:A.get,set:A.set}71:A[k],R),I.v=1,w){72if("object"==typeof T&&T)(l=h(T.get,"accessor.get"))&&(A.get=l),(l=h(T.set,"accessor.set"))&&(A.set=l),(l=h(T.init,"accessor.init"))&&P.unshift(l);73else if(void 0!==T)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}74else h(T,(u?"field":"method")+" decorators","return")&&(u?P.unshift(T):A[k]=T)}75return a<2&&c.push(y(P,s,1),y(n,s,0)),u||b||(d?w?c.splice(-1,0,x("get",s),x("set",s)):c.push(C?A[k]:h.call.bind(A[k])):g(t,o,A)),T}69),k=O.call(j,w?{70get:x.get,set:x.set}71:x[P],R),I.v=1,w){72if("object"==typeof k&&k)(l=h(k.get,"accessor.get"))&&(x.get=l),(l=h(k.set,"accessor.set"))&&(x.set=l),(l=h(k.init,"accessor.init"))&&T.unshift(l);73else if(void 0!==k)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}74else h(k,(u?"field":"method")+" decorators","return")&&(u?T.unshift(k):x[P]=k)}75return a<2&&c.push(y(T,s,1),y(n,s,0)),u||b||(d?w?c.splice(-1,0,A("get",s),A("set",s)):c.push(C?x[P]:h.call.bind(x[P])):g(t,o,x)),k}7676function w(t){7777return g(t,p,{
18071807C>=0;18081808C-=r?2:1){1809var x=m[C],A=r?m[C-1]:void 0,P={1809var A=m[C],x=r?m[C-1]:void 0,T={18101810}1811,k={1811,P={18121812kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:n,addInitializer:function(t,e){18131813if(t.v)throw Error("attempted to call addInitializer after decoration was finished");18141814c(e,"An initializer","be",!0),l.push(e)}1815.bind(null,P)}1815.bind(null,T)}18161816;18171817try{1818if(h)(v=c(x.call(A,E,k),"class decorators","return"))&&(E=v);1818if(h)(v=c(A.call(x,E,P),"class decorators","return"))&&(E=v);18191819else{1820var T,L;1821k.static=d,k.private=u,u?2===a?T=function(t){1820var k,L;1821P.static=d,P.private=u,u?2===a?k=function(t){18221822return f(t),b.value}1823:(a<4&&(T=i(b,"get",f)),3!==a&&(L=i(b,"set",f))):(T=function(t){1823:(a<4&&(k=i(b,"get",f)),3!==a&&(L=i(b,"set",f))):(k=function(t){18241824return t[o]}18251825,(a<2||4===a)&&(L=function(t,e){18261826t[o]=e}18271827));1828var O=k.access={1828var O=P.access={18291829has:u?g.bind():function(t){18301830return o in t}18311831}18321832;1833if(T&&(O.get=T),L&&(O.set=L),E=x.call(A,p?{1833if(k&&(O.get=k),L&&(O.set=L),E=A.call(x,p?{18341834get:b.get,set:b.set}1835:b[S],k),p){1835:b[S],P),p){18361836if("object"==typeof E&&E)(v=c(E.get,"accessor.get"))&&(b.get=v),(v=c(E.set,"accessor.set"))&&(b.set=v),(v=c(E.init,"accessor.init"))&&w.push(v);18371837else if(void 0!==E)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}
18391839}18401840finally{1841P.v=!0}1841T.v=!0}18421842}18431843return(_||p)&&s.push((function(t,e){
27992799var g=_.querySelector(".t-catalog__breadcrumbs");28002800if(g){2801var f,v=e.closest(".t-catalog__prod-snippet__container")||document.getElementById("rec"+t)||document,m=v.querySelector(".t-catalog__prod-popup__close-txt-wr .js-catalog-close-text[href]"),y=v.querySelector(".t-popup__close[href]"),h=getCatalogBaseHref(m,y),b=g.querySelectorAll('[data-breadcrumb-role="category"]'),w=b.length?b[b.length-1]:null,S,E,C,x;2801var f,v=e.closest(".t-catalog__prod-snippet__container")||document.getElementById("rec"+t)||document,m=v.querySelector(".t-catalog__prod-popup__close-txt-wr .js-catalog-close-text[href]"),y=v.querySelector(".t-popup__close[href]"),h=getCatalogBaseHref(m,y),b=g.querySelectorAll('[data-breadcrumb-role="category"]'),w=b.length?b[b.length-1]:null,S,E,C,A;28022802if(w){2803var A=w.getAttribute("data-breadcrumb-alias"),P=w.getAttribute("data-breadcrumb-uid"),k=h.includes("?")?"&":"?",T=A||P&&""+h+k+"tfc_storepartnav%5B"+t+"%5D="+P+"&tfc_div=:::"||h;2804setNewUrl(m,T),setNewUrl(y,T)}2803var x=w.getAttribute("data-breadcrumb-alias"),T=w.getAttribute("data-breadcrumb-uid"),P=h.includes("?")?"&":"?",k=x||T&&""+h+P+"tfc_storepartnav%5B"+t+"%5D="+T+"&tfc_div=:::"||h;2804setNewUrl(m,k),setNewUrl(y,k)}28052805g.querySelectorAll('[data-breadcrumb-action="home"]').forEach((function(t){28062806t.addEventListener("click",(function(t){
31293129var C=p.scrollWidth<=_;31303130if(E.remove(),b&&(b.style.display="",b.classList.remove("t-catalog__breadcrumbs-divider_hidden")),f(y),C&&y.length>0)return g(y),b&&(b.style.display="none",b.classList.add("t-catalog__breadcrumbs-divider_hidden")),void createOverflowElement(t,p,y,null,e,d)}3131var x=u[0];3132x&&v(x),g(u),createOverflowElement(t,p,u,null,e,d)}3131var A=u[0];3132A&&v(A),g(u),createOverflowElement(t,p,u,null,e,d)}31333133}31343134}
if(!i)return"";var u=new Date(i),c;if(isNaN(u.getTime()))return"";if(!i&&!a)return e(o,"dd.MM.yyyy",a,s,l);if("relative"===i)return n(u,s);var d=t(u,i,s,l),p=r(u,a,s,l);return i?a?d+" "+p:d:p}if(!o&&!a)return e(i,"dd.MM.yyyy",a,s,l);if("relative"===o)return n(u,s);var d=t(u,o,s,l),p=r(u,a,s,l);return o?a?d+" "+p:d:p}function t(e,t,r,n){return t?"auto"===t?new Intl.DateTimeFormat(r,{dateStyle:"long",timeZone:n}).format(e):i(e,t,r,n):""}).format(e):o(e,t,r,n):""}function r(e,t,r,n){return t?"auto"===t?new Intl.DateTimeFormat(r,{timeStyle:"short",timeZone:n}).format(e):i(e,t,r,n):""}).format(e):o(e,t,r,n):""}function n(e,t){var r=new Intl.RelativeTimeFormat(t,{numeric:"auto"}),n=Math.round((e.getTime()-Date.now())/1e3),o=Math.abs(n);if(o<60)return r.format(n,"second");if(o<3600)return r.format(Math.round(n/60),"minute");if(o<86400)return r.format(Math.round(n/3600),"hour");var i=Math.round(n/86400),a=Math.abs(i);return a<7?r.format(i,"day"):a<30?r.format(Math.round(i/7),"week"):a<365?r.format(Math.round(i/30),"month"):r.format(Math.round(i/365),"year")}function o(e){),n=Math.round((e.getTime()-Date.now())/1e3),i=Math.abs(n);if(i<60)return r.format(n,"second");if(i<3600)return r.format(Math.round(n/60),"minute");if(i<86400)return r.format(Math.round(n/3600),"hour");var o=Math.round(n/86400),a=Math.abs(o);return a<7?r.format(o,"day"):a<30?r.format(Math.round(o/7),"week"):a<365?r.format(Math.round(o/30),"month"):r.format(Math.round(o/365),"year")}function i(e){for(var t=[],r=0;r<e.length;3131var n=e[r];3232if("'"!==n)if(n>="a"&&n<="z"||n>="A"&&n<="Z"){33for(var o=r+1;34o<e.length&&e[o]===n;35)o++;33for(var i=r+1;34i<e.length&&e[i]===n;35)i++;3636t.push({37literal:!1,value:e.slice(r,o)}38),r=o}37literal:!1,value:e.slice(r,i)}38),r=i}3939else t.push({4040literal:!0,value:n}
4646),r+=2;4747continue}48for(var i=r+1,a="";49i<e.length;50)if("'"===e[i]){51if("'"!==e[i+1])break;52a+="'",i+=2}53else a+=e[i],i++;48for(var o=r+1,a="";49o<e.length;50)if("'"===e[o]){51if("'"!==e[o+1])break;52a+="'",o+=2}53else a+=e[o],o++;5454t.push({5555literal:!0,value:a}56),r=i<e.length?i+1:i}56),r=o<e.length?o+1:o}5757}5858return t}59function i(e,t,r,n){60return o(t).map((function(t){59function o(e,t,r,n){60return i(t).map((function(t){6161return t.literal?t.value:a(e,t.value,r,n)}6262)).join("")}6363function a(e,t,r,n){64var o,i,a={64var i,o,a={6565timeZone:n}6666,s,l;
131131break;132132default:return t}133return null!=(o=null==(i=new Intl.DateTimeFormat(r,a).formatToParts(e).find((function(e){133return null!=(i=null==(o=new Intl.DateTimeFormat(r,a).formatToParts(e).find((function(e){134134return e.type===s}135)))?void 0:i.value)?o:""}135)))?void 0:o.value)?i:""}136136var s=["href","target","src","data-original","style","content","aria-label","aria-controls","itemscope","itemtype","id","data-img-zoom-url","data-slide-bullet-for","data-slide-index","data-slide-caption","data-videolazy-type","data-videolazy-id","data-blocklazy-id","data-videolazy-hash"];137137function l(){
162162if("source"in e)return n(e.source)}163163return""}164var o,i=e.split("@").splice(1),a=i[0];164var i,o=e.split("@").splice(1),a=o[0];165165if(a in r){166166var s=n(t),l=r[a](s);167return f(i.join("@"),l)}167return f(o.join("@"),l)}168168if(a){169if("string"==typeof t)return f(i.join("@"),t);169if("string"==typeof t)return f(o.join("@"),t);170170if(Array.isArray(t))return f(e,t[0]);171171if(t&&a in t){172172var u=t[a];173return f(i.join("@"),u)}173return f(o.join("@"),u)}174174return""}175175return n(t)}
206206))}207207function v(e,t,r){208for(var n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=[],i=n.nextNode();209i;210)o.push(i),i=n.nextNode();211o.forEach((function(e){212var n,o;208for(var n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[],o=n.nextNode();209o;210)i.push(o),o=n.nextNode();211i.forEach((function(e){212var n,i;213213if(e.nodeValue&&t.test(e.nodeValue)){214214t.lastIndex=0;215for(var i=e.nodeValue,a=document.createDocumentFragment(),s=0,l=Boolean(null==(n=e.parentElement)?void 0:n.closest("code")),u=new RegExp(t.source,t.flags.includes("g")?t.flags:t.flags+"g"),c;216null!==(c=u.exec(i));215for(var o=e.nodeValue,a=document.createDocumentFragment(),s=0,l=Boolean(null==(n=e.parentElement)?void 0:n.closest("code")),u=new RegExp(t.source,t.flags.includes("g")?t.flags:t.flags+"g"),c;216null!==(c=u.exec(o));217217){218c.index>s&&a.appendChild(document.createTextNode(i.substring(s,c.index)));218c.index>s&&a.appendChild(document.createTextNode(o.substring(s,c.index)));219219var d=r(c[1]);220220if(l)a.appendChild(document.createTextNode(d));
223223p.innerHTML=d,a.appendChild(p.content)}224224s=u.lastIndex}225s<i.length&&a.appendChild(document.createTextNode(i.substring(s))),null==(o=e.parentNode)||o.replaceChild(a,e)}225s<o.length&&a.appendChild(document.createTextNode(o.substring(s))),null==(i=e.parentNode)||i.replaceChild(a,e)}226226}227227));228228var a=function e(n){229229n instanceof Element&&s.forEach((function(e){230var o=n.getAttribute(e);231if(o){232var i=o.replace(t,(function(e,t){230var i=n.getAttribute(e);231if(i){232var o=i.replace(t,(function(e,t){233233return r(t)}234234));235i!==o&&n.setAttribute(e,i)}235o!==i&&n.setAttribute(e,o)}236236}237237))}
264264)(?:\/(?:-\/((?:[^\/]+\/)+))?)?([^\/]*)/i,n=e.match(t);265265if(null==n||!n[1]||null==n||!n[2])return e;266var o=n[1],i=n[2],a=e.indexOf("lib/"),s;266var i=n[1],o=n[2],a=e.indexOf("lib/"),s;267267if(-1!==a){268268var u=e.indexOf("/",a+4);269-1!==u&&(o=e.substring(a,u+1)+o)}270if("-"===i){269-1!==u&&(i=e.substring(a,u+1)+i)}270if("-"===o){271271var c=e.match(r);272272if(null==c||!c[3])return e;273i=c[3]}274return"https://thb.tildacdn."+l()+"/"+o+"/-/resizeb/20x/"+i}273o=c[3]}274return"https://thb.tildacdn."+l()+"/"+i+"/-/resizeb/20x/"+o}275275function g(e){276276var t=new Map([["=","_"],["/","."],["+","-"]]),r,n=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{
* @property {number} activeStepIndex13091312var nextStepIndex;13101313var prevStepIndex;1311var conditionalFields = t_form__conditionals_initFields(recId, ignoredInputs);1314var formContainer = config.formContainer || recId;1315var conditionalFields = null;1316if (config.listenFields === false) {1317t_form__conditionals_syncFields(formContainer, {1318shouldPreventSubmit: false,1319ignoredInputGroups: ignoredInputs,1320});1321} else {1322conditionalFields = t_form__conditionals_initFields(formContainer, ignoredInputs);1323}13121324syncSteps();13131325
13791391}138013921381conditionalFields.addListeners(function () {1382syncSteps();1383onConditionalFieldChange(getFormState());1384});1393if (conditionalFields) {1394conditionalFields.addListeners(function () {1395syncSteps();1396onConditionalFieldChange(getFormState());1397});1398}1385139913861400return {
function p(){return{nextStepIndex:_,prevStepIndex:d,activePossibleStepIndex:l,totalActiveStepsCount:u.length}}function p(t){c=r[a=t],l=u.indexOf(c),_=y(),d=h()}function m(){function m(t){c=r[a=t],l=u.indexOf(c),_=h(),d=g()}function v(){r.forEach((function(t){v(t)||(t_form__conditionals_isStepEmpty(t)?t.classList.add("t-form__hidden-by-condition"):t.classList.contains("t-form__hidden-by-condition")&&t.classList.remove("t-form__hidden-by-condition"))}y(t)||(t_form__conditionals_isStepEmpty(t)?t.classList.add("t-form__hidden-by-condition"):t.classList.contains("t-form__hidden-by-condition")&&t.classList.remove("t-form__hidden-by-condition"))})),u=r.filter((function(t){return!t.classList.contains("t-form__hidden-by-condition")})),l=u.indexOf(c),_=y(),d=h()}function v(t){)),l=u.indexOf(c),_=h(),d=g()}function y(t){return!(!n||!n.length)&&t.matches(n.join(","))}function y(){function h(){var t=Math.min(l+1,r.length-1),n=u[t];return r.indexOf(n)}function h(){function g(){var t=Math.max(l-1,0),n=u[t];return r.indexOf(n)}return m(),s.addListeners((function(){m(),i(f())}return!1===t.listenFields?t_form__conditionals_syncFields(s,{shouldPreventSubmit:!1,ignoredInputGroups:e}):f=t_form__conditionals_initFields(s,e),v(),f&&f.addListeners((function(){v(),i(p())})),{getState:f,onStepChange:p}getState:p,onStepChange:m}}function t_form__conditionals_isStepEmpty(t){ /* Перекрывает стили для полей в один ряд. Добавляется лишний стиль для внутреннего инпута способа связи */.t-form__inputsbox_inrow .t-contact-method__value-container .t-input-block.t-input-block { if (shouldInitPhoneInput) { // Загружаем скрипт для работы маски телефона t_onFuncLoad('t_loadJsFile', () => { t_loadJsFile('https://static.tildacdn.' + t_contactMethod__getRootZone() + '/js/tilda-phone-mask-1.1.min.js', function () { t_onFuncLoad('t_form_phonemask__mulitple__load', function () { const phoneMasks = inputGroup.querySelectorAll(`[data-phonemask-lid="${lid}"]`); t_form_phonemask__mulitple__load(phoneMasks); }); }); t_contactMethod__loadPhoneMask().then(() => { const phoneMasks = inputGroup.querySelectorAll(`[data-phonemask-lid="${lid}"]`); window.t_form_phonemask__mulitple__load(phoneMasks); }); // Скрываем контейнер с полями, пока загружается скрипт. t_contactMethod__hide(valueInputContainer); // Прячем через visibility, чтобы поле не меняло высоту формы valueInputContainer.classList.add('t-contact-method__loading'); // Блокируем радио кнопки. radioInputs.forEach(input => t_contactMethod__disable(input));64616562// Показываем контейнер с полями.66t_contactMethod__show(valueInputContainer);63valueInputContainer.classList.remove('t-contact-method__loading');6764radioInputs.forEach(input => {6865// Разблокируем радио кнопки.
123120const { contactMethod, silent } = options;124121const valueGroup = t_contactMethod__getValueGroup(inputGroup, contactMethod);125if (t_contactMethod__isHidden(valueGroup)) return;126127122const { valueHolder, isoHolder, maskHolder } = t_contactMethod__getPhoneInputElements(valueGroup);128123const usernameInput = t_contactMethod__getInputElement(valueGroup, 'text');129124130t_contactMethod__resetInputValue(valueGroup, 'text', { silent });131t_contactMethod__resetInputValue(valueGroup, 'phone', { silent });125// Группа может быть скрыта заранее (например, зеро-форма рендерит начальное состояние поля),126// но поля маски телефона в ней создаются позже и их все равно нужно отключить127if (!t_contactMethod__isHidden(valueGroup)) {128t_contactMethod__resetInputValue(valueGroup, 'text', { silent });129t_contactMethod__resetInputValue(valueGroup, 'phone', { silent });130t_contactMethod__hide(valueGroup);131}132132133t_contactMethod__hide(valueGroup);134133t_contactMethod__disable(usernameInput);135134t_contactMethod__disable(valueHolder);
254253if (isEmptyValue && !isCurrentInputText) {255254showValueGroupInput({ inputType: 'text', autoFocus: true, group });256return;257255}258256}
263261// #region Utilities264262/**263* Возвращает блок, в котором находится поле.264* В редакторе Zero Block нет обертки #rec, блоком является .tn-artboard с data-record-id.265* @param {string} recId266* @returns {Element | null}267*/268function t_contactMethod__getRec(recId) {269const rec = document.getElementById(`rec${recId}`);270if (rec) return rec;271272if (window.tildamode === 'zero') {273return document.querySelector(`.tn-artboard[data-record-id="${recId}"]`);274}275276return null;277}278279/**280* Ждет, пока на странице появится функция.281* В редакторе Zero Block нет tilda-scripts (t_onFuncLoad), поэтому ждем функцию самостоятельно.282* @param {string} funcName283* @returns {Promise<void>}284*/285function t_contactMethod__waitForFunc(funcName) {286return new Promise((resolve, reject) => {287if (typeof window.t_onFuncLoad === 'function') {288t_onFuncLoad(funcName, resolve);289return;290}291292if (typeof window[funcName] === 'function') {293resolve();294return;295}296297const MAX_WAITING_TIME = 15000;298const startTime = Date.now();299const intervalId = setInterval(() => {300if (typeof window[funcName] === 'function') {301clearInterval(intervalId);302resolve();303} else if (Date.now() - startTime > MAX_WAITING_TIME) {304clearInterval(intervalId);305reject(new Error(`${funcName} is undefined`));306}307}, 100);308});309}310311/**312* Загружает скрипт маски телефона. Промис резолвится, когда маска готова к работе.313* Если на странице нет t_loadJsFile (редактор Zero Block), скрипт маски должен подключить тот, кто инициализирует поле.314* @returns {Promise<void>}315*/316async function t_contactMethod__loadPhoneMask() {317if (typeof window.t_onFuncLoad === 'function') {318await t_contactMethod__waitForFunc('t_loadJsFile');319const src = 'https://static.tildacdn.' + t_contactMethod__getRootZone() + '/js/tilda-phone-mask-1.1.min.js';320await new Promise(resolve => window.t_loadJsFile(src, resolve));321}322323await t_contactMethod__waitForFunc('t_form_phonemask__mulitple__load');324}325326/**265327* @param {Element} valueGroup266328*/
446508447509const lang = t_contactMethod__getLang() || 'EN';448449return dict[key][lang];510511// Для языков без перевода используем английский, иначе в плейсхолдер попадает undefined512return dict[key][lang] || dict[key].EN;450513}451514452515function t_contactMethod__getLang() {453const allrecords = document.getElementById('allrecords');454const projectLang = allrecords.getAttribute('data-tilda-project-lang');455516const projectLang = t_contactMethod__getProjectLang();517456518if (projectLang) {457return projectLang;519return projectLang.toUpperCase();458520}459521
463525464526/**527* Возвращает язык проекта, чтобы переводы в редакторах совпадали с опубликованной страницей.528* В редакторе Zero Block нет #allrecords, язык проекта лежит в window.site_lang.529* @returns {string}530*/531function t_contactMethod__getProjectLang() {532const allrecords = document.getElementById('allrecords');533if (allrecords) return allrecords.getAttribute('data-tilda-project-lang') || '';534535if (window.tildamode === 'zero') return window.site_lang || '';536537return '';538}539540/**465541*466542* @param {ContactMethod} contactMethod
var c=a[0];if(c){var _=n.querySelector(".t-contact-method__value-container"),r=n.querySelectorAll('.t-contact-method__type input[type="radio"]'),u=Array.from(r).map((function(t){var r=n.querySelector(".t-contact-method__value-container"),_=n.querySelectorAll('.t-contact-method__type input[type="radio"]'),i=Array.from(_).map((function(t){return t.value})),d,i;if(u.some((function(t){)),d,u;if(i.some((function(t){return["phone","telegram","whatsapp","viber"].includes(t)})))t_onFuncLoad("t_loadJsFile",(function(){t_loadJsFile("https://static.tildacdn."+t_contactMethod__getRootZone()+"/js/tilda-phone-mask-1.1.min.js",(function(){t_onFuncLoad("t_form_phonemask__mulitple__load",(function(){)))t_contactMethod__loadPhoneMask().then((function(){var t=n.querySelectorAll('[data-phonemask-lid="'+e+'"]');t_form_phonemask__mulitple__load(t)}))}))})),t_contactMethod__hide(_),r.forEach((function(t){window.t_form_phonemask__mulitple__load(t)})),r.classList.add("t-contact-method__loading"),_.forEach((function(t){return t_contactMethod__disable(t)})),"yes"===n.getAttribute("data-init-mask")?l():n.addEventListener("phoneMaskReady",(function(){3026}3127function l(){32s(c.getAttribute("data-method-type")),t_contactMethod__show(_),r.forEach((function(t){28s(c.getAttribute("data-method-type")),r.classList.remove("t-contact-method__loading"),_.forEach((function(t){3329t_contactMethod__enable(t),t.addEventListener("change",(function(){3430s(t.value)}
4137}4238).silent,a=void 0!==n&&n;43u.forEach((function(e){39i.forEach((function(e){4440e===t?h({4541contactMethod:e}
5450),t_contactMethod__isHybridValueGroup(o)&&M(o)}5551function p(t){56var e=t.contactMethod,o=t.silent,a=t_contactMethod__getValueGroup(n,e);57if(!t_contactMethod__isHidden(a)){58var c=t_contactMethod__getPhoneInputElements(a),_=c.valueHolder,r=c.isoHolder,u=c.maskHolder,d=t_contactMethod__getInputElement(a,"text");59t_contactMethod__resetInputValue(a,"text",{52var e=t.contactMethod,o=t.silent,a=t_contactMethod__getValueGroup(n,e),c=t_contactMethod__getPhoneInputElements(a),r=c.valueHolder,_=c.isoHolder,i=c.maskHolder,d=t_contactMethod__getInputElement(a,"text");53t_contactMethod__isHidden(a)||(t_contactMethod__resetInputValue(a,"text",{6054silent:o}6155),t_contactMethod__resetInputValue(a,"phone",{6256silent:o}63),t_contactMethod__hide(a),t_contactMethod__disable(d),t_contactMethod__disable(_),t_contactMethod__disable(r),t_contactMethod__disable(u)}64}57),t_contactMethod__hide(a)),t_contactMethod__disable(d),t_contactMethod__disable(r),t_contactMethod__disable(_),t_contactMethod__disable(i)}6558function m(t){66var e=t.group,o=t.inputType,n=t.autoFocus,a=void 0!==n&&n,c=e.querySelector(".t-input-phonemask__wrap"),_=t_contactMethod__getPhoneInputElements(c),r=_.valueHolder,u=_.maskHolder,d=_.isoHolder,i=t_contactMethod__getInputElement(e,"phone"),l=t_contactMethod__getInputElement(e,"text"),s=i?i.closest(".t-input-block"):null,h=l?l.closest(".t-input-block"):null;67return"phone"===o&&i?(t_contactMethod__hide(h),t_contactMethod__disable(l),t_contactMethod__show(s),t_contactMethod__enable(r),t_contactMethod__enable(d),t_contactMethod__enable(u),a&&i.focus(),{68wrapper:c,input:i}69):"text"===o&&l?(t_contactMethod__hide(s),t_contactMethod__disable(r),t_contactMethod__disable(d),t_contactMethod__disable(u),t_contactMethod__show(h),t_contactMethod__enable(l),a&&l.focus(),{59var e=t.group,o=t.inputType,n=t.autoFocus,a=void 0!==n&&n,c=e.querySelector(".t-input-phonemask__wrap"),r=t_contactMethod__getPhoneInputElements(c),_=r.valueHolder,i=r.maskHolder,d=r.isoHolder,u=t_contactMethod__getInputElement(e,"phone"),l=t_contactMethod__getInputElement(e,"text"),s=u?u.closest(".t-input-block"):null,h=l?l.closest(".t-input-block"):null;60return"phone"===o&&u?(t_contactMethod__hide(h),t_contactMethod__disable(l),t_contactMethod__show(s),t_contactMethod__enable(_),t_contactMethod__enable(d),t_contactMethod__enable(i),a&&u.focus(),{61wrapper:c,input:u}62):"text"===o&&l?(t_contactMethod__hide(s),t_contactMethod__disable(_),t_contactMethod__disable(d),t_contactMethod__disable(i),t_contactMethod__show(h),t_contactMethod__enable(l),a&&l.focus(),{7063input:l}7164):void 0}7265function f(){7366var t=c.getAttribute("data-method-type"),e,o;74r.forEach((function(e){67_.forEach((function(e){7568e.value===t&&(e.checked=!0,s(t,{7669silent:!0}
9285}9386function v(t,e){94var o=e.target.value,n,a=/^[+0-9]/.test(o),c=""===o,_=e.target.classList.contains("js-username-input");95if(a&&_)return t_contactMethod__resetInputValue(t,"text"),void m({87var o=e.target.value,n,a=/^[+0-9]/.test(o),c=""===o,r=e.target.classList.contains("js-username-input");88if(a&&r)return t_contactMethod__resetInputValue(t,"text"),void m({9689inputType:"phone",autoFocus:!0,group:t}9790);98!c||_||m({91c&&!r&&m({9992inputType:"text",autoFocus:!0,group:t}10093)}10194}95function t_contactMethod__getRec(t){96var e=document.getElementById("rec"+t);97return e||("zero"===window.tildamode?document.querySelector('.tn-artboard[data-record-id="'+t+'"]'):null)}98function t_contactMethod__waitForFunc(t){99return new Promise((function(e,o){100if("function"!=typeof window.t_onFuncLoad)if("function"!=typeof window[t])var n=15e3,a=Date.now(),c=setInterval((function(){101"function"==typeof window[t]?(clearInterval(c),e()):Date.now()-a>n&&(clearInterval(c),o(new Error(t+" is undefined")))}102),100);103else e();104else t_onFuncLoad(t,e)}105))}106var t_contactMethod__loadPhoneMask=function t(){107try{108function e(){109return Promise.resolve(t_contactMethod__waitForFunc("t_form_phonemask__mulitple__load")).then((function(){110}111))}112var o=function(){113if("function"==typeof window.t_onFuncLoad)return Promise.resolve(t_contactMethod__waitForFunc("t_loadJsFile")).then((function(){114var t="https://static.tildacdn."+t_contactMethod__getRootZone()+"/js/tilda-phone-mask-1.1.min.js";115return Promise.resolve(new Promise((function(e){116return window.t_loadJsFile(t,e)}117))).then((function(){118}119))}120))}121();122return Promise.resolve(o&&o.then?o.then(e):e(o))}123catch(n){124return Promise.reject(n)}125}126;102127function t_contactMethod__isHybridValueGroup(t){103128if(t)return t.classList.contains("t-contact-method__hybrid")}
105130var n,a=(o||{106131}107).silent,c=void 0!==a&&a,_=t_contactMethod__getInputElement(t,e);108if(_){109var r=_.value,u="";110_.value=u,_.classList.remove("t-input_has-content"),r===u||c||_.dispatchEvent(new Event("change",{132).silent,c=void 0!==a&&a,r=t_contactMethod__getInputElement(t,e);133if(r){134var _=r.value,i="";135r.value=i,r.classList.remove("t-input_has-content"),_===i||c||r.dispatchEvent(new Event("change",{111136bubbles:!0}112137))}
163188if(!e[t])return t;164189var o=t_contactMethod__getLang()||"EN";165return e[t][o]}190return e[t][o]||e[t].EN}166191function t_contactMethod__getLang(){167var t,e=document.getElementById("allrecords").getAttribute("data-tilda-project-lang"),o;168return e||(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2)}192var t=t_contactMethod__getProjectLang(),e;193return t?t.toUpperCase():(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2)}194function t_contactMethod__getProjectLang(){195var t=document.getElementById("allrecords");196return t?t.getAttribute("data-tilda-project-lang")||"":"zero"===window.tildamode&&window.site_lang||""}169197function t_contactMethod__getPlaceholder(t){170198return"telegram"===t?t_contactMethod__tranlsate("username_or_phone"):"vk"===t||"fb_messenger"===t?t_contactMethod__tranlsate("username_id_or_link"):"skype"===t?t_contactMethod__tranlsate("username_email_or_phone"):"max_messenger"===t?t_contactMethod__tranlsate("link_or_phone"):void 0}