PageSourceSearch

https://qrep.aqarat.gov.qa/chunk-DJSBZJPD.js

js aqarat.gov.qa collected 2026-10-01 16:41:24 UTC 17,482 bytes, 1 lines download raw bytes

1import{b as _,f as F,g as Pt}from"./chunk-ECIWPGTO.js";import{a as jt,b as bt}from"./chunk-EOXL3FPR.js";import{a as ot,b as at}from"./chunk-TVVGMRED.js";import{a as ct}from"./chunk-2K5KMHO6.js";import{d as Z}from"./chunk-QISQ7UNZ.js";import{b as lt,d as pt,e as mt}from"./chunk-WD6EEHQL.js";import{c as v,d as wt}from"./chunk-OTNT4L3G.js";import{B as et,Ba as vt,Ca as yt,Da as At,E as it,G as nt,J as rt,N as gt,R as ft,S as Ct,Z as xt,r as H,v as J,w as tt}from"./chunk-NKVENLSJ.js";import{a as ht}from"./chunk-H4WPTREO.js";import"./chunk-4MRDN7ZZ.js";import"./chunk-WK6JXUXX.js";import"./chunk-Z43AL5OE.js";import"./chunk-FTIAFKDB.js";import{b as dt,c as _t,d as ut}from"./chunk-IVGUJQN5.js";import"./chunk-SQ3QAC5N.js";import"./chunk-4HC5J2WV.js";import"./chunk-VG7YBYGU.js";import{B as V,Cb as c,D as I,Ea as B,Ed as st,Kb as A,L as T,Lb as b,Nb as S,Ob as D,Pb as o,Qb as a,Qc as Q,Rb as C,V as j,Vb as P,Xb as d,Y as U,Yb as s,ab as O,bc as L,bd as K,cc as G,dc as $,eb as r,fa as g,gc as f,hd as X,ic as u,jc as R,kc as x,kd as Y,lc as q,nc as W,o as E,oa as l,pa as p,qa as z,qb as N,r as M,vb as y,vc as k}from"./chunk-2QZOJG54.js";import"./chunk-OXVY4BEJ.js";var Dt=["recaptcha"],Rt=n=>({"text-red-500":n}),kt=n=>({hidden:n});function Ft(n,h){if(n&1){let e=P();o(0,"div",4)(1,"div",6)(2,"p",7),u(3),a(),o(4,"app-button",8),d("click",function(){l(e);let t=s();return p(t.registered=!1)}),u(5),a()()()}if(n&2){let e=s();r(3),x(" ",e.lang.map.current_project_data_registered_successfully," "),r(2),x(" ",e.lang.map.register_another_project," ")}}function Et(n,h){if(n&1){let e=P();o(0,"div",39)(1,"div",40),d("click",function(){let t=l(e).$implicit,m=s(4);return p(m.viewAttachment(t))}),C(2,"img",41),o(3,"span",42),u(4),a()(),o(5,"button",43),d("click",function(){let t=l(e).$implicit,m=s(2).$implicit,w=s(2);return p(w.deleteAttachment(m,t))}),z(),o(6,"svg",44),C(7,"path",45),a()()()}if(n&2){let e=h.$implicit,i=s(4);r(),c("matTooltip",e.title),r(),c("src",i.getAttachmentIconUrl(e.title),O),r(2),R(e.title)}}function Mt(n,h){if(n&1&&(o(0,"div",38),S(1,Et,8,3,"div",39,b),a()),n&2){let e=s().$implicit,i=s(2);r(),D(i.getAttachments(e))}}function Vt(n,h){if(n&1){let e=P();o(0,"div",27)(1,"div",34)(2,"div",35)(3,"span",36),u(4),a(),o(5,"app-icon-button",37),d("click",function(){let t=l(e).$implicit;s();let m=f(23),w=s();return p(w.openUploader(m,t))}),a()()(),y(6,Mt,3,0,"div",38),a()}if(n&2){let e=h.$implicit,i=s(2);r(4),R(i.lang.map[i.attachmentsLabelsMap[e]]),r(),c("matTooltip",i.lang.map.upload_files),r(),A(i.getAttachments(e)?6:-1)}}function It(n,h){if(n&1&&u(0),n&2){let e=s(2);x(" (*",e.lang.map.maximum_files_size_exceeded,") ")}}function Tt(n,h){n&1&&C(0,"mat-spinner",33)}function Ut(n,h){if(n&1&&u(0),n&2){let e=s(2);x(" ",e.lang.map.register," ")}}function zt(n,h){if(n&1){let e=P();o(0,"div",5)(1,"div",9)(2,"h2",10),u(3),a()(),o(4,"div",11)(5,"div",12)(6,"h3",13),u(7),a(),C(8,"app-input",14)(9,"app-input",15)(10,"app-input",16),o(11,"app-input",17),d("keydown",function(t){return l(e),p(t.preventDefault())}),o(12,"input",18),d("keydown",function(t){return l(e),p(t.preventDefault())})("click",function(){l(e);let t=f(15);return p(t.open())})("dateChange",function(){l(e);let t=s();return p(t.onStartDateChange())}),a(),o(13,"mat-icon",19),d("click",function(){l(e);let t=f(15);return p(t.open())}),a(),C(14,"mat-datepicker",20,0),a(),o(16,"app-input",21),d("keydown",function(t){return l(e),p(t.preventDefault())}),o(17,"input",22),d("keydown",function(t){return l(e),p(t.preventDefault())})("click",function(){l(e);let t=f(20);return p(t.open())})("dateChange",function(){l(e);let t=s();return p(t.onEndDateChange())}),a(),o(18,"mat-icon",19),d("click",function(){l(e);let t=f(20);return p(t.open())}),a(),C(19,"mat-datepicker",20,1),a(),o(21,"div",23)(22,"input",24,2),d("change",function(){l(e);let t=f(23),m=s();return p(m.attachmentUploaderChange(t))}),a(),o(24,"div",25)(25,"div",26),S(26,Vt,7,3,"div",27,b),a()(),o(28,"span",28)(29,"span"),u(30),a(),o(31,"span",29),u(32),y(33,It,1,1),a()()()()(),o(34,"div",30)(35,"re-captcha",31,3),d("resolved",function(t){l(e);let m=s();return p(m.onRecaptchaResolved(t))}),a(),o(37,"app-button",32),d("click",function(){l(e);let t=s();return p(t.onSubmit())}),y(38,Tt,1,0,"mat-spinner",33)(39,Ut,1,1),a()()()}if(n&2){let e=f(15),i=f(20),t=s();c("formGroup",t.form),r(3),x(" ",t.lang.map.current_project_data_registration_form," "),r(4),x(" ",t.lang.map.main_information," "),r(),c("label",t.lang.map.developer_name),r(),c("label",t.lang.map.project_name),r(),c("label",t.lang.map.location),r(),c("label",t.lang.map.project_start_date),r(),c("max",t.todayDate)("matDatepicker",e),r(),c("svgIcon",t.AppIcons.DATE),r(),c("touchUi",!0),r(2),c("label",t.lang.map.project_expected_end_date),r(),c("min",t.todayDate)("matDatepicker",i),r(),c("svgIcon",t.AppIcons.DATE),r(),c("touchUi",!0),r(7),D(t.uploadersTypes),r(4),q("",t.lang.map.allowed_files," ",t.allowedFiles,""),r(),c("ngClass",k(28,Rt,t.attachmentsSize()>t.maxFilesSize)),r(),W("",t.lang.map.maximum_files_size," ",t.formatSize(t.maxFilesSize)," - ",t.lang.map.uploaded_files_size," ",t.formatSize(t.attachmentsSize())," "),r(),A(t.attachmentsSize()>t.maxFilesSize?33:-1),r(2),c("ngClass",k(30,kt,!t.isRecaptchaVisible||t.isSaving))("siteKey",t.recaptchaSettings.siteKey),r(2),c("disabled",t.isWaitingForRecaptchaResolve),r(),A(t.isSaving?38:39)}}var fe=(()=>{class n{constructor(){this.lang=g(st),this.fb=g(nt),this.datePipe=g(X),this.config=g(ct),this.dialog=g(Z),this.developerRegistrationService=g(Pt),this.toast=g(wt),this.recaptchaSettings=g(lt),this.registered=!1,this.todayDate=new Date,this.AppIcons=ut,this.form=this.fb.group({developerName:["",v.required],projectName:["",v.required],location:["",v.required],startDate:["",v.required],endDate:["",v.required]}),this.isSaving=!1,this.isRecaptchaVisible=!1,this.isRecaptchaResolved=!1,this.isWaitingForRecaptchaResolve=!1,this.projectAttachments=new F,this.currentUploader="license",this._attachmentsSize=B(0),this.attachmentsSize=Q(()=>this._attachmentsSize()/(1024*1024)),this.maxProjects=20,this.maxFilesSize=this.config.CONFIG.MAX_FILES_SIZE_IN_MB,this.allowedFiles="(pdf - png - jpeg - jpg)",this.attachmentsFoldersMap={license:"573403C9-7D05-453F-8E89-1D49E0799195",licensePlans:"096E3312-2A9A-46F9-ACF1-EBE06338F117",units:"C7956852-D614-474E-9254-1FD5C88D37D0",technicalReport:"69FAB1D4-BCC6-41CA-B8C3-4ECB21EE4854",financialReport:"FDB7387F-C733-4FFA-93C4-E181D8FA5ED4",warrantyAgreement:"48052007-5D09-46B6-8956-F2B91F549603",saleContracts:"FB67F7BF-9E8B-4635-8A91-74E7EAA91AC0",sampleSaleContracts:"4E77D823-9A5C-4C56-8736-DDA975172540",consultantAndAuditor:"64A29FBB-2D8D-4288-9E95-B9F10A2AE4DD",salesAds:"11195ACA-66AB-4B4C-813C-2A8F95BD83FB"},this.attachmentsLabelsMap={license:"building_license_attachments",licensePlans:"license_file_and_plans_attachments",units:"project_real_estate_units_attachments",technicalReport:"technical_report_from_the_project_consultant_attachments",financialReport:"financial_report_attachments",warrantyAgreement:"a_copy_of_the_escrow_account_agreement",saleContracts:"a_copy_of_the_concluded_sales_contracts",sampleSaleContracts:"models_of_sales_contracts_concluded_with_beneficiaries",consultantAndAuditor:"engineering_consultant_and_financial_auditor_data",salesAds:"copy_of_the_project_sales_advertisements"}}get startDate(){return this.form.controls.startDate}get endDate(){return this.form.controls.endDate}get uploadersTypes(){return Object.keys(this.attachmentsLabelsMap)}openUploader(e,i){e.click(),this.currentUploader=i}attachmentUploaderChange(e){if(e.files===null||e.files.length===0)return;let i=structuredClone(e.files);e.value="";for(let t in i)isNaN(Number(t))||(this.projectAttachments[this.currentUploader].push(new jt(!0).clone({folder:this.attachmentsFoldersMap[this.currentUploader],title:i[t].name,file:i[t]})),this.updateAttachmentsSize())}updateAttachmentsSize(){let e=0;
1Object.keys(this.projectAttachments).forEach(i=>{for(let t=0;t<this.projectAttachments[i].length;t++)e+=this.projectAttachments[i][t].file.size}),this._attachmentsSize.set(e)}getAttachments(e){return this.projectAttachments[e]}getAttachmentExtension(e){return e.slice(e.lastIndexOf(".")+1)}getAttachmentIconUrl(e){let i=this.getAttachmentExtension(e);return i==="png"?"assets/icons/png.svg":i==="pdf"?"assets/icons/pdf.svg":"assets/icons/jpg.svg"}viewAttachment(e){this.dialog.open(bt,{direction:this.lang.isLtr?"ltr":"rtl",data:{model:e}}).afterClosed().subscribe()}deleteAttachment(e,i){if(this.projectAttachments[e]&&this.projectAttachments[e].find(t=>t.id===i.id)){let t=this.projectAttachments[e].findIndex(m=>m.id===i.id);this.projectAttachments[e]=[...this.projectAttachments[e].slice(0,t),...this.projectAttachments[e].slice(t+1)],this.updateAttachmentsSize()}}onStartDateChange(){this.startDate.patchValue(this.startDate.value?this._transformDate(this.startDate.value):"",{emitEvent:!1})}onEndDateChange(){this.endDate.patchValue(this.endDate.value?this._transformDate(this.endDate.value):"",{emitEvent:!1})}onSubmit(){if(!this.form.valid){this.form.markAllAsTouched();return}this.isSaving||(this.isRecaptchaResolved?this.register():(this.isRecaptchaVisible=!0,this.isWaitingForRecaptchaResolve=!0))}onRecaptchaResolved(e){e&&(this.isRecaptchaResolved=!0,this.isWaitingForRecaptchaResolve=!1,this.register())}formatSize(e){return e>1024?(e/1024).toFixed(2)+"GB":e.toFixed(2)+"MB"}register(){this.isSaving=!0;let e=null;this.developerRegistrationService.checkDeveloperName(this.form.value.developerName).pipe(M(i=>i.length?(e=i[0].id,!0):(this.toast.error(this.lang.map.error_with_developer_name),!1))).pipe(V(i=>i)).pipe(j(()=>this.developerRegistrationService.uploadFiles(this.projectAttachments))).pipe(U(i=>{i&&i.forEach(t=>{let[m,w]=t.description.split("---"),St=parseInt(w);this.projectAttachments[m][St-1].id=t.id})})).pipe(j(()=>this.developerRegistrationService.registerCurrentProject(this._toModel(e)))).pipe(T(()=>{this.isSaving=!1,this.isRecaptchaResolved=!1,this.isRecaptchaVisible=!1,this.recaptcha.reset()}),I(i=>(this.toast.error(this.lang.map.an_error_occured_while_saving_developer_data_please_try_again),E(()=>i)))).subscribe(()=>{this.registered=!0,this.form.reset(),this.projectAttachments=new F})}_toModel(e){return new _().clone({developer_id:e,projectName:this.form.value.projectName,location:this.form.value.location,startDate:this.form.value.startDate,endDate:this.form.value.endDate,licenseAttachments:this.projectAttachments.license.map(i=>_.toFileId(i.id)),licensePlansAttachments:this.projectAttachments.licensePlans.map(i=>_.toFileId(i.id)),unitsAttachments:this.projectAttachments.units.map(i=>_.toFileId(i.id)),technicalReportAttachments:this.projectAttachments.technicalReport.map(i=>_.toFileId(i.id)),financialReportAttachments:this.projectAttachments.financialReport.map(i=>_.toFileId(i.id)),warrantyAgreementAttachments:this.projectAttachments.warrantyAgreement.map(i=>_.toFileId(i.id)),saleContractsAttachments:this.projectAttachments.saleContracts.map(i=>_.toFileId(i.id)),sampleSaleContractsAttachments:this.projectAttachments.sampleSaleContracts.map(i=>_.toFileId(i.id)),consultantAndAuditorAttachments:this.projectAttachments.consultantAndAuditor.map(i=>_.toFileId(i.id)),salesAdsAttachments:this.projectAttachments.salesAds.map(i=>_.toFileId(i.id))})}_transformDate(e){return this.datePipe.transform(e,"yyyy-MM-dd",void 0)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-under-construction-project-registration-page"]],viewQuery:function(i,t){if(i&1&&L(Dt,5),i&2){let m;G(m=$())&&(t.recaptcha=m.first)}},decls:2,vars:1,consts:[["datepicker",""],["datepicker2",""],["uploader",""],["recaptcha",""],[1,"success"],[1,"py-4","px-8",3,"formGroup"],[1,"h-full","w-full","flex","flex-col","justify-center","items-center","gap-2","sm:gap-4","md:gap-6"],[1,"text-3xl","sm:text-5xl","md:text-7xl","text-center","text-primary"],["buttonStyle","primary","size","xl",3,"click"],[1,"flex","justify-center"],[1,"mt-6","heading","text-2xl","sm:text-3xl","md:text-4xl","self-center","md:self-start","text-center","text-primary","border-primary","font-semibold"],[1,"mt-4"],[1,"info-section","!items-end"],[1,"info-section-title"],["formControlName","developerName",3,"label"],["formControlName","projectName",3,"label"],["formControlName","location",3,"label"],["formControlName","startDate",3,"keydown","label"],["appControl","","formControlName","startDate",3,"keydown","click","dateChange","max","matDatepicker"],["mat-ripple","","appInputSuffix","",1,"curs
1or-pointer","mx-2",3,"click","svgIcon"],[3,"touchUi"],["formControlName","endDate",3,"keydown","label"],["appControl","","formControlName","endDate",3,"keydown","click","dateChange","min","matDatepicker"],[1,"res-col-span"],["type","file","id","files","multiple","","accept","application/pdf,image/png,image/jpeg,image/jpg",1,"hidden",3,"change"],[1,"relative","mt-4","mb-6","res-col-span","flex-1","p-4","pb-8","res-grid-cols","items-center","gap-2","border","border-primary/40","rounded-md","transition-all","duration-300"],[1,"res-col-span","grid","grid-cols-1","lg:grid-cols-2","gap-2"],[1,"bg-gray-100","rounded-md","overflow-hidden"],[1,"flex","items-center","justify-between","w-full","text-primary","font-bold"],[3,"ngClass"],[1,"my-4","flex","gap-4","items-start","justify-end"],["size","normal",1,"transition-all",3,"resolved","ngClass","siteKey"],["buttonStyle","primary","size","lg",3,"click","disabled"],["diameter","30","strokeWidth","3"],[1,"flex","flex-col","justify-between"],[1,"p-1","flex","items-center","justify-between","bg-primary","rounded-md"],[1,"text-white","font-bold","text-lg"],["matTooltipPosition","above","icon","PLUS",1,"text-white","rounded-full",3,"click","matTooltip"],[1,"p-2","pt-3","flex","flex-wrap","justify-start","items-center","gap-2"],[1,"relative","max-w-[72px]"],["matTooltipPosition","above",1,"pt-1","px-1","flex","flex-col","gap-1","items-center","justify-center","cursor-pointer","transition-all","rounded-md","bg-primary/[0.03]","hover:bg-primary/25",3,"click","matTooltip"],["alt","extension",1,"w-12","h-12",3,"src"],[1,"max-w-16","inline-block","truncate","text-primary"],[1,"absolute","p-0.5","-top-2","-end-2","bg-primary","transition-all","text-white","rounded-full","hover:bg-primary/80",3,"click"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"w-4","h-4"],["d","M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"]],template:function(i,t){i&1&&y(0,Ft,6,2,"div",4)(1,zt,40,32,"div",5),i&2&&A(t.registered?0:1)},dependencies:[Y,K,rt,H,J,tt,et,it,vt,_t,dt,xt,ft,Ct,gt,at,ot,mt,pt,ht,At,yt],styles:[".info-section[_ngcontent-%COMP%]{position:relative;margin-top:1.5rem;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));align-items:center;gap:.5rem;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(138 21 56 / var(--tw-border-opacity));padding:1.5rem 1rem .5rem}@media (min-width: 640px){.info-section[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.info-section[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.info-section[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}.info-section[_ngcontent-%COMP%]   .info-section-title[_ngcontent-%COMP%]{position:absolute;top:0;inset-inline-start:.5rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(138 21 56 / var(--tw-text-opacity));--tw-drop-shadow: drop-shadow(0 0 #0000);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 640px){.info-section[_ngcontent-%COMP%]   .info-section-title[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.info-section[_ngcontent-%COMP%]   .info-section-title[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}}.res-grid-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 640px){.res-grid-cols[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.res-grid-cols[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.res-grid-cols[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}.res-col-span[_ngcontent-%COMP%]{grid-column:span 1 / span 1}@media (min-width: 640px){.res-col-span[_ngcontent-%COMP%]{grid-column:span 2 / span 2}}@media (min-width: 768px){.res-col-span[_ngcontent-%COMP%]{grid-column:span 3 / span 3}}@media (min-width: 1024px){.res-col-span[_ngcontent-%COMP%]{grid-column:span 4 / span 4}}.res-col-span-2[_ngcontent-%COMP%]{grid-column:span 1 / span 1}@media (min-width: 640px){.res-col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}}.mat-mdc-progress-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: #ffffff}.success[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 80px)}"]})}}return n})();export{fe as default};

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.