1import{a as v}from"./chunk-U6OVDT4C.js";import{b as O}from"./chunk-5L66GMWS.js";import{B as R,N as V,Q as w,Ub as q,a as b,b as k,g as o,id as d,ld as i,q as s}from"./chunk-IVEOF2IW.js";var y=class{constructor(){o(this,"Title");o(this,"Name");o(this,"RouteSegment");o(this,"ImageUrl");o(this,"ListText");o(this,"ExternalId");o(this,"ProductsCount");o(this,"SeoInformation")}static Map(e,t=[]){return{ExternalId:e.ExternalId,Title:e.Title,Name:e.Name,RouteSegment:e.RouteSegment,ImageUrl:e.Image?.Url?i(e.Image?.Url):null,ListText:e.ListText,ProductsCount:t?.find(r=>r.name===e.Name)?.count||0,SeoInformation:{Title:e?.SeoInformation?.Title,Description:e?.SeoInformation?.Description,Keywords:e?.SeoInformation?.Keywords,H1Tag:e?.SeoInformation?.H1Tag}}}static GetAccessoryTypeDetailsQuery(e){return{query:`query AccessoriesTypePage($routeSegment:String) { 2 AccessoriesTypePage(where: { 3 RouteSegment:{ 4 eq: $routeSegment 5 } 6 }) { 7 item { 8 ExternalId 9 Title 10 Name 11 ListText 12 SeoInformation { 13 Title 14 Description 15 Keywords 16 H1Tag 17 } 18 } 19 } 20}`,variables:{routeSegment:e}}}static GetAccessoryTypePageQuery(e,t,r,a,n){let l=Math.max(0,(t-1)*r);return{query:`query AccessoriesQuery($productAccessoryTypeId:Int, $limit:Int, $skip:Int, $webEnabled:Boolean, $itemNumber: String) { 21 ProductPage(limit: $limit, skip: $skip, where: { ItemNumber:{eq: $itemNumber} WebEnabled: {eq: $webEnabled} ProductAccessoryTypeId: { eq: $productAccessoryTypeId } }, orderBy: { _modified: DESC }) { 22 total 23 items { 24 Name 25 ItemNumber 26 ProductDefinition 27 ProductAccessoryTypeName 28 Attributes { 29 Name, 30 Value 31 }, 32 Specsheet{ 33 Url 34 } 35 Image { 36 Url 37 } 38 PlmStatus 39 Stock 40 ListPrice 41 Price 42 ProductModel{ 43 Expanded{ 44 ... on ProductModelPage{ 45 Image{ 46 Url 47 } 48 Name 49 Specsheet{ 50 Url 51 } 52 } 53 } 54 } 55 } 56 } 57}`,variables:{productAccessoryTypeId:e,limit:r,skip:l,webEnabled:a,itemNumber:n}}}static AccesssoryProductMapper(e){return s(t=>{let r=t?.data?.ProductPage?.items;return{items:r?r.map(n=>{let l=null;return n.Image&&n.Image?.Url?l=i(n.Image.Url):n.ProductModel?.Expanded?.Image?.Url&&(l=i(n.ProductModel.Expanded.Image.Url)),{Name:n.Name,ItemNumber:n.ItemNumber,ProductDefinition:n.ProductDefinition,ProductModel:n?.ProductModel?.Expanded?.Name,ProductAccessoryType:n?.ProductAccessoryTypeName,ImageUrl:l,SpecsheetUrl:n.Specsheet?.Url?i(n.Specsheet?.Url):n.ProductModel.Expanded.Specsheet?.Url?i(n.ProductModel.Expanded.Specsheet?.Url):null,PlmStatus:n.PlmStatus,Stock:n.Stock,ListPrice:n.ListPrice,Price:n.Price,Quantity:1}}):[],total:t?.data?.ProductPage?.total||0,nrPages:Math.ceil((t?.data?.ProductPage?.total||0)/e)}})}};var h=class{constructor(){o(this,"Title");o(this,"Description");o(this,"ReadMoreDescription");o(this,"AccessoryTypes");o(this,"ListText");o(this,"SeoInformation");o(this,"LogoUrl")}static GetMainAccessoriesPageQuery(e){return{query:`query GetMainAccessoriesPage($webEnabled:Boolean) { 58 AccessoriesPage { 59 item { 60 Title 61 Name 62 ListText 63 Description 64 ReadMoreDescription 65 SeoInformation { 66 Title 67 Description 68 Keywords 69 } 70 Logo { 71 Url 72 } 73 AccessoryTypes { 74 ContentLink { 75 Expanded { 76 ... on AccessoriesTypePage { 77 Title 78 Name 79 RouteSegment 80 Image { 81 Url 82 } 83 } 84 } 85 } 86 } 87 } 88 } 89 ProductPage(where: { WebEnabled: {eq: $webEnabled}}) { 90 facets{ 91 ProductAccessoryTypeName(limit:1000) { 92 name 93 count 94 } 95 } 96 } 97 }
98 `,variables:{webEnabled:e}}}static get MainAccesssoriesPageMapper(){return s(e=>{let t=e?.data?.AccessoriesPage?.item,r=e?.data?.ProductPage?.facets?.ProductAccessoryTypeName,a=n=>n?.map(l=>y.Map(l.ContentLink?.Expanded,r))||[];return t?{Title:t.Title,Description:t.Description,ReadMoreDescription:t.ReadMoreDescription,ListText:t.ListText,Name:t.Name,AccessoryTypes:a(t.AccessoryTypes),SeoInformation:t.SeoInformation,LogoUrl:t.Logo?.Url?i(t.Logo.Url):null}:null})}};var f=class{constructor(){o(this,"Title");o(this,"HtmlContent")}static Map(e){return{Title:e.Title,HtmlContent:e.HtmlContent}}};var M=class{constructor(){o(this,"Title");o(this,"Description");o(this,"MediaUrl")}static Map(e){return{Title:e.Title,Description:e.Description,MediaUrl:e.Image?.Url?i(e.Image?.Url):null}}};var C=class{constructor(){o(this,"Name");o(this,"ExternalId");o(this,"IsEEProduct");o(this,"ShowSensitTab");o(this,"RouteSegment");o(this,"RouteSegments");o(this,"CategoryPath");o(this,"GuidValue");o(this,"Description");o(this,"Products");o(this,"ImageUrl");o(this,"ImageAltText");o(this,"BannerImageUrl");o(this,"BannerImageAltText");o(this,"ModelCharacteristics");o(this,"ModelNumber");o(this,"ModelCaption");o(this,"ModelHero");o(this,"ModelSpecifications");o(this,"QualityAssuranceInfo");o(this,"ModelFeatures");o(this,"DefaultProduct");o(this,"OverviewProduct");o(this,"MainFilter");o(this,"MainFilter1");o(this,"MainFilter2");o(this,"MainFilter3");o(this,"SpecsheetUrl");o(this,"ExternalLoadUrl");o(this,"Model3DUrl");o(this,"AltModelDescription");o(this,"ApplicationsDescription");o(this,"Status");o(this,"Price");o(this,"Stock");o(this,"WebEnabled");o(this,"SeoInformation");o(this,"DefaultItemNumber");o(this,"CompactPackage");o(this,"CategoryGuid");o(this,"AvailableFilters");o(this,"Images");o(this,"Videos")}static Map(e){return{Name:e?.Name,GuidValue:e?.ContentLink?.GuidValue,Description:e?.ModelDescription,Products:e?.Products}}static MapProductModelDetails(e,t){return{Name:e?.ModelName,ExternalId:e?.ExternalId,ShowSensitTab:e?.SensitTab,IsEEProduct:e?.EEProduct,GuidValue:e?.ContentLink?.GuidValue,Description:e?.ModelDescription,ModelFeatures:e?.ModelFeatures,Products:e?.Products,QualityAssuranceInfo:e?.QualityAssuranceInfo?e.QualityAssuranceInfo.map(r=>M.Map(r.ContentLink?.Expanded)):null,ModelHero:e?.ModelHero?M.Map(e.ModelHero):null,BannerImageUrl:e?.BannerImage?.Url!=null?i(e.BannerImage.Url):null,BannerImageAltText:e?.BannerImage?.Expanded?.Caption?e.BannerImage.Expanded.Caption:e?.ModelNumber,ImageUrl:e?.Image?.Url!=null?i(e.Image.Url):null,ImageAltText:e?.Image?.Expanded?.Caption?e.Image.Expanded.Caption:e?.ModelNumber,CompactPackage:e?.CompactPackage?.Expanded?.Description?M.Map(e.CompactPackage?.Expanded):null,ModelSpecifications:e?.ModelSpecifications,ModelNumber:e?.ModelNumber,DefaultItemNumber:e?.DefaultProduct?.Expanded?.ItemNumber,CategoryPath:e?.CategoryPath,MainFilter:e?.MainFilter,MainFilter1:e?.MainFilter1,MainFilter2:e?.MainFilter2,MainFilter3:e?.MainFilter3,AvailableFilters:e?.AvailableFilters,SpecsheetUrl:e?.Specsheet?.Url!=null?i(e?.Specsheet?.Url):null,ExternalLoadUrl:e?.ExternalLoad?.Url!=null?i(e?.ExternalLoad?.Url):null,Model3DUrl:e?.Model3D?.Url!=null?i(e?.Model3D?.Url):null,AltModelDescription:e?.AltModelsDescription,ApplicationsDescription:e?.ApplicationsDescription,SeoInformation:e?.SeoInformation,RouteSegments:e?.RouteSegments,OverviewProduct:e?.OverviewProduct,CategoryGuid:t?.ContentLink?.GuidValue,Images:e?.Images?.map(r=>({Url:r.ContentLink?.Expanded?.Url?i(r.ContentLink?.Expanded?.Url):null,ImageAltText:r.ContentLink?.Expanded?.Caption?r.ContentLink?.Expanded?.Caption:null})),Videos:e?.Videos?.map(r=>({VideoTitle:r.AltText,Videos:r.Url}))}}static MapModelPreview(e){return{Name:e?.Name,ExternalId:e?.ExternalId,RouteSegment:e?.RouteSegment,GuidValue:e?.ContentLink?.GuidValue,Description:e?.PlmDescription,ImageUrl:e?.Image?.Url!=null?i(e.Image.Url):null,ImageAltText:e?.Image?.Expanded?.Caption?e.Image.Expanded.Caption:e?.ModelNumber,ModelNumber:e?.ModelNumber,ModelCaption:e?.ModelCaption,ModelCharacteristics:e?.ModelCharacteristics,WebEnabled:e?.WebEnabled}}},I=class{static get ProductModelsMapper(){return s(e=>({ProductModels:e.data.ProductModelPage.items.map(t=>({GuidValue:t.ContentLink.GuidValue,Name:t.Name,RouteSegment:t.RouteSegment,ModelNumber:t.ModelNumber,WebEnabled:t.WebEnabled,ImageUrl:t.Image?.Url?i(t.Image.Url):null}))}))}static GetProductModelsBody(e,t){return t?{query:`query GetProductModels($guids: [String]){ 99 ProductModelPage( 100 ids: $guids, 101 limit:100, 102 where: { 103 RouteSegments: { 104 startsWith: "store/legacy-sensors-and-instruments/" 105 } 106 } 107 ) { 108 items { 109 ContentLink { 110 GuidValue 111 } 112 RouteSegments 113 } 114 } 115 }`,variables:{guids:e}}:{query:`query GetProductModels($guids: [String]){ 116 ProductModelPage( 117 ids: $guids, 118 limit:100 119 ) { 120 items { 121 ContentLink { 122 GuidValue 123 } 124 Name: PlmDescription 125 WebEnabled 126 RouteSegment 127 ModelNumber 128 Image { 129 Url 130 } 131 } 132 } 133 }`,variables:{guids:e}}}static get ProductModelDetailsMapper(){return s(e=>C.MapProductModelDetails(e?.data?.ProductModelPage?.item,e?.data?.ProductCategoryPage?.item))}static GetProductModelDetailsBody(e,t){return{query:`query GetProductModelDetails($productModelRouteSegment: String, $productCategoryRouteSegment: String){ 134 ProductModelPage(where:{ 135 RouteSegment: {eq: $productModelRouteSegment } 136 } 137 orderBy: { _modified: DESC } 138 limit: 1 139 ) { 140 item { 141 ModelNumber 142 EEProduct 143 SensitTab 144 ModelName: PlmDescription 145 ExternalId 146 ModelDescription 147 ModelFeatures 148 AltModelsDescription 149 ApplicationsDescription 150 CategoryPath 151 MainFilter 152 MainFilter1 153 MainFilter2 154 MainFilter3 155 AvailableFilters 156 ModelSpecifications 157 Specsheet{ Url } 158 ExternalLoad{ Url } 159 Model3D { Url } 160 BannerImage { 161 Url 162 Expanded { 163 ... on ImageFile{ 164 Caption 165 } 166 } 167 } 168 Image { 169 Url 170 Expanded { 171 ... on ImageFile{ 172 Caption 173 } 174 } 175 } 176 RouteSegments 177 ModelHero{ 178 Title 179 Description 180 Image { 181 Url 182 } 183 } 184 Images { 185 ContentLink { 186 Expanded { 187 Url 188 ... on ImageFile{ 189 Caption 190 } 191 } 192 } 193 } 194 Videos { 195 Url 196 AltText 197 } 198 QualityAssuranceInfo { 199 ContentLink{ 200 Expanded { 201 ... imageHtmlFields 202 } 203 } 204 } 205 DefaultProduct{ 206 Expanded { 207 ... on ProductPage { 208 ItemNumber 209 } 210 } 211 } 212 ContentLink { 213 GuidValue 214 } 215 SeoInformation { 216 Title 217 Description 218 Keywords 219 H1Tag 220 } 221 CompactPackage{ 222 Expanded{ 223 ... imageHtmlFields 224 } 225 } 226 } 227 } 228 ProductCategoryPage(where:{ 229 RouteSegment: { eq: $productCategoryRouteSegment} 230 } 231 orderBy: { _modified: DESC} 232 limit: 1 233 ) { 234 item { 235 ContentLink{ 236 GuidValue 237 } 238 } 239 } 240 } 241 fragment imageHtmlFields on ImageHtmlBlock { 242 Title 243 Description 244 Image{ Url } 245 } 246 `,variables:{productModelRouteSegment:e,productCategoryRouteSegment:t}}}static GetObsoleteProductModelFacetsBody(e){return e?{query:`query GetObsoleteProductModelFacets($webenabled: Boolean) 247 { 248 ProductPage( 249 where: { 250 WebEnabled: { eq: $webenabled } 251 PlmStatus: { eq: "Obsolete" } 252 Stock: { eq: 0 } 253 } 254 ) { 255 facets { 256 ProductModel { 257 GuidValue(limit: 1000) { 258 name 259 count 260 } 261 } 262 } 263 } 264 }`,variables:{webenabled:e?!0:null}}:{query:`query GetObsoleteProductModelFacets 265 { 266 ProductPage( 267 where: { 268 PlmStatus: { eq: "Obsolete" } 269 Stock: { eq: 0 } 270 } 271 ) { 272 facets { 273 ProductModel { 274 GuidValue(limit: 1000) { 275 name 276 count 277 } 278 } 279 } 280 } 281 }`}}static get GetObsoleteProductModelFacetsMapper(){return s(e=>({Guids:e.data.ProductPage.facets?.ProductModel?.GuidValue.map(t=>t.name)}))}static GetObsoleteModelDetailsBody(e){return{query:`query GetObsoleteProductModelDetails($routeSegment: String) { 282 ProductModelPage(where: { RouteSegment: { eq: $routeSegment } }) { 283 item { 284 ContentLink { 285 GuidValue 286 } 287 Name: PlmDescription 288 ModelDescription 289 WebEnabled 290 RouteSegment 291 ModelNumber 292 Image { 293 Url 294 } 295 Images { 296 ContentLink { 297 Expanded { 298 Url 299 } 300 } 301 } 302 Videos{ 303 Url 304 AltText 305 } 306 Specsheet{ Url } 307 ExternalLoad{ Url } 308 Model3D { Url } 309 SeoInformation { 310 Title 311 Description 312 Keywords 313 } 314 315 } 316 } 317 }`,variables:{routeSegment:e}}}static get GetObsoleteModelDetailsMapper(){return s(e=>{let t=e.data.ProductModelPage.item;return{GuidValue:t.ContentLink?.GuidValue,Name:t.Name,ModelDescription:t.ModelDescription,RouteSegment:t.RouteSegment,ModelNumber:t.ModelNumber,WebEnabled:t.WebEnabled,ImageUrl:t.Image?.Url?i(t.Image.Url):null,Images:t.Images?.map(r=>({ImageUrl:r.ContentLink?.Expanded?.Url?i(r.ContentLink?.Expanded?.Url):null})),ProductVideoModel:t.Videos.map(r=>({Videos:r.Url?i(r.Url):null})),SpecsheetUrl:t?.Specsheet?.Url!=null?i(t?.Specsheet?.Url):null,ExternalLoadUrl:t?.ExternalLoad?.Url!=null?i(t?.ExternalLoad?.Url):null,Model3DUrl:t?.Model3D?.Url!=null?i(t?.Model3D?.Url):null,SeoInformation:t?.SeoInformation}})}static get GetProductModelInfoMapper(){return s(e=>C.MapProductModelDetails(e?.data?.ProductModelPage?.item,e?.data?.ProductCategoryPage?.item))}static GetProductModelInfoBody(e,t){return{query:`query GetProductModelInfo($productModelRouteSegment: String, $productCategoryRouteSegment: String){ 318 ProductModelPage(where:{ RouteSegment: {eq: $productModelRouteSegment } } 319 orderBy: { _modified: DESC } 320 limit: 1) 321 { 322 item { 323 ModelNumber 324 ExternalId 325 ModelName: PlmDescription 326 DefaultProduct{ 327 Expanded { 328 ... on ProductPage { 329 ItemNumber 330 } 331 } 332 } 333 ContentLink{ GuidValue } 334 RouteSegment 335 ModelDescription 336 ModelFeatures 337 Specsheet{ Url } 338 ExternalLoad{ Url } 339 Model3D { Url } 340 Images { 341 ContentLink{ 342 Expanded{ 343 Url 344 } 345 } 346 } 347 Videos { 348 Url 349 AltText 350 } 351 SeoInformation { 352 Title 353 Description 354 Keywords 355 } 356 } 357 } 358 ProductCategoryPage(where:{ RouteSegment: { eq: $productCategoryRouteSegment}} 359 orderBy: { _modified: DESC} 360 limit: 1) 361 { 362 item { 363 ContentLink{ GuidValue } 364 } 365 } 366 } 367 `,variables:{productModelRouteSegment:e,productCategoryRouteSegment:t}}}};var x=class{constructor(){o(this,"Title");o(this,"Description");o(this,"ImageUrl");o(this,"ImageAltText");o(this,"ProductModels")}static Map(e){return{Title:e.Title,ProductModels:e.ProductModels.map(t=>
367C.MapModelPreview(t.ContentLink?.Expanded)),Description:e.Description,ImageUrl:e.Image?.Url!=null?i(e.Image.Url):null,ImageAltText:e.Image?.Expanded?.Caption??e.Title}}};var L=class{constructor(){o(this,"GuidValue");o(this,"ExternalId")}static Map(e){return{GuidValue:e.GuidValue,ExternalId:e.Expanded?.ExternalId||0}}};var N=class{constructor(){o(this,"Title");o(this,"Description");o(this,"ImageUrl");o(this,"ImageAltText");o(this,"ProductSeries")}static Map(e){return{Title:e.ContentLink.Expanded.Title,ProductSeries:e.ContentLink.Expanded.ProductSeries.map(r=>({Name:r.ContentLink.Expanded.Name,OracleName:r.ContentLink.Expanded.OracleName,FullCode:r.ContentLink.Expanded.FullCode,ImageUrl:r.ContentLink.Expanded.Image.Url?i(r.ContentLink.Expanded.Image.Url):null,ImageAltText:r.ContentLink.Expanded.Image.Expanded?.Caption??r.ContentLink.Expanded.Name,WebEnabled:r.ContentLink.Expanded.WebEnabled,RouteSegment:r.ContentLink.Expanded.RouteSegment,GuidValue:r.ContentLink.GuidValue})),Description:e.ContentLink.Expanded.Description,ImageUrl:e.ContentLink.Expanded.Image.Url?i(e.ContentLink.Expanded.Image.Url):null,ImageAltText:e.ContentLink.Expanded.Image.Expanded?.Caption??e.ContentLink.Expanded.Title}}};var g=class p{constructor(){o(this,"RouteSegment");o(this,"Name");o(this,"Title");o(this,"Description");o(this,"Details");o(this,"FAQArea");o(this,"MenuIconUrl");o(this,"ProductSeriesGroup");o(this,"ProductSeries");o(this,"SeoInformation");o(this,"ProductSubclassesCategories");o(this,"GuidValue");o(this,"DropdownFilters")}static GetProductClassesBody(){return{query:`query GetProductClasses { 368 ProductClassPage { 369 items { 370 Name 371 RouteSegment 372 MenuIcon{ 373 Url 374 } 375 } 376 } 377 }`}}static get ProductClassesMapper(){return s(e=>e.data.ProductClassPage.items.map(t=>k(b({},t),{MenuIconUrl:i(t.MenuIcon.Url)})))}static GetProductClassDetailsBody(e){return{query:`query GetProductClassDetails($productClassRouteSegment: String) { 378 ProductClassPage( 379 where: { RouteSegment:{eq: $productClassRouteSegment} } 380 orderBy: { _modified: DESC }) 381 { 382 item { 383 Name 384 RouteSegment 385 Description 386 Details 387 ContentLink { GuidValue } 388 ProductSubclassesCategories { 389 SubClass 390 ProductCategoryGuid 391 ProductCategoryName 392 } 393 FAQArea { 394 ContentLink { 395 Expanded { 396 ... on ExpandableBlock{ 397 Title 398 HtmlContent 399 } 400 } 401 402 } 403 } 404 SeoInformation { 405 Title 406 Description 407 Keywords 408 } 409 DropdownFilters { 410 DropdownFilter 411 } 412 ProductSerieGroups { 413 ContentLink { 414 Expanded { 415 ... on ProductSerieGroupBlock { 416 Title 417 Description 418 Image { 419 Url 420 Expanded { 421 ... on ImageFile { 422 Caption 423 } 424 } 425 } 426 ProductSeries { 427 ContentLink { 428 GuidValue 429 Expanded { 430 ... on ProductCategoryPage { 431 Name 432 OracleName 433 FullCode 434 Image { 435 Url 436 Expanded { 437 ... on ImageFile { 438 Caption 439 } 440 } 441 } 442 WebEnabled 443 RouteSegments 444 RouteSegment 445 } 446 } 447 } 448 } 449 } 450 } 451 } 452 } 453 ProductSeries { 454 ContentLink { 455 GuidValue 456 Expanded { 457 ... on ProductCategoryPage { 458 ExternalId 459 } 460 } 461 } 462 } 463 } 464 } 465 }`,variables:{productClassRouteSegment:e}}}static get ProductClassDetailsBodyMapper(){return s(e=>{let t=e.data.ProductClassPage.item;return this.MapProductClassDetails(t)})}static MapProductClassDetails(e){return e?{RouteSegment:e.RouteSegment,Name:e.Name,Title:e.Title,Description:e.Description,Details:e.Details,ProductSeriesGroup:e.ProductSerieGroups?.map(t=>N.Map(t)),ProductSeries:e.ProductSeries?.map(t=>L.Map(t.ContentLink)),SeoInformation:e.SeoInformation,GuidValue:e.ContentLink?.GuidValue,ProductSubclassesCategories:e.ProductSubclassesCategories,DropdownFilters:e.DropdownFilters?.map(t=>t.DropdownFilter)}:new p}static GetSubClassesByClassBody(e){return{query:`query GetSubClassByClassAndCategory($classRouteSegment: String){ 466 ProductClassPage(where: { 467 RouteSegment: {eq: $classRouteSegment} 468 }){ 469 item{ 470 ContentLink{ GuidValue } 471 RouteSegment 472 ProductSubclassesCategories { 473 SubClass 474 ProductCategoryGuid 475 ProductCategoryName 476 } 477 } 478 } 479 }`,variables:{classRouteSegment:e}}}static get GetSubClassesByClassMapper(){return s(e=>{let t=e.data.ProductClassPage.item;return{GuidValue:t.ContentLink?.GuidValue,RouteSegment:t.RouteSegment,ProductSubclassesCategories:t.ProductSubclassesCategories}})}static GetSubClassesBySeriesBody(e){return{query:`query GetSubClassByClassAndCategory($guidValue: [String]){ 480 ProductClassPage(where: { 481 ProductSeries: { 482 ContentLink:{ 483 GuidValue: { 484 in: $guidValue 485 } 486 } 487 }}, limit: 1){ 488 item{ 489 ContentLink{ GuidValue } 490 RouteSegment 491 ProductSubclassesCategories { 492 SubClass 493 ProductCategoryGuid 494 ProductCategoryName 495 } 496 } 497 } 498 }`,variables:{guidValue:[e]}}}};var F=class{constructor(){o(this,"Name");o(this,"ExternalId");o(this,"OracleName");o(this,"ClassName");o(this,"GuidValue");o(this,"Description");o(this,"Details");o(this,"QAArea");o(this,"ProductModelGroups");o(this,"SeoInformation");o(this,"ProductClass");o(this,"DropdownFilters")}static MapPageDetails(e,t){return{Name:e?.Name,ExternalId:e?.ExternalId,OracleName:e?.OracleName,ClassName:t?.Name,GuidValue:e?.ContentLink?.GuidValue,Description:e?.Description,Details:e?.Details,QAArea:e?.QAArea?.map(r=>f.Map(r.ContentLink?.Expanded)),ProductModelGroups:e?.ProductModelGroups?.map(r=>x.Map(r.ContentLink?.Expanded)),SeoInformation:e?.SeoInformation,ProductClass:g.MapProductClassDetails(t),DropdownFilters:e?.DropdownFilters?.map(r=>r.DropdownFilter)}}},U=class{static GetProductSeriesDetailsBody(e,t){return{query:`query GetProductSeriesDetails($productSeriesRouteSegment: String, $productClassRouteSegment: String){ 499 ProductCategoryPage(where:{ 500 RouteSegment: { eq: $productSeriesRouteSegment } 501 } 502 orderBy: { _modified: DESC } 503 limit: 1 504 ) { 505 item { 506 Name 507 ExternalId 508 OracleName 509 Description 510 Details 511 ContentLink { GuidValue } 512 QAArea { 513 ContentLink { Expanded { 514 ... on ExpandableBlock{ 515 Title 516 HtmlContent 517 } 518 }} 519 } 520 SeoInformation { 521 Title 522 Description 523 Keywords 524 } 525 DropdownFilters { 526 DropdownFilter 527 } 528 ProductModelGroups { 529 ContentLink{ Expanded{ 530 ... on ProductModelGroupBlock { 531 Title 532 Description 533 Image { Url } 534 ProductModels { 535 ContentLink{ Expanded{ 536 ... on ProductModelPage{ 537 Name 538 ExternalId 539 PlmDescription 540 RouteSegment 541 ContentLink{ GuidValue } 542 ModelNumber 543 ModelCharacteristics 544 ModelCaption 545 Image{ 546 Url 547 Expanded { 548 ... on ImageFile{ 549 Caption 550 } 551 } 552 } 553 WebEnabled 554 } 555 }} 556 } 557 } 558 }} 559 } 560 } 561 } 562 ProductClassPage( 563 where: { 564 RouteSegment:{eq: $productClassRouteSegment} 565 } 566 orderBy: { _modified: DESC } 567 limit: 1) 568 { 569 item { 570 Name 571 ContentLink { GuidValue } 572 ProductSubclassesCategories { 573 SubClass 574 ProductCategoryGuid 575 ProductCategoryName 576 } 577 }}}`,variables:{productSeriesRouteSegment:e,productClassRouteSegment:t}}}static get ProductSeriesDetailsMapper(){return s(e=>F.MapPageDetails(e?.data?.ProductCategoryPage?.item,e?.data?.ProductClassPage?.item))}};var T=class{static mapProductAging(e,t,r,a,n,l,u){if(e==null||e==0)return[];let c=[];return t>0&&c.push({Title:"Less than 3 Months",Color:"#1ae929",Aging:t,fontc
577olor:"#000"}),r>0&&c.push({Title:"3-6 Months",Color:"#e9e21a",Aging:r,fontcolor:"#000"}),a>0&&c.push({Title:"6-12 Months",Color:"#e98f1a",Aging:a,fontcolor:"#fff"}),n>0&&c.push({Title:"1-2 years",Color:"#e91a1a",Aging:n,fontcolor:"#fff"}),l>0&&c.push({Title:"2-3 years",Color:"#4e387e",Aging:l,fontcolor:"#fff"}),u>0&&c.push({Title:"Over 3 Years",Color:"Black",Aging:u,fontcolor:"#fff"}),c}};var m=class p{static buildAttributesList(e,t,r){return r?e.map(a=>`${a.SanitizedName} { 578 FilterValues(${t[a.SanitizedName]?`filters:$${a.SanitizedName},`:""} orderBy: DESC, orderType: COUNT, limit: 500) {name count}}`).join(` 579 `):e.map(a=>`${a.SanitizedName} { 580 FilterValues(orderBy: DESC, orderType: COUNT, limit: 500) {name count} }`).join(` 581 `)}static flattenAppliedFilters(e){let t={};for(let r in e)if(e.hasOwnProperty(r)){let a=e[r].reduce((n,l)=>n.concat(l),[]);t[r]=Array.from(new Set(a))}return t}static buildFacetsProductFilter(){return` 582 WebEnabled:{ eq: $onlyWebEnabled} 583 _and: [ 584 { PlmSubClasses: { in: $subclasses } } 585 { Name: { in: $availableItemNumbers } } 586 ] 587 ExcludedProductClasses: { notIn: $productClasses } 588 `}static GetProductModelsGuidsByFacetsBody(e,t,r,a,n,l,u,c){let P=this.flattenAppliedFilters(b({},l)),S=P,B=this.buildAttributesList(e,P,!0),D=this.buildFacetsProductFilter();S.categoryGuid=[t],S.modelGuids=r.length>0?r:null,S.productClasses=a?[a]:null,S.subclasses=n?.length>0?n:null,S.availableItemNumbers=u?.length>0?u:null;let A=Object.keys(S).map(W=>`$${W}: [String!]`).join(", ");return A+=", $onlyWebEnabled: Boolean",S.onlyWebEnabled=c===!0?c:null,{query:`query GetProductModelsGuidsByFacets(${A}) { 589 ProductPage(where:{ 590 ProductCategory:{ GuidValue: {in: $categoryGuid}} 591 ProductModel: {GuidValue: { in: $modelGuids }} 592 ${D} 593 }){ 594 facets{ 595 ProductModel { 596 GuidValue(orderBy: DESC, orderType: COUNT, limit: 100) { 597 name 598 count 599 } 600 } 601 ${B} 602 } 603 } 604 }`,variables:S}}static get GetProductModelsGuidsByFacetsMapper(){return s(e=>e.data.ProductPage)}static GetProductModelsGuidsByProductSeriesBody(e){return{query:`query GetProductModelsGuidsByProductSeries($guidValue: String) { 605 ProductPage(where:{ 606 ProductCategory:{GuidValue:{eq:$guidValue}} 607 WebEnabled:{eq:true} 608 }) { 609 facets{ 610 ProductModel { 611 GuidValue { 612 name 613 } 614 } 615 } 616 } 617 }`,variables:{guidValue:e}}}static get ProductModelsGuidsByProductSeriesMapper(){return s(e=>({Guids:e.data.ProductPage.facets.ProductModel.GuidValue.map(t=>t.name)}))}static get ProductsByProductModelMapper(){return s(e=>({Products:e.data.ProductPage.items.map(t=>({eeProductOverviewDetails:{BannerImageUrl:t?.BannerImage?.Url!=null?i(t.BannerImage.Url):null,BannerImageAltText:t?.BannerImage?.Expanded?.Caption?t.BannerImage.Expanded.Caption:t?.Name,ProductHero:t.ProductHero?M.Map(t.ProductHero):null,CompactPackage:t.CompactPackage?.Expanded?.Description?M.Map(t.CompactPackage?.Expanded):null,ProductSpecifications:t?.ProductSpecifications,QualityAssuranceInfo:t?.QualityAssuranceInfo?t.QualityAssuranceInfo.map(r=>M.Map(r.ContentLink?.Expanded)):null},PresentOverviewTab:t.PresentOverviewTab,Name:t.Name,Stock:t.Stock,ProductTypeName:t.ProductTypeName,ItemNumber:t.ItemNumber,ItemSelectorIndex:t.ItemSelectorIndex,ItemSelectorName:t.ItemSelectorName,ItemTabName:t.ItemTabName,ImageUrl:t?.Image?.Expanded?.Url?`${d.OptimizelyCMSBaseUrl}${t?.Image.Expanded.Url}`:null,CustomProduct:t.CustomProduct?t.CustomProduct:!1,WebEnabled:t.WebEnabled?t.WebEnabled:!1,Attributes:t.Attributes,RouteSegment:t.RouteSegment,GuidValue:t.ContentLink?.GuidValue,ProductDefinition:t.ProductDefinition,SpecsheetUrl:t.Specsheet?.Url!=null?i(t.Specsheet?.Url):null,ExternalLoadUrl:t.ExternalLoad?.Url!=null?i(t.
617ExternalLoad?.Url):null,Model3DUrl:t.Model3D?.Url!=null?i(t.Model3D?.Url):null,ProductAging:T.mapProductAging(t.Stock,t.AgingOne,t.AgingTwo,t.AgingThree,t.AgingFour,t.AgingFive,t.AgingSix)})).sort((t,r)=>t.ItemSelectorIndex-r.ItemSelectorIndex)}))}static GetProductsByProductModelBody(e,t,r,a,n,l){let u=this.buildFacetsProductFilter();return a=a?.filter(c=>c!=null)??[],r=r?.filter(c=>c!=null)??[],{query:`query GetProductsByProductModel($productModelGuid: String, $productCategoryGuid: String, $onlyWebEnabled: Boolean, $availableItemNumbers: [String], $subclasses: [String], $productClasses: [String]){ 618 ProductPage(where:{ 619 ProductModel:{GuidValue:{eq:$productModelGuid}} 620 ProductCategory: {GuidValue: {eq: $productCategoryGuid}} 621 ${u} 622 }, limit: 100) { 623 items { 624 Image { 625 Expanded{ 626 Url 627 } 628 } 629 BannerImage { 630 Url 631 Expanded { 632 ... on ImageFile { 633 Caption 634 } 635 } 636 } 637 ProductHero { 638 Title 639 Description 640 Image { 641 Url 642 } 643 } 644 CompactPackage { 645 Expanded { 646 ...imageHtmlFields 647 } 648 } 649 ProductSpecifications 650 QualityAssuranceInfo { 651 ContentLink { 652 Expanded { 653 ...imageHtmlFields 654 } 655 } 656 } 657 PresentOverviewTab 658 Name 659 ItemNumber 660 ItemSelectorName 661 ItemSelectorIndex 662 ItemTabName 663 Stock 664 ProductTypeName 665 Attributes{ 666 Name 667 SanitizedName 668 Values 669 MeasureUnit 670 MetricValues 671 MetricMeasureUnit 672 name: FilterValues 673 } 674 ProductDefinition 675 RouteSegment 676 CustomProduct 677 WebEnabled 678 ContentLink { 679 GuidValue 680 } 681 Specsheet {Url } 682 ExternalLoad{ Url } 683 Model3D { Url } 684 } 685 } 686 } 687 fragment imageHtmlFields on ImageHtmlBlock { 688 Title 689 Description 690 Image { 691 Url 692 } 693 }`,variables:{productModelGuid:e,productCategoryGuid:t,productClasses:a.length>0?a:null,subclasses:r?.length>0?r:null,onlyWebEnabled:l===!0?l:null,availableItemNumbers:n.length>0?n:null}}}static get GetObsoleteProductsByProductModelMapper(){return s(e=>({Products:e.data.ProductPage.items.map(t=>({ItemNumber:t.ItemNumber,RouteSegment:t.RouteSegment,RouteSegments:t.RouteSegments,SpecsheetUrl:t.Specsheet?.Url!=null?i(t.Specsheet?.Url):null,ExternalLoadUrl:t.ExternalLoad?.Url!=null?i(t.ExternalLoad?.Url):null,Model3DUrl:t.Model3D?.Url!=null?i(t.Model3D?.Url):null,WebEnabled:t.WebEnabled}))}))}static GetObsoleteProductsByProductModelBody(e,t,r){return{query:`query GetObsoleteProductsByProductModel($productModelGuid: String, $onlyWebEnabled: Boolean){ 694 ProductPage(where:{ 695 ProductModel:{GuidValue:{eq:$productModelGuid}} 696 # ProductCategory: {GuidValue: {eq: $productCategoryGuid}} 697 PlmStatus: { eq: "Obsolete" } 698 Stock: { eq: 0 } 699 WebEnabled: {eq: $onlyWebEnabled} 700 }, limit: 100) { 701 items { 702 ItemNumber 703 RouteSegment 704 RouteSegments 705 WebEnabled 706 Specsheet {Url } 707 ExternalLoad{ Url } 708 Model3D { Url } 709 } 710 } 711 }`,variables:{productModelGuid:e,onlyWebEnabled:r===!0?r:null}}}static GetProductFacetsWithFiltersBody(e,t,r,a){let n=b({},r),l=this.buildAttributesList(e,r,!0);return n.modelGuids=t?[t]:null,n.plmWebEnabled=a?["Y"]:null,{query:`query GetProductModelsGuidsBy
711Facets(${Object.keys(n).map(P=>`$${P}: [String!]`).join(", ")}) { 712 ProductPage(where:{ 713 WebEnabled:{ eq: true} 714 _or: [ 715 { PlmStatus: { notEq: "Obsolete" } } 716 { _and: [{ PlmStatus: { eq: "Obsolete" } }, { Stock: { gt: 0 } }] } 717 ] 718 ProductModel: {GuidValue: { in: $modelGuids }} 719 PLM_WEB_ENABLED: { Value: {in: $plmWebEnabled}} 720 }){ 721 facets{ 722 ItemNumber { 723 name 724 count 725 } 726 ${l} 727 } 728 } 729 }`,variables:n}}static get GetProductFacetsWithFiltersMapper(){return s(e=>e.data.ProductPage)}static get ProductDetailsMapper(){return s(e=>({Name:e.data.ProductPage.items[0]?.Name,ModelNumber:e.data.ProductPage.items[0]?.ModelNumber,Code:e.data.ProductPage.items[0]?.Code,Price:e.data.ProductPage.items[0]?.Price,Stock:e.data.ProductPage.items[0]?.Stock,WebEnabled:e.data.ProductPage.items[0]?.WebEnabled,PlmStatus:e.data.ProductPage.items[0]?.PlmStatus,Description:e.data.ProductPage.items[0]?.Description,Id:e.data.ProductPage.items[0]?.ContentLink.Id,ProductModel:e.data.ProductPage.items[0]?.ProductModel.Expanded,Videos:[],Files:[],Attributes:e.data.ProductPage.items[0]?.Attributes,Images:e.data.ProductPage.items[0]?.Images.map(t=>({ImageUrl:i(t.ContentLink.Expanded.Url)}))}))}static GetDefaultInstrumentProductStorePageBody(){return{query:`query GetStorePage { 730 StorePage(orderBy: { _modified: DESC }, limit: 1) { 731 items { 732 DefaultInstrumentProduct { 733 ContentLink { 734 Expanded { 735 __typename 736 ...DefaultInstrumentProductFields 737 } 738 } 739 } 740 } 741 } 742 } 743 744 fragment DefaultInstrumentProductFields on DefaultInstrumentProduct { 745 AccessoriesType 746 DefaultProduct { 747 Expanded { 748 ... on ProductPage { 749 Name 750 Url 751 } 752 } 753 } 754 }`}}static get GetDefaultInstrumentProductMapper(){return s(e=>(e?.data?.StorePage?.items??[]).flatMap(r=>r?.DefaultInstrumentProduct??[]).map(r=>{let a=r?.ContentLink?.Expanded,n=a?.DefaultProduct?.Expanded;return{accessoriesTypeId:Number(a?.AccessoriesType),name:n?.Name}}))}static GetProductDetailsBody(e){return{query:`query GetProductDetails($productC
754ode: String) { 755 ProductPage(where:{ 756 ItemNumber: { eq: $productCode } 757 } 758 orderBy: { _modified: DESC } 759 ) { 760 items { 761 Name 762 ItemNumber 763 Code 764 Price 765 Stock 766 WebEnabled 767 PlmStatus 768 Description 769 ContentLink { 770 Id 771 } 772 Attributes{ 773 Name 774 SanitizedName 775 Value 776 MeasureUnit 777 MetricValue 778 MetricMeasureUnit 779 } 780 Images{ 781 ContentLink { 782 Expanded { 783 Url 784 } 785 } 786 } 787 ProductModel { 788 Expanded { 789 ... on ProductModelPage { 790 ModelNumber 791 Name 792 ModelDescription 793 } 794 } 795 } 796 } 797 } 798 }`,variables:{productCode:e}}}static GetFacetsBody(e,t,r,a,n,l){let u=this.buildAttributesList(e,{},!1);return{query:`query GetFacets($guidValues: [String],$productClasses: [String],$subclasses: [String], $availableItemNumbers: [String], $onlyWebEnabled: Boolean) { 799 ProductPage(where:{ 800 ProductCategory:{ GuidValue: { in: $guidValues }} 801 ${this.buildFacetsProductFilter()} 802 }){ 803 total 804 facets{ 805 ProductCategory{ 806 GuidValue(orderBy: DESC, orderType: COUNT, limit: 100) { 807 name 808 count 809 } 810 } 811 ${u} 812 } 813 } 814 }`,variables:{guidValues:t.length>0?t:null,onlyWebEnabled:l===!0?l:null,productClasses:r?[r]:null,subclasses:a?.length>0?a:null,availableItemNumbers:n?.length>0?n:null}}}static get FacetsMapper(){return s(e=>e.data.ProductPage)}static GetFacetsWithFiltersBody(e,t,r,a,n,l,u){let c=this.flattenAppliedFilters(b({},n)),P=c,S=this.buildAttributesList(e,c,!0),B=this.buildFacetsProductFilter();P.guidValues=t.length>0?t:null,P.productClasses=r?[r]:null,P.subclasses=a?.length>0?a:null,P.availableItemNumbers=l?.length>0?l:null;let D=Object.keys(P).map($=>`$${$}: [String!]`).join(", ");return D+=", $onlyWebEnabled: Boolean",P.onlyWebEnabled=u===!0?u:null,{query:`query GetFacetsWithFilters(${D}) { 815 ProductPage(where:{ 816 ProductCategory:{ GuidValue: { in: $guidValues }} 817 ${B} 818 }){ 819 facets{ 820 ProductCategory{ 821 GuidValue(orderBy: DESC, orderType: COUNT, limit: 300) { 822 name 823 count 824 } 825 } 826 ${S} 827 } 828 } 829 }`,variables:P}}static get FacetsWithFiltersMapper(){return s(e=>e.data.ProductPage)}static GetProductPreviewsByItemNumbersBody(e,t){return{query:`query GetProductPreviewsByItemNumbers($itemNumbers: [String], $onlyWebEnabled: Boolean) { 830 ProductPage(where:{ 831 ItemNumber: { in: $itemNumbers }, 832 WebEnabled: { eq: $onlyWebEnabled}} 833 ) { 834 items { 835 ItemNumber 836 ProductDefinition 837 Features 838 ProductTypeName 839 ProductAccessoryTypeName 840 RouteSegments 841 CategoryPath 842 DefaultInstrumentCategories 843 PLM_OUTPUT_TYPE{ 844 Values 845 } 846 ProductModel{ 847 Expanded{ 848 ... on ProductModelPage{ 849 ModelNumber 850 ModelName: PlmDescription 851 Image { 852 Url 853 } 854 } 855 } 856 } 857 Image{ 858 Url 859 } 860 Images { 861 ContentLink { 862 Expanded { 863 Url 864 } 865 } 866 } 867 } 868 } 869 }`,variables:{itemNumbers:e,onlyWebEnabled:t===!0?!0:null}}}static get GetProductPreviewsByItemNumbersMapper(){return s(e=>e.data.ProductPage.items.map(t=>({ItemNumber:t.ItemNumber,ProductDefinition:t.ProductDefinition,Features:t.Features,RouteSegments:t.RouteSegments,ProductModel:t.ProductModel?.Expanded?.ModelNumber,ProductModelName:t.ProductModel?.Expanded?.ModelName,ImageUrl:p.mapProductImage(t),CategoryPath:t.CategoryPath,InstrumentCategory:t.PLM_OUTPUT_TYPE?.Values,DefaultInstrumentCategories:t.DefaultInstrumentCategories,ProductAccessoryTypeName:t.ProductAccessoryTypeName})))}static GetPDPViewDetailsBody(e){return{query:`query
870 GetPDPViewDetails($productCode: String) { 871 ProductPage(where:{ 872 Name: { eq: $productCode } 873 } 874 orderBy: { _modified: DESC } 875 ) { 876 item { 877 ExternalId 878 ItemNumber 879 Name 880 ProductDefinition 881 Description 882 Features 883 ProductTypeName 884 RouteSegments 885 CategoryPath 886 Images{ 887 ContentLink{ 888 Expanded{ 889 Url 890 ... on ImageFile{ 891 Caption 892 } 893 } 894 } 895 } 896 Image { 897 Url 898 Expanded { 899 ... on ImageFile{ 900 Caption 901 } 902 } 903 } 904 Videos { 905 Url 906 AltText 907 } 908 Specifications { 909 CategoryId 910 CategoryName 911 SpecsList { 912 Element 913 Minimum 914 Maximum 915 Unit 916 UOM 917 Typ 918 Tooltip 919 UnitDescription 920 Channel 921 } 922 } 923 AlternativeModels 924 Status: PlmStatus 925 Price 926 Stock 927 WebEnabled 928 Specsheet {Url } 929 ExternalLoad{ Url } 930 Model3D { Url } 931 SeoInformation { 932 Title 933 Description 934 Keywords 935 H1Tag 936 } 937 } 938 } 939 }`,variables:{productCode:e}}}static get GetPDPViewDetailsMapper(){return s(e=>p.MapProductDetails(e?.data?.ProductPage?.item))}static GetProductOverviewBody(e){return{query:`query
940 GetProductOverviewDetails($productCode: String) { 941 ProductPage(where:{ 942 ItemNumber: { eq: $productCode } 943 } 944 orderBy: { _modified: DESC } 945 ) { 946 item { 947 ExternalId 948 ItemNumber 949 Name 950 ProductDefinition 951 CustomProduct 952 Description 953 Features 954 Price 955 ListPrice 956 CategoryPath 957 PriceUnformatted: Price 958 ListPriceUnformatted: ListPrice 959 ProductTypeName 960 RouteSegments 961 Images{ 962 ContentLink{ 963 Expanded{ 964 Url 965 ... on ImageFile{ 966 Caption 967 } 968 } 969 } 970 } 971 Videos { 972 Url 973 AltText 974 } 975 Status: PlmStatus 976 Stock 977 WebEnabled 978 Specsheet {Url } 979 ExternalLoad{ Url } 980 Model3D { Url } 981 ProductModel{ 982 Expanded{ 983 ... on ProductModelPage{ 984 RouteSegment 985 } 986 } 987 } 988 ProductCategory{ 989 Expanded{ 990 ... on ProductCategoryPage{ 991 ContentLink { GuidValue } 992 RouteSegment 993 } 994 } 995 } 996 SeoInformation { 997 Title 998 Description 999 Keywords 1000 H1Tag 1001 } 1002 RelatedInstruments 1003 RelatedAccessories 1004 RelatedServices 1005 Attributes { 1006 Name 1007 Value 1008 } 1009 } 1010 } 1011 }`,variables:{productCode:e}}}static get GetProductOverviewMapper(){return s(e=>p.MapProductDetails(e?.data?.ProductPage?.item))}static MapProductDetails(e){return{ExternalId:e.ExternalId,ItemNumber:e.ItemNumber,Name:e.Name,ProductDefinition:e.ProductDefinition,Description:e.Description,Price:e.Price,ListPrice:e.ListPrice,PriceUnformatted:e.Price,ListPriceUnformatted:e.ListPrice,ProductTypeName:e.ProductTypeName,Features:e.Features,CustomProduct:e.CustomProduct?e.CustomProduct:!1,ProductModel:e.ProductModel?.Expanded?.ModelNumber,ProductModelName:e.ProductModel?.Expanded?.ModelName,ProductModelDetails:e.ProductModel?.Expanded?{ModelNumber:e.ProductModel.Expanded.ModelNumber,ModelName:e.ProductModel.Expanded.ModelName,RouteSegment:e.ProductModel.Expanded.RouteSegment,Description:e.ProductModel.Expanded.ModelDescription,Features:e.ProductModel.Expanded.ModelFeatures,SpecsheetUrl:e.ProductModel.Expanded.Specsheet?.Url!=null?i(e.ProductModel.Expanded.Specsheet?.Url):null,ExternalLoadUrl:e.ProductModel.Expanded.ExternalLoad?.Url!=null?i(e.ProductModel.Expanded.ExternalLoad?.Url):null,Model3DUrl:e.ProductModel.Expanded.Model3D?.Url!=null?i(e.ProductModel.Expanded.Model3D?.Url):null,Images:e.ProductModel.Expanded.Images?.map(t=>({ImageUrl:i(t.ContentLink?.Expanded?.Url),ImageAltText:t.ContentLink?.Expanded?.Caption})),Videos:e.ProductModel.Expanded.Videos?.map(t=>({VideoTitle:t.AltText,Videos:t.Url}))}:{},ProductCategoryDetails:{RouteSegment:e.ProductCategory?.Expanded?.RouteSegment,GuidValue:e.ProductCategory?.Expanded?.ContentLink?.GuidValue},RouteSegments:e.RouteSegments,ImageUrl:this.mapProductImage(e),Images:e.Images?.map(t=>({ImageUrl:i(t.ContentLink?.Expanded?.Url),ImageAltText:t.ContentLink?.Expanded?.Caption})),Videos:e.Videos?.map(t=>({VideoTitle:t.AltText,Videos:t.Url})),Specifications:e.Specifications,AlternativeModels:e.AlternativeModels,RelatedInstruments:e.RelatedInstruments,RelatedAccessories:e.RelatedAccessories,RelatedServices:e.RelatedServices,Status:e.Status,Stock:e.Stock,WebEnabled:e.WebEnabled,CategoryPath:e.CategoryPath,SpecsheetUrl:e.Specsheet?.Url!=null?i(e.Specsheet?.Url):null,ExternalLoadUrl:e.ExternalLoad?.Url!=null?i(e.ExternalLoad?.Url):null,Model3DUrl:e.Model3D?.Url!=null?i(e.Model3D?.Url):null,SeoInformation:{Title:e.SeoInformation?.Title,Description:e.SeoInformation?.Description,Keywords:e.SeoInformation?.Keywords,H1Tag:e.SeoInformation.H1Tag},Attributes:e.Attributes}}static mapProductImage(e){return e?e.ImageUrl?i(e.ImageUrl):e.Image?.Url?i(e.Image.Url):e.Images?.length>0?i(e.Images[0].ContentLink?.Expanded?.Url):e.ProductModel?.Expanded?.Image?.Url?i(e.ProductModel.Expanded.Image.Url):null:null}};var G=class p{constructor(e){o(this,"Title");o(this,"Description");o(this,"Products");o(this,"Services");o(this,"SeoInformation");this.Title=e.Title,this.Description=e.Description,this.Products=e.Products.map(t=>O.MapProductImageLink(t.ContentLink.Expanded)),this.Services=e.Services.map(t=>v.Map(t.ContentLink.Expanded)),this.SeoInformation=e.SeoInformation}static GetStorePageBody(){return{query:`query GetStorePage { 1012 StorePage ( 1013 orderBy: { _modified: DESC } 1014 limit: 1 1015 ){ 1016 item{ 1017 Title 1018 Description 1019 Products { 1020 ContentLink{ 1021 Expanded{ 1022 __typename 1023 ... ProductClassPageFields 1024 ... ProductClassModelFields 1025 ... ProductClassCategoryFields 1026 ... LinkIconFields 1027 } 1028 } 1029 1030 } 1031 Services { 1032 ContentLink{ 1033 Expanded 1034 { 1035 ... PreviewBlockFields 1036 } 1037 } 1038 1039 } 1040 SeoInformation{ 1041 Title 1042 Keywords 1043 Description 1044 H1Tag 1045 } 1046 } 1047 } 1048} 1049 fragment ProductClassPageFields on ProductClassPage { 1050 Name 1051 Url 1052 RouteSegments 1053 Image: ProductClassImage { 1054 Url 1055 Expanded { 1056 ... on ImageFile{ 1057 Caption 1058 } 1059 } 1060 } 1061 } 1062 fragment ProductClassModelFields on ProductModelPage { 1063 Name 1064 Url 1065 RouteSegments 1066 Image { 1067 Url 1068 Expanded { 1069 ... on ImageFile{ 1070 Caption 1071 } 1072 } 1073 } 1074 } 1075 fragment ProductClassCategoryFields on ProductCategoryPage { 1076 Name 1077 Url 1078 RouteSegments 1079 Image { 1080 Url 1081 Expanded { 1082 ... on ImageFile{ 1083 Caption 1084 } 1085 } 1086 } 1087 } 1088 fragment LinkIconFields on LinkIconBlock { 1089 Image { 1090 Url 1091 } 1092 Link { 1093 Text 1094 Title 1095 Href 1096 ContentLink { 1097 Expanded { 1098 ... on ISitePage { 1099 Name 1100 RouteSegments 1101 } 1102 1103 } 1104 } 1105 } 1106 } 1107 fragment PreviewBlockFields on PreviewBlock { 1108 Title 1109 Description 1110 BlockMedia { 1111 Url 1112 } 1113 Link { 1114 Text 1115 Title 1116 Href 1117 ContentLink { 1118 Expanded { 1119 ... on ISitePage { 1120 Name 1121 RouteSegments 1122 } 1123 ... on ProductClassPage { 1124 Name 1125 RouteSegments 1126 } 1127 } 1128 } 1129 } 1130 }`}}static get StorePageMapper(){return s(e=>new p(e.data.StorePage.item))}};var E=(()=>{class p{static mapAttributes(t,r){if(!t||!t.length)return[];t=t.filter(n=>!this.excludeList.includes(n.SanitizedName)),r&&r.length&&(t=t.filter(n=>r.some(l=>l===n.Subclass)));let a=new Set;return t=t.filter(n=>a.has(n.SanitizedName)?!1:(a.add(n.SanitizedName),!0)),t.sort((n,l)=>n.Order===l.Order?n.BusinessName.localeCompare(l.BusinessName):n.Order-l.Order),t}static PLMAttributesMapper(t,r){return this.mapAttributes(t,r)}static GetPLMAttributesBody(){return{query:`query GetStoreSettings{ 1131 StoreSettings(orderBy: { 1132 PlmAttributes: { 1133 Order: ASC 1134 } 1135 }) { 1136 item{ 1137 PlmAttributes { 1138 SanitizedName 1139 BusinessName 1140 IsToggleAttribute 1141 Order 1142 MeasureUnits 1143 Subclass 1144 } 1145 } 1146 } 1147 }`}}static get GetInstrumentCategoriesMapper(){return s(t=>t.data.StoreSettings.item.InstrumentCategories)}static GetInstrumentCategoriesBody(){return{query:`query GetInstrumentCategories{ 1148 StoreSettings { 1149 item{ 1150 InstrumentCategories { 1151 Name 1152 Description 1153 } 1154 } 1155 } 1156 }`}}}return o(p,"excludeList",["PLM_CUSTOM_SPECIAL","PLM_WEB_ENABLED","PLM_DESCRIPTION","PLM_MODEL_NO"]),p})();var at=(()=>{let e=class e{constructor(r){o(this,"http");o(this,"baseUrl",d.baseUrl);this.http=r}getStoreHomeData(r){return this.http.get(this.baseUrl+"/store/home/getcategories/"+r)}getProductURLInfobySeries(r){return this.http.get(this.baseUrl+"/Product/GetProductURLInfobySeries/"+r)}getProductClasses(){let r=new Date;return this.http.get(this.baseUrl+"/Store/Category/GetProductClasses?t="+r.getTime())}getProductTypeName(r){return this.http.get(`${this.baseUrl}/Product/ProductTypeName/${r}`)}getProductDetails(r){return this.http.post(this.baseUrl+"/Product/GetByStockId/",r)}getProductByStockIdAndQuantity(r,a,n){let l=n||0;return this.http.get(`${this.baseUrl}/Product/GetByStockIdAndQuantity/${r}/${a}/${l}/true`)}getSuperSededAlternativeModel(r,a,n){let l=a||0;return this.http.get(`${this.baseUrl}/Product/GetSupersedAlternativeModel/${r}/${l}/${n}`)}getProductAlternativeModelsPreview(r,a,n,l){let u=a||0;return this.http.get(`${this.baseUrl}/Product/GetProductAlternativeModelsPreview/${r}/${u}/${n}/${l}`)}CreateLeadTime(r){return this.http.post(this.baseUrl+"/ProductLeadTime/GetLeadTime",r)}AddRecentlyViewed(r){return this.http.post(this.baseUrl+"/Product/AddRecentlyViewed",r)}GetProductImageViews(r,a){return this.http.get(this.baseUrl+"/product/GetProductImageViews/"+r+"/"+a)}GetProductImages(r,a){return this.http.get(this.baseUrl+"/Product/GetProductImages/"+r+"/"+a)}GetProductIframes(r,a){return this.http.get(this.baseUrl+"/Product/GetProductIframes/"+r+"/"+a)}GetProductVideos(r,a){return this.http.get(this.baseUrl+"/product/GetProductVideos/"+r+"/"+a)}GetProductItems(r,a){return this.http.get(this.baseUrl+"/product/GetProductItems/"+r+"/"+a)}GetAccessoryTypeDetails(r){return this.http.post(d.GraphQLURL,y.GetAccessoryTypeDetailsQuery(r.AccessoryName)).pipe(s(a=>y.Map(a.data.AccessoriesTypePage.item)))}GetProductDefinition(r){let a="DESCRIPTION",n=r.map(u=>`itemNumbers=${u}`).join("&"),l=`${this.baseUrl}/plmattributes/GetPlmattributesByName?${n}&attributeName=${a}`;return this.http.get(l)}GetFilePath(r,a){return this.http.get(this.baseUrl+"/product/GetFilePath/"+r+"/"+a)}Get3DModelsUrl(r,a){return this.http.get(this.baseUrl+"/product/Get3DModelsUrl/"+r+"/"+a)}GetSupportDocuments(r){return this.http.get(`${this.baseUrl}/SupportDocument/getSupportDocuments/${r}`)}GetModelSupportDocuments(r,a){return this.http.get(`${this.baseUrl}/SupportDocument/getSupportModelDocuments/${r}/${a}`)}GetExternalLoadPath(r,a){return this.http.get(this.baseUrl+"/product/GetExternalLoadPath/"+r+"/"+a)}GetProductAging(r){let a=r.map(n=>`stockIds[]=${encodeURIComponent(n)}`).join("&");return this.http.get(`${this.baseUrl}/Product/StockAging?${a}`)}SaveSpecSheetAccessdUser(r){return this.http.post(this.baseUrl+"/Product/SaveSpecSheetUserInfo",r)}GetProductClasses(){return this.http.post(d.GraphQLURL,g.GetProductClassesBody()).pipe(g.ProductClassesMapper)}GetProductClassDetails(r){return this.http.post(d.GraphQLURL,g.GetProductClassDetailsBody(r)).pipe(g.ProductClassDetailsBodyMapper)}GetSubClassesByClass(r){return this.http.post(d.GraphQLURL,g.GetSubClassesByClassBody(r)).pipe(g.GetSubClassesByClassMapper)}GetSubClassesBySeries(r){return this.http.post(d.GraphQLURL,g.GetSubClassesBySeriesBody(r)).pipe(g.GetSubClassesByClassMapper)}
1156GetProductModelsGuidsByFacets(r,a,n,l,u,c,P,S){return this.http.post(d.GraphQLURL,m.GetProductModelsGuidsByFacetsBody(r,a,n,l,u,c,P,S)).pipe(m.GetProductModelsGuidsByFacetsMapper)}GetProductSeriesDetails(r,a){return this.http.post(d.GraphQLURL,U.GetProductSeriesDetailsBody(r,a)).pipe(U.ProductSeriesDetailsMapper)}GetProductModelsGuidsByProductSeries(r){return this.http.post(d.GraphQLURL,m.GetProductModelsGuidsByProductSeriesBody(r)).pipe(m.ProductModelsGuidsByProductSeriesMapper)}GetProductModels(r){return this.http.post(d.GraphQLURL,I.GetProductModelsBody(r)).pipe(I.ProductModelsMapper)}GetProductModelDetails(r,a){return this.http.post(d.GraphQLURL,I.GetProductModelDetailsBody(r,a)).pipe(I.ProductModelDetailsMapper)}GetProductModelInfo(r,a){return this.http.post(d.GraphQLURL,I.GetProductModelInfoBody(r,a)).pipe(I.GetProductModelInfoMapper)}GetProductsByProductModel(r,a,n,l,u,c){return this.http.post(d.GraphQLURL,m.GetProductsByProductModelBody(r,a,n,l,u,c)).pipe(m.ProductsByProductModelMapper)}GetObsoleteProductsByProductModel(r,a){return this.http.post(d.GraphQLURL,m.GetObsoleteProductsByProductModelBody(r,"",a)).pipe(m.GetObsoleteProductsByProductModelMapper)}GetProductDetails(r){return this.http.post(d.GraphQLURL,m.GetProductDetailsBody(r)).pipe(m.ProductDetailsMapper)}GetProductInstrumentCategories(){return this.http.post(d.GraphQLURL,m.GetDefaultInstrumentProductStorePageBody()).pipe(m.GetDefaultInstrumentProductMapper)}GetPDPViewDetails(r){return this.http.post(d.GraphQLURL,m.GetPDPViewDetailsBody(r)).pipe(m.GetPDPViewDetailsMapper)}GetProductOverview(r){return this.http.post(d.GraphQLURL,m.GetProductOverviewBody(r)).pipe(m.GetProductOverviewMapper)}GetProductPreviewByItemNumbers(r,a){return this.http.post(d.GraphQLURL,m.GetProductPreviewsByItemNumbersBody(r,a)).pipe(m.GetProductPreviewsByItemNumbersMapper)}GetPLMAttributes(r){return this.http.post(d.GraphQLURL,E.GetPLMAttributesBody()).pipe(s(a=>E.PLMAttributesMapper(a.data.StoreSettings.item?.PlmAttributes,r)))}GetFacets(r,a,n,l,u,c){return this.http.post(d.GraphQLURL,m.GetFacetsBody(r,a,n,l,u,c)).pipe(m.FacetsMapper)}GetFacetsWithFilters(r,a,n,l,u,c,P){return this.http.post(d.GraphQLURL,m.GetFacetsWithFiltersBody(r,a,n,l,u,c,P)).pipe(m.FacetsWithFiltersMapper)}GetProductFacetsWithFiltersBody(r,a,n,l){return this.http.post(d.GraphQLURL,m.GetProductFacetsWithFiltersBody(r,a,n,l)).pipe(m.GetProductFacetsWithFiltersMapper)}GetStorePageDetails(){return this.http.post(d.GraphQLURL,G.GetStorePageBody()).pipe(G.StorePageMapper)}GetMainAccessoriesPage(r){return this.http.post(d.GraphQLURL,h.GetMainAccessoriesPageQuery(r)).pipe(h.MainAccesssoriesPageMapper)}GetAccessoryTypeProducts(r,a,n,l,u=void 0){return this.http.post(d.GraphQLURL,y.GetAccessoryTypePageQuery(r,a,n,l,u)).pipe(y.AccesssoryProductMapper(n))}GetSupportDocsByModel(r){let a=r.toLowerCase();return this.http.get(`${d.OptimizelyCMSBaseUrl}api/supportDocuments/model/${a}`).pipe(R(n=>this.http.get(`${d.OptimizelyCMSBaseUrl}api/supportDocuments/model/${r.toUpperCase()}`)))}GetSupportDocsByProduct(r){return this.http.get(`${d.OptimizelyCMSBaseUrl}api/supportDocuments/product/${r}`)}GetInstrumentCategories(){return this.http.post(d.GraphQLURL,E.GetInstrumentCategoriesBody()).pipe(E.GetInstrumentCategoriesMapper)}GetAvailableItemNumbers(r,a){return this.http.post(`${d.OptimizelyCMSBaseUrl}api/productstock/available-item-numbers`,{CategoryIds:r,ModelIds:a})}};o(e,"\u0275fac",function(a){return new(a||e)(w(q))}),o(e,"\u0275prov",V({token:e,factory:e.\u0275fac,providedIn:"root"}));let p=e;return p})();export{I as a,m as b,at as c};
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.