1import{a as D}from"./chunk-EJIQLX6B.js";import{a as w}from"./chunk-KEPHLDH7.js";import{a as C}from"./chunk-KX2JNMXN.js";import"./chunk-V5ACVX2Z.js";import"./chunk-6TSZWUKZ.js";import{p as O}from"./chunk-IQEGOQOS.js";import{$b as c,Hb as n,Ib as r,Jb as v,Nb as S,Pb as I,Qb as y,Uc as T,_b as s,ad as F,db as a,eb as p,gc as M,ka as f,rb as u,va as g,wa as _,xa as b,xb as l,ya as h}from"./chunk-F45N6AD4.js";import"./chunk-G4I4KP3J.js";function A(i,t){if(i&1){let e=S();n(0,"div",17)(1,"p")(2,"button",18),I("click",function(){let m=g(e).$implicit,d=y();return _(d.scroll(m.title))}),s(3),r()()()}if(i&2){let e=t.$implicit;a(3),c(e.title)}}function E(i,t){if(i&1&&v(0,"app-image",23),i&2){let e=t.$implicit;l("attributes",e.attributes)("decoding","sync")("loading","eager")}}function H(i,t){if(i&1&&(n(0,"div",19)(1,"h3"),s(2),r(),n(3,"div",20)(4,"p"),s(5),r()(),n(6,"div",21),u(7,E,1,3,"app-image",22),r()()),i&2){let e=t.$implicit;l("id",e.title),a(2),c(e.title),a(3),c(e.subtitle),a(2),l("ngForOf",e.images.data)}}var x=class i{constructor(t,e,o){this.api=t;this.overlaySpinner=e;this.route=o}subscriptions=[];tutorial=null;ngOnInit(){this.getMobileTutorial()}getMobileTutorial(){this.overlaySpinner.show(),this.subscription=this.route.paramMap.subscribe(t=>{let e=t.get("slug")??"",m={id:"mobile-tutorials",queryArgs:{populate:{sections:{populate:"*"}},filters:{slug:{$eq:e}},pagination:{limit:1}}};this.subscription=this.api.getResources(m).subscribe(d=>{this.tutorial=d[0],this.overlaySpinner.hide()})})}ngOnDestroy(){this.subscriptions.forEach(t=>t?.unsubscribe())}set subscription(t){this.subscriptions.push(t)}scroll(t){document.getElementById(t)?.scrollIntoView({behavior:"smooth",block:"start"})}static \u0275fac=function(e){return new(e||i)(p(w),p(D),p(O))};static \u0275cmp=f({type:i,selectors:[["app-mobile-tutorial"]],standalone:!0,features:[M],decls:19,vars:3,consts:[[1,"page__Wrapper","faqDetail"],[1,"vehicleInsurance__Header"],[1,"wrapper"],[1,"vehicleInsurance__HeaderWrapper"],["href","/upute-za-postavke-uredjaja/","aria-label","Natrag",1,"vehicleInsurance__Back","iconButton","iconButton--Medium"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24"],["fill","none","fill-rule","evenodd"],["d","M0 0H24V24H0z"],["fill","#0F0664","d","M4.157 12.938c-.21-.61-.21-1.267 0-1.876v-.035h.011c.143-.398.367-.773.69-1.091l5.53-5.436 1.4 1.376-5.24 5.15h9.491c2.185 0 3.961 1.747 3.961 3.893v4.377h-1.98v-4.377c0-1.072-.89-1.946-1.98-1.946H6.547l5.24 5.151-1.4 1.376-5.53-5.436c-.323-.317-.547-.693-.69-1.09h-.01v-.036z"],[1,"vehicleInsurance__HeaderText"],[1,"title"],[1,"underline"],[1,"faqDetail__Filters"],["class","faqDetail__Filter",4,"ngFor","ngForOf"],[1,"instructionDetail__Sections"],[1,"wrapper--Narrow"],["data-section","section0","class","instructionDetail__Section",3,"id",4,"ngFor","ngForOf"],[1,"faqDetail__Filter"],[1,"btn-reset",3,"click"],["data-section","section0",1,"instructionDetail__Section",3,"id"],[1,"richText"],[1,"instructionDetail__SectionImages"],[3,"attributes","decoding","loading",4,"ngFor","ngForOf"],[3,"attributes","decoding","loading"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),b(),n(5,"svg",5)(6,"g",6),v(7,"path",7)(8,"path",8),r()()(),h(),n(9,"div",9)(10,"h1",10)(11,"span",11)(12,"span"),s(13),r()()(),n(14,"div",12),u(15,A,4,1,"div",13),r()()()()(),n(16,"div",14)(17,"div",15),u(18,H,8,4,"div",16),r()()()),e&2&&(a(13),c(o.tutorial==null?null:o.tutorial.title),a(2),l("ngForOf",o.tutorial==null?null:o.tutorial.sections),a(3),l("ngForOf",o.tutorial==null?null:o.tutorial.sections))},dependencies:[F,T,C]})};export{x as MobileTutorialComponent};
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.