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A,gCAWAsG,EAAA,GAAAC,GAAA,uBAAAC,CAAA,EAOFrG,EAAA,EACAmG,EAAA,GAAAG,GAAA,KAAAC,EAAA,MAAAC,EAAA,EAAOC,EAAA,MAAA9H,CAAA,QAAA4C,CAAA,CAAAmF,CAAA,KAvBHzG,EAAA,GAAA0G,EAAAhH,EAAA6D,iBAAA,EAMAvD,EAAA,GAAAC,EAAA,8BAAgC,UAAA0G,CAAA,EACL,kBACT,iBACD,cACH,aAAAjH,EAAA4E,UAAA,KAAA7D,YAAA,ECCNmG,GAAqBvI,GAAqCwI,EAAiCC,EAAYC,CAAO,EAAAC,OAAA;;CAAA,EAAAnG,cAAA,EAAAC,gBAAA,IAEpH,GAAOmC,GAAPgE,QAAOhE,EAA2B,MCjBxC,GAAMiE,IAAiB,CACrB,CACEC,KAAM,GACNC,UAAWnE,IACX,CACAkE,KAAM,QACNE,aAAcA,IAAM,OAAO,qBAAoC,EAAEpG,KAAKqG,GAAKA,EAAEC,iBAAiB,EAC9FC,KAAM,CACJC,YAAa,GACbC,YAAaC,EAAYC,OAE5B,EAWUC,IAAwB,KAA/B,GAAOA,GAAP,KAAOA,EAAwB,GAAArJ,CAAA,CAAAC,IAAA,UAAAC,CAAA,aAAAA,CAAA,EAAxBmJ,IAAwB,GAAArJ,CAAA,CAAAsJ,IAAA,CAAAC,CAAA,EAAAlJ,IAAA,CAAxBgJ,CAAwB,GAAArJ,CAAA,CAAAwJ,IAAA,CAAAC,CAAA,EAAAC,SAAA,CAF1B,CAACvC,CAAQ,EAACwC,QAAA,CAJjBC,EACAC,EAAaC,SAASpB,EAAM,EAC5BqB,CAA0B,IAIxB,GAAOV,GAAPW,QAAOX,EAAwB,aAAAY,EAAA,IAAAZ,wBAAA","names":["WikiBlockComponent","constructor","ngOnInit","e","ɵfac","t","ɵcmp","u","type","selectors","inputs","wiki","imageSizes","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵtext","F","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","image","wikiFallbackImage","slug","ɵɵtextInterpolate","ɵɵpipeBind1","title","summary","dependencies","RouterLink","UpperCasePipe","CldPictureComponent","encapsulation","changeDetection","_WikiBlockComponent","se","then","i","FooterComponent","ce","w","h","resizeMode","bp","me","pe","s","B","ɵɵlistener","field_r2","ɵɵrestoreView","_r1","$implicit","ctx_r2","ɵɵnextContext","ɵɵresetView","iconSelected","value","ɵɵpropertyInterpolate","label","ɵɵpropertyInterpolate1","de","ɵɵpureFunction1","_c1","ɵɵpureFunction0","_c0","item_r4","ue","MetalWorkingBasicsComponent","breadcrumbsService","metadataService","iconsLoader","wikisGQL","locale","fieldsOfRelevance","FieldsOfRelevances","breadcrumb","$localize","url","store","load","appendMetadata","description","images","pageType","includes","RobotsIndexEnum","index_follow","noindex_nofollow","wikisQuery","watch","lang","first","wikiStatus","WikiStatusEnum","validated","fieldOfRelevanceValue","query","variables","wikiSector","fieldOfRelevanceOldValue","document","getElementById","style","opacity","refetch","ɵɵdirectiveInject","BreadcrumbsService","MetadataService","IconsLoader","WikisGQL","LOCALE_ID","i18n_0","ɵɵi18n","ɵɵrepeaterCreate","MetalWorkingBasicsComponent_For_10_Template","ɵɵrepeaterTrackByIndex","ɵɵtemplate","MetalWorkingBasicsComponent_ng_template_12_Template","ɵɵtemplateRefExtractor","MetalWorkingBasicsComponent_Defer_14_Template","ɵɵdefer","MetalWorkingBasicsComponent_Defer_15_DepsFn","ɵɵdeferOnTimer","P","ɵɵrepeater","wikiScrollerTpl_r5","BreadcrumbComponent","PagedVirtualScrollerComponent_1","MatTooltip","MatIcon","styles","_MetalWorkingBasicsComponent","routes","path","component","loadChildren","m","DetailsWikiModule","data","isCacheable","toolbarMode","ToolbarMode","solid","MetalWorkingBasicsModule","ɵmod","y","ɵinj","b","providers","imports","CommonModule","RouterModule","forChild","PagedVirtualScrollerModule","_MetalWorkingBasicsModule","Je"],"ignoreList":[],"sources":["src/app/shared/components/wiki-block/wiki-block.component.ts","src/app/shared/components/wiki-block/wiki-block.component.html","src/app/main/pages/metal-working-basics/metal-working-basics.component.html","src/app/main/pages/metal-working-basics/metal-working-basics.component.ts","src/app/main/pages/metal-working-basics/metal-working-basics.module.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { CldSourceMediaSize } from '../cld-picture/cld-picture.interface';\r\nimport { UpperCasePipe } from '@angular/common';\r\nimport { RouterLink } from '@angular/router';\r\nimport { CldPictureComponent } from '../cld-picture/cld-picture.component';\r\n\r\n@Component({\r\n selector: 'wiki-block',\r\n templateUrl: './wiki-block.component.html',\r\n styleUrls: ['./wiki-block.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true,\r\n imports: [\r\n RouterLink,\r\n UpperCasePipe,\r\n CldPictureComponent\r\n ],\r\n})\r\nexport class WikiBlockComponent implements OnInit {\r\n\r\n @Input() wiki;\r\n @Input() imageSizes: CldSourceMediaSize[];\r\n wikiFallbackImage: string;\r\n \r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n\r\n}\r\n","
\r\n \r\n
\r\n {{wiki.title | uppercase}}\r\n
{{wiki.summary}}
\r\n
\r\n
\r\n","
\r\n \r\n
\r\n\r\n
\r\n
\r\n

Metal Working Basics

\r\n
\r\n \r\n
Click on the icon to filter articles according to your interest.
\r\n\r\n
\r\n @for (field of fieldsOfRelevance; track $index) {\r\n \r\n }\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n@defer(on timer(1s)){\r\n \r\n}\r\n\r\n","import { ChangeDetectionStrategy, Component, Inject, LOCALE_ID, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { QueryRef } from 'apollo-angular';\r\nimport { FieldsOfRelevances } from 'app/shared/constants/fields-of-relevance';\r\nimport { BreadcrumbsService, IBreadcrumb } from 'app/shared/services/breadcrumbs/breadcrumbs.service';\r\nimport { IconsLoader } from 'app/shared/services/icons/icons-loader.service';\r\nimport { RobotsIndexEnum } from 'app/shared/services/meta-data-service/meta-data.commons';\r\nimport { MetadataService } from 'app/shared/services/meta-data-service/meta-data.service';\r\nimport { WikisGQL, WikisResponse } from 'app/shared/services/wikis/wikis.gql.service';\r\nimport { FooterComponent } from '../../../layout/components/footer/footer.component';\r\nimport { WikiBlockComponent } from '../../../shared/components/wiki-block/wiki-block.component';\r\nimport { BreadcrumbComponent } from '../../../shared/components/breadcrumb/breadcrumb.component';\r\nimport { PagedVirtualScrollerComponent as PagedVirtualScrollerComponent_1 } from '../../../shared/components/paged-virtual-scroller/paged-virtual-scroller.component';\r\nimport { MatTooltip } from '@angular/material/tooltip';\r\nimport { MatIcon } from '@angular/material/icon';\r\nimport { WikiStatusEnum } from '@collections/wiki/enums/wiki.enums';\r\n\r\n@Component({\r\n selector: 'metal-working-basics',\r\n templateUrl: './metal-working-basics.component.html',\r\n styleUrls: ['./metal-working-basics.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true,\r\n imports: [BreadcrumbComponent, WikiBlockComponent, FooterComponent, PagedVirtualScrollerComponent_1, MatTooltip, MatIcon ]\r\n})\r\nexport class MetalWorkingBasicsComponent implements OnInit {\r\n breadcrumb: IBreadcrumb[];\r\n wikiList: any;\r\n wikisQuery: QueryRef;\r\n fieldsOfRelevance = FieldsOfRelevances\r\n fieldOfRelevanceOldValue: string;\r\n\r\n constructor( \r\n private breadcrumbsService: BreadcrumbsService,\r\n private metadataService: MetadataService,\r\n private iconsLoader: IconsLoader,\r\n private wikisGQL: WikisGQL,\r\n @Inject(LOCALE_ID) private locale: string\r\n ) { \r\n this.breadcrumb = [\r\n {\r\n label: $localize`Metal Working Basics`,\r\n url: '/metal-working-basics'\r\n }\r\n ];\r\n\r\n this.breadcrumbsService.store(this.breadcrumb);\r\n\r\n this.iconsLoader.load('sectors')\r\n }\r\n\r\n ngOnInit() {\r\n\r\n this.metadataService.appendMetadata({\r\n title: $localize`Metal Working Basics`,\r\n description: $localize`Explore the basics of metalworking, from tube manufacturing and sheet metal fabrication to continuous casting and fastener production, on Expometals.net.`,\r\n images: [],\r\n pageType: 'website',\r\n },\r\n null,\r\n 'auto', \r\n !['en','it'].includes(this.locale) ? RobotsIndexEnum.noindex_nofollow : RobotsIndexEnum.index_follow // da rimuvere una volta tradotte\r\n );\r\n\r\n this.wikisQuery = this.wikisGQL.watch({\r\n lang: this.locale,\r\n first: 8,\r\n wikiStatus: WikiStatusEnum.validated\r\n });\r\n }\r\n\r\n iconSelected(fieldOfRelevanceValue: string): void {\r\n const query = this.wikisQuery\r\n delete query.variables.wikiSector\r\n\r\n if(this.fieldOfRelevanceOldValue){\r\n if(fieldOfRelevanceValue == this.fieldOfRelevanceOldValue){\r\n document.getElementById(fieldOfRelevanceValue).style.opacity=\"0.5\";\r\n query.refetch(query.variables)\r\n this.fieldOfRelevanceOldValue = null;\r\n }\r\n else{\r\n document.getElementById(this.fieldOfRelevanceOldValue).style.opacity=\"0.5\";\r\n document.getElementById(fieldOfRelevanceValue).style.opacity=\"1\";\r\n query.variables.wikiSector = fieldOfRelevanceValue\r\n query.refetch(query.variables)\r\n this.fieldOfRelevanceOldValue = fieldOfRelevanceValue; \r\n }\r\n }\r\n else{\r\n document.getElementById(fieldOfRelevanceValue).style.opacity=\"1\";\r\n query.variables.wikiSector = fieldOfRelevanceValue\r\n query.refetch(query.variables)\r\n this.fieldOfRelevanceOldValue = fieldOfRelevanceValue; \r\n } \r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MetalWorkingBasicsComponent } from './metal-working-basics.component';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { WikisGQL } from 'app/shared/services/wikis/wikis.gql.service';\r\nimport { ToolbarMode } from '@fuse/types';\r\nimport { PagedVirtualScrollerModule } from 'app/shared/components/paged-virtual-scroller/paged-virtual-scroller.module';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: MetalWorkingBasicsComponent,\r\n },{\r\n path: ':slug',\r\n loadChildren: () => import('./details-wiki/details-wiki.module').then(m => m.DetailsWikiModule),\r\n data: {\r\n isCacheable: true,\r\n toolbarMode: ToolbarMode.solid\r\n },\r\n }\r\n]\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n RouterModule.forChild(routes),\r\n PagedVirtualScrollerModule\r\n],\r\nproviders: [WikisGQL]\r\n})\r\nexport class MetalWorkingBasicsModule { }\r\n"]}