1"use strict";(self.webpackChunkCubeShop=self.webpackChunkCubeShop||[]).push([[2833],{32792:(C,c,n)=>{n.r(c),n.d(c,{DialogFrameComponent:()=>h});var l=n(65938),u=n(24006),r=n(55003),d=n(41075),t=n(94650),m=n(97185),f=n(36895),_=n(99818);function g(i,v){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const o=t.oxw();t.xp6(1),t.Oqu(o.data.description)}}function p(i,v){if(1&i){const o=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(o);const a=t.oxw();return t.KtG(a.cancel())}),t._uU(2),t.qZA(),t.TgZ(3,"button",9),t.NdJ("click",function(){t.CHM(o);const a=t.oxw();return t.KtG(a.confirm())}),t._uU(4),t.qZA()()}if(2&i){const o=t.oxw();t.xp6(2),t.Oqu(o.data.cancelText),t.xp6(2),t.hij("",o.data.confirmText," ")}}let h=(()=>{class i{constructor(o,e,a){this.dialogRef=o,this.toastr=e,this.data=a,this.stringInput="",console.log("Dialogframe data",a),console.log(this.data),this.data.title=this.data.title||this.defaultTitle(),this.data.label=this.data.label||"",this.formGroup=this.formGroup||new u.nJ({}),this.returnValue=this.returnValue||{value:void 0},this.data.confirmText=this.data.confirmText||"\xc1fram",this.data.cancelText=this.data.cancelText||"H\xe6tta vi\xf0"}ngOnInit(){this.data.component&&this.loadComponent()}loadComponent(){const e=this.viewRef.viewContainerRef.createComponent(this.data.component);e.instance.formGroup=this.formGroup,e.instance.returnValue=this.returnValue,e.instance.isDialog=!0;for(const a in this.data?.componentParameters||{})e.instance[a]=this.data.componentParameters[a]}defaultTitle(){return this.data.hideContent?"Ertu viss?":"Veldu heiti"}cancel(){this.dialogRef.close()}confirm(){console.log(this.returnValue),console.log(this.formGroup.value),void 0!==this.returnValue.value&&this.dialogRef.close({value:this.returnValue.value}),console.log("returning form instead"),console.log(this.formGroup.value),this.formGroup.invalid?(this.formGroup.markAllAsTouched(),this.toastr.error("\xdea\xf0 er villa \xed forminu. Vinsamlegast fari\xf0 yfir gildin og reyni\xf0 aftur.")):this.dialogRef.close({value:this.formGroup.value})}static#t=this.\u0275fac=function(e){return new(e||i)(t.Y36(l.so),t.Y36(m._W),t.Y36(l.WI))};static#a=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-dialog-frame"]],viewQuery:function(e,a){if(1&e&&t.Gf(r.b,7),2&e){let s;t.iGM(s=t.CRH())&&(a.viewRef=s.first)}},inputs:{formGroup:"formGroup",returnValue:"returnValue"},standalone:!0,features:[t.jDz],decls:8,vars:5,consts:[[1,"relative"],["mat-dialog-title","",1,"dialog-frame-title","pr-10"],["mat-icon-button","","aria-label","Loka glugga",1,"!absolute","top-0","right-0",3,"click"],[1,"fas","fa-times"],[4,"ngIf"],["viewRef","","mat-dialog-content","",1,"content"],["class","dialog-actions","mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions","",1,"dialog-actions"],["mat-raised-button","",3,"click"],["color","primary","mat-raised-button","",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return a.cancel()}),t._UZ(4,"i",3),t.qZA()(),t.YNc(5,g,2,1,"p",4),t._UZ(6,"div",5),t.YNc(7,p,5,2,"div",6)),2&e&&(t.xp6(2),t.Oqu(a.data.title),t.xp6(3),t.Q6J("ngIf",null==a.data.description?null:a.data.description.length),t.xp6(1),t.ekj("display-none",a.data.hideContent),t.xp6(1),t.Q6J("ngIf",!a.data.hideActions))},dependencies:[d.m,f.O5,_.eB,l.Is,l.uh,l.xY,l.H8,r.N,r.b],styles:[".dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.dialog-frame-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#111827;margin:0 0 16px;padding-bottom:12px;border-bottom:2px solid #C11030}@media (max-width: 500px){.dialog-frame-title[_ngcontent-%COMP%]{font-size:16px}}"]})}return i})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.