PageSourceSearch

https://www.futek.com/chunk-4ksivwjo.js

js futek.com collected 2026-10-03 19:07:34 UTC 9,084 bytes, 155 lines download raw bytes

1import{a as i}from"./chunk-U6OVDT4C.js";import{N as f,Q as B,Rd as h,Sd as x,Ub as P,g as t,id as k,ld as l,q as g}from"./chunk-IVEOF2IW.js";var L=[{width:1440,height:440},{width:768,height:133},{width:480}],m=class{constructor(){t(this,"Title");t(this,"Description");t(this,"Image");t(this,"ImageSrcSet");t(this,"BackgroundColor");t(this,"VideoLink");t(this,"Link")}static Map(e){let r=e?.Image?.Url??"";return{Title:e?.Title??"",Description:e?.Description??"",VideoLink:{Text:e?.VideoLink?.Text??"",Url:l(e?.VideoLink?.Href??"")},Link:{Text:e?.Link?.Text??e?.Link?.Title??"",Url:l(e?.Link?.Href??""),RouteSegments:e?.Link?.ContentLink?.Expanded?.RouteSegments??""},Image:r?x(r,L):"",BackgroundColor:e?.BackgroundColor??"",ImageSrcSet:r?h(r,L):""}}};var u=class{constructor(){t(this,"previewBlocks")}static Map(e){return{previewBlocks:e?.map(r=>i.Map(r.ContentLink?.Expanded))||[]}}};var p=class n{constructor(){t(this,"blocks")}static Map(e){return Array.isArray(e)?{blocks:e.map(o=>i.Map(o))}:new n}};var d=class{constructor(){t(this,"HeroBlock");t(this,"SensorTypesBlock");t(this,"BestsellersBlock");t(this,"PreviewsBlock");t(this,"NewsletterBlock")}static GetHomePage(e){return{query:`query GetHomePageDetails($pageRoute: String){
2                HomePage(where: {
3                  RouteSegment: { eq: $pageRoute }
4                }
5                  orderBy: { _modified: DESC }) {
6                  items {
7                    SeoInformation {
8                      Title
9                      Description
10                      Keywords
11                      H1Tag
12                    }
13                    Name
14                    BestSellers
15                    EnableFeaturedProducts
16                    FeaturedProducts {
17                      ContentLink {
18                        Expanded {
19                          ... on FeaturedProductsBlock {
20                            Title
21                            IconImage{
22                              Url
23                            }
24                            FeaturedProductModels{
25                              ContentLink {
26                                Expanded {
27                                  ... on PreviewBlock {
28                                    Title
29                                    Description
30                                    Link {
31                                      Text
32                                      Href
33                                      ContentLink {
34                                        Expanded {
35                                          ... on ISitePage {
36                                            RouteSegments
37                                          }
38                                        }
39                                      }
40                                    }
41                                    BlockMedia {
42                                      Url
43                                    }
44                                  }
45                                }
46                              }
47                            }
48                          }
49                        }
50                      }
51                    }
52                    _id
53                    _modified
54                    HeroBlock {
55                      ContentLink {
56                        Expanded {
57                          ... on HomePageHeroBlock {
58                            Title
59                            Description
60							              BackgroundColor
61                            Link {
62                              Text
63                              Href
64                              ContentLink {
65                                Expanded {
66                                  ... on ISitePage {
67                                    RouteSegments
68                                  }
69                                }
70                              }
71                            }
72                            VideoLink {
73                              Text
74                              Href
75                            }
76                            Image {
77                              Url
78                            }
79                          }
80                        }
81                      }
82                    }
83                    SensorTypesBlock {
84                      ContentLink {
85                        Expanded {
86                          ... on SensorTypesBlock {
87                            SensorTypes {
88                              ContentLink {
89                                Expanded {
90                                  ... on PreviewBlock {
91                                    Title
92                                    Link {
93                                      Text
94                                      Href
95                                      ContentLink {
96                                        Expanded {
97                                          ... on ISitePage {
98                                            RouteSegments
99                                          }
100                                        }
101                                      }
102                                    }
103                                    BlockMedia {
104                                      Url
105                                    }
106                                  }
107                                }
108                              }
109                            }
110                          }
111                        }
112                      }
113                    }
114                    PreviewsBlock {
115                      ContentLink {
116                        Expanded {
117                          ... on PreviewBlock {
118                            Title
119                            Description
120                            Link {
121                              Text
122                              Href
123                              ContentLink {
124                                Expanded {
125                                  ... on ISitePage {
126                                    RouteSegments
127                                  }
128                                }
129                              }
130                            }
131                            BlockMedia {
132                              Url
133                            }
134                          }
135                        }
136                      }
137                    }
138                    NewsletterPreviewBlock {
139                      Expanded {
140                        ... on PreviewBlock {
141                          Title
142                          Description
143                          Link {
144                            Text
145                            Href
146                          }
147                          BlockMedia {
148                            Url
149                          }
150                        }
151                      }
152                    }
153                  }
154                }
155              }`,variables:`{"pageRoute": "${e}"}`}}static get HomePageDetailsMapper(){return g(e=>{let r=e.data.HomePage.items[0];if(!r)return null;let o=r.SensorTypesBlock?.flatMap(s=>s.ContentLink?.Expanded?.SensorTypes?.map(a=>a.ContentLink?.Expanded)||[])||[],c=null;o.length>0&&(c=p.Map(o));let S=r.HeroBlock?.map(s=>m.Map(s.ContentLink?.Expanded))||[],T=u.Map(r.PreviewsBlock)||new p,U=i.Map(r.NewsletterPreviewBlock?.Expanded)||new i,C=(r.FeaturedProducts??[]).map(s=>{let a=s.ContentLink?.Expanded;return a?{Title:a.Title,IconImageUrl:l(a.IconImage?.Url),FeaturedProductModels:(a.FeaturedProductModels??[]).map(I=>
155i.Map(I.ContentLink?.Expanded)).filter(Boolean)}:null}).filter(Boolean);return{Name:r.Name,_id:r._id,_modified:r._modified,HeroBlock:S,SensorTypesBlock:c,PreviewsBlock:T,NewsletterBlock:U,SeoInformation:r.SeoInformation,BestSellers:r.BestSellers,EnableFeaturedProducts:r.EnableFeaturedProducts,FeaturedProducts:C}})}};var O=(()=>{let e=class e{constructor(o){t(this,"http");t(this,"baseUrl",k.baseUrl);this.http=o}getHomeData(){return this.http.get(this.baseUrl+"/home/main")}getNotifications(){return this.http.get(this.baseUrl+"/home/GetNotifications")}getAppGalleryData(){return this.http.get(this.baseUrl+"/home/appgallery")}getApplicationUrl(o){return this.http.get(this.baseUrl+"/home/applicationUrl/"+o)}getRepresentative(){return this.http.get(this.baseUrl+"/Representative/GetRepresentative")}getCountryCode(o){return this.http.get(this.baseUrl+"/Representative/GetCountryCode"+(o!=null&&o!=""?"/"+o:""))}getIsPriceRestrictedCountry(){return this.http.get(this.baseUrl+"/Representative/IsPriceRestrictedCountry")}getImpersonatedUserEmail(o){return this.http.get(this.baseUrl+"/UserImpersonation/GetUserImpersonation/"+o)}getImpersonateClaim(o){return this.http.post(this.baseUrl+"/Account/ImpersonateLogin",o)}GetHomePage(o){return this.http.post(k.GraphQLURL,d.GetHomePage(o)).pipe(d.HomePageDetailsMapper)}getAllBestSellers(){return this.http.get(`${this.baseUrl}/Product/BestSellers`)}};t(e,"\u0275fac",function(c){return new(c||e)(B(P))}),t(e,"\u0275prov",f({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();export{O as a};

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.