1import{a as X,b as tt,c as et}from"./chunk-JMSZZCKT.js";import{a as J}from"./chunk-OHHXLH2G.js";import{b as Z,c as $,d as G,t as Q}from"./chunk-IE5HNFIA.js";import"./chunk-RUKDH5RU.js";import{cd as q,e as U,i as Y}from"./chunk-DLOJA7OY.js";import{$a as f,$b as b,Da as y,Db as L,Dc as j,Ea as C,Fc as V,Gb as m,Gc as W,Ib as u,Lb as N,Ma as B,Mb as E,Pc as D,Qa as k,Qc as H,Tb as s,Ub as z,Vb as _,Wa as S,Ya as R,Zb as x,_a as r,_b as M,dc as F,la as P,nb as g,pb as l,pd as K,sd as I,vc as A,wa as T,xa as w,xb as o,yb as a,zb as h}from"./chunk-XJXM2OHO.js";import{a as v,b as O}from"./chunk-CWTPBX7D.js";var at=n=>({"selected-page":n});function lt(n,p){if(n&1&&(o(0,"ng-option",18),s(1),a()),n&2){let t=p.$implicit;l("value",t.id),r(),_(" ",t==null?null:t.name," ")}}function st(n,p){if(n&1&&(o(0,"ng-option",18),s(1),a()),n&2){let t=p.$implicit;l("value",t.id),r(),_(" ",t==null?null:t.area_name," ")}}function ct(n,p){if(n&1&&(o(0,"ng-option",18),s(1),a()),n&2){let t=p.$implicit;l("value",t.name),r(),_(" ",t==null?null:t.name," ")}}function dt(n,p){if(n&1&&(o(0,"ng-option",18),s(1),a()),n&2){let t=p.$implicit;l("value",t.id),r(),_(" ",t==null?null:t.name," ")}}function pt(n,p){n&1&&h(0,"i",45)}function gt(n,p){n&1&&(o(0,"span"),s(1,"Follower"),a())}function mt(n,p){n&1&&(o(0,"span"),s(1,"Followers"),a())}function _t(n,p){if(n&1){let t=L();o(0,"div",32)(1,"div",33)(2,"div",34),m("click",function(){let e=y(t).$implicit,c=u(2);return C(c.goToBrandProfile(e.company_id,e.slug))}),o(3,"div",35)(4,"div",36),h(5,"img",37),a(),o(6,"div",38)(7,"h3",39),s(8),a(),o(9,"h4"),g(10,pt,1,0,"i",40),o(11,"span"),s(12),a(),s(13," | "),o(14,"span",41),s(15),h(16,"i",42),a()(),o(17,"h4"),h(18,"i",43),o(19,"span"),s(20),g(21,gt,2,0,"span",44)(22,mt,2,0,"span",44),a()()()()()()()}if(n&2){let t=p.$implicit;r(5),l("src",t.company_logo,S),r(2),N("title",t.name),r(),z(t.name),r(2),l("ngIf",t.avg_rating),r(2),_(" ",t.avg_rating," "),r(2),E("title","This company has been rated by ",t.reviews," people"),r(),_(" ",t.reviews," "),r(5),_(" ",t.followers_count," "),r(),l("ngIf",t.followers_count<=1),r(),l("ngIf",t.followers_count>1)}}function ut(n,p){if(n&1){let t=L();o(0,"div",48)(1,"a",49),m("click",function(){let e=y(t).$implicit,c=u(3);return C(c.goToPage(e.label,e.url))}),s(2),a()()}if(n&2){let t=p.$implicit;r(),l("ngClass",F(2,at,t.active)),r(),_(" ",t.label,"")}}function ft(n,p){if(n&1&&(o(0,"div",46),g(1,ut,3,4,"div",47),a()),n&2){let t=u(2);r(),l("ngForOf",t.paginationList)}}function ht(n,p){if(n&1){let t=L();o(0,"section",19)(1,"div",20)(2,"div",21)(3,"div",22)(4,"div",23)(5,"h2"),s(6,"All Retails"),a()(),o(7,"div",24)(8,"button",25),s(9," Sort "),a(),o(10,"ul",26)(11,"li")(12,"a",27),m("click",function(){y(t);let e=u();return C(e.sortAllCompanyList("byTime"))}),s(13,"By Time"),a()(),o(14,"li")(15,"a",27),m("click",function(){y(t);let e=u();return C(e.sortAllCompanyList("a_to_z"))}),s(16,"A-Z"),a()(),o(17,"li")(18,"a",27),m("click",function(){y(t);let e=u();return C(e.sortAllCompanyList("z_to_a"))}),s(19,"Z-A"),a()()()()(),o(20,"div",28)(21,"div",29),g(22,_t,23,11,"div",30)(23,ft,2,1,"div",31),a()()()()()}if(n&2){let t=u();r(22),l("ngForOf",t.allBrandList),r(),l("ngIf",(t.allBrandList==null?null:t.allBrandList.length)>0)}}var it=(()=>{class n{constructor(t,i,e,c,d,rt){this.dataService=t,this.platFormId=i,this.router=e,this.cdr=c,this.ngxLoader=d,this.el=rt,this.activeIndex=0,this.retail=`${J.CDN_assets_base_path}/assets/images/retail.mp4`,this.carouselSize()}ngOnInit(){H(this.platFormId)&&(this.pageNo=1,this.getAllBrandList({}),this.getMasterDataListOfBrands())}payloadForMasterList(){let t;return this.cityNameSearch&&(t=O(v({},t),{store_city_id:this.cityNameSearch})),t}getMasterDataListOfBrands(){let t=this;this.dataService.getMasterDataListOfRetail(this.payloadForMasterList()).subscribe({next(i){t.brandNameList=i.data?.retail,t.brandCityList=i.data?.storeCity,t.brandAreaList=i.data?.retailArea,t.brandIndustryList=i.data?.productCategory}})}getMasterList(){console.log(this.cityNameSearch),this.getMasterDataListOfBrands()}trackByItemKey(t,i){return t+i.id}shouldEnableVirtualScroll(t,i){return t?t.length>i:!1}getPayload(){let t={};return this.pageNo&&(t=O(v({},t),{page:this.pageNo})),this.sortOrder&&(t=O(v({},t),{sort_order:this.sortOrder})),this.brandNameSearch&&(t.name=this.brandNameSearch),this.cityNameSearch&&(t.store_city_id=this.cityNameSearch),this.brandAreaSearch&&(t.store_presence_id=this.brandAreaSearch),this.brandindustrySearch&&(t.product_category_id=this.brandindustrySearch),t}getAllBrandList(t){let i=this;this.dataService.retailListSearch(this.getPayload()).subscribe({next(e){setTimeout(()=>{},3e3),i.allBrandList=e.data?.data,i.allBrandList.length>0&&i.scrollToHeading("all-companies");let c=e.data?.links;i.paginationList=i.dataService.convertPaginationArrayAsRequiredFormat(c),i.cdr.detectChanges(),console.log(i.allBrandList)},error(e){}})}onResize(t){this.carouselSize()}
1carouselSize(){typeof window<"u"&&(window.innerWidth<=1024?this.count=2:window.innerWidth>1024&&(this.count=4),window.innerWidth<=576&&(this.count=1))}scrollToHeading(t){let i=this.el.nativeElement.querySelector(`#${t}`);if(i){let c=i.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:c,behavior:"smooth"})}}searchByCompanyAndIndustry(){this.getAllBrandList({})}sortAllCompanyList(t){t&&(t=="a_to_z"&&(this.sortOrder="a_to_z",this.getAllBrandList({sort_order:"a_to_z"})),t=="z_to_a"&&(this.sortOrder="z_to_a",this.getAllBrandList({sort_order:"z_to_a"})),t=="byTime"&&(this.sortOrder="created_at_asc",this.getAllBrandList({sort_order:"created_at_asc"})))}goToBrandProfile(t,i){if(i){let e="retail-profile",c={id:t,name:i};this.router.navigate([e],{queryParams:c})}}goToCompanyPricing(){this.router.navigate(["plans-and-pricing"])}goToPage(t,i){t=="\u276E"&&i?this.pageNo=i.split("page=")[1]:t=="\u276F"&&i?this.pageNo=i.split("page=")[1]:this.pageNo=t,Number(this.pageNo)&&this.getAllBrandList({})}static{this.\u0275fac=function(i){return new(i||n)(f(q),f(k),f(K),f(A),f(Z),f(B))}}static{this.\u0275cmp=T({type:n,selectors:[["app-retail-list"]],hostBindings:function(i,e){i&1&&m("resize",function(d){return e.onResize(d)},!1,R)},decls:27,vars:21,consts:[["ngxUiLoaderBlurred","",3,"loaderId"],[1,"featured","py-3"],[1,"container"],[1,"hero-style"],[1,"left"],[1,"input-group","company-list"],["appendTo","body","placeholder","Location",1,"form-control","p-0","for-select",3,"ngModelChange","virtualScroll","ngModel"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["appendTo","body","placeholder","Area",1,"form-control","p-0","for-select",3,"ngModelChange","virtualScroll","ngModel"],["appendTo","body","placeholder","Store Name",1,"form-control","p-0","for-select",3,"ngModelChange","virtualScroll","ngModel"],["appendTo","body","placeholder","Category",1,"form-control","p-0","for-select",3,"ngModelChange","virtualScroll","ngModel"],[1,"input-group-text",3,"click"],[1,"right"],["autoplay","","loop","","muted","","playsinline","","oncontextmenu","return false;","controlsList","nodownload nofullscreen noremoteplayback",1,"video-style","hero-img","w-100",2,"pointer-events","none"],["type","video/mp4",3,"src"],[1,"claim-button",3,"click"],["class"," all-jobs pb-3",4,"ngIf"],[3,"loaderId","text"],[3,"value"],[1,"all-jobs","pb-3"],["id","all-companies",1,"container"],[1,"card"],[1,"card-header","d-flex","justify-content-between"],[1,"d-flex","align-items-center"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle"],[1,"dropdown-menu"],["type","button",1,"dropdown-item",3,"click"],[1,"card-body"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 col-12",4,"ngFor","ngForOf"],["class","d-flex pagination-style justify-content-center",4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","col-12"],[1,"card","p-1","mb-3"],[1,"card-body","cursor-pointer","card-shadow",3,"click"],[1,"d-flex"],[1,"profile-img"],["alt","...",1,"img-fluid",3,"src"],[1,"ms-2","m-auto"],[1,"truncate1",3,"title"],["class","bi bi-star-fill bg-gold",4,"ngIf"],[3,"title"],[1,"bi","bi-person-fill"],[1,"bi","bi-people-fill","text-secondary"],[4,"ngIf"],[1,"bi","bi-star-fill","bg-gold"],[1,"d-flex","pagination-style","justify-content-center"],["class","pagination ",4,"ngFor","ngForOf"],[1,"pagination"],[3,"click","ngClass"]],template:function(i,e){i&1&&(o(0,"main",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1"),s(6,"Put Your Business on the Map: Connect. Expand. Grow."),a(),o(7,"p"),s(8,"Make your retail business easily discoverable, connect with local customers, and expand your presence."),a(),o(9,"div",5)(10,"ng-select",6),b("ngModelChange",function(d){return M(e.cityNameSearch,d)||(e.cityNameSearch=d),d}),m("ngModelChange",function(){return e.getMasterList()}),g(11,lt,2,2,"ng-option",7),a(),o(12,"ng-select",8),b("ngModelChange",function(d){return M(e.brandAreaSearch,d)||(e.brandAreaSearch=d),d}),g(13,st,2,2,"ng-option",7),a(),o(14,"ng-select",9),b("ngModelChange",function(d){return M(e.brandNameSearch,d)||(e.brandNameSearch=d),d}),g(15,ct,2,2,"ng-option",7),a(),o(16,"ng-select",10),b("ngModelChange",function(d){return M(e.brandindustrySearch,d)||(e.brandindustrySearch=d),d}),g(17,dt,2,2,"ng-option",7),a(),o(18,"Button",11),m("click",function(){return e.searchByCompanyAndIndustry()}),s(19,"Search"),a()()(),o(20,"div",12)(21,"video",13),h(22,"source",14),a(),o(23,"button",15),m("click",function(){return e.goToCompanyPricing()}),s(24,"Create Your Retail Page Now"),a()()()()(),g(25,ht,24,2,"section",16),a(),h(26,"ngx-ui-loader",17)),i&2&&(l("loaderId","companyList"),r(10),l("virtualScroll",e.shouldEnableVirtualScroll(e.brandCityList,10)),x("ngModel",e.cityNameSearch),r(),l("ngForOf",e.brandCityList)("ngForTrackBy",e.trackByItemKey),r(),l("virtualScroll",e.shouldEnableVirtualScroll(e.brandAreaList,10)),x("ngModel",e.brandAreaSearch),r(),l("ngForOf",e.brandAreaList)("ngForTrackBy",e.trackByItemKey),r(),l("virtualScroll",e.shouldEnableVirtualScroll(e.brandNameList,10)),x("ngModel",e.brandNameSearch),r(),l("ngForOf",e.brandNameList)("ngForTrackBy",e.trackByItemKey),r(),l("virtualScroll",e.shouldEnableVirtualScroll(e.brandIndustryList,10)),x("ngModel",e.brandindustrySearch),r(),l("ngForOf",e.brandIndustryList)("ngForTrackBy",e.trackByItemKey),r(5),l("src",e.retail,S),r(3),l("ngIf",(e.allBrandList==null?null:e.allBrandList.length)>0),r(),l("loaderId","companyList")("text","Loading"))},dependencies:[j,V,W,U,Y,$,G,tt,X],styles:["h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ng
1content-%COMP%], h5[_ngcontent-%COMP%], p[_ngcontent-%COMP%], span[_ngcontent-%COMP%], b[_ngcontent-%COMP%], a[_ngcontent-%COMP%], input[_ngcontent-%COMP%], button[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{font-family:poppins,sans-serif!important;line-height:normal;word-spacing:normal;letter-spacing:normal}main[_ngcontent-%COMP%]{background-color:#ffe4e1}.cover-img[_ngcontent-%COMP%]{height:200px;text-align:center;background:#f0f8ff}.hero-style[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.left[_ngcontent-%COMP%]{width:60%}.left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:90%;font-size:22px;text-align:center;line-height:initial;margin:30px auto}.input-group[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;margin:50px 0 0}.right[_ngcontent-%COMP%]{width:30%;justify-content:center;display:flex;flex-direction:column}video[_ngcontent-%COMP%]{border-radius:15px}.claim-button[_ngcontent-%COMP%]{padding:10px 15px;border-radius:5px;transform:translateY(-22px);background:#f05537;border:1px solid #f05537;font-size:16px;width:80%;margin:auto}h1[_ngcontent-%COMP%]{font-size:38px;color:#121262;text-align:center}
1h2[_ngcontent-%COMP%]{color:#121262;font-size:18px;line-height:inherit}h3[_ngcontent-%COMP%]{color:#121262;font-size:14px;line-height:inherit}h4[_ngcontent-%COMP%]{font-size:12px;color:#0d6efd;line-height:inherit}p[_ngcontent-%COMP%], b[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}.bg-gold[_ngcontent-%COMP%]{color:gold}.card-header[_ngcontent-%COMP%]{background-color:#fff}.card[_ngcontent-%COMP%]{--bs-card-border-color: none}.card-shadow[_ngcontent-%COMP%]{box-shadow:1px .5px 5px .5px #6495ed!important;border-radius:5px}.profile-img[_ngcontent-%COMP%]{height:4rem;width:4rem;position:relative;border:.5px solid aliceblue;border-radius:5%;box-shadow:1px .5px 5px .5px #6495ed}.profile-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translatey(-50%)}.carousel-control-prev-icon[_ngcontent-%COMP%], .carousel-control-next-icon[_ngcontent-%COMP%]{background:#000;color:#fff;font-size:40px;line-height:normal;height:auto;margin:auto;border-radius:5px}.carousel-control-next[_ngcontent-%COMP%], .carousel-control-prev[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:auto;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}.carousel-control-prev[_ngcontent-%COMP%]{left:-15px}.carousel-control-next[_ngcontent-%COMP%]{right:-15px}input[_ngcontent-%COMP%], input[type=text][_ngcontent-%COMP%], input[type=password][_ngcontent-%COMP%], input[type=email][_ngcontent-%COMP%], input[type=number][_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{margin:0;color:#000}button[_ngcontent-%COMP%]{background-color:#0d6efd;color:#fff;border:1px solid #0d6efd;padding:0 20px}.btn.show[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:hover{color:#0d6efd;background-color:#fff;border-color:#0d6efd}.pagination[_ngcontent-%COMP%]{display:flex;justify-content:center}.pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;float:left;padding:8px 16px;text-decoration:none}.pagination[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#fff;color:#000}.pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover:not(.active){background-color:#ddd;color:#3140ce}.pagination-style[_ngcontent-%COMP%]{justify-content:center}.selected-page[_ngcontent-%COMP%]{background-color:#e9e9f3}@media only screen and (max-width: 1200px){h1[_ngcontent-%COMP%]{font-size:30px}.claim-button[_ngcontent-%COMP%]{padding:10px 15px;border-radius:5px;transform:translateY(-22px);background:#f05537;border:1px solid #f05537;font-size:16px;width:80%;margin:auto}.left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:90%;font-size:16px;margin:25px auto}.input-group[_ngcontent-%COMP%]{margin:30px 0 0}}@media only screen and (max-width: 992px){.container[_ngcontent-%COMP%]{max-width:100%}h1[_ngcontent-%COMP%]{font-size:28px;text-align:center}.input-group[_ngcontent-%COMP%]{margin:30px 0 0}}@media only screen and (max-width: 768px){.hero-style[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:14px;text-align:center;line-height:initial;margin:30px 0}.left[_ngcontent-%COMP%]{width:100%}h1[_ngcontent-%COMP%]{font-size:24px}.right[_ngcontent-%COMP%]{width:60%;height:60%}h1[_ngcontent-%COMP%]{font-size:22px;text-align:center}.input-group[_ngcontent-%COMP%]{margin:30px 0 0}}@media only screen and (max-width: 768px){.left[_ngcontent-%COMP%]{width:100%;padding:40px 0}.right[_ngcontent-%COMP%]{width:80%}.input-group[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;flex-wrap:wrap;align-items:stretch;width:100%;margin:50px 0 0}.input-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .for-select[_ngcontent-%COMP%]{width:100%;border-radius:5px!important;margin:5px 0}button[_ngcontent-%COMP%]{padding:5px 20px;margin:5px 0;border-radius:5px!important;display:flex;justify-content:center}.claim-button[_ngcontent-%COMP%]{padding:10px 15px;border-radius:5px;transform:translateY(-22px);background:#f05537;border:1px solid #f05537;font-size:16px;width:80%;margin:auto}}@media only screen and (max-width: 576px){.right[_ngcontent-%COMP%]{width:100%}}"]})}}return n})();var yt=[{path:"",component:it}
1],ot=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=w({type:n})}static{this.\u0275inj=P({imports:[I.forChild(yt),I]})}}return n})();var Dt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=w({type:n})}static{this.\u0275inj=P({imports:[D,ot,Q,et]})}}return n})();export{Dt as RetailListModule};
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.