PageSourceSearch

https://etec.gov.sa/chunk-LYITV24U.js

js etec.gov.sa collected 2026-10-01 11:27:13 UTC 8,232 bytes, 1 lines download raw bytes

1import{a as ie,b as ne}from"./chunk-D4CYY4EJ.js";import{a as te}from"./chunk-IRX2UQRU.js";import{a as X,b as Y,c as Z,d as ee}from"./chunk-MRDLY4JA.js";import{a as Q}from"./chunk-3EK2XDFV.js";import"./chunk-CWPG7W6Y.js";import"./chunk-QIDMIG5F.js";import"./chunk-GJF5AC5O.js";import{a as W}from"./chunk-QIMEWAXD.js";import{d as J}from"./chunk-F42XWEKX.js";import"./chunk-CQRPW3OH.js";import"./chunk-6YN65EQF.js";import"./chunk-EXZL5JME.js";import"./chunk-DVEBNUMW.js";import"./chunk-VKGM3GRO.js";import"./chunk-IAJ7HYWP.js";import{d as z,e as K}from"./chunk-QQBXRA6O.js";import{a as H}from"./chunk-ECYHJRYG.js";import"./chunk-UZT2ORD5.js";import"./chunk-7A7SMHFX.js";import"./chunk-7QJME62Q.js";import"./chunk-RSERUU27.js";import{a as U}from"./chunk-U6VOGTHJ.js";import"./chunk-AIH5L73K.js";import"./chunk-RTIM7WIE.js";import"./chunk-MQIMP3HX.js";import{a as G}from"./chunk-EJRNXZVZ.js";import"./chunk-4NFJFEMR.js";import"./chunk-R2BOG6GE.js";import"./chunk-JMH2JNUC.js";import"./chunk-ODFCSELV.js";import{a as D}from"./chunk-RKBTUKSQ.js";import"./chunk-CIVLAGF7.js";import"./chunk-4K6EZXBI.js";import"./chunk-GBF3WBMW.js";import"./chunk-SINYUQ3K.js";import"./chunk-CHFMLLSJ.js";import{c as B,e as O}from"./chunk-LVGX4PN4.js";import{b as A,f as $,m as j,t as q}from"./chunk-WVPYIY4K.js";import"./chunk-ZY44SODE.js";import{w as N}from"./chunk-IWIKS42K.js";import{Ac as C,Bc as k,G as M,Ga as I,Oc as V,Pc as L,Qb as h,Rb as _,Sb as E,Tb as P,Ub as y,Vb as w,Wb as b,Xb as n,Xc as g,Yb as r,Yc as x,Z as s,Zb as c,bb as a,da as m,ea as u,ec as S,ic as f,kc as o,ra as d,sb as R,wc as F,zc as v}from"./chunk-A6TPBFUB.js";import"./chunk-VFRXZJJG.js";var ae=()=>[1,2,3];function oe(t,i){if(t&1){let e=S();n(0,"i",18),f("click",function(){m(e);let l=o(2);return u(l.onClear())}),r(),c(1,"div",19)}}function le(t,i){if(t&1&&(c(0,"app-shared-title",14),g(1,"TextResource")),t&2){let e=o(2);b("title",x(1,1,"resultFor")+" \u201C"+e.searchedTerm()+"\u201D")}}function ce(t,i){if(t&1&&(n(0,"p",15),v(1),r()),t&2){let e=o(2).$implicit;a(),C(e==null||e.properties==null?null:e.properties.pageSubTitle)}}function se(t,i){if(t&1){let e=S();n(0,"div")(1,"div",20)(2,"h3",21),f("click",function(){m(e);let l=o().$implicit,T=o(3);return u(T.onNavigate(l))}),v(3),r(),h(4,ce,2,1,"p",15),r(),c(5,"hr",22),r()}if(t&2){let e=o().$implicit;a(3),k("",e==null||e.properties==null?null:e.properties.pageTitle," "),a(),_(!(e==null||e.properties==null)&&e.properties.pageSubTitle?4:-1)}}function de(t,i){if(t&1&&h(0,se,6,2,"div"),t&2){let e=i.$implicit;_(!(e==null||e.properties==null)&&e.properties.pageTitle&&!(!(e==null||e.name==null)&&e.name.includes("home"))?0:-1)}}function pe(t,i){if(t&1&&(n(0,"div",16),y(1,de,1,1,null,null,P),r()),t&2){let e=o(2);a(),w(e.data())}}function me(t,i){t&1&&(n(0,"div",17),c(1,"i",23),n(2,"h3",24),v(3),g(4,"TextResource"),r(),n(5,"p",25),v(6),g(7,"TextResource"),r()()),t&2&&(a(3),C(x(4,2,"noMatchingResults")),a(3),C(x(7,4,"tryDifferentKeywords")))}function ue(t,i){if(t&1){let e=S();c(0,"app-shared-breadcrumb",1),n(1,"div",2)(2,"div",3)(3,"div",4)(4,"p-iconfield",5),c(5,"p-inputicon",6),n(6,"input",7),g(7,"TextResource"),f("ngModelChange",function(l){m(e);let T=o();return u(T.searchTerm.set(l))})("keyup.enter",function(){m(e);let l=o();return u(l.onFilter())}),r(),n(8,"p-inputicon",8),h(9,oe,2,0),n(10,"i",9),f("click",function(){m(e);let l=o();return u(l.onMic())}),r()()(),n(11,"app-shared-button",10),g(12,"TextResource"),f("onClick",function(){m(e);let l=o();return u(l.onFilter())}),r()(),n(13,"div",11)(14,"div",12)(15,"div",13),h(16,le,2,3,"app-shared-title",14),n(17,"span",15),v(18),g(19,"TextResource"),r()()(),h(20,pe,3,0,"div",16)(21,me,8,6,"div",17),r()()()}if(t&2){let e=o();b("data",e.breadcrumbData()),a(6),b("placeholder",x(7,14,"searchName"))("ngModel",e.searchTerm()),a(3),_(e.searchTerm()?9:-1),a(),F("animate-pulse",e.isListening())("text-red-500",e.isListening())("text-text-default",!e.isListening()),a(),b("label",x(12,16,"search")),a(5),_(e.searchedTerm()?16:-1),a(2),k(" ",x(19,18,"resultsCount")+" "+e.data().length),a(2),_(e.data().length>=1?20:21)}}function he(t,i){t&1&&(n(0,"div")(1,"div",20),c(2,"div",31)(3,"div",32),r(),c(4,"hr",22),r())}function _e(t,i){t&1&&(n(0,"div",0)(1,"div",3)(2,"div",26),c(3,"div",27)(4,"div",28),r(),n(5,"div",11)(6,"div",12)(7,"div",13),c(8,"div",29)(9,"div",30),r()(),n(10,"div",16),y(11,he,5,
10,"div",null,E),r()()()()),t&2&&(a(11),w(L(0,ae)))}var re=class t{breadcrumbData=d([]);isLoading=d(!1);isListening=d(!1);pageData=d(void 0);searchTerm=d("");searchedTerm=d("");data=d([]);platformId=s(I);_unsubscribeService=s(D);_pagesService=s(te);seoContentService=s(W);_searchService=s(ie);_activatedRoute=s(B);router=s(O);appRouterService=s(H);_speechRecognitionService=s(ne);ngOnInit(){this.getPage(),this._activatedRoute.queryParams.pipe(this._unsubscribeService.takeUntilDestroy()).subscribe(i=>{let e=i.searchterm||"";e&&(this.searchTerm.set(e),this.searchedTerm.set(e),this.onSearch(),N(this.platformId)&&this.router.navigate([],{relativeTo:this._activatedRoute,queryParams:{},replaceUrl:!0}))})}getPage(){this.isLoading.set(!0),this._pagesService.getSearch().pipe(M(()=>this.isLoading.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:i=>{i&&(this.pageData.set(i),this.seoContentService.updatePageMetaData(this.pageData()?.properties),this.breadcrumbData.set([{label:this.pageData()?.properties?.pageTitle}]))}})}onSearch(){if(!this.searchedTerm()||this.searchedTerm().length<2){this.data.set([]);return}this._searchService.onSearch(this.searchedTerm()).subscribe(i=>{this.data.set(i||[])})}onFilter(){if(!this.searchTerm()||this.searchTerm().length<2){this.searchedTerm.set(""),this.data.set([]);return}this.searchedTerm.set(this.searchTerm()),this.onSearch()}onNavigate(i){if(!i?.properties?.pageSearchRoute)return;let e=i.properties.pageSearchRoute.split("/").filter(Boolean);this.appRouterService.navigate(e)}onClear(){this.searchTerm.set(""),this.searchedTerm.set(""),this.data.set([])}onMic(){this.isListening.set(!0),this._speechRecognitionService.listen().pipe(this._unsubscribeService.takeUntilDestroy()).subscribe({next:i=>{i&&(this.searchTerm.set(i),this.searchedTerm.set(i),this.onSearch())},error:i=>{console.error(i),this.isListening.set(!1)},complete:()=>{this.isListening.set(!1)}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=R({type:t,selectors:[["app-search"]],features:[V([D])],decls:2,vars:1,consts:[[1,"px-4","py-10","animate-pulse","bg-background-white","lg:px-20","md:px-10"],[3,"data"],[1,"px-4","py-10","bg-background-white","lg:px-20","md:px-10"],[1,"lg:container"],[1,"flex","gap-4","items-center","w-full"],[1,"w-full"],[1,"text-xl","icon-search","text-text-default"],["type","text","pInputText","","fluid","",3,"ngModelChange","keyup.enter","placeholder","ngModel"],[1,"flex","gap-2","items-center"],[1,"text-lg","cursor-pointer","icon-mic",3,"click"],[3,"onClick","label"],[1,"mt-10"],[1,"flex","justify-between"],[1,"flex","flex-col","gap-4"],["styleClass","font-bold text-3xl",3,"title"],[1,"text-text-primaryParagraph"],[1,"flex","flex-col","gap-4","mt-8"],[1,"flex","flex-col","items-center","py-8"],[1,"cursor-pointer","icon-close","text-text-default",3,"click"],[1,"h-[20px]","w-[1px]","bg-border-neutral-primary"],[1,"flex","flex-col","gap-2"],[1,"cursor-pointer","text-link-primary-default","hover:underline",3,"click"],[1,"my-8","border-border-neutral-primary"],[1,"icon-investigation","text-[77.5px]","text-icon-default-500"],[1,"mt-8","text-3xl","font-semibold","text-center","text-text-default"],[1,"mt-4","text-text-secondaryParagraph"],[1,"flex","flex-col","gap-4","items-center","w-full","sm:flex-row"],[1,"w-full","h-[52px]","bg-background-neutral200","rounded-md"],[1,"w-full","sm:w-32","h-[52px]","bg-background-neutral200","rounded-md"],[1,"w-48","h-8","rounded-md","bg-background-neutral200"],[1,"w-32","h-6","rounded-md","bg-background-neutral200"],[1,"w-3/4","h-6","rounded-md","bg-background-neutral200"],[1,"w-1/2","h-4","rounded-md","bg-background-neutral200"]],template:function(e,p){e&1&&h(0,ue,22,20)(1,_e,13,1,"div",0),e&2&&_(p.isLoading()?1:0)},dependencies:[J,q,A,$,j,Y,X,ee,Z,K,z,U,Q,G],encapsulation:2,changeDetection:0})};export{re as Search};

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.