import { ElementRef, EventEmitter, OnInit } from '@angular/core'; import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb'; import { NzDrawerPlacement } from 'ng-zorro-antd/drawer'; import { FunctionService } from 'vhobjects-service/src/services'; import { HttpClient } from '@angular/common/http'; import * as i0 from "@angular/core"; export declare class AtwVideoConfig implements OnInit { vhQueryAutoWeb: VhQueryAutoWeb; private vhEventMediator; functionService: FunctionService; private http; isVisible: boolean; isCollapsed: boolean; value: boolean; srcInput: any; placement: NzDrawerPlacement; isOpenOptionsBorder: boolean; isViewAll: boolean; device: any; myInput: ElementRef; visibleConfigVideo: boolean; config: any; type: any; objectChoosing: any; update: EventEmitter; class: any; staticdata: any; closeConfigTool: EventEmitter; initialValueBorder: string; currentViewAll: any; dataBorder: { name: string; img_border: string; points: string; }[]; styles_field: { title: string; index: number; }[]; placeHolder: string; constructor(vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, functionService: FunctionService, http: HttpClient); ngOnInit(): void; ngOnChanges(): void; updateClass(): void; SetDisplaySetting(value: any, type: string): void; setLoop(value: any, type: string): void; setMute(value: any, type: string): void; setAutoplay(value: any, type: string, noUpdate?: any): void; getYouTubeVideoID(url: string): string; /** * Cập nhật staticdata vào database. */ updateStaticData(): void; getLink(link: any): void; /** * Hàm này sẽ lấy link youtube mà người dùng nhúng vào * @param link */ private getLinkYoutube; /** * Hàm này sẽ lấy link tiktok mà người dùng nhúng vào */ private getLinkTiktok; /** * Xử lý trích xuất ID từ URL Web (dùng Regex) */ private extractIdFromWebUrl; /** * Xử lý link rút gọn từ App (Cần gọi qua một proxy/backend) */ private handleAppShortLink; /** * Tạo link tiktok để gán vào staticdata */ private updateTiktokSrc; getLinkFacebook(input: string): void; /** * Hàm cốt lõi: Biến đổi mọi loại chuỗi Instagram thành Link Embed an toàn * @param input Chuỗi link gốc hoặc đoạn mã Blockquote bài viết */ getLinkInstagram(input: string): void; /** * Hàm này dùng để mở rộng phần cấu hình. * @param field_text : trả về phần tử được chọn của mảng style_field */ openViewAll(field_text: any): void; showModal(): void; handleOk(): void; handleCancel(): void; /** * Hàm này dùng để cho phép mở menu config . * Khi mở ở vị trí menu[0] thì các menu khác (menu[n]) đóng lại. * @param: value */ openMap: { [name: string]: boolean; }; openHandler(value: string): void; /** * hàm này nhận sk thay đổi width height từ component app-width-height-config truyền về * @param event width hieght của element sau khi thay đổi */ changeWidthHeight(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }