Это первая доступная в Git версия файла.
1/* exported tmst__formatPrice */2/* exported tmst__createPaymentStatusHtml */3/* exported tmst__scrollToTop */4/* exported tmst__scrollToElement */5/* exported tmst__formatDate */6/* exported tmst__checkCartEl */7/* exported tmst__installCart */8/* exported tmst__addProductToCart */9/* exported tmst__addProductsToCart */10/* exported tmst__openCart */11/* exported tmst__createBreadcrumbsEl */12
/* exported tmst__pagination__createElement *//* exported tmst__createErrorMessageElement *//* exported tmst__showPreloader *//* exported tmst__hidePreloader *//* exported tmst__setCssVariable *//* exported tmst__getCSSVariable *//* exported tmst__createProductImagesHtml *//* exported tmst__createProductDetailHtml *//* exported tmst__addHeaderFooter *//* exported tmst__applyStyles *//* exported tmst__initCopyElements *//* exported tmst__createCopyIconHtml *//* exported tmst__addBgIfNeeded *//** * @typedef {import('./tilda-members-store-orders').OrderStatus} OrderStatus * @typedef {import('./tilda-members-store-orders').OrderPayStatus} OrderPayStatus * @typedef {import('./tilda-members-store-orders').ErrorMessageKey} ErrorMessageKey * @typedef {import('./tilda-members-store-orders').ErrorIconType} ErrorIconType *//** * @typedef {Object} Product * @property {number} uid - ID товара * @property {string} title - Название товара * @property {string} sku - Артикул товара * @property {string} portion - Количество единиц товара * @property {string} unit - Единица измерения * @property {'y'} single - Весовой или нарезной товар * @property {string} url - ссылка на продукт * @property {ProductOption[]} options - Дополнительные опции товара * @property {string} image - URL изображения товара * @property {string} price - Цена за единицу товара * @property {string} [lid] - lid товара * @property {string} [recid] - recid товара * @property {string} [available_quantity] - Количество товара, которое осталось в заказе * @property {number} [parent_uid] - ID - родитель для вариантов (может отсутствовать) * @property {string} [part_uids] * @property {string} [pack_label] * @property {string} [pack_x] * @property {string} [pack_y] * @property {string} [pack_z] * @property {string} [pack_m] * @property {string} [productuid] * *//** * @typedef CartProduct * @property {string} name * @property {number} price * @property {string} img * @property {string} recid * @property {string} lid * @property {string} pack_label * @property {string} pack_m * @property {string} pack_x * @property {string} pack_y * @property {string} pack_z * @property {string} part_uids * @property {string} [gen_uid] * @property {string} productUrl * @property {ProductOption[]} options * @property {string} sku * @property {string} uid * @property {string} inv * @property {string} unit * @property {string} portion * @property {string} single *//** * @typedef {Object} ProductOption * @property {string} option * @property {string} variant * @property {number} [price] *//** * @typedef {Object} FetchParams * @property {Object<string, string|number>} [queryParams] - Параметры запроса * @property {Object<string, string|number|Object>} [body] - Тело запроса * @property {'POST'|'GET'|'PUT'|'DELETE'|'PATCH'} [method] - Тело запроса *//** * @typedef {Object} CartResp * @property {string} cart_html * @property {string} formskey