PageSourceSearch

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

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

1import{a as Q,b as X}from"./chunk-2LE2V3KN.js";import{a as Y,d as ee}from"./chunk-D73H5ZTT.js";import{a as te,b as ne,c as ie,f as oe}from"./chunk-GDCKFAMC.js";import{c as U}from"./chunk-RLXK4TFM.js";import{a as q,b as G,j as H}from"./chunk-AIH5L73K.js";import{a as K}from"./chunk-MQIMP3HX.js";import{a as J}from"./chunk-EJRNXZVZ.js";import{a as j}from"./chunk-RKBTUKSQ.js";import{e as O}from"./chunk-SINYUQ3K.js";import{f as z,g as B,k as P}from"./chunk-LVGX4PN4.js";import{d as Z}from"./chunk-DHCDKQXP.js";import{j as L,s as N}from"./chunk-IWIKS42K.js";import{Ac as V,Bc as I,Oc as W,Qb as d,Qc as v,Rb as u,Sb as F,Ub as R,Vb as E,Wb as s,Xb as a,Xc as S,Yb as l,Yc as M,Zb as p,_c as A,bb as o,da as f,ea as g,ec as h,fd as $,gd as c,ic as _,kc as r,sb as k,ua as y,xb as T,yb as D,yc as C,za as w,zc as x}from"./chunk-A6TPBFUB.js";var le=t=>({"max-lg:hidden":t}),me=t=>[t],ae=t=>({active:t});function se(t,n){if(t&1&&p(0,"p-badge",9),t&2){let e=r(2).$implicit;s("value",e.badge)}}function de(t,n){if(t&1){let e=h();a(0,"a",7),_("click",function(){f(e);let m=r().$implicit,b=r();return g(b.onSelect(m))}),p(1,"i"),a(2,"span",8),x(3),l(),d(4,se,1,1,"p-badge",9),l()}if(t&2){let e=r().$implicit,i=r();s("routerLink",v(6,me,e.route))("ngClass",v(8,ae,(i.selectedItem==null?null:i.selectedItem.label)===(e==null?null:e.label))),o(),C(e.icon+" text-icon-default  group-hover:text-inherit"),o(2),I(" ",e.label," "),o(),u(e!=null&&e.badge?4:-1)}}function ue(t,n){if(t&1&&p(0,"p-badge",9),t&2){let e=r(2).$implicit;s("value",e.badge)}}function pe(t,n){if(t&1){let e=h();a(0,"a",10),_("click",function(){f(e);let m=r().$implicit,b=r();return g(b.onSelect(m))}),p(1,"i"),a(2,"span",11),x(3),l(),d(4,ue,1,1,"p-badge",9),l()}if(t&2){let e=r().$implicit,i=r();s("ngClass",v(5,ae,(i.selectedItem==null?null:i.selectedItem.label)===(e==null?null:e.label))),o(),C(e.icon+" text-icon-default  group-hover:text-inherit"),o(2),I(" ",e.label," "),o(),u(e!=null&&e.badge?4:-1)}}function ce(t,n){if(t&1&&d(0,de,5,10,"a",5)(1,pe,5,7,"a",6),t&2){let e=n.$implicit;u(e!=null&&e.route?0:1)}}function be(t,n){if(t&1){let e=h();a(0,"div",3)(1,"button",12),_("click",function(){f(e);let m=r();return g(m.showAllMenuItems=!m.showAllMenuItems)}),x(2),S(3,"TextResource"),S(4,"TextResource"),l()()}if(t&2){let e=r();o(2),I(" ",e.showAllMenuItems?M(3,1,e.TextResource.viewLess):M(4,3,e.TextResource.viewMore)+" ("+(e.menuItems().length-7)+")"," ")}}function fe(t,n){if(t&1&&(a(0,"div",4),p(1,"formly-form",13),l()),t&2){let e=r();o(),s("form",e.formly)("fields",e.formlyFields())("model",e.formlyModel())}}function ge(t,n){if(t&1&&(a(0,"p-tab",15)(1,"div",16),p(2,"i"),a(3,"span"),x(4),l()()()),t&2){let e=r(),i=e.$implicit,m=e.$index;s("value",m),o(2),C(i.icon),o(2),V(i.label)}}function he(t,n){if(t&1&&d(0,ge,5,4,"p-tab",15),t&2){let e=n.$implicit;u(e?0:-1)}}function _e(t,n){if(t&1){let e=h();a(0,"div",4)(1,"p-tabs",14),_("valueChange",function(m){f(e);let b=r();return g(b.onTabChange(m))}),a(2,"p-tablist"),R(3,he,1,1,null,null,F),l()()()}if(t&2){let e=r();o(),s("value",0),o(2),E(e.menuItems())}}var re=class t extends Y{menuItems=c([]);selectedItemInput=c();onSelectItem=$();selectedItem;showAllMenuItems=!1;TextResource=K;styleClass=c(void 0);isWithDropdown=c(!1);isWithTaps=c(!1);ngOnInit(){}menuItemsInputEffect=y(()=>{if(this.menuItems()){this.selectedItem=this.selectedItemInput()||this.menuItems()[0],this.isWithDropdown()&&this.initForm();let n=this.menuItems();if(n&&this.selectedItem){let e=n.findIndex(i=>i?.label===this.selectedItem?.label);this.showAllMenuItems=e>6}else this.showAllMenuItems=!1}});selectedItemInputEffect=y(()=>{this.selectedItemInput()&&(this.selectedItem=this.selectedItemInput())});onSelect(n){this.selectedItem=n,this.onSelectItem.emit(n)}onTabChange(n){this.selectedItem=this.menuItems()[n],this.onSelectItem.emit(this.selectedItem)}initForm(){this.formlyFields.set([{key:"dropdown",type:"select",defaultValue:this.selectedItem,props:{options:O(this.menuItems(),"label","label",!0),onChange:n=>{this.onSelectItem.emit(n.value)}}}])}static \u0275fac=(()=>{let n;return function(i){return(n||(n=w(t)))(i||t)}})();static \u0275cmp=k({type:t,selectors:[["app-shared-side-menu"]],inputs:{menuItems:[1,"menuItems"],selectedItemInput:[1,"selectedItemInput"],styleClass:[1,"styleClass"],isWithDropdown:[1,"isWithDropdown"],isWithTaps:[1,"isWithTaps"]},outputs:{onSelectItem:"onSelectItem"},features:[W([j]),T],decls:7,vars:7,consts:[["item",""],[1,"hidden","w-full","rounded-2xl","lg:block","bg-background-white",3,"ngClass"],["styleClass","w-full ",3,"model"],[1,"mt-2","text-center"],[1,"lg:hidden"],["routerLinkActive","active","pRipple","",1,"flex","items-center","px-4","py-3","capitalize","cursor-pointer","group",3,"routerLink","ngClass"],["pRipple","",1,"flex","gap-2","items-center","px-4","py-3","capitalize","cursor-pointer","group",3,"ngClass"],["routerLinkActive","active","pRipple","",1,"flex","items-center","px-4","py-3","capitalize","cursor-pointer","group",3,"click","routerLink","ngClass"],[1,"text-base","leading-6","ms-2","text-text-primaryParagraph"],["severity","secondary",1,"ms-auto",3,"value"],["pRipple","",1,"flex","gap-2","items-center","px-4","py-3","capitalize","cursor-pointer","group",3,"click","ngClass"],[1,"w-full","text-base","leading-6","text-text-primaryParagraph"],["type","button",1,"text-base","underline","text-primary",3,"click"],[3,"form","fields","model"],[3,"valueChange","value"],[3,"value"],[1,"flex","gap-2","items-center"]],template:function(e,i){e&1&&(a(0,"div",1)(1,"p-panelmenu",2),D(2,ce,2,1,"ng-template",null,0,A),l(),d(4,be,5,5,"div",3),l(),d(5,fe,2,3,"div",4),d(6,_e,5,1,"div",4)),e&2&&(s("ngClass",v(5,le,i.isWithDropdown()||i.isWithTaps())),o(),s("model",i.showAllMenuItems?i.menuItems():i.menuItems().slice(0,7)),o(3),u(i.menuItems().length>7?4:-1),o(),u(i.isWithDropdown()?5:-1),o(),u(i.isWithTaps()?6:-1))},dependencies:[N,L,P,z,B,X,Q,G,q,H,U,ee,Z,oe,te,ne,ie,J],styles:['.p-panelmenu{background-color:var(--background-white);padding-top:0;padding-bottom:0}  .p-panelmenu-panel{border-width:0px;padding:0}  .p-panelmenu-header-content a.active{border-radius:.25rem;background-color:var(--button-background-neutral-default);font-weight:600!important;color:var(--text-default)!important}  .p-panelmenu-header-content a:hover{border-radius:.25rem;background-color:var(--button-background-neutral-hovered);font-weight:600!important;color:var(--text-default)!important}  .p-panelmenu-header-content a:active{border-radius:.25rem;background-color:var(--button-background-neutral-pressed);font-weight:600!important;color:var(--text-default)!important}  .p-panelmenu-header-content a:visited{border-radius:.25rem;background-color:var(--button-background-neutral-default);font-weight:600!important;color:var(--text-default)!important}  .p-panelmenu-header-content a:focus{border-radius:.25rem;border-width:2px;border-color:var(--border-black)}@media(min-width:769px){  .p-panelmenu-header-content a.active:before{position:absolute;top:.5rem;bottom:.5rem;inset-inline-start:0px;width:.375rem;border-radius:9999px;background-color:var(--background-neutral-400);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;--tw-content: "";content:var(--tw-content)}  .p-panelmenu-header-content a:hover:before{position:absolute;top:.5rem;bottom:.5rem;inset-inline-start:0px;width:.375rem;border-radius:9999px;background-color:var(--background-neutral-400);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;--tw-content: "";content:var(--tw-content)}  .p-panelmenu-header-content a:active:before{position:absolute;top:.5rem;bottom:.5rem;inset-inline-start:0px;width:.375rem;border-radius:9999px;background-color:var(--background-neutral-800);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;--tw-content: "";content:var(--tw-content)}  .p-panelmenu-header-content a:visited:before{position:absolute;top:.5rem;bottom:.5rem;inset-inline-start:0px;width:.375rem;border-radius:9999px;background-color:var(--background-neutral-400);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;--tw-content: "";content:var(--tw-content)}}  .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover{background-color:var(--button-background-neutral-default)}  .p-badge-circle{padding-left:.5rem;padding-right:.5rem}'],changeDetection:0})};export{re as a};

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.