PageSourceSearch

https://fustany.com/chunk-GUJRYMYH.js

js fustany.com collected 2026-10-03 19:42:05 UTC 9,699 bytes, 1 lines download raw bytes

1import{a as ae}from"./chunk-4VJKAXT4.js";import{a as re}from"./chunk-JMWPR5AM.js";import{a as ne}from"./chunk-JAANIKTB.js";import{a as ie}from"./chunk-3PNCWQHS.js";import{a as te}from"./chunk-DAHJ3I7C.js";import{$ as l,Aa as S,Fa as O,Ha as B,Ia as H,J as T,Ja as R,M as r,N as p,T as g,V as a,Y as A,_ as s,aa as f,ab as $,ba as D,bb as U,ca as E,eb as X,fa as o,gb as q,hb as z,jb as L,kb as G,nb as J,oa as u,ob as K,pa as _,qa as F,ra as w,rb as Q,sb as V,t as b,tb as W,ua as x,va as M,vb as Y,wa as I,wb as Z,x as j,xb as ee,y as P,za as C}from"./chunk-M26HLQ47.js";var ue=(t,i)=>["/",t,i],de=t=>["/",t,"recipes"],he=t=>["/",t,"\u0648\u0635\u0641\u0627\u062A"],N=(t,i,e)=>["/",t,i,e],se=t=>({page:t});function fe(t,i){t&1&&f(0,"app-not-found")}function ye(t,i){if(t&1&&(s(0,"a",9),u(1),l()),t&2){let e=o().$implicit,n=o(3);a("routerLink",x(3,de,n.lang))("ngClass",(e==null?null:e.name)==(n.category==null?null:n.category.name)?"text-primary font-bold":"text-gray-header"),r(),_(e==null?null:e.name)}}function ve(t,i){if(t&1&&(s(0,"a",9),u(1),l()),t&2){let e=o().$implicit,n=o(3);a("routerLink",x(3,he,n.lang))("ngClass",(e==null?null:e.name)==(n.category==null?null:n.category.name)?"text-primary font-bold":"text-gray-header"),r(),_(e==null?null:e.name)}}function _e(t,i){if(t&1&&(s(0,"a",9),u(1),l()),t&2){let e=o().$implicit,n=o(3);a("routerLink",I(3,N,n.lang,n.section==null?null:n.section.permalink,e==null?null:e.permalink))("ngClass",(e==null?null:e.name)==(n.category==null?null:n.category.name)?"text-primary font-bold":"text-gray-header"),r(),_(e==null?null:e.name)}}function xe(t,i){if(t&1&&(s(0,"div"),g(1,ye,2,5,"a",8)(2,ve,2,5,"a",8)(3,_e,2,7,"a",8),l()),t&2){let e=i.$implicit,n=o(3);r(),a("ngIf",n.lang=="en"&&(e==null?null:e.permalink)=="the-kitchen"),r(),a("ngIf",n.lang=="ar"&&(e==null?null:e.permalink)=="\u0627\u0644\u0645\u0637\u0628\u062E"),r(),a("ngIf",(e==null?null:e.permalink)!="the-kitchen"&&(e==null?null:e.permalink)!="\u0627\u0644\u0645\u0637\u0628\u062E")}}function Ce(t,i){if(t&1&&(s(0,"div")(1,"div")(2,"a",6),u(3),l()(),g(4,xe,4,3,"div",7),l()),t&2){let e=o(2);A("",e.lang=="en"?"font-enRegular":"font-arBold"," flex items-center gap-3 py-4 uppercase text-sm overflow-x-auto whitespace-nowrap"),r(2),a("routerLink",M(6,ue,e.lang,e.section==null?null:e.section.permalink)),r(),_(e.section==null?null:e.section.name),r(),a("ngForOf",e.categories)}}function Se(t,i){if(t&1&&(s(0,"div",18),f(1,"div",19),C(2,"safe"),l()),t&2){let e=o(3);r(),a("innerHTML",S(2,1,e.ads==null?null:e.ads.ss_below_menu),T)}}function ke(t,i){if(t&1&&f(0,"app-item-card",20),t&2){let e=i.$implicit,n=o(3);a("lang",n.lang)("item",e)}}function be(t,i){if(t&1&&(s(0,"div",18),f(1,"div",19),C(2,"safe"),l()),t&2){let e=o(3);r(),a("innerHTML",S(2,1,e.ads==null?null:e.ads.ss_between_articles),T)}}function Pe(t,i){if(t&1&&(s(0,"button",21),u(1),C(2,"translate"),l()),t&2){let e=o(3);a("routerLink",I(5,N,e.lang,e.section.permalink,e.category.permalink))("queryParams",x(9,se,e.pageNumber-1)),r(),F(" ",S(2,3,"previous")," ")}}function Ie(t,i){if(t&1&&(s(0,"button",21),u(1),C(2,"translate"),l()),t&2){let e=o(3);a("routerLink",I(5,N,e.lang,e.section.permalink,e.category.permalink))("queryParams",x(9,se,e.pageNumber+1)),r(),F(" ",S(2,3,"next")," ")}}function Te(t,i){if(t&1&&(s(0,"div",10)(1,"div",11),g(2,Se,3,3,"div",12),s(3,"div",13),g(4,ke,1,2,"app-item-card",14),l(),g(5,be,3,3,"div",12),s(6,"div",15),g(7,Pe,3,11,"button",16),s(8,"div",17),u(9),l(),g(10,Ie,3,11,"button",16),l()()()),t&2){let e=o(2);r(2),a("ngIf",(e.ads==null?null:e.ads.ss_below_menu)!=null&&e.category.flag!="sexual"),r(2),a("ngForOf",e.articles),r(),a("ngIf",(e.ads==null?null:e.ads.ss_between_articles)!=null&&e.category.flag!="sexual"),r(2),a("ngIf",e.pageNumber>1),r(2),w(" ",e.pageNumber," \xA0 of \xA0 ",e.totalPages," "),r(),a("ngIf",e.isLastPage!="true")}}function Fe(t,i){if(t&1&&(D(0),f(1,"app-page-banner",1),s(2,"div",2),g(3,Ce,5,9,"div",3),l(),g(4,Te,11,7,"div",4),f(5,"app-footer",5),E()),t&2){let e=o();r(),a("title",e.category==null?null:e.category.name),r(2),a("ngIf",e.category),r(),a("ngIf",e.category),r(),a("lang",e.lang)}}var le=(()=>{let i=class i{constructor(n,c,d,k,h,y,m,v,pe,me,ge){this.route=n,this.router=c,this.categoriesService=d,this.sectionsService=k,this.articlesService=h,this.scriptsService=y,this.adsService=m,this.seoService=v,this.utilityService=pe,this.loadingService=me,this.document=ge,this.lang="en",this.sectionPermalink="",this.validSectionLink=!1,this.categoryPermalink="",this.validCategoryLink=!1,this.section=null,this.category=null,this.categoryNotFound=!1,this.categories=[],this.articles=[],this.filters={},this.flag="normal",this.pageNumber=1,this.isLastPage="true",this.totalPages=1}ngOnInit(){this.loadingService.show(),this.route.paramMap.subscribe(n=>{this.lang=n.get("lang"),this.sectionPermalink=n.get("sectionPermalink"),this.categoryPermalink=n.get("categoryPermalink");let c=`${this.sectionPermalink}/${this.categoryPermalink}`,d=encodeURI(c);if(c=="lifestyle/the-kitchen"){this.router.navigate([this.lang,"recipes"]);return}else if(d=="%D9%84%D8%A7%D9%8A%D9%81-%D8%B3%D8%AA%D8%A7%D9%8A%D9%84/%D8%A7%D9%84%D9%85%D8%B7%D8%A8%D8%AE"){this.router.navigate([this.lang,"\u0648\u0635\u0641\u0627\u062A"]);return}let k=this.utilityService.stringReplacer(this.categoryPermalink);if(k){this.router.navigate([this.lang,this.sectionPermalink,k]);return}this.validSectionLink=this.utilityService.validLangParams(this.lang,this.sectionPermalink),this.validCategoryLink=this.utilityService.validLangParams(this.lang,this.categoryPermalink),this.validSectionLink&&this.validCategoryLink?this.sectionsService.getSection(this.lang,this.sectionPermalink).subscribe(h=>{this.section=h.body},h=>{this.categoryNotFound=!0}
1,()=>{this.categoriesService.getCategory(this.lang,this.categoryPermalink).subscribe(h=>{this.category=h.body;let y=this.lang+"/"+this.sectionPermalink+"/"+this.categoryPermalink;this.category.section_id!=this.section.id?(this.categoryNotFound=!0,this.category=null):(this.categoryNotFound=!1,this.flag=this.category.flag,this.seoService.setPageTitle(this.category.title),this.seoService.setPageMetaTags(this.category),this.scriptsService.setHreflangTags(this.category.language,this.lang,y),this.scriptsService.loadScripts("main",this.flag),this.scriptsService.loadScripts("other",this.flag)),this.categoriesService.getSectionCategories(this.lang,this.sectionPermalink).subscribe(m=>{this.categories=m.body}),this.filters={sectionPermalink:"",categoryPermalink:this.categoryPermalink,tagPermalink:"",authorPermalink:"",title:""},this.articlesService.getArticles(this.lang,this.filters).subscribe(m=>{this.isLastPage=m.headers.get("X-Last-Page"),this.totalPages=m.headers.get("X-Total-Pages"),this.articles=m.body,this.articles.length==0&&(this.categoryNotFound=!0),this.scriptsService.setHreflangTags(this.category.language,this.lang,y,this.pageNumber),this.utilityService.scrollToTop("click"),this.loadingService.hide()}),this.route.queryParams.subscribe(m=>{m.page&&(this.loadingService.show(),this.filters={sectionPermalink:"",categoryPermalink:this.categoryPermalink,tagPermalink:"",authorPermalink:"",title:""},this.articlesService.getArticles(this.lang,this.filters,m.page||1).subscribe(v=>{this.isLastPage=v.headers.get("X-Last-Page"),this.totalPages=v.headers.get("X-Total-Pages"),this.articles=v.body,this.pageNumber=+m.page||1,this.articles.length==0&&(this.categoryNotFound=!0),this.scriptsService.setHreflangTags(this.category.language,this.lang,y,this.pageNumber,!0),this.utilityService.scrollToTop("click"),this.loadingService.hide()}))}),this.getAds()},h=>{this.categoryNotFound=!0})}):this.categoryNotFound=!0}),this.loadingService.hide()}getAds(){this.adsService.getAds(this.lang).subscribe(n=>{this.ads=n.body})}};i.\u0275fac=function(c){return new(c||i)(p(X),p(q),p(re),p(ae),p(ne),p(te),p(ie),p(Q),p(ee),p(V),p(O))},i.\u0275cmp=j({type:i,selectors:[["app-category"]],decls:2,vars:2,consts:[[4,"ngIf"],["imageUrl","assets/images/section-bg.svg",3,"title"],[1,"flex","justify-center","px-2"],[3,"class",4,"ngIf"],["class","bg-primary-bg min-h-screen",4,"ngIf"],[3,"lang"],[1,"font-bold",3,"routerLink"],[4,"ngFor","ngForOf"],[3,"routerLink","ngClass",4,"ngIf"],[3,"routerLink","ngClass"],[1,"bg-primary-bg","min-h-screen"],[1,"bg-primary-bg","min-h-screen","py-4","px-[5%]","md:px-[5%]","lg:px-[5%]","xl:px-[16%]"],["class","flex justify-center items-center py-10 md:w-2/3 md:mx-auto lg:mt-0",4,"ngIf"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","items-center","gap-8","mt-6"],[3,"lang","item",4,"ngFor","ngForOf"],[1,"flex","justify-center","items-center","gap-3","border","border-gray","bg-white","py-4"],["class","bg-primary text-white font-bold rounded-full px-5 py-1",3,"routerLink","queryParams",4,"ngIf"],[1,"border","border-primary-light","text-primary","font-bold","rounded-md","px-5","py-1"],[1,"flex","justify-center","items-center","py-10","md:w-2/3","md:mx-auto","lg:mt-0"],[3,"innerHTML"],[3,"lang","item"],[1,"bg-primary","text-white","font-bold","rounded-full","px-5","py-1",3,"routerLink","queryParams"]],template:function(c,d){c&1&&g(0,fe,1,0,"app-not-found",0)(1,Fe,6,4,"ng-container",0),c&2&&(a("ngIf",d.categoryNotFound),r(),a("ngIf",d.category&&d.articles.length>0))},dependencies:[z,J,K,Y,W,B,H,R,$,G]});let t=i;return t})();var Le=[{path:"",component:le}],ce=(()=>{let i=class i{};i.\u0275fac=function(c){return new(c||i)},i.\u0275mod=P({type:i}),i.\u0275inj=b({imports:[L.forChild(Le),L]});let t=i;return t})();var at=(()=>{let i=class i{};i.\u0275fac=function(c){return new(c||i)},i.\u0275mod=P({type:i}),i.\u0275inj=b({imports:[ce,U,Z]});let t=i;return t})();export{at as CategoriesModule};

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.