import { Component, HostListener, Input, ViewChild } from '@angular/core';
import BaseSection from '../BaseSection';
import { SimpoComponentModule } from '../../components/index';
import { OrderedItems } from '../../ecommerce/styles/OrderedItems.modal';
import { MessageService } from 'primeng/api';
import { CommonModule } from '@angular/common';
import { SimpoElementsModule } from '../../elements/index';
import { AnimationDirective } from '../../directive/animation-directive';
import { BackgroundDirective } from '../../directive/background-directive';
import { ContentFitDirective } from '../../directive/content-fit-directive';
import { BorderDirective } from '../../directive/border-directive';
import { ColumnDirectiveDirective } from '../../directive/column-directive.directive';
import { CornerDirective } from '../../directive/corner-directive';
import { HoverDirective } from '../../directive/hover-element-directive';
import { OverlayDirective } from '../../directive/overlay-directive';
import { ContentTitleDirective } from '../../directive/content-title-spacing.directive';
import { TextEditorComponent } from '../../elements/text-editor/text-editor.component';
import { SpacingHorizontalDirective } from '../../directive/spacing-horizontal.directive';
import { VideoDirectiveDirective } from '../../directive/video-directive.directive';
import { MatIcon } from '@angular/material/icon';
import { VideoShowcaseComponent } from '../video-showcase/video-showcase.component';
import { ImageDirectiveDirective } from './../../directive/image-directive.directive';
import { ImageEditorDirective } from '../../directive/image-editor.directive';
import { ObjectPositionDirective } from '../../directive/image-position.directive';
import * as i0 from "@angular/core";
import * as i1 from "primeng/api";
import * as i2 from "../../services/cart.service";
import * as i3 from "@angular/material/dialog";
import * as i4 from "../../elements/svg-divider/svg-divider.component";
import * as i5 from "../../components/hover-elements/hover-elements.component";
import * as i6 from "../../components/delete-hover-element/delete-hover-element.component";
import * as i7 from "@angular/common";
export class VideoGridSectionComponent extends BaseSection {
    constructor(messageService, cartService, matDialog) {
        super();
        this.messageService = messageService;
        this.cartService = cartService;
        this.matDialog = matDialog;
        this.USER_WISHLIST = [];
        this.USER_CART = [];
        this.isOverflowing = false;
        this.atStart = true;
        this.atEnd = false;
    }
    ngOnInit() {
        this.getScreenSize();
        this.content = this.data?.content;
        this.style = this.data?.styles;
        this.deleteSelected = this.delete;
    }
    getScreenSize() {
        this.screenWidth = window.innerWidth;
    }
    get stylesLayout() {
        return { ...this.style?.layout };
    }
    get headingSpace() {
        return this.style?.layout?.headingSpacing;
    }
    get scrollStep() { return Math.round((this.videogrid?.nativeElement?.clientWidth || 300) * 0.8); }
    updateEdges() {
        const el = this.videogrid?.nativeElement;
        if (!el)
            return;
        this.atStart = el.scrollLeft <= 5;
        this.atEnd = el.scrollLeft + el.clientWidth >= el.scrollWidth - 5;
    }
    scrollLeft() {
        const el = this.videogrid?.nativeElement;
        if (!el)
            return;
        el.scrollBy({ left: -this.scrollStep, behavior: 'smooth' });
        setTimeout(() => this.updateEdges(), 300);
    }
    getJustifyContent() {
        const el = this.videogrid?.nativeElement;
        if (!el)
            return '';
        this.isOverflowing = el.scrollWidth > el.clientWidth;
        if (this.isOverflowing) {
            return 'flex-start';
        }
        return '';
    }
    onScroll() { this.updateEdges(); }
    scrollRight() {
        const el = this.videogrid?.nativeElement;
        if (!el)
            return;
        el.scrollBy({ left: this.scrollStep, behavior: 'smooth' });
        setTimeout(() => this.updateEdges(), 300);
    }
    onVideoHover(video, videoElement) {
        video.currentTime = 0;
        video.play().catch(() => { });
        videoElement.isVideoPlaying = true;
    }
    onVideoLeave(video, videoElement) {
        video.pause();
        video.currentTime = 0;
        videoElement.isVideoPlaying = false;
    }
    openFullVideo(video) {
        const dialogRef = this.matDialog.open(VideoShowcaseComponent, {
            height: '100vh',
            width: '100vw',
            data: {
                videos: this.content?.listItem.videoData,
                initiateVideoId: video.id
            },
            panelClass: 'dialog-transparent'
        });
    }
    openFullscreen(video) {
        if (this.style?.hoverPlay) {
            if (video.requestFullscreen) {
                video.requestFullscreen();
            }
            else if (video.webkitRequestFullscreen) {
                // Safari
                video.webkitRequestFullscreen();
            }
            else if (video.msRequestFullscreen) {
                // IE11
                video.msRequestFullscreen();
            }
            // Optional: play when fullscreen opens
            video.play().catch(() => { });
        }
    }
    getItemVarient(product, varientId) {
        let selectedVarient = null;
        product?.itemVariant?.forEach((varient) => {
            if (varient.variantId === varientId)
                selectedVarient = varient;
        });
        return selectedVarient;
    }
    toggleItemToFav(event, product, type) {
        if (type == 'ADD') {
            product.whislist = true;
            this.messageService.add({ severity: 'success', summary: 'Wishlist', detail: 'Item added to your wishlist' });
            if (product?.itemVariant?.length) {
                const itemVarient = this.getItemVarient(product, product.varientId);
                if (itemVarient) {
                    itemVarient.wishlist = true;
                    this.cartService.addItemToFavourite(product, itemVarient.variantId);
                }
            }
            else {
                this.cartService.addItemToFavourite(product);
            }
        }
        else {
            product.whislist = false;
            this.messageService.add({ severity: 'info', summary: 'Wishlist', detail: 'Item removed from your wishlist' });
            this.cartService.removeItemFromFavourite(product.varientId);
        }
        if (product.whislist) {
            this.USER_WISHLIST?.push(new OrderedItems(product, product.varientId));
        }
        else {
            this.USER_WISHLIST = this.USER_WISHLIST?.filter((item) => item.varientId != product.varientId) ?? [];
        }
        event.stopPropagation();
    }
    isItemOutOfStock(product) {
        return product.itemInventory?.openingStock == 0;
    }
    addItemToCart(event, product, type) {
        if (this.isItemOutOfStock(product)) {
            this.messageService.add({ severity: 'warn', summary: 'Cart', detail: 'Item is not available as of now. We will notify you once available' });
            return;
        }
        product.quantity += (type == 'ADD' ? 1 : -1);
        if (product?.itemVariant?.length) {
            const itemVarient = this.getItemVarient(product, product.varientId);
            if (itemVarient) {
                itemVarient.quantity = product.quantity;
                this.cartService.addItemToCart(product, itemVarient.variantId);
            }
        }
        else {
            this.cartService.addItemToCart(product);
        }
        if (product.quantity) {
            let isPresent = false;
            this.USER_CART?.forEach((item) => {
                if (item.varientId == product.varientId) {
                    item.quantity = product.quantity;
                    isPresent = true;
                }
            });
            if (!isPresent)
                this.USER_CART?.push(new OrderedItems(product, product.varientId));
        }
        else {
            this.USER_CART = this.USER_CART?.filter((item) => item.varientId != product.varientId) ?? [];
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VideoGridSectionComponent, deps: [{ token: i1.MessageService }, { token: i2.CartService }, { token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: VideoGridSectionComponent, isStandalone: true, selector: "simpo-video-grid-section", inputs: { data: "data", index: "index", edit: "edit", customClass: "customClass", delete: "delete", nextComponentColor: "nextComponentColor" }, host: { listeners: { "window: resize": "getScreenSize($event)" } }, providers: [MessageService], viewQueries: [{ propertyName: "videogrid", first: true, predicate: ["videogrid"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<section [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n    class=\"total-container\" [attr.style]=\"customClass\">\r\n    <div #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\" [spacingHorizontal]=\"stylesLayout\">\r\n        <div class=\"container-fluid\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\" [simpoLayout]=\"style?.layout\">\r\n            <div class=\"row w-100\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\"\r\n                [ngStyle]=\"style?.fullWidth ? {'padding': '0px'} : {}\"\r\n                [ngClass]=\"{'justify-content-center' : screenWidth < 475}\">\r\n                <!-- [ngClass]=\"{'w-100':style?.gridStyle === 'Style2'}\" -->\r\n                <div *ngFor=\"let text of data?.content?.inputText; let i = index\">\r\n                    <div [simpoContentTitleSpace]=\"headingSpace\">\r\n                        <ng-container *ngIf=\"edit ||  (text.value && text.value.length > 0)\">\r\n                            <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n                        </ng-container>\r\n                    </div>\r\n                </div>\r\n\r\n                <!-- <ng-container *ngIf=\"style?.gridStyle == 'Style1'\"> -->\r\n                <button class=\"scroll-btn left p-0 d-flex align-items-center justify-content-center\"\r\n                    *ngIf=\"style?.direction === 'ROW' && isOverflowing\" (click)=\"scrollLeft()\"\r\n                    [disabled]=\"atStart\"><mat-icon>keyboard_arrow_left</mat-icon>\r\n                </button>\r\n\r\n                <div class=\"main-video-section\">\r\n                    <div class=\"main-image-section position-relative\"\r\n                        [class.row]=\"style?.direction == 'ROW' && screenWidth > 475\"\r\n                        [class.wrap-scroll]=\"style?.direction == 'ROW' && screenWidth > 475\"\r\n                        [class.flex-wrap]=\"style?.direction == 'COLUMN' && screenWidth > 475\" [id]=\"data?.id\" #videogrid\r\n                        [style.justifyContent]=\"getJustifyContent()\" (scroll)=\"onScroll()\"\r\n                        [ngClass]=\"{'d-grid grid-columns' : screenWidth < 475}\">\r\n                        <ng-container *ngIf=\"!content?.display?.showImage\">\r\n                            <div class=\"video-section p-3 w-auto d-flex flex-column gap-2 align-items-center justify-content-center\"\r\n                                *ngFor=\"let video of content?.listItem?.data; let i = index\" [simpoColumnDirective]=\"style?.size\"\r\n                                [id]=\"data?.id\"\r\n                                [attr.style]=\"style?.removeGaps ? 'padding: 0px !important; margin: 0px !important;' : {}\">\r\n                                <ng-container *ngIf=\"content?.display?.showText\">\r\n                                    <div\r\n                                        class=\"w-fit position-relative d-flex align-items-center justify-content-center\">\r\n                                        <ng-container *ngIf=\"style?.autoPlay && !style?.hoverPlay;else normalVideo\">\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100 cursor-pointer\" [muted]=\"style?.muteVideos\" autoplay\r\n                                                (click)=\"openFullscreen(videoEl)\" loop></video>\r\n                                        </ng-container>\r\n                                        <ng-template #normalVideo>\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\" [controls]=\"!style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullscreen(videoEl)\"\r\n                                                [ngClass]=\"{ 'cursor-pointer': style?.hoverPlay }\"></video>\r\n                                        </ng-template>\r\n                                        <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/172648c1769671647159play-fill-svgrepo-com.svg\"\r\n                                            class=\"position-absolute\"\r\n                                            *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                            style=\"width:20px\">\r\n                                    </div>\r\n                                    <simpo-text-editor [(value)]=\"video.video.description\"\r\n                                        [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\"></simpo-text-editor>\r\n                                </ng-container>\r\n                                <ng-container *ngIf=\"!content?.display?.showText\">\r\n                                    <div class=\"video-wrapper position-relative\" [id]=\"data?.id\"\r\n                                        [ngStyle]=\"{'width' : style?.size === 'Small' ? '180px' : style?.size === 'Medium' ? '220px' : '270px' }\">\r\n                                        <ng-container *ngIf=\"style?.autoPlay && !style?.hoverPlay;else normalVideo\">\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\"\r\n                                                [simpoVideoDirective]=\"style?.image\" [controls]=\"style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullVideo(video.video)\" autoplay loop></video>\r\n                                        </ng-container>\r\n                                        <ng-template #normalVideo>\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\"\r\n                                                [simpoVideoDirective]=\"style?.image\" [controls]=\"!style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullVideo(video.video)\"></video>\r\n                                        </ng-template>\r\n                                        <div class=\"position-absolute products-cards w-100 p-3 d-flex gap-3 overflow-x-auto cursor-pointer\"\r\n                                            *ngIf=\"video?.video?.products?.length > 0 && content?.display?.showProducts\">\r\n                                            <ng-container *ngFor=\"let product of video.video.products\">\r\n                                                <div class=\"product-badge\">\r\n                                                    <a [href]=\"product.redirectionUrl\" class=\"product-link\">\r\n                                                        <img [src]=\"product?.itemImages[0].imgUrl\" alt=\"Ring\"\r\n                                                            class=\"product-img\" /></a>\r\n                                                    <div class=\"product-info\">\r\n                                                        <a [href]=\"product.redirectionUrl\" class=\"product-link\">\r\n                                                            <div class=\"product-details d-flex flex-column gap-1\">\r\n                                                                <div class=\"product-title\">\r\n                                                                    {{product.name.length > 16 ?\r\n                                                                    product.name.trim().slice(0,15)\r\n                                                                    +\r\n                                                                    '...' :\r\n                                                                    product.name }}\r\n                                                                </div>\r\n                                                                <div class=\"product-price d-flex align-items-start\">\r\n                                                                    \u20B9{{product?.price.sellingPrice}}\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </a>\r\n                                                        <div\r\n                                                            class=\"d-flex align-items-center justify-content-center gap-1\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/700072c1770270395432favourite-svgrepo-com.svg\"\r\n                                                                style=\"width: 18px;\"\r\n                                                                (click)=\"toggleItemToFav($event, product, 'ADD')\"\r\n                                                                *ngIf=\"!product.whislist\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/304116c1770274132910favourite-svgrepo-com_(1).svg\"\r\n                                                                style=\"width: 18px;\" *ngIf=\"product.whislist\"\r\n                                                                (click)=\"toggleItemToFav($event, product, 'REMOVE')\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/695144c1770270669546cart-shopping-svgrepo-com.svg\"\r\n                                                                style=\"width:19px\"\r\n                                                                (click)=\"addItemToCart($event, product, 'ADD')\"\r\n                                                                *ngIf=\"product.quantity <= 0\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/795342c1770275383344shopping-cart-fill-svgrepo-com.svg\"\r\n                                                                style=\"width:19px\" *ngIf=\"product.quantity >= 1\"\r\n                                                                (click)=\"addItemToCart($event, product, 'SUBSTRACT')\">\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </ng-container>\r\n                                        </div>\r\n                                        <div *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                            class=\"position-absolute d-flex align-items-center justify-content-center\"\r\n                                            style=\"padding: 9px;top: 47%;left: 40%;background: lightgrey;border-radius: 50%;background: rgba(240, 240, 240, 0.6);backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);\">\r\n                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/935060c1770214072755play-svgrepo-com.svg\"\r\n                                                class=\"\" style=\"width:25px;margin-left:1.5px\">\r\n                                        </div>\r\n                                    </div>\r\n                                </ng-container>\r\n                            </div>\r\n                        </ng-container>\r\n                        <ng-container *ngIf=\"content?.display?.showImage\">\r\n                            <div class=\"video-section p-3 w-auto d-flex flex-column gap-2 align-items-center justify-content-center\"\r\n                                *ngFor=\"let image of content?.listItem?.data; let i = index\" [simpoColumnDirective]=\"style?.size\"\r\n                                [id]=\"data?.id\"\r\n                                [attr.style]=\"style?.removeGaps ? 'padding: 0px !important; margin: 0px !important;' : {}\">\r\n                                <ng-container>\r\n                                    <div class=\"video-wrapper position-relative\" [id]=\"data?.id\"\r\n                                        [ngClass]=\"{'h-100':screenWidth<475}\"\r\n                                        [ngStyle]=\"{'width' : screenWidth > 475 ? (style?.size === 'Small' ? '180px' : style?.size === 'Medium' ? '220px' : '270px'): '100%' }\">\r\n                                        <img loading=\"lazy\" [src]=\"image.image.url\" [alt]=\"image.image.altText\"\r\n                                            [simpoImageDirective]=\"image.image\"\r\n                                            [attr.simpoObjectPosition]=\"image?.image?.fit !== 'contain' ? image.image?.position : null\"\r\n                                            [simpoCorner]=\"style?.corners\" class=\"w-100 h-100\"\r\n                                            [appImageEditor]=\"edit || false\" [imageData]=\"image.image\"\r\n                                            [sectionId]=\"data?.id\" [itemIndex]=\"i\" [simpoObjectPosition]=\"image?.image?.position\"\r\n                                            [class]=\"data?.id+image.image.id\">\r\n                                    </div>\r\n                                </ng-container>\r\n                            </div>\r\n                        </ng-container>\r\n                    </div>\r\n                </div>\r\n\r\n                <button class=\"scroll-btn right p-0 d-flex align-items-center justify-content-center\"\r\n                    *ngIf=\"style?.direction === 'ROW' && isOverflowing\" (click)=\"scrollRight()\"\r\n                    [disabled]=\"atEnd\"><mat-icon>keyboard_arrow_right</mat-icon>\r\n                </button>\r\n                <!-- </ng-container> -->\r\n                <!-- <ng-container *ngIf=\"style?.gridStyle == 'Style2'\">\r\n                    <div class=\"video-grid-section h-100\" [class.remove-gap]=\"style?.removeGaps\"\r\n                        [class.p-0]=\"style?.fullWidth\">\r\n                        <div class=\"video-section\" *ngFor=\"let video of content?.listItem?.data\" style=\"min-width:300px\"\r\n                            [ngClass]=\"{'position-relative d-flex align-items-center justify-content-center' : !video?.video?.isVideoPlaying && style?.hoverPlay}\">\r\n                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\" #videoEl\r\n                                [class]=\"data?.id+video.video.id\" [simpoObjectPosition]=\"video.video.position\"\r\n                                [src]=\"video.video.url\" loading=\"lazy\" class=\"h-100\" [controls]=\"!style?.hoverPlay\"\r\n                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl,video.video)\"\r\n                                [muted]=\"style?.muteVideos\"\r\n                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl,video.video)\"\r\n                                (click)=\"openFullscreen(videoEl)\"\r\n                                [ngClass]=\"{'cursor-pointer' : style?.hoverPlay}\"></video>\r\n                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/172648c1769671647159play-fill-svgrepo-com.svg\"\r\n                                class=\"position-absolute\" *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                style=\"width:20%;height:20%;max-width:40px\">\r\n                        </div>\r\n                    </div>\r\n                </ng-container> -->\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <ng-container *ngIf=\"style?.devider?.display\">\r\n        <simpo-svg-divider [dividerType]=\"style?.devider?.deviderType\"\r\n            [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n    </ng-container>\r\n    <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n        <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n    </div>\r\n    <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n        <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n    </div>\r\n</section>", styles: [".total-container{height:auto;position:relative}.main-video-section{display:flex;justify-content:center}.main-image-section{margin-bottom:1.5rem}.mb-1{margin-bottom:1.5rem!important}.hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.wrap-scroll{overflow:scroll;flex-wrap:nowrap}@media screen and (min-width : 1200px){.grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;grid-gap:5px}.video-grid-section{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,170px);column-gap:10px;row-gap:10px;max-height:340px;overflow-x:scroll;overflow-y:hidden;grid-auto-columns:1fr;width:100%}.grid img:first-child:last-child{grid-column:1 / span 2}.grid img:first-child:nth-last-child(2),.grid img:nth-child(2):last-child{grid-column:span 1;height:100%}.grid img:nth-child(3n+1):not(:last-child){grid-column:1;grid-row:span 2;height:100%}.grid img:nth-child(3n+2){grid-column:2}.grid img:nth-child(3n+3){grid-column:2;align-self:end}.grid img:nth-child(3n+4){grid-column:1 / span 2}}.remove-gap{grid-gap:0!important}@media screen and (min-width: 760px){.cards{padding-bottom:24px}}.main-image-container{width:100%}@media screen and (max-width: 760px){.scroll-btn{display:none!important}}.right-column-container{display:flex;flex-direction:column;height:100%;padding:0}.image-half-height{height:50%!important;flex:1}.image-half-height:first-child{margin-bottom:2px}.scroll-btn{position:absolute;top:50%;z-index:10;font-size:18px;width:36px!important;height:36px!important;border-radius:50%;border:none}.w-fit{width:fit-content!important}.video-section{text-align:center}.video-section .video-wrapper{aspect-ratio:9 / 16;margin:0 auto;position:relative}.video-section .video-wrapper video{cursor:pointer}.video-section video{width:100%;height:100%;object-fit:cover}.scroll-btn.left{left:8px}.scroll-btn.right{right:8px}.product-badge{display:flex;align-items:center;gap:12px;padding:5px 10px;background:#fff9;border-radius:10px;width:90%;box-shadow:0 6px 18px #00000026;transition:background .3s ease,box-shadow .3s ease;min-width:230px}.product-badge:hover{background:#f0f0f0e6;box-shadow:0 8px 22px #0003}.product-img{width:42px;height:42px;object-fit:contain;flex-shrink:0}.product-info{display:flex;gap:4px}.grid-columns{grid-template-columns:50% 50%}.product-title{font-size:12px;font-weight:500;color:#1a1a1a;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-link{text-decoration:none;color:inherit}.products-cards{bottom:0;overflow-x:scroll}.product-price{font-size:16px;font-weight:700;color:#000}\n"], dependencies: [{ kind: "component", type: TextEditorComponent, selector: "simpo-text-editor", inputs: ["value", "editable", "isRTE", "sectionId", "label", "type", "inputTextIndex", "itemIndex"], outputs: ["valueChange"] }, { kind: "ngmodule", type: SimpoElementsModule }, { kind: "component", type: i4.SvgDividerComponent, selector: "simpo-svg-divider", inputs: ["dividerType", "color"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i5.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: i6.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: 
                //Directives
                AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: ColumnDirectiveDirective, selector: "[simpoColumnDirective]", inputs: ["simpoColumnDirective"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "directive", type: ContentTitleDirective, selector: "[simpoContentTitleSpace]", inputs: ["simpoContentTitleSpace"] }, { kind: "directive", type: SpacingHorizontalDirective, selector: "[spacingHorizontal]", inputs: ["spacingHorizontal", "isHeader"] }, { kind: "directive", type: VideoDirectiveDirective, selector: "[simpoVideoDirective]", inputs: ["simpoVideoDirective"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: ImageDirectiveDirective, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "directive", type: ObjectPositionDirective, selector: "[simpoObjectPosition]", inputs: ["simpoObjectPosition"] }, { kind: "directive", type: ImageEditorDirective, selector: "[appImageEditor]", inputs: ["appImageEditor", "imageData", "sectionId", "showIcon", "iconData", "itemIndex"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VideoGridSectionComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-video-grid-section', standalone: true, imports: [
                        TextEditorComponent,
                        SimpoElementsModule,
                        SimpoComponentModule,
                        CommonModule,
                        //Directives
                        AnimationDirective,
                        BackgroundDirective,
                        BorderDirective,
                        ColumnDirectiveDirective,
                        ContentFitDirective,
                        CornerDirective,
                        HoverDirective,
                        OverlayDirective,
                        ContentTitleDirective,
                        SpacingHorizontalDirective,
                        VideoDirectiveDirective,
                        MatIcon,
                        ImageDirectiveDirective,
                        ObjectPositionDirective,
                        ImageEditorDirective
                    ], providers: [MessageService], template: "<section [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n    class=\"total-container\" [attr.style]=\"customClass\">\r\n    <div #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\" [spacingHorizontal]=\"stylesLayout\">\r\n        <div class=\"container-fluid\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\" [simpoLayout]=\"style?.layout\">\r\n            <div class=\"row w-100\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\"\r\n                [ngStyle]=\"style?.fullWidth ? {'padding': '0px'} : {}\"\r\n                [ngClass]=\"{'justify-content-center' : screenWidth < 475}\">\r\n                <!-- [ngClass]=\"{'w-100':style?.gridStyle === 'Style2'}\" -->\r\n                <div *ngFor=\"let text of data?.content?.inputText; let i = index\">\r\n                    <div [simpoContentTitleSpace]=\"headingSpace\">\r\n                        <ng-container *ngIf=\"edit ||  (text.value && text.value.length > 0)\">\r\n                            <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n                        </ng-container>\r\n                    </div>\r\n                </div>\r\n\r\n                <!-- <ng-container *ngIf=\"style?.gridStyle == 'Style1'\"> -->\r\n                <button class=\"scroll-btn left p-0 d-flex align-items-center justify-content-center\"\r\n                    *ngIf=\"style?.direction === 'ROW' && isOverflowing\" (click)=\"scrollLeft()\"\r\n                    [disabled]=\"atStart\"><mat-icon>keyboard_arrow_left</mat-icon>\r\n                </button>\r\n\r\n                <div class=\"main-video-section\">\r\n                    <div class=\"main-image-section position-relative\"\r\n                        [class.row]=\"style?.direction == 'ROW' && screenWidth > 475\"\r\n                        [class.wrap-scroll]=\"style?.direction == 'ROW' && screenWidth > 475\"\r\n                        [class.flex-wrap]=\"style?.direction == 'COLUMN' && screenWidth > 475\" [id]=\"data?.id\" #videogrid\r\n                        [style.justifyContent]=\"getJustifyContent()\" (scroll)=\"onScroll()\"\r\n                        [ngClass]=\"{'d-grid grid-columns' : screenWidth < 475}\">\r\n                        <ng-container *ngIf=\"!content?.display?.showImage\">\r\n                            <div class=\"video-section p-3 w-auto d-flex flex-column gap-2 align-items-center justify-content-center\"\r\n                                *ngFor=\"let video of content?.listItem?.data; let i = index\" [simpoColumnDirective]=\"style?.size\"\r\n                                [id]=\"data?.id\"\r\n                                [attr.style]=\"style?.removeGaps ? 'padding: 0px !important; margin: 0px !important;' : {}\">\r\n                                <ng-container *ngIf=\"content?.display?.showText\">\r\n                                    <div\r\n                                        class=\"w-fit position-relative d-flex align-items-center justify-content-center\">\r\n                                        <ng-container *ngIf=\"style?.autoPlay && !style?.hoverPlay;else normalVideo\">\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100 cursor-pointer\" [muted]=\"style?.muteVideos\" autoplay\r\n                                                (click)=\"openFullscreen(videoEl)\" loop></video>\r\n                                        </ng-container>\r\n                                        <ng-template #normalVideo>\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\" [controls]=\"!style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullscreen(videoEl)\"\r\n                                                [ngClass]=\"{ 'cursor-pointer': style?.hoverPlay }\"></video>\r\n                                        </ng-template>\r\n                                        <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/172648c1769671647159play-fill-svgrepo-com.svg\"\r\n                                            class=\"position-absolute\"\r\n                                            *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                            style=\"width:20px\">\r\n                                    </div>\r\n                                    <simpo-text-editor [(value)]=\"video.video.description\"\r\n                                        [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\"></simpo-text-editor>\r\n                                </ng-container>\r\n                                <ng-container *ngIf=\"!content?.display?.showText\">\r\n                                    <div class=\"video-wrapper position-relative\" [id]=\"data?.id\"\r\n                                        [ngStyle]=\"{'width' : style?.size === 'Small' ? '180px' : style?.size === 'Medium' ? '220px' : '270px' }\">\r\n                                        <ng-container *ngIf=\"style?.autoPlay && !style?.hoverPlay;else normalVideo\">\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\"\r\n                                                [simpoVideoDirective]=\"style?.image\" [controls]=\"style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullVideo(video.video)\" autoplay loop></video>\r\n                                        </ng-container>\r\n                                        <ng-template #normalVideo>\r\n                                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\"\r\n                                                #videoEl [class]=\"data?.id + video.video.id\" [src]=\"video.video.url\"\r\n                                                class=\"h-100\" [muted]=\"style?.muteVideos\"\r\n                                                [simpoVideoDirective]=\"style?.image\" [controls]=\"!style?.hoverPlay\"\r\n                                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl, video.video)\"\r\n                                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl, video.video)\"\r\n                                                (click)=\"openFullVideo(video.video)\"></video>\r\n                                        </ng-template>\r\n                                        <div class=\"position-absolute products-cards w-100 p-3 d-flex gap-3 overflow-x-auto cursor-pointer\"\r\n                                            *ngIf=\"video?.video?.products?.length > 0 && content?.display?.showProducts\">\r\n                                            <ng-container *ngFor=\"let product of video.video.products\">\r\n                                                <div class=\"product-badge\">\r\n                                                    <a [href]=\"product.redirectionUrl\" class=\"product-link\">\r\n                                                        <img [src]=\"product?.itemImages[0].imgUrl\" alt=\"Ring\"\r\n                                                            class=\"product-img\" /></a>\r\n                                                    <div class=\"product-info\">\r\n                                                        <a [href]=\"product.redirectionUrl\" class=\"product-link\">\r\n                                                            <div class=\"product-details d-flex flex-column gap-1\">\r\n                                                                <div class=\"product-title\">\r\n                                                                    {{product.name.length > 16 ?\r\n                                                                    product.name.trim().slice(0,15)\r\n                                                                    +\r\n                                                                    '...' :\r\n                                                                    product.name }}\r\n                                                                </div>\r\n                                                                <div class=\"product-price d-flex align-items-start\">\r\n                                                                    \u20B9{{product?.price.sellingPrice}}\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </a>\r\n                                                        <div\r\n                                                            class=\"d-flex align-items-center justify-content-center gap-1\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/700072c1770270395432favourite-svgrepo-com.svg\"\r\n                                                                style=\"width: 18px;\"\r\n                                                                (click)=\"toggleItemToFav($event, product, 'ADD')\"\r\n                                                                *ngIf=\"!product.whislist\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/304116c1770274132910favourite-svgrepo-com_(1).svg\"\r\n                                                                style=\"width: 18px;\" *ngIf=\"product.whislist\"\r\n                                                                (click)=\"toggleItemToFav($event, product, 'REMOVE')\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/695144c1770270669546cart-shopping-svgrepo-com.svg\"\r\n                                                                style=\"width:19px\"\r\n                                                                (click)=\"addItemToCart($event, product, 'ADD')\"\r\n                                                                *ngIf=\"product.quantity <= 0\">\r\n                                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/795342c1770275383344shopping-cart-fill-svgrepo-com.svg\"\r\n                                                                style=\"width:19px\" *ngIf=\"product.quantity >= 1\"\r\n                                                                (click)=\"addItemToCart($event, product, 'SUBSTRACT')\">\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </ng-container>\r\n                                        </div>\r\n                                        <div *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                            class=\"position-absolute d-flex align-items-center justify-content-center\"\r\n                                            style=\"padding: 9px;top: 47%;left: 40%;background: lightgrey;border-radius: 50%;background: rgba(240, 240, 240, 0.6);backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);\">\r\n                                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/935060c1770214072755play-svgrepo-com.svg\"\r\n                                                class=\"\" style=\"width:25px;margin-left:1.5px\">\r\n                                        </div>\r\n                                    </div>\r\n                                </ng-container>\r\n                            </div>\r\n                        </ng-container>\r\n                        <ng-container *ngIf=\"content?.display?.showImage\">\r\n                            <div class=\"video-section p-3 w-auto d-flex flex-column gap-2 align-items-center justify-content-center\"\r\n                                *ngFor=\"let image of content?.listItem?.data; let i = index\" [simpoColumnDirective]=\"style?.size\"\r\n                                [id]=\"data?.id\"\r\n                                [attr.style]=\"style?.removeGaps ? 'padding: 0px !important; margin: 0px !important;' : {}\">\r\n                                <ng-container>\r\n                                    <div class=\"video-wrapper position-relative\" [id]=\"data?.id\"\r\n                                        [ngClass]=\"{'h-100':screenWidth<475}\"\r\n                                        [ngStyle]=\"{'width' : screenWidth > 475 ? (style?.size === 'Small' ? '180px' : style?.size === 'Medium' ? '220px' : '270px'): '100%' }\">\r\n                                        <img loading=\"lazy\" [src]=\"image.image.url\" [alt]=\"image.image.altText\"\r\n                                            [simpoImageDirective]=\"image.image\"\r\n                                            [attr.simpoObjectPosition]=\"image?.image?.fit !== 'contain' ? image.image?.position : null\"\r\n                                            [simpoCorner]=\"style?.corners\" class=\"w-100 h-100\"\r\n                                            [appImageEditor]=\"edit || false\" [imageData]=\"image.image\"\r\n                                            [sectionId]=\"data?.id\" [itemIndex]=\"i\" [simpoObjectPosition]=\"image?.image?.position\"\r\n                                            [class]=\"data?.id+image.image.id\">\r\n                                    </div>\r\n                                </ng-container>\r\n                            </div>\r\n                        </ng-container>\r\n                    </div>\r\n                </div>\r\n\r\n                <button class=\"scroll-btn right p-0 d-flex align-items-center justify-content-center\"\r\n                    *ngIf=\"style?.direction === 'ROW' && isOverflowing\" (click)=\"scrollRight()\"\r\n                    [disabled]=\"atEnd\"><mat-icon>keyboard_arrow_right</mat-icon>\r\n                </button>\r\n                <!-- </ng-container> -->\r\n                <!-- <ng-container *ngIf=\"style?.gridStyle == 'Style2'\">\r\n                    <div class=\"video-grid-section h-100\" [class.remove-gap]=\"style?.removeGaps\"\r\n                        [class.p-0]=\"style?.fullWidth\">\r\n                        <div class=\"video-section\" *ngFor=\"let video of content?.listItem?.data\" style=\"min-width:300px\"\r\n                            [ngClass]=\"{'position-relative d-flex align-items-center justify-content-center' : !video?.video?.isVideoPlaying && style?.hoverPlay}\">\r\n                            <video loading=\"lazy\" [simpoCorner]=\"style?.corners\" [id]=\"data?.id\" #videoEl\r\n                                [class]=\"data?.id+video.video.id\" [simpoObjectPosition]=\"video.video.position\"\r\n                                [src]=\"video.video.url\" loading=\"lazy\" class=\"h-100\" [controls]=\"!style?.hoverPlay\"\r\n                                (mouseenter)=\"style?.hoverPlay && onVideoHover(videoEl,video.video)\"\r\n                                [muted]=\"style?.muteVideos\"\r\n                                (mouseleave)=\"style?.hoverPlay && onVideoLeave(videoEl,video.video)\"\r\n                                (click)=\"openFullscreen(videoEl)\"\r\n                                [ngClass]=\"{'cursor-pointer' : style?.hoverPlay}\"></video>\r\n                            <img src=\"https://d2z9497xp8xb12.cloudfront.net/prod-images/172648c1769671647159play-fill-svgrepo-com.svg\"\r\n                                class=\"position-absolute\" *ngIf=\"!video?.video?.isVideoPlaying && style?.hoverPlay\"\r\n                                style=\"width:20%;height:20%;max-width:40px\">\r\n                        </div>\r\n                    </div>\r\n                </ng-container> -->\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <ng-container *ngIf=\"style?.devider?.display\">\r\n        <simpo-svg-divider [dividerType]=\"style?.devider?.deviderType\"\r\n            [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n    </ng-container>\r\n    <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n        <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n    </div>\r\n    <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n        <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n    </div>\r\n</section>", styles: [".total-container{height:auto;position:relative}.main-video-section{display:flex;justify-content:center}.main-image-section{margin-bottom:1.5rem}.mb-1{margin-bottom:1.5rem!important}.hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.wrap-scroll{overflow:scroll;flex-wrap:nowrap}@media screen and (min-width : 1200px){.grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;grid-gap:5px}.video-grid-section{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,170px);column-gap:10px;row-gap:10px;max-height:340px;overflow-x:scroll;overflow-y:hidden;grid-auto-columns:1fr;width:100%}.grid img:first-child:last-child{grid-column:1 / span 2}.grid img:first-child:nth-last-child(2),.grid img:nth-child(2):last-child{grid-column:span 1;height:100%}.grid img:nth-child(3n+1):not(:last-child){grid-column:1;grid-row:span 2;height:100%}.grid img:nth-child(3n+2){grid-column:2}.grid img:nth-child(3n+3){grid-column:2;align-self:end}.grid img:nth-child(3n+4){grid-column:1 / span 2}}.remove-gap{grid-gap:0!important}@media screen and (min-width: 760px){.cards{padding-bottom:24px}}.main-image-container{width:100%}@media screen and (max-width: 760px){.scroll-btn{display:none!important}}.right-column-container{display:flex;flex-direction:column;height:100%;padding:0}.image-half-height{height:50%!important;flex:1}.image-half-height:first-child{margin-bottom:2px}.scroll-btn{position:absolute;top:50%;z-index:10;font-size:18px;width:36px!important;height:36px!important;border-radius:50%;border:none}.w-fit{width:fit-content!important}.video-section{text-align:center}.video-section .video-wrapper{aspect-ratio:9 / 16;margin:0 auto;position:relative}.video-section .video-wrapper video{cursor:pointer}.video-section video{width:100%;height:100%;object-fit:cover}.scroll-btn.left{left:8px}.scroll-btn.right{right:8px}.product-badge{display:flex;align-items:center;gap:12px;padding:5px 10px;background:#fff9;border-radius:10px;width:90%;box-shadow:0 6px 18px #00000026;transition:background .3s ease,box-shadow .3s ease;min-width:230px}.product-badge:hover{background:#f0f0f0e6;box-shadow:0 8px 22px #0003}.product-img{width:42px;height:42px;object-fit:contain;flex-shrink:0}.product-info{display:flex;gap:4px}.grid-columns{grid-template-columns:50% 50%}.product-title{font-size:12px;font-weight:500;color:#1a1a1a;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-link{text-decoration:none;color:inherit}.products-cards{bottom:0;overflow-x:scroll}.product-price{font-size:16px;font-weight:700;color:#000}\n"] }]
        }], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.CartService }, { type: i3.MatDialog }], propDecorators: { videogrid: [{
                type: ViewChild,
                args: ['videogrid', { static: false }]
            }], data: [{
                type: Input
            }], index: [{
                type: Input
            }], edit: [{
                type: Input
            }], customClass: [{
                type: Input
            }], delete: [{
                type: Input
            }], nextComponentColor: [{
                type: Input
            }], getScreenSize: [{
                type: HostListener,
                args: ["window: resize", ["$event"]]
            }] } });
//# sourceMappingURL=data:application/json;base64, 