PageSourceSearch

https://spc.sy/chunk-273MH2A3.js

js spc.sy collected 2026-10-10 01:29:46 UTC 10,527 bytes, 1 lines download raw bytes

1import{a as Y}from"./chunk-J3YIE3QK.js";import"./chunk-UMIEWVS3.js";import{a as A,b as U}from"./chunk-VHTI2ABU.js";import"./chunk-K7Y5J4QK.js";import{a as R}from"./chunk-RRIV533A.js";import"./chunk-XSFRM4TQ.js";import"./chunk-IUYYZEVU.js";import"./chunk-LCQRRSGQ.js";import"./chunk-5CIO6RFY.js";import"./chunk-AKUTFEVL.js";import{d as N,h as H}from"./chunk-637226CF.js";import"./chunk-CB2S6YAM.js";import{j as P,k as D,r as F}from"./chunk-PTQIIAB4.js";import{c as z,e as G}from"./chunk-FJ7EFM7G.js";import{Dc as p,Ec as s,Gc as V,Hb as m,Ib as i,Jb as o,Kb as d,Oa as k,Ob as I,Pb as M,Rb as S,Ua as n,Vb as v,Xb as x,Z as y,ca as C,da as w,ea as f,fa as b,fc as L,ib as E,kc as l,ma as g,mc as c,nc as T,ob as u,pc as O,wc as j,xc as B}from"./chunk-7FIIEFNI.js";import"./chunk-GAL4ENT6.js";var q=()=>[1,2,3,4,5,6],J=t=>["/companies",t];function K(t,r){t&1&&(i(0,"div",29),d(1,"p-skeleton",30)(2,"p-skeleton",31)(3,"p-skeleton",32)(4,"p-skeleton",33),o())}function Q(t,r){t&1&&(i(0,"div",27),u(1,K,5,0,"div",28),o()),t&2&&(n(),m("ngForOf",j(1,q)))}function W(t,r){if(t&1){let e=S();i(0,"div",36)(1,"div",37)(2,"div",38)(3,"img",39),v("error",function(h){C(e);let _=x(2);return w(_.onLogoError(h))}),o()()(),i(4,"h3",40),l(5),o(),i(6,"div",41)(7,"p",42),d(8,"img",43),l(9),o(),i(10,"p",42),d(11,"img",44),l(12),p(13,"translate"),o()(),i(14,"p",45),l(15),o(),i(16,"div",46)(17,"button",47),l(18),p(19,"translate"),o()()()}if(t&2){let e=r.$implicit,a=x(2);n(3),m("src",e.iconPath,k)("alt",a.languageService.currentLang==="en"?e.nameEn:e.nameAr),n(2),c(" ",a.languageService.currentLang==="en"?e.nameEn:e.nameAr," "),n(4),c(" ",a.languageService.currentLang==="en"?e.locationEn:e.locationAr," "),n(3),T(" ",e.noEmployee," ",s(13,9,"pages.companies.employees")," "),n(3),c(" ",a.languageService.currentLang==="en"?e.descriptionEn:e.descriptionAr," "),n(2),m("routerLink",B(13,J,e.id)),n(),c(" ",s(19,11,"pages.companies.viewDetails")," ")}}function X(t,r){if(t&1&&(i(0,"div",34),u(1,W,20,15,"div",35),o()),t&2){let e=x();n(),m("ngForOf",e.companies())}}function Z(t,r){t&1&&(i(0,"div",48),f(),i(1,"svg",49),d(2,"path",50),o(),b(),i(3,"h3",51),l(4),p(5,"translate"),o(),i(6,"p",52),l(7),p(8,"translate"),o()()),t&2&&(n(4),c(" ",s(5,2,"pages.companies.noCompanies")," "),n(3),c(" ",s(8,4,"pages.companies.noCompaniesDescription")," "))}function ee(t,r){if(t&1&&(i(0,"div",53),l(1),p(2,"translate"),p(3,"translate"),o()),t&2){let e=x();n(),O(" ",s(2,4,"shared.showing")," ",e.companies().length," ",s(3,6,"shared.of")," ",e.totalCompanies()," ")}}function te(t,r){t&1&&(I(0),l(1),p(2,"translate"),M()),t&2&&(n(),c(" ",s(2,1,"shared.loadMore")," "))}function ie(t,r){t&1&&(f(),i(0,"svg",57),d(1,"g",16)(2,"g",17),i(3,"g",18),d(4,"path",58)(5,"path",59)(6,"path",60)(7,"path",61),o()())}function ne(t,r){if(t&1){let e=S();i(0,"div",54)(1,"button",55),v("click",function(){C(e);let h=x();return w(h.loadMore())}),u(2,te,3,3,"ng-container",56)(3,ie,8,0,"ng-template",null,0,V),o()()}if(t&2){let e=L(4),a=x();n(2),m("ngIf",!a.isLoading())("ngIfElse",e)}}var $=class t{companyService=y(Y);languageService=y(R);companies=g([]);isLoading=g(!0);searchTerm=g("");totalCompanies=g(0);page=g(1);pageSize=g(6);ngOnInit(){this.loadCompanies()}loadCompanies(r=!1){this.isLoading.set(!0),this.companyService.getAllGuest(this.searchTerm(),this.page(),this.pageSize()).subscribe({next:e=>{this.totalCompanies.set(e.totalRecordsCount||0),r?this.companies.set(e.value||[]):this.companies.update(a=>[...a,...e.value||[]]),this.isLoading.set(!1)},error:e=>{this.isLoading.set(!1)}})}onSearch(r){let e=r.target;this.searchTerm.set(e.value),this.page.set(1),this.loadCompanies(!0)}loadMore(){this.page.update(r=>r+1),this.loadCompanies(!1)}onLogoError(r){let e=r.target;e.src="logos/companies/default-company-logo.png"}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=E({type:t,selectors:[["app-companies"]],decls:37,vars:20,consts:[["loadingSpinner",""],[1,"relative","w-full","min-h-[70vh]","flex","flex-col","items-center","justify-center","text-center","px-6","bg-gradient-to-l","from-primary-dark/90","via-primary-dark/70","via-primary-dark/60","to-primary-dark/10"],[1,"absolute","
1inset-0","bg-primary-dark/70","z-10"],["src","images/companies/companies-hero.webp","alt","companies image",1,"absolute","inset-0","w-full","h-full","object-cover"],[1,"relative","z-20","max-w-4xl","mt-16","mx-auto","w-full"],[1,"text-gray-200","text-sm","md:text-base","mb-6"],[1,"flex","justify-center","space-x-2","md:space-x-4"],[1,"flex","items-center"],["routerLink","/",1,"hover:text-white","transition","flex","items-center"],[1,"text-white","font-semibold"],[1,"text-4xl","md:text-5xl","font-bold","text-white","drop-shadow-lg","mb-4"],[1,"text-lg","md:text-xl","text-gray-200","mb-6"],[1,"relative","max-w-2xl","mx-auto","w-full"],["type","text",1,"w-full","px-6","py-4","rounded-2xl","shadow-lg","bg-white/90","backdrop-blur-md","text-gray-800","placeholder-gray-500","focus:outline-none","focus:ring-3","focus:ring-accent-light","transition-all","duration-500","transform","focus:scale-101",3,"input","placeholder"],[1,"absolute","top-1/2","-translate-y-1/2","text-primary","text-xl","cursor-pointer","transition","hover:scale-110","ltr:right-5","rtl:left-5"],["width","24","height","24","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","fill","none","stroke","#000000","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"feather","feather-search"],["id","SVGRepo_bgCarrier","stroke-width","0"],["id","SVGRepo_tracerCarrier","stroke-linecap","round","stroke-linejoin","round"],["id","SVGRepo_iconCarrier"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],[1,"container","mx-auto","px-6","py-10"],["class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",4,"ngIf"],["class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",4,"ngIf"],["class","text-center py-12",4,"ngIf"],["class","text-center mt-6 text-gray-600 text-sm",4,"ngIf"],["class","flex justify-center mt-3",4,"ngIf"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-8"],["class","bg-white rounded-2xl p-6 shadow-sm",4,"ngFor","ngForOf"],[1,"bg-white","rounded-2xl","p-6","shadow-sm"],["width","100%","height","80px",1,"mb-4"],["width","80%","height","24px",1,"mb-2"],["width","60%","height","20px",1,"mb-4"],["width","100%","height","60px"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-6"],["class","bg-white border border-gray-300 rounded-2xl p-6 hover:shadow-lg transition flex flex-col",4,"ngFor","ngForOf"],[1,"bg-white","border","border-gray-300","rounded-2xl","p-6","hover:shadow-lg","transition","flex","flex-col"],[1,"flex","items-center","mb-4"],[1,"w-14","h-14","border","p-1","bg-gray-100","rounded-xl","flex","items-center","justify-center"],[1,"w-full","h-full","rounded-xl","object-cover",3,"error","src","alt"],[1,"text-lg","font-semibold","text-gray-800","mb-1"],[1,"space-y-2","text-sm","text-gray-600"],[1,"flex","items-center","gap-1"],["src","icons/careers/map-marker-icon.svg","alt","location icon",1,"w-4","h-4"],["src","icons/careers/company-icon.svg","alt","company icon",1,"w-4","h-4"],[1,"text-gray-700","text-sm","mt-3","line-clamp-2"],[1,"mt-auto"],[1,"w-full","cursor-pointer","mt-4","px-4","py-2","border","border-primary","text-primary","rounded-xl","hover:bg-primary","hover:text-white","transition",3,"routerLink"],[1,"text-center","py-12"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"mx-auto","h-24","w-24","text-gray-400","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],[1,"text-lg","font-medium","text-gray-900","mb-2"],[1,"text-gray-500"],[1,"text-center","mt-6","text-gray-600","text-sm"],[1,"flex","justify-center","mt-3"],[1,"px-6","py-3","flex","gap-2","cursor-pointer","bg-accent","text-white","rounded-xl","hover:bg-accent-light","transition",3,"click"],[4,"ngIf","ngIfElse"],["viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"animate-spin","h-5","w-5","text-white"],["d","M4.97498 12H7.89998","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 4.97498V7.89998","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M19.025 12H16.1","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 19.025V16.1","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(e,a){e&1&&(i(0,"section",1),d(1,"div",2)(2,"img",3),i(3,"div",4)(4,"nav",5)(5,"ol",6)(6,"li",7)(7,"a",8),l(8),p(9,"translate"),o()(),i(10,"li"),l(11,"/"),o(),i(12,"li",9),l(13),p(14,"translate"),o()()(),i(15,"h1",10),l(16),p(17,"translate"),o(),i(18,"p",11),l(19),p(20,"translate"),o(),i(21,"div",12)(22,"input",13),p(23,"translate"),v("input",function(_){return a.onSearch(_)}),o(),i(24,"span",14),f(),i(25,"svg",15),d(26,"g",16)(27,"g",17),i(28,"g",18),d(29,"circle",19)(30,"line",20),o()()()()()(),b(),i(31,"div",21),u(32,Q,2,2,"div",22)(33,X,2,1,"div",23)(34,Z,9,6,"div",24)(35,ee,4,8,"div",25)(36,ne,5,2,"div",26),o()),e&2&&(n(8),c(" ",s(9,10,"layout.mainLayout.nav.home")," "),n(5),c(" ",s(14,12,"layout.mainLayout.nav.companies")," "),n(3),c(" ",s(17,14,"pages.companies.title")," "),n(3),c(" ",s(20,16,"pages.companies.subtitle")," "),n(3),m("placeholder",s(23,18,"pages.companies.searchPlaceholder")),n(10),m("ngIf",a.isLoading()),n(),m("ngIf",!a.isLoading()),n(),m("ngIf",!a.isLoading()&&a.companies().length===0),n(),m("ngIf",a.companies().length>0&&!a.isLoading()),n(),m("ngIf",a.companies().length<a.totalCompanies()))},dependencies:[F,P,D,H,N,G,U,A,z],styles:[".line-clamp-2[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:768px){.grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1.5rem}}
1.hover\\:shadow-lg[_ngcontent-%COMP%]:hover{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 3px var(--color-primary-op)}button[_ngcontent-%COMP%]:hover{transform:translateY(-1px)}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.5}}.p-skeleton[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 2s cubic-bezier(.4,0,.6,1) infinite}"]})};export{$ as CompaniesComponent};

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.