PageSourceSearch

https://halal.gov.sa/5643.646f4d9bab876516.js

js halal.gov.sa collected 2026-10-06 08:08:30 UTC 13,900 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpublic=self.webpackChunkpublic||[]).push([[5643],{5694:(y,d,r)=>{r.d(d,{f:()=>o});class o{constructor(n){this._localizationService=n,this.DefaultProductJson1=[{className:"col-lg-4",type:"input-icon",key:"productNameAr",props:{label:"InternalFacilityRequestService::productNameAr",required:!0,maxLength:100,minLength:3,hideRequiredMarker:!0,placeholder:"InternalFacilityRequestService::productNamePlaceholder",icon:"input-text"},validators:{validation:["ArabicAlphaOrNumericOrAllowedSpecial"]}},{className:"col-lg-4",type:"input-icon",key:"productNameEn",props:{label:"InternalFacilityRequestService::productNameEn",required:!0,maxLength:100,minLength:3,hideRequiredMarker:!0,placeholder:"InternalFacilityRequestService::productNamePlaceholder",icon:"input-text"},validators:{validation:["EnglishAlphaOrNumericOrAllowedSpecial"]}},{className:"col-lg-4",type:"select-with-search",key:"hsCodeId",props:{label:"InternalFacilityRequestService::HSCode",hideRequiredMarker:!0,placeholder:"InternalFacilityRequestService::HSCodePlaceholder",notFoundText:"InternalFacilityRequestService::NoHSCodeFound",icon:"layer-group",bindValue:"id",bindLabelAr:"nameAr",bindLabelEn:"nameEn",searchKey:"code",customTemp:"InternalFacilityRequestService::canAddProductWithHSCode",options:[]},expressions:{hide:"!formState.hsCode","props.options":"formState.hsCode","props.totalCount":"formState.hsCodeCount","props.required":a=>!a.model?.globalHSCode}},{className:"col-lg-4",type:"input-icon",key:"globalHSCode",props:{label:"InternalFacilityRequestService::GlobalHSCode",placeholder:"InternalFacilityRequestService::GlobalHSCodePlaceholder",hideRequiredMarker:!0,type:"text",icon:"layer-group",minLength:6,maxLength:12},expressions:{"props.required":a=>!a.model?.hsCodeId},validators:{validation:[{name:"onlyInteger"}]}},{className:"col-lg-4",type:"input-icon",key:"productNumber",props:{label:"InternalFacilityRequestService::productNumberInGhadSystem",required:!0,hideRequiredMarker:!0,maxLength:18,minLength:17,placeholder:"InternalFacilityRequestService::productNumberInGhadSystemPlaceholder",icon:"input-numeric"},validators:{validation:["EnglishWithNumbers"]}}],this.DefaultProductJson2=[{className:"col-lg-4",type:"input-select",key:"certificates",props:{label:"InternalFacilityRequestService::TechnicalSpecification",required:!0,hideRequiredMarker:!0,placeholder:"InternalFacilityRequestService::TechnicalSpecificationPlaceholder",icon:"layer-group",bindValue:"id",bindLabelAr:"nameAr",bindLabelEn:"nameEn",multiple:!0,hideClear:!0,isCustom:!0,customTemp:"InternalFacilityRequestService::canSelectTechnicalSpecificationWithFirstIsSelected",options:[]},expressions:{hide:"!formState.certificates","props.options":"formState.certificates"}},{className:"col-lg-4",type:"select-group",key:"subCategoryId",props:{label:"InternalFacilityRequestService::ProductCategory",required:!0,hideRequiredMarker:!0,placeholder:"InternalFacilityRequestService::ProductCategoryPlaceholder",icon:"layer-group",options:[],searchable:!0,bindValue:"id",bindLabelAr:"nameAr",bindLabelEn:"nameEn",bindLabelGroupAr:"groupNameAr",bindLabelGroupEn:"groupNameEn",multiple:!1,selectableGroup:!1},expressions:{hide:"!formState.categories","props.options":"formState.categories"}},{className:"col-lg-12",fieldGroupClassName:"row",validators:{validation:[{name:"fieldBiggerOrEqualThanValidator",options:{errorPath:"netWeight"}}]},fieldGroup:[{className:"col-lg-4 pe-0 group-input-value",type:"input-icon",key:"netWeight",props:{label:"InternalFacilityRequestService::ProductnetWeight",placeholder:"InternalFacilityRequestService::ProductnetWeightPlaceholder",required:!0,hideRequiredMarker:!0,hint:"InternalFacilityRequestService::ProductnetWeightHint",type:"text",icon:"weight-scale"},validators:{ayesm:{expression:a=>!a.value||/^\d{1,7}(\.\d{1,3})?$/.test(a.value),message:(a,u)=>this._localizationService.instant("ExternalFacilityRequestService::maxNumbersValidation","7","3")},validation:[{name:"valueMustBeInBetween",options:{minValue:.1,maxValue:9999999,_l:this._localizationService}}]}},{className:"col-lg-2 no-icon ps-0 no-label group-input",type:"input-select",key:"netWeightUnit",props:{required:!0,hideRequiredMarker:!0,options:[],searchable:!0,hideClear:!0,bindValue:"id",bindLabelAr:"key",bindLabelEn:"key"},expressions:{hide:"!formState.netWeightUnits","props.options":"formState.netWeightUnits","model.totalWeightUnit":"model.netWeightUnit"}},{className:"col-lg-4 pe-0 group-input-value",type:"input-icon",key:"totalWeight",props:{label:"InternalFacilityRequestService::ProductTotalWeight",placeholder:"InternalFacilityRequestService::ProductTotalWeightPlaceholder",required:!0,hideRequiredMarker:!0,hint:"InternalFacilityRequestService::ProductTotalWeightHint",type:"text",icon:"weight-scale"},validators:{ayesm:{expression:a=>!a.value||/^\d{1,7}(\.\d{1,3})?$/.test(a.value),message:(a,u)=>this._localizationService.instant("ExternalFacilityRequestService::maxNumbersValidation","7","3")},validation:[{name:"valueMustBeInBetween",options:{minValue:.1,maxValue:9999999,_l:this._localizationService}}]}},{className:"col-lg-2 no-icon ps-0 no-label group-input",type:"input-select",key:"totalWeightUnit",props:{required:!0,hideRequiredMarker:!0,options:[],searchable:!0,hideClear:!0,bindValue:"id",bindLabelAr:"key",bindLabelEn:"key"},expressions:{hide:"!formState.totalWeightUnits","props.options":"formState.totalWeightUnits","model.netWeightUnit":"model.totalWeightUnit"}}]}]}getProductJson(){const n=[];for(let u of this.DefaultProductJson1)n.push(u);for(let u of this.DefaultProductJson2)n.push(u);return[{fieldGroupClassName:"row",fieldGroup:n}]}}},13607:(y,d,r)=>{r.d(d,{_:()=>p});var o=r(98766),l=r(84412),n=r(56506),a=r(54438),u=r(64182);let p=(()=>{class i{constructor(s,e){this._categoryGroupService=s,this._certificateService=e,this.allCategories=[],this.facilityBusinessType=null,this.isExternalFacility=null,this.oldProductSize=5,this.newProductSize=5,this.certificates$=new l.t(null),this.categories$=new l.t(null),this.getAllCategoryGroup(),this.getAllCertificate()}setFacilityBusinessType(s){this.facilityBusinessType=s??null,this.categories$.next(this.filterSelectableCategories(this.allCategories))}canUseCategoryCode(s){return this.facilityBusinessType===n.c.Slaughter||"CV"!==s?.toUpperCase()}filterSelectableCategories(s){return(s??[]).filter(e=>this.canUseCategoryCode(e.code))}validateSelectableSubCategory(s){const e=this.allCategories.find(t=>
1t.id===s);return this.canUseCategoryCode(e?.code)}getAllCertificate(){this._certificateService.getAllCertificates(o.Fv.InternalFacility).subscribe(s=>{this.certificates$.next(s)})}getAllCategoryGroup(){this._categoryGroupService.getCategoriesTree().subscribe(s=>{const e=this.flattenGroups(s);this.allCategories=e,this.categories$.next(this.filterSelectableCategories(e))})}flattenGroups(s){return s.flatMap(e=>this.flattenCategories(e,e.categories))}flattenCategories(s,e){return e.flatMap(t=>this.flattenSubCategories(s,t,t.subCategories))}flattenSubCategories(s,e,t){return t.map(h=>({...h,groupId:s.id,groupNameEn:s.nameEn,groupNameAr:s.nameAr,categoryEn:e.nameEn,categoryAr:e.nameAr,categoryId:e.id}))}static{this.\u0275fac=function(e){return new(e||i)(a.KVO(u.d),a.KVO(o.Vx))}}static{this.\u0275prov=a.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},33879:(y,d,r)=>{r.d(d,{h:()=>o});var o=function(l){return l[l.InternalFacility=0]="InternalFacility",l[l.ExternalFacility=1]="ExternalFacility",l}(o||{})},76440:(y,d,r)=>{r.d(d,{p:()=>i});var o=r(60177),l=r(52168),n=r(54438);const a=[];let u=(()=>{class c{static{this.\u0275fac=function(t){return new(t||c)}}static{this.\u0275mod=n.$C({type:c})}static{this.\u0275inj=n.G2t({imports:[l.iI.forChild(a),l.iI]})}}return c})();var p=r(72594);let i=(()=>{class c{static{this.\u0275fac=function(t){return new(t||c)}}static{this.\u0275mod=n.$C({type:c})}static{this.\u0275inj=n.G2t({imports:[o.MD,u,p.G]})}}return c})()},43171:(y,d,r)=>{r.d(d,{U:()=>i});var o=r(84412),l=r(98766),n=r(33879),a=r(56506),u=r(54438),p=r(64182);let i=(()=>{class c{constructor(e,t){this._categoryGroupService=e,this._certificateService=t,this.allCategories=[],this.model={brands:[],additionalCategorys:[],extraCategories:void 0},this.cbPublicId=void 0,this.validonformityBodySubCategory=[],this.hideAllOtherEdits=new o.t(null),this.hideGadInput=!1,this.newModelProduct={certificates:[],hsCodeId:null,globalHSCode:null,subCategoryId:null,netWeight:null,netWeightUnit:null,totalWeight:null,totalWeightUnit:null},this.subject={requestProduct:this.newModelProduct,brandIndex:null},this.categoriesValadation=!1,this.newProduct=new o.t(this.subject),this.getProduct=this.newProduct.asObservable(),this.categories$=new o.t(null),this.certificates$=new o.t(null),this.validCheck$=new o.t(null),this.categoriesUpdated$=new o.t(null),this.isDeleted$=new o.t(null),this.facilityBusinessType=null,this.getAllCategoryGroup(),setTimeout(()=>{this.getAllCertificate(this.productType==n.h.ExternalFacility?l.Fv.ExternalFacility:l.Fv.InternalFacility)},1e3)}setCertificatesFacilityType(){this.getAllCertificate(this.productType===n.h.ExternalFacility?l.Fv.ExternalFacility:l.Fv.InternalFacility)}setInternalFacilityBusinessType(e){this.facilityBusinessType=e??null,this.categories$.next(this.filterSelectableCategories(this.allCategories)),this.categoriesUpdated$.next(!0)}canUseCategoryCode(e){return this.productType!==n.h.InternalFacility||this.facilityBusinessType===a.c.Slaughter||"CV"!==e?.toUpperCase()}filterSelectableCategories(e){return(e??[]).filter(t=>this.canUseCategoryCode(t.code))}getInvalidSubCategoryMessageKey(){return this.productType===n.h.ExternalFacility?"Shared::SubCategoryIsNotExistInCbCertificate":"Shared::SubCategoryIsNotExistInInFacCertificate"}setProduct(e){this.newProduct.next(e)}getAllCertificate(e){this._certificateService.getAllCertificates(e).subscribe(t=>{this.certificates$.next(t)})}getAllCategoryGroup(){this._categoryGroupService.getCategoriesTree().subscribe(e=>{const t=[];e.forEach(h=>{h.categories.forEach(g=>{g.subCategories.forEach(m=>{t.push({...m,groupId:h.id,groupNameEn:h.nameEn,groupNameAr:h.nameAr,categoryEn:g.nameEn,categoryAr:g.nameAr,categoryId:g.id})})})}),this.allCategories=t,this.categories$.next(this.filterSelectableCategories(t))})}validateProductSubCategory(e){const t=(this.categories$.value??[]).find(h=>h.id===e);return!!this.canUseCategoryCode(t?.code)&&(this.productType!==n.h.ExternalFacility||this.validonformityBodySubCategory.some(h=>h===e))}checkValidtion(){this.model.brands.length&&this.model.brands.every(e=>e.requestProducts.length>0)&&this.categoriesValadation?this.validCheck$.next(!0):this.validCheck$.next(!1)}showCategorySection(){return(this.model?.brands?.map(e=>e.requestProducts?.map(t=>t.subCategoryId))?.flat()??[]).length>0}static{this.\u0275fac=function(t){return new(t||c)(u.KVO(p.d),u.KVO(l.Vx))}}static{this.\u0275prov=u.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},70895:(y,d,r)=>{r.d(d,{A9:()=>n,Ch:()=>a,bk:()=>p});var o=r(54438),l=r(30791);let n=(()=>{class i{constructor(s){this.restService=s,this.apiName="Default",this.getAllHSCodes=e=>this.restService.request({method:"GET",url:"/api/HSCode/GetAll"},{apiName:this.apiName,...e}),this.getHSCodeInfoByCode=(e,t)=>this.restService.request({method:"GET",url:`/api/HSCode/GetByCode/${e}`},{apiName:this.apiName,...t}),this.getHSCodeInfoById=(e,t)=>this.restService.request({method:"GET",url:`/api/HSCode/GetById/${e}`},{apiName:this.apiName,...t}),this.getHSCodesInfoByCodes=(e,t)=>this.restService.request({method:"GET",url:"/api/HSCode/GetByCodes",params:{codes:e}},{apiName:this.apiName,...t}),this.getHSCodesInfoByIds=(e,t)=>this.restService.request({method:"GET",url:"/api/HSCode/GetByIds",params:{hscodesIds:e}},{apiName:this.apiName,...t}),this.searchWithCode=(e,t,h=10,g)=>this.restService.request({method:"GET",url:"/api/HSCode/SearchWithCode",params:{code:e,last
1Code:t,count:h}},{apiName:this.apiName,...g})}static{this.\u0275fac=function(e){return new(e||i)(o.KVO(l.G9T))}}static{this.\u0275prov=o.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var a=function(i){return i[i.Internal=0]="Internal",i[i.External=1]="External",i}(a||{});(0,l.l_2)(a);let p=(()=>{class i{constructor(s){this.restService=s,this.apiName="Default",this.getProductByIdsByInput=(e,t)=>this.restService.request({method:"POST",url:"/api/Product/GetProductByIds",body:e},{apiName:this.apiName,...t}),this.readProductsFromExcel=(e,t)=>this.restService.request({method:"POST",url:"/api/Product/ReadProductsFromExcel",body:e},{apiName:this.apiName,...t}),this.searchForProducts=(e,t)=>this.restService.request({method:"POST",url:"/api/Product/SearchForProducts",body:e},{apiName:this.apiName,...t}),this.validateRequestProductsCatalogByDto=(e,t)=>this.restService.request({method:"GET",url:"/api/Product/ValidateRequestProductsCatalog",params:{requestId:e.requestId,requestBrands:e.requestBrands,productCatalogType:e.productCatalogType,id:e.id}},{apiName:this.apiName,...t})}static{this.\u0275fac=function(e){return new(e||i)(o.KVO(l.G9T))}}static{this.\u0275prov=o.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},64182:(y,d,r)=>{r.d(d,{d:()=>n});var o=r(54438),l=r(30791);let n=(()=>{class a{constructor(p){this.restService=p,this.apiName="Default",this.getAllCategoryGroups=i=>this.restService.request({method:"GET",url:"/api/CategoryGroup/GetAll"},{apiName:this.apiName,...i}),this.getCategoriesTree=i=>this.restService.request({method:"GET",url:"/api/CategoryGroup/GetTree"},{apiName:this.apiName,...i}),this.getCategoryGroupInfoById=(i,c)=>this.restService.request({method:"GET",url:`/api/CategoryGroup/GetById/${i}`},{apiName:this.apiName,...c})}static{this.\u0275fac=function(i){return new(i||a)(o.KVO(l.G9T))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return 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.