PageSourceSearch

https://uniteddataconnect.com/chunk-Bx71JxNI.js

js uniteddataconnect.com collected 2026-10-07 21:21:39 UTC 14,930 bytes, 1 lines download raw bytes

1import{Cr as og,D as ED,Et as Ow,J as Ib,Mn as eE,N as FF,O as Eb,Or as pg,U as Hh,Un as gb,Wr as ud,Xr as vb,Yr as v,Z as Ip,Zn as hg,an as Vh,cr as kb,di as zE,dr as lw,f as Bl,gn as Zh,lr as ld,or as jw,pr as mb,qt as Tw,ri as ww,tr as ig,v as Cb,x as Cw,yt as Ni}from"./chunk-BDM6WsAu.js";import"./chunk-ChqQs_00.js";import"./chunk-B9WYoD4X.js";import{t as u}from"./chunk-Dfdyfum4.js";import"./chunk-zlUweSdg.js";import{c as Wt,m as nn,o as Qt}from"./chunk-DebN01VD.js";import"./chunk-ys_DYaDe.js";import{n as wt}from"./chunk-B6coe9rb.js";import{n as K$1,r as V}from"./chunk-C27-8Eg5.js";import{t as u1}from"./chunk-BObuTj8M.js";import{t as A}from"./chunk-CW5jsA8G.js";import{t as u$1}from"./chunk-DcQqHAeD2.js";var J=(o,s)=>({"background-color":o,color:s});var Q=o=>({"border-color":o,"box-shadow":`0 8px 20px rgba(0, 0, 0, 0.1)`});var Z=()=>({});function K(o,s){if(o&1){let t=Cb();Ni(0,`p`,23),Zh(`click`,function(){let e=ld(t).$implicit;return ud(kb().filterByCategory(e))}),lw(1),Bl()}if(o&2){let t=s.$implicit,i=kb();ig(`activeCat`,i.selectedCategory===t),Vh(`ngStyle`,Cw(4,J,i.selectedCategory===t?i.widgetColor.bgColor:``,i.selectedCategory===t?i.widgetColor.activeColor:``)),zE(),pg(t)}}function W(o,s){if(o&1&&(Ni(0,`div`,10),lw(1),Bl()),o&2){let t=kb();zE(),pg(t.widgetStyle().title)}}function X(o,s){if(o&1&&(Ni(0,`div`,11)(1,`div`,24)(2,`div`,25),Hh(3,`div`,26),Bl()()()),o&2){let t=kb();zE(),og(`background`,t.widgetColor.bgColor)(`color`,t.widgetColor.fgColor),zE(2),Vh(`innerHtml`,t.configDoc.promoText.value,eE)}}function tt(o,s){if(o&1&&(Ni(0,`div`,12),Hh(1,`div`,27),Bl()),o&2){let t=kb();zE(),Vh(`innerHtml`,t.configDoc.deliveryNoteText.value,eE)}}function et(o,s){if(o&1&&(Ni(0,`b`),lw(1),Bl()),o&2){let t=kb();zE(),pg(t.tempSearchList.length)}}function it(o,s){if(o&1&&(Ni(0,`a`),Hh(1,`img`,35)(2,`img`,36),Bl()),o&2){let t=kb().$implicit;zE(),Vh(`src`,t.media[0].url,Ip)(`alt`,t.name),zE(),Vh(`src`,t.media[1].url,Ip)(`alt`,t.name)}}function ot(o,s){if(o&1&&(Ni(0,`a`),Hh(1,`img`,35)(2,`img`,36),Bl()),o&2){let t=kb().$implicit;zE(),Vh(`src`,t.media[0].url,Ip)(`alt`,t.name),zE(),Vh(`src`,t.media[0].url,Ip)(`alt`,t.name)}}function nt(o,s){if(o&1&&(Ni(0,`span`,34),lw(1),Ow(2,`currency`),Bl()),o&2){let t=kb().$implicit;zE(),pg(jw(2,1,t.price,`USD`,`symbol`))}}function rt(o,s){if(o&1){let t=Cb();Ni(0,`div`,28)(1,`div`,29)(2,`div`,30),Zh(`click`,function(){let e=ld(t).$implicit;return ud(kb(2).productDetail(e.name))})(`mouseenter`,function(){let e=ld(t).$index,c=kb(2);return ud(c.hoveredProductIndex=e)})(`mouseleave`,function(){ld(t);let e=kb(2);return ud(e.hoveredProductIndex=null)}),gb(3,it,3,4,`a`),gb(4,ot,3,4,`a`),Ni(5,`div`,31),Zh(`click`,function(){let e=ld(t).$implicit;return ud(kb(2).productDetail(e.name))}),lw(6,`Quick View`),Bl()(),Ni(7,`div`,32)(8,`div`,33),lw(9),Bl(),gb(10,nt,3,5,`span`,34),Bl()()()}if(o&2){let t=s.$implicit,i=s.$index,e=kb(2);zE(2),Vh(`ngStyle`,e.hoveredProductIndex===i?Tw(5,Q,e.widgetColor.bgColor):ww(7,Z)),zE(),mb(t.media.length>1?3:-1),zE(),mb(t.media.length==1?4:-1),zE(5),pg(t.name),zE(),mb(t.price!=``?10:-1)}}function at(o,s){if(o&1&&(Ni(0,`div`,21),Eb(1,rt,11,8,`div`,28,vb),Bl()),o&2){let t=kb();zE(),Ib(t.allProducts)}}var Pt=(()=>{class o{constructor(){this.mainService=v(u),this.router=v(V),this.route=v(K$1),this.universalService=v(u1),this.hoveredProductIndex=null,this.orgID=FF(void 0),this.organizationDetails=FF(void 0),this.widgetStyle=FF(void 0),this.allProducts=[],this.OriginalProd=[],this.cartProduct=[],this.pager={},this.widgetColor={bgColor:``,fgColor:``,bg1Color:``,fg1Color:``,activeColor:``},this.selectedCategory=``}ngOnInit(){this.getColorPalette(this.widgetStyle().colorPalette),this.productCategories=this.widgetStyle().productCategories,this.tempCat=this.productCategories.split(`,`),this.FinalProdCat=this.tempCat.map(t=>t.replace(/'/g,``)),$(`html, body`).animate({scrollTop:0},`fast`),this.productID=void 0,this.is_safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),this.route.params.subscribe(t=>{this.shortURL=t.sName}),this.universalService.getdocumentfunctionV1(this.orgID(),`websiteConfigurations`).subscribe(t=>{this.getConfigDoc(t[0].textConfig,t[0].booleanConfig)}),this.universalService.getProductsDataFunction(this.orgID(),`product`).subscribe(t=>
1{if(this.productDocument=t[0],this.tempSearchList=t[0],this.productDocument!=null)for(var i=0;i<this.productDocument.length;i++)this.productDocument[i].displayFlag&&this.allProducts.push(this.productDocument[i]);this.allProducts.sort((e,c)=>e.sequence-c.sequence),this.OriginalProd=this.allProducts,this.applyFiltersAndPagination(1)}),$(`[data-toggle="tooltip"]`).tooltip(),sessionStorage.cartProduct!=null&&(this.cartProduct=JSON.parse(sessionStorage.cartProduct)),$(`.alertBadge`).attr(`data-badge`,this.cartProduct.length)}getColorPalette(t){this.colorName=this.mainService.getColorPalette(t),this.colorName!=null?(this.widgetColor.bgColor=this.colorName.bgColor,this.widgetColor.fgColor=this.colorName.fgColor,this.widgetColor.bg1Color=this.colorName.bg1Color,this.widgetColor.fg1Color=this.colorName.fg1Color,this.widgetColor.activeColor=this.colorName.activeColor):setTimeout(()=>{this.getColorPalette(t)},500)}searchProduct(t){this.searchValue=t,this.applyFiltersAndPagination(1)}filterByCategory(t){this.selectedCategory=t,this.applyFiltersAndPagination(1)}setPage(t){t<1||t>this.pager.totalPages||this.applyFiltersAndPagination(t)}SelectNew(t){this.selectedSort=t,this.applyFiltersAndPagination(1)}applyFiltersAndPagination(t=1){let i=[...this.OriginalProd];switch(this.selectedCategory&&this.selectedCategory!==`All`&&(this.selectedCategory===`Uncategorized`?i=i.filter(e=>!e.category||e.category.trim()===``):i=i.filter(e=>e.category===this.selectedCategory)),this.searchValue&&this.searchValue.trim()!==``&&(i=u$1.prototype.transform(i,this.searchValue,`name`)),this.selectedSort){case`price`:i.sort((e,c)=>e.price-c.price);break;case`price-desc`:i.sort((e,c)=>c.price-e.price);break;case`date`:i.sort((e,c)=>c._ts-e._ts);break;default:i.sort((e,c)=>e.sequence-c.sequence)}this.tempSearchList=i,this.pager=this.universalService.getPager(this.tempSearchList.length,t,12),this.allProducts=this.tempSearchList.slice(this.pager.startIndex,this.pager.endIndex+1)}productDetail(t){if(t=t.replace(/[^a-zA-Z0-9-\s]/g,``).replace(/\s*-\s*/g,`__HYPHEN__`).replace(/\s+/g,`-`).replace(/__HYPHEN__/g,`-`).toLowerCase(),this.shortURL!=null)var i=`/`+this.shortURL+`/productview`;else var i=`/productview`;setTimeout(()=>{i!==``&&this.router.navigate([i],{queryParams:{name:t}})},500)}navigateToCart(){if(this.shortURL!=null)var t=`/`+this.shortURL+`/productcart`;else var t=`/productcart`;setTimeout(()=>{t!==``&&this.router.navigate([t])},500)}getConfigDoc(t,i){this.configDoc={},t.forEach(e=>{this.configDoc[e.configID]=e}),i.forEach(e=>{this.configDoc[e.configID]=e})}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵcmp=ED({type:o,selectors:[[`app-t2-product-list`]],inputs:{orgID:[1,`orgID`],organizationDetails:[1,`organizationDetails`],productDocument:`productDocument`,widgetStyle:[1,`widgetStyle`]},decls:36,vars:13,consts:[[1,`row`,2,`min-height`,`100vh`,`padding-top`,`1px`,`padding-bottom`,`1px`,`box-sizing`,`border-box`],[1,`t2-product-list-container`,`col-sm-3`],[`type`,`text`,`id`,`search`,`placeholder`,`Search Product`,`name`,`searchText`,1,`SearchForm`,3,`input`],[1,`mt-4`],[1,`borderCat`,3,`activeCat`,`ngStyle`],[1,`t1-product-list-container`,`col-sm-8`],[1,`tx-r`],[1,`productCart`,`p-10`,3,`click`],[`data-placement`,`left`,`aria-hidden`,`true`,`data-badge`,`0`,`data-toggle`,`tooltip`,`title`,`Go to Cart`,`svgIcon`,`cart`,1,`alertBadge`,2,`font-size`,`1.2em !important`,`overflow`,`visible`],[`id`,`new-message-badge`,1,`new-message`,`w3-dropdown-content`],[1,`fnt-h2`,`tx-c`,`p-20`],[1,`p-10`],[1,`p-20`],[1,`row`],[1,`col-sm-6`],[`name`,`orderby`,`aria-label`,`Shop order`,`tabindex`,`-1`,1,`SearchSelect`,`mx-3`,3,`change`],[`value`,`default`,`selected`,`selected`],[`value`,`date`],[`value`,`price`],[`value`,`price-desc`],[1,`t2prle`],[1,`row`,`p-20`],[3,`setPageEmitter`,`pager`,`pagination`],[1,`borderCat`,3,`click`,`ngStyle`],[1,`bottom-promo`,`box-shadow`],[1,`v-center`,2,`text-align`,`center`],[3,`innerHtml`],[1,`fnt-h6`,3,`innerHtml`],[1,`allproducts`,`col-lg-4`,`col-md-4`,`col-sm-6`],[1,`product-grid`],[1,`product-image`,3,`click`,`mouseenter`,`mouseleave`,`ngStyle`],[1,`add-to-cart`,3,`click`],[1,`product-content`],[1,`title`],[1,`price`],[1,`pic-1`,3,`src`,`alt`],[1,`pic-2`,3,`src`,`alt`]],template:function(i,e){i&1&&(Ni(0,`div`,0)(1,`div`,1)(2,`input`,2),Zh(`input`,function(f){return e.searchProduct(f.target.value)}),Bl(),Ni(3,`h4`,3),lw(4,`Product Categories`),Bl(),Eb(5,K,2,7,`p`,4,vb),Bl(),Ni(7,`div`,5)(8,`div`,6)(9,`a`,7),Zh(`click`,function(){return e.navigateToCart()}),Hh(10,`mat-icon`,8)(11,`div`,9),Bl()(),gb(12,W,2,1,`div`,10),gb(13,X,4,5,`div`,11),gb(14,tt,2,1,`div`,12),Ni(15,`div`,13)(16,`div`,14)(17,`select`,15),Zh(`change`,function(f){return e.SelectNew(f.target.value)}),Ni(18,`option`,16),lw(19,`Default sorting`),Bl(),Ni(20,`option`,17),lw(21,`Sort by latest`),Bl(),Ni(22,`option`,18),lw(23,`Sort by price: low to high`),Bl(),Ni(24,`option`,19),lw(25,`Sort by price: high to low`),Bl()()(),Ni(26,`div`,14)(27,`p`,20),lw(28,` Showing `),Ni(29,`b`),lw(30),Bl(),lw(31,` of `),gb(32,et,2,1,`b`),lw(33,` results `),Bl()()(),gb(34,at,3,0,`div`,21),Ni(35,`app-pagination`,22),Zh(`setPageEmitter`,function(f){return e.setPage(f)}),Bl()()()),i&2&&(og(`background`,e.widgetColor.bg1Color)(`color`,e.widgetColor.fg1Color),zE(5),Ib(e.FinalProdCat),zE(7),mb(e.widgetStyle().title!=null&&e.widgetStyle().title!=``?12:-1),zE(),mb(e.configDoc&&e.configDoc.promoDisplay.value?13:-1),zE(),mb(e.configDoc&&e.configDoc.deliveryNoteText.value?14:-1),zE(16),hg(``,e.pager.startIndex+1,`–`,e.pager.endIndex+1),zE(2),mb(e.tempSearchList!=null?32:-1),zE(2),mb(e.allProducts.length>0?34:-1),zE(),Vh(`pager`,e.pager)(`pagination`,e.widgetStyle()))},dependencies:[A,nn,Wt,wt,Qt],styles:[`.bottom-promo[_ngcontent-%COMP%]{padding:20px;border:16px solid #250020;text-transform:capitalize}.box-shadow[_ngcontent-%COMP%]{-webkit-box-shadow:0px 0px 25px 0px rgba(0,0,0,.1);-moz-box-shadow:0px 0px 25px 0px rgba(0,0,0,.1);box-shadow:0 0 25px #0000001a}.borderCat[_ngcontent-%COMP%]{border-bottom:1px solid #e3e3e3;padding:12px 10px;cursor:pointer}
1.activeCat[_ngcontent-%COMP%]{color:#fff;background-color:#007bff;border-radius:4px;font-weight:700}.t1-product-list-container[_ngcontent-%COMP%]{width:70%;margin:80px auto 0;min-height:550px}.SearchForm[_ngcontent-%COMP%]{width:75%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:10px}.SearchForm[_ngcontent-%COMP%]:focus, .SearchSelect[_ngcontent-%COMP%]:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.SearchSelect[_ngcontent-%COMP%]{width:50%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:10px}.t2prle[_ngcontent-%COMP%]{float:right}.t2-product-list-container[_ngcontent-%COMP%]{margin:230px auto 0;min-height:550px}.pic-1[_ngcontent-%COMP%], .pic-2[_ngcontent-%COMP%]{width:100%;height:250px;object-fit:contain}.allproducts[_ngcontent-%COMP%]{height:400px}.productCart[_ngcontent-%COMP%]:hover{opacity:.8}.product-grid[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{overflow:hidden;cursor:pointer;position:relative}.product-grid[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block}.product-image[_ngcontent-%COMP%]{position:relative;border:2px solid #e0e0e0;border-radius:8px;padding:5px;background-color:transparent;transition:all .3s ease-in-out;box-shadow:0 2px 6px #0000000d}.product-image[_ngcontent-%COMP%]   .pic-1[_ngcontent-%COMP%]{opacity:1;transition:.1s}.product-grid[_ngcontent-%COMP%]:hover   .product-image[_ngcontent-%COMP%]   .pic-1[_ngcontent-%COMP%]{opacity:0}.product-image[_ngcontent-%COMP%]   .pic-2[_ngcontent-%COMP%]{width:100%;opacity:0;position:absolute;top:0;left:0;transition:.1s}.product-grid[_ngcontent-%COMP%]:hover   .product-image[_ngcontent-%COMP%]   .pic-2[_ngcontent-%COMP%]{opacity:1}.product-grid[_ngcontent-%COMP%]   .add-to-cart[_ngcontent-%COMP%]{color:#000;background-color:#fffc;font-size:15px;font-weight:600;text-align:center;width:100%;padding:10px 0;display:block;position:absolute;left:0;bottom:-100%;transition:all .3s;cursor:pointer;text-transform:uppercase}.product-grid[_ngcontent-%COMP%]   .add-to-cart[_ngcontent-%COMP%]:hover{background-color:#fffc;text-decoration:none}.product-grid[_ngcontent-%COMP%]:hover   .add-to-cart[_ngcontent-%COMP%]{bottom:0}.product-grid[_ngcontent-%COMP%]   .product-new-label[_ngcontent-%COMP%]{background-color:#fffc;color:#000;font-size:17px;padding:5px 10px;position:absolute;right:0;top:0;transition:all .3s}.product-grid[_ngcontent-%COMP%]:hover   .product-new-label[_ngcontent-%COMP%]{opacity:0}.product-grid[_ngcontent-%COMP%]   .product-content[_ngcontent-%COMP%]{padding:20px 10px;text-align:center}.product-grid[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:17px;margin:0 0 7px}.product-grid[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#303030}.product-grid[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#3498db}.product-grid[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:15px}.new-message[_ngcontent-%COMP%]{padding:15px;width:300px;box-shadow:0 5px 20px #c4c4c452;margin-top:10px;border:1px solid #b5b5b5;overflow-y:scroll;height:300px}.fr[_ngcontent-%COMP%]{float:right}.alertBadge[_ngcontent-%COMP%]{position:relative;font-size:18px}.alertBadge[data-badge][_ngcontent-%COMP%]:after{content:attr(data-badge);position:absolute;top:-6px;right:-10px;font-size:.7em;background:green;color:#fff;width:18px;height:18px;text-align:center;line-height:18px;border-radius:50%;box-shadow:0 0 1px #333}@media screen and (min-width:1440px){.allproducts[_ngcontent-%COMP%]{min-height:400px}}@media screen and (max-width:1440px){.t1-product-list-container[_ngcontent-%COMP%]{width:70%}}@media screen and (max-width:1280px){.t1-product-list-container[_ngcontent-%COMP%]{width:80%}}@media screen and (max-width:1024px){.t1-product-list-container[_ngcontent-%COMP%]{width:90%}
1.editCart[_ngcontent-%COMP%]{margin-left:209px}.t2-product-list-container[_ngcontent-%COMP%]{margin:20px auto 0;width:80%}.t1-product-list-container[_ngcontent-%COMP%]{margin:20px auto 0}}@media screen and (max-width:990px){.product-grid[_ngcontent-%COMP%]{margin-bottom:30px}}@media screen and (max-width:480px){.t2prle[_ngcontent-%COMP%]{margin-top:10px}}.productCart[_ngcontent-%COMP%]{cursor:pointer}`],changeDetection:1})}}return o})();export{Pt as T2ProductListComponent};

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.