styles.form_horizontal_deviation ||
2713 styles.form_vertical_deviation || 2714 styles.form_width_px || 2715 styles.form_radius || 2716 styles.form_shadow_color || 2717 styles.form_shadow_opacity 2719 textStyle += '.tlk-form__container-wrap {\n'; 2720 if (styles.form_width_px) { 2721 textStyle += ` max-width: ${styles.form_width_px};\n`; 2723 if (styles.form_horizontal_deviation) { 2724 var horizontalDeviation = styles.form_horizontal_deviation; 2726 if (horizontalDeviation.indexOf('-') !== -1) { 2727 var arrMargin = horizontalDeviation.split('px'); 2729 textStyle += ` margin-right: ${Math.abs(arrMargin[0])}px;\n`; 2731 textStyle += ` margin-left: ${horizontalDeviation};\n`; 2734 if (styles.form_vertical_deviation) { 2735 var verticalDeviation = styles.form_vertical_deviation; 2737 if (verticalDeviation.indexOf('-') !== -1) { 2738 var arrMargin = verticalDeviation.split('px'); 2740 textStyle += ` margin-bottom: ${Math.abs(arrMargin[0])}px;\n`; 2742 textStyle += ` margin-top: ${verticalDeviation};\n`; 2745 if (styles.form_radius) { 2746 textStyle += ` border-radius: ${styles.form_radius};\n`; 2748 if (styles.form_shadow_color || styles.form_shadow_opacity) { 2749 var shadowColor = styles.form_shadow_color 2750 ? `${tma__sign__hexToRgb(styles.form_shadow_color).join(', ')}, ` 2752 var shadowOpacity = tma__sign__getOpacity(styles.form_shadow_opacity); 2754 textStyle += ` box-shadow: 0 0 10px 0 rgba(${shadowColor}${shadowOpacity});\n`; 2755 textStyle += ` -webkit-box-shadow: 0 0 10px 0 rgba(${shadowColor}${shadowOpacity});\n`; 2760 if (styles.form_in_align && styles.form_in_align !== 'center') { 2761 textStyle += '.tlk-form__title, \n'; 2762 textStyle += '.tlk-form__descr, \n'; 2763 textStyle += '.tlk-form__sup-text, \n'; 2764 textStyle += '.tlk-form__sub-text, \n'; 2765 textStyle += '.tlk-form__one-code, \n'; 2766 textStyle += '.tlk-form__submit-wrap {\n'; 2767 textStyle += ` text-align: ${styles.form_in_align};\n`; 2769 textStyle += '.tlk-form__image, \n'; 2770 textStyle += '.tlk-form__one-code-form, \n'; 2771 textStyle += '.tlk-form__wrap-links {\n'; 2773 if (styles.form_in_align === 'left') { 2774 textStyle += tma__sign__getJustifyContent('flex-start'); 2776 textStyle += tma__sign__getJustifyContent('flex-end'); 2780 textStyle += '.tlk-form__link {\n'; 2781 textStyle += ' padding: 0px'; 2783 textStyle += '.tlk-form__link + .tlk-form__link {\n'; 2784 textStyle += ' margin-left: 16px'; 2786 textStyle += '.tlk-form__one-code-timer {\n'; 2787 if (styles.form_in_align === 'left') { 2788 textStyle += ' margin-left: 0px'; 2790 textStyle += ' margin-right: 0px'; 2795 if (formStyle === 'column2' && styles.widthColumn) { 2796 textStyle += '.tlk-form_column-2 .tlk-form__container-wrap {\n'; 2797 if (styles.sideForm === 'sideRight') { 2798 textStyle += ` max-width: ${100 - Number(styles.widthColumn)}%;\n`; 2800 textStyle += ` max-width: ${styles.widthColumn}%;\n`;