PageSourceSearch

https://portal.dls.gov.jo/static/js/3947.274c6946.chunk.js

js dls.gov.jo collected 2026-09-24 10:59:38 UTC 22,269 bytes, 162 lines download raw bytes

1"use strict";(globalThis.webpackChunkdls_client||=[]).push([[3947],{56091(e,t,a){var n=a(57751),l=a(44978);const i=n.Ay.div`
2.sidebar {
3    height: fit-content;
4    ${"ar"===l.Ay.language?"text-align: right;":"text-align: left;"}
5    & .desc {
6      font-size: 12px;
7      letter-spacing: 0px;
8      color: #000000;
9      margin: 0;
10    }
11    & .ant-divider-horizontal {
12      margin: 15px 0;
13      border-top-color: #018b2b;
14    }
15  
16    .steps {
17      .step {
18        align-items: baseline;
19        i {
20          font-size: 11px;
21          font-weight: bold;
22        }
23        p {
24          font-size: 13px;
25        }
26      }
27    }
28  }
29  .form-inputs {
30    input {
31      font-size: 13px;
32      height: 32px
33    }
34  }
35  
36  .p-radiobutton .p-radiobutton-box {
37    border: 1px solid var(--main-color);
38    margin: auto;
39    border-radius: 10px;
40    opacity: 1;
41    width: 15px;
42    height: 15px;
43  
44    .p-radiobutton-icon {
45      display: none;
46      visibility: hidden;
47    }
48    &.p-highlight {
49      border-color: var(--main-color);
50      background: var(--main-color);
51    }
52  }
53  .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
54    border-color: var(--main-color);
55    background: var(--main-color);
56  }
57  .p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {
58    border-color: var(--main-color);
59  }
60  .p-dropdown-label {
61    padding: 3px;
62  }
63  
64  .add-buyer {
65    padding: 0;
66    margin: 20px 0;
67    background: transparent;
68    color: var(--main-color);
69    border: none;
70    box-shadow: none;
71    .p-button-icon {
72      margin: 0;
73      background: var(--main-color);
74      color: white;
75      padding: 4px;
76      font-size: 13px;
77      border-radius: 50%;
78    }
79    .p-button-label {
80      margin: 0 5px;
81    }
82  
83    &:hover {
84      background: transparent;
85      color: var(--main-color);
86    }
87  }
88  .action-btn {
89    border-radius: 10px;
90    opacity: 1;
91    border: none;
92    color: white;
93    justify-content: center;
94    &.submit-btn {
95      background: var(--main-color);
96      color:white;
97      &:disabled{
98        background:#d2d2d2;
99      }
100    }
101    &.back-btn {
102      background: white;
103      border: 1px solid var(--main-color);
104      color: var(--main-color);
105    }
106  }
107  .exit-btn {
108    margin: auto auto 0 auto;
109    width: fit-content;
110    border: 1px solid #286c4d;
111    border-radius: 10px;
112    background: #e5ede9;
113    color: #286c4d;
114  }
115  .realty-table {
116    border-radius: 10px;
117    font-size: 13px;
118    background: #ffffff 0% 0% no-repeat padding-box;
119    opacity: 1;
120  
121    .p-column-header-content {
122      justify-content: flex-start;
123    }
124  
125    & td {
126      text-align: right !important;
127    }
128    .p-checkbox .p-checkbox-box {
129      border: 1px solid var(--main-color);
130      margin: auto;
131      border-radius: 3px;
132      opacity: 1;
133      width: 15px;
134      height: 15px;
135    }
136  }
137  .other-belongings {
138    margin-top: 70px;
139  }
140
141  .addShare {
142    border-radius: 0 5px 5px 0;
143  }
144  .numOfShares {
145    border-radius: 5px 0 0 5px;
146  }
147  .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{
148    color: white !important;
149  }
150  .bHajzx .p-dropdown-label{
151    font-style: 13px;
152  }
153  .buyerInfo{
154    .p-input-icon-left>i {
155      position: absolute;
156      top: 50%;
157      margin-top: -5px;
158    }
159  }
160}
161`;a.d(t,["A",0,i])},92842(e,t,a){a.d(t,{A:()=>i});a(65043);var n=a(9255),l=a(70579);function i(e){let{inputs:t,formik:a}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"row my-2",children:null===t||void 0===t?void 0:t.map((e,t)=>{let{third:i,double:r,fullWidth:o,splitter:s,...d}=e;return"twoInputs"===d.type?(0,l.jsxs)("div",{className:"col-lg-6 col-12 row",children:[(0,l.jsx)("div",{className:"col-5",children:(0,l.jsx)(n.A,{fullWidth:o,formik:a,...d.first})}),(0,l.jsx)("div",{className:"col-2 h-100 d-flex align-items-center justify-content-center",children:s}),(0,l.jsx)("div",{className:"col-5",children:(0,l.jsx)(n.A,{fullWidth:o,formik:a,...d.second})})]},t):(0,l.jsx)(n.A,{fullWidth:o,formik:a,third:i,double:r,...d},t)})})})}},53840(e,t,a){a.d(t,{A:()=>u});var n=a(44978),l=a(65043),i=a(73103),r=a(9255),o=a(90799),s=a(21691),d=a(66888),c=a(70579);
161function u(e){let{onUpdateFormData:t,demo:a,selling:u,onDisableNext:p,refund:m,adminPrice:h,takharog:b,transmission:x}=e;const f=(0,i.d4)(e=>m?e.sellingFormDetails.oldContract:e.sellingFormDetails),[y,g]=(0,l.useState)(f.additionalNotes||""),[v,D]=(0,l.useState)(f.legalDisclaimer);(0,l.useEffect)(()=>{(b||x)&&t&&t({feePaymentType:"full"})},[x,b]),(0,l.useEffect)(()=>{(b||x)&&p&&(f.feePaymentType&&f.feePaymentName&&f.feePaymentName.id&&v?(console.log("123"),p(!1)):(p(!0),console.log("444")))},[x,b,v,f.feePaymentType]),console.log(f.buyersDetails);return(0,c.jsxs)(s.A,{title:h?(0,n.t)("realtySelling.infoCorrectness"):(0,n.t)("realtySelling.additionalNotes"),children:[(b||x)&&(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(o.A,{children:[(0,c.jsx)(r.A,{title:(0,n.t)("realtySelling.feePaymentType"),required:!0,fullWidth:!0,name:"feePaymentType",type:"radio",value:f.feePaymentType,onChange:e=>{t&&t({feePaymentType:e.value})},options:[{optionValue:"full",title:(0,n.t)("realtySelling.fullPayment")},{optionValue:"partial",title:(0,n.t)("realtySelling.partialPayment")}],disabled:a}),(0,c.jsx)(r.A,{title:(0,n.t)("realtySelling.getPaymentName"),required:!0,double:!0,disableFilter:!0,name:"feePaymentName",type:"select",value:f.feePaymentName,onChange:e=>{t&&t({feePaymentName:e.value})},options:(f.buyersDetails||[]).map(e=>({label:e.buyerArabicName||e.nationalId,value:{label:e.buyerArabicName,id:e.nationalId||e.buyerArabicName}})),optionLabel:"label",optionValue:"value",disabled:a})]})}),!h&&(0,c.jsx)(o.A,{children:(0,c.jsx)(r.A,{placeholder:(0,n.t)("realtySelling.additionalNotesPlaceholder"),required:!0,fullWidth:!0,name:"additionalNotes",type:"textarea",rows:5,value:y,onBlur:()=>{t({additionalNotes:y})},onChange:e=>g(e.target.value),disabled:a})}),(0,c.jsx)(d.A,{selling:u,onDisableNext:e=>{x||b?D(!e):p&&p(e)},demo:a,refund:m})]})}},41847(e,t,a){a.r(t);const n=(0,a(64091).I)().services.find(e=>"providingMapsPanelsAndIndexes"===e.name),l=n.serviceTitle,i=n.desc,r=n.descriptionUrl,o=n.requirementsUrl,s=n.userManualUrl,d=n.startUrl;a.d(t,["DD",0,l,"Ln",0,o,"h_",0,r,"i8",0,i,"jW",0,s,"ni",0,d])},19353(e,t,a){a.r(t),a.d(t,{default:()=>O});var n=a(44978),l=a(72018),i=a(70828),r=a(65043),o=a(73103),s=a(73216),d=a(56091),c=a(98595),u=a(80045),p=a(75357),m=a(82113),h=a(23519),b=a(53840),x=a(77627),f=a(3431),y=(a(87342),a(9255)),g=a(92842),v=a(90799),D=a(21691),S=a(67694),I=a(70579);const j=(0,r.forwardRef)((e,t)=>{let{data:a={},extraInputs:l=[],onSubmit:i,demo:o,withoutFrame:s,onInputChange:d,onDisableNext:c,hideSubmitButton:u}=e;const[p,m]=(0,r.useState)([]),[h,b]=(0,r.useState)([]),[y,v]=(0,r.useState)([]),[j,k]=(0,r.useState)([]),[w,A]=(0,r.useState)([]),[N,T]=(0,r.useState)([]),F=f.Ik().shape({district:f.Yj().required((0,n.t)("errors.required")),department:f.Yj().required((0,n.t)("errors.required")),villId:f.Yj().required((0,n.t)("errors.required")),hodId:f.Yj().required((0,n.t)("errors.required")),sectId:f.Yj().required((0,n.t)("errors.required")),parcelId:f.Yj().required((0,n.t)("errors.required"))}),q=(0,x.Wx)({validateOnMount:!0,initialValues:{district:a.district||"",department:a.department||"",villId:a.villId||"",hodId:a.hodId||"",sectId:a.sectId||"",parcelId:a.parcelId||""},validationSchema:F,onSubmit:e=>{i(e)}});(0,r.useEffect)(()=>{c&&c(!q.isValid)},[q.isValid,c]),(0,r.useEffect)(()=>{S.m.getDistrict().then(e=>{e.data.splice(0,1),m(e.data)})},[]);const R=[{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.district"),name:"district",value:q.values.district,onChange:e=>{(e=>{q.handleChange(e),S.m.getDept(e.value).then(t=>{b(t.data),q.setValues({district:e.value,department:"",villId:"",hodId:"",sectId:"",parcelId:""}),v([]),k([]),A([]),T([])})})(e),d&&d()},required:!0,type:"select",options:p,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData"),disabled:o},{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.department"),name:"department",value:q.values.department,onChange:e=>{(e=>{S.m.getVill(q.values.district,e.value).then(t=>{v(t.data),q.setValues({district:q.values.district,department:e.value,villId:"",hodId:"",sectId:"",parcelId:""}),k([]),A([]),T([])})})(e),d&&d()},required:!0,disabled:h.length<1||o,type:"select",options:h,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData")},{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.village"),name:"villId",value:q.values.villId,onChange:e=>{(e=>{S.m.getHod(e.value).then(t=>{k(t.data),q.setValues({district:q.values.district,department:q.values.department,villId:e.value,hodId:"",sectId:"",parcelId:""}),A([]),T([])})})(e),d&&d()},required:!0,disabled:y.length<1||o,type:"select",options:y,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData")},{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.hud"),name:"hodId",value:q.values.hodId,onChange:e=>{(e=>{S.m.getSect(q.values.villId,e.value).then(t=>{A(t.data),q.setValues({district:q.values.district,department:q.values.department,villId:q.values.villId,hodId:e.value,sectId:"",parcelId:""}),T([])})})(e),d&&d()},required:!0,disabled:j.length<1||o,type:"select",options:j,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData")},{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.section"),name:"sectId",value:q.values.sectId,onChange:e=>{(e=>{S.m.getParcel(q.values.villId,q.values.hodId,e.value).then(t=>{T(t.data),q.setValues({district:q.values.district,department:q.values.department,villId:q.values.villId,hodId:q.values.hodId,sectId:e.value,parcelId:""})})})(e),d&&d()},required:!0,disabled:w.length<1||o,type:"select",options:w,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData")},{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.parcel"),name:"parcelId",value:q.values.parcelId,onChange:e=>{q.handleChange(e),d&&d()},required:!0,disabled:N.length<1||o,type:"select",options:N,optionLabel:"name",optionValue:"id",emptyMessage:(0,n.t)("errors.noData")}];return(0,r.useImperativeHandle)(t,()=>
161({async submitPropertyDataForm(){try{return await q.submitForm(),!0}catch(e){}},resetForm(){q.resetForm()}}),[]),s?(0,I.jsx)("form",{onSubmit:q.handleSubmit,children:o?null:(0,I.jsx)(g.A,{formik:q,inputs:[...R,...l]})}):(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(D.A,{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.RealtyInformation"),children:(0,I.jsx)("form",{onSubmit:q.handleSubmit,children:o?null:(0,I.jsx)(g.A,{formik:q,inputs:[...R,...l]})})})})}),k=(0,r.forwardRef)((e,t)=>{const{onDisableNext:a}=e,l=(0,o.wA)(),i=((0,o.d4)(e=>e.applicantInfo),(0,o.d4)(e=>e.sellingFormDetails)),s=(0,r.useRef)(null),[d,c]=(0,r.useState)(!0),u=(0,x.Wx)({enableReinitialize:!0,validateOnMount:!0,initialValues:{applicantType:i.applicantType||"citizen",purposeFromDoc:i.purposeFromDoc||"",selectRequiredMap:i.selectRequiredMap||""},validate:e=>{let t={};return"citizen"===e.applicantType?e.selectRequiredMap||(t.selectRequiredMap=(0,n.t)("errors.required")):e.purposeFromDoc||(t.purposeFromDoc=(0,n.t)("errors.required")),t},onSubmit:async t=>{try{const n={...i,...t};var a;if(e.onUpdateFormData({...n}),"citizen"===t.applicantType)e.onSuccessSubmit();else await(null===(a=s.current)||void 0===a?void 0:a.submitPropertyDataForm())}catch(n){}}});const h=t=>{e.onUpdateFormData({propertyData:t,auth:e.auth}),e.onSuccessSubmit()};return(0,r.useImperativeHandle)(t,()=>({async getPropertyData(){try{await u.submitForm()}catch(e){}}}),[]),(0,r.useEffect)(()=>{a&&("citizen"===u.values.applicantType?a(!u.isValid):a(!u.isValid||d))},[u.isValid,u.values.applicantType,a,d]),(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(D.A,{title:(0,n.t)("OwnershipTransfer.AuthSelling.RealtySelects.RealtyInformation"),children:[(0,I.jsx)(v.A,{children:(0,I.jsx)(y.A,{title:(0,n.t)("OwnershipTransfer.setLimits.applicantType"),required:!0,fullWidth:!0,name:"applicantType",type:"radio",value:u.values.applicantType,onChange:t=>{var a;u.resetForm(),null===(a=s.current)||void 0===a||a.resetForm(),u.setFieldValue("applicantType",t.value),e.onUpdateFormData({propertyData:{}})},options:[{optionValue:"citizen",title:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.citizen")},{optionValue:"governmentalEntity",title:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.governmentalEntity")},{optionValue:"companies",title:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.companies")}],disabled:e.demo})}),(0,I.jsx)(v.A,{children:"citizen"===u.values.applicantType?(0,I.jsx)(y.A,{title:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.selectRequiredMap"),required:!0,formik:u,name:"selectRequiredMap",type:"select",value:u.values.selectRequiredMap,onChange:e=>{u.handleChange(e)},options:[{label:"tttt",value:"tttt"}],optionLabel:"label",optionValue:"value",filterBy:"label",disabled:e.demo}):(0,I.jsx)(y.A,{title:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.purposeFromDoc"),disabled:e.demo,formik:u,required:!0,onChange:e=>{u.setFieldValue("purposeFromDoc",e.target.value)},value:u.values.purposeFromDoc,type:"textarea",name:"purposeFromDoc",rows:5,double:!0,style:{resize:"none"}})}),"citizen"===u.values.applicantType?null:(0,I.jsx)(j,{data:e.data||i.propertyData,demo:e.demo,onSubmit:t=>{const a=`${t.villId}${t.hodId}${t.sectId}${t.parcelId}`;(0,m.qz)({DlsKey:a}).then(a=>{!function(t,a){e.checkRequestExist?e.checkRequestExist(t.data.reG_NO).then(e=>{!1===e.data?h({...t.data,...a}):l((0,p.Qg)((0,n.t)("errors.openSellingRequest")))}):h({...t.data,...a})}(a,t)}).catch(()=>{l((0,p.Qg)((0,n.t)("errors.incorrectData")))})},withoutFrame:!0,onDisableNext:e=>{c(e)},ref:s})]})})});var w=a(11351),A=a(48024),N=a(41847),T={};a.r(T),a.d(T,{desc:()=>N.i8,description:()=>N.h_,manual:()=>N.jW,requirements:()=>N.Ln,start:()=>N.ni,title:()=>N.DD});var F=a(37944),q=a(87668);function R(e){let{onDisableNext:t,demo:a,refund:l,onClickNext:i,onSuccessSubmit:s}=e;const d=(0,o.wA)(),c=(0,o.d4)(e=>e.sellingFormDetails),u=(0,x.Wx)({validateOnMount:!0,initialValues:(()=>{var e,t,a,n;return l?{summonDoc:(null===(a=JSON.parse(c.tempAttach.summonDoc||"{}"))||void 0===a?void 0:a.value)||"",authorizationDoc:(null===(n=JSON.parse(c.tempAttach.authorizationDoc||"{}"))||void 0===n?void 0:n.value)||""}:{summonDoc:(null===(e=c.attachments[0])||void 0===e?void 0:e.file)||"",authorizationDoc:(null===(t=c.attachments[1])||void 0===t?void 0:t.file)||""}})(),validate:e=>{let t={};return e.summonDoc||(t.summonDoc=(0,n.t)("errors.required")),t},onSubmit:e=>{d((0,p.Xf)({...c,attachments:[{name:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.summonDoc"),file:e.summonDoc,key:"summonDoc"},{name:(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.authorizationDoc"),file:e.authorizationDoc,key:"authorizationDoc"}
161]})),s()}});return(0,r.useEffect)(()=>{t&&t(!u.isValid)},[u.isValid,t]),(0,r.useEffect)(()=>{i&&u.submitForm()},[i]),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(D.A,{title:(0,n.t)("realtySelling.requiredDocuments"),icon:(0,I.jsx)(F.h,{width:"25"}),children:(0,I.jsxs)(v.A,{children:[(0,I.jsxs)("div",{className:"col-lg-3 col-sm-12 mb-4 form-inputs  d-flex flex-column justify-content-between",children:[(0,I.jsxs)("label",{className:"block text-xs fm-kufi-regular text-form-label",children:[(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.summonDoc")," ",(0,I.jsx)("span",{className:"text-danger",children:"*"})]}),(0,I.jsx)(q.A,{name:"summonDoc",uploadLabel:(0,n.t)("realtySelling.uploadFile"),onUploadFile:e=>{u.setFieldValue("summonDoc",e)},uploadedImage:u.values.summonDoc,disabled:a})]}),(0,I.jsxs)("div",{className:"col-lg-3 col-sm-12 mb-4 form-inputs  d-flex flex-column justify-content-between",children:[(0,I.jsxs)("label",{className:"block text-xs fm-kufi-regular text-form-label",children:[(0,n.t)("OwnershipTransfer.providingMapsPanelsAndIndexes.authorizationDoc")," "]}),(0,I.jsx)(q.A,{name:"authorizationDoc",uploadLabel:(0,n.t)("realtySelling.uploadFile"),onUploadFile:e=>{u.setFieldValue("authorizationDoc",e)},uploadedImage:u.values.authorizationDoc,disabled:a})]})]})})})}var C=a(15538),P=(a(66888),a(51604));function V(e){var t,a;let{withoutFrame:l,refund:i}=e;const r=(0,o.d4)(e=>e.sellingFormDetails);return l?(0,I.jsxs)(I.Fragment,{children:[null!==(t=r.propertyData)&&void 0!==t&&t.reG_NO?(0,I.jsx)(w.A,{data:r.propertyData}):null,(0,I.jsx)(k,{data:r.propertyData,demo:!0}),(0,I.jsx)(P.A,{demo:!0}),(0,I.jsx)(R,{onDisableNext:()=>{},onUpdateFormData:()=>{},demo:!0,refund:i}),(0,I.jsx)(b.A,{demo:!0})]}):(0,I.jsxs)(D.A,{title:(0,n.t)("realtySelling.submitRequest"),icon:(0,I.jsx)(C.h,{width:"25"}),children:[null!==(a=r.propertyData)&&void 0!==a&&a.reG_NO?(0,I.jsx)(w.A,{data:r.propertyData}):null,(0,I.jsx)(k,{data:r.propertyData,demo:!0}),(0,I.jsx)(P.A,{demo:!0}),(0,I.jsx)(R,{onDisableNext:()=>{},onUpdateFormData:()=>{},demo:!0,refund:i}),(0,I.jsx)(b.A,{demo:!0})]})}function O(e){var t,a;let{isOwner:x}=e;const f=(0,s.zy)(),y=(0,o.wA)(),g=(0,r.useRef)(null),v=(0,s.Zp)(),D=(0,r.useRef)(null),S=(0,o.d4)(e=>e.sellingFormDetails),[j,N]=(0,r.useState)(x?"selectSharesToSell":"realtyInformation"),[F,q]=(0,r.useState)(!1),[C,O]=(0,r.useState)(!1),[z,M]=(0,r.useState)(!1),E=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){y((0,p.eh)());const t={taskId:"",processInstanceId:"",donation:!1,propertyData:{},selectedShares:[],isTotalShares:!1,allShares:!1,buyersDetails:[],realtyValue:"",buyerSellersMapper:[],realtyBelongings:[],additionalBelongingsValue:"",attachments:{},support:!1,accumilative:[],...e};y((0,p.Xf)(t))}else{const t={...S,...e};y((0,p.Xf)(t))}};(0,r.useEffect)(()=>{var e;x&&(e=f.state.reG_NO,(0,m.qz)({reG_NO:e}).then(e=>{E({propertyData:(null===e||void 0===e?void 0:e.data)||{}})}))},[f]);const K=(0,r.useCallback)(()=>[{label:(0,n.t)("realtySelling.realtyInformation"),backKey:null,key:"realtyInformation",nextKey:"applicantInformation",hideBack:!0,showRealtyDetails:!1},{label:(0,n.t)("governmentServices.applicantInfo"),backKey:"realtyInformation",key:"applicantInformation",nextKey:"attachments",hasFormToSubmit:!0,showRealtyDetails:!1},{label:(0,n.t)("realtySelling.requiredDocuments"),backKey:"applicantInformation",key:"attachments",nextKey:"additionalNotes",hasFormToSubmit:!0,showRealtyDetails:!1},{label:(0,n.t)("realtySelling.additionalNotes"),backKey:"attachments",key:"additionalNotes",nextKey:"submitRequestToCheck",showRealtyDetails:!1},{label:(0,n.t)("realtySelling.submitRequestToCheck"),backKey:"additionalNotes",key:"submitRequestToCheck",nextKey:null,nextLabel:(0,n.t)("realtySelling.submit"),submit:!0,showRealtyDetails:!1}].filter(e=>!e.hide),[]),L=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j;const t=K(),a=t.findIndex(t=>t.key===e);return{index:a,step:t[a]}},[j]),[U,W]=(0,r.useState)(L());(0,r.useEffect)(()=>{W(L())},[j,L]);const _=()=>{U.step.submit||U.step.nextKey&&N(U.step.nextKey)};function $(e){return(0,h.H_n)(e)}function B(){return c.YS(S.propertyData.depT_CODE,"DLS6001")}function Y(e){return(0,h.QWt)(c.be(S,e,"DLS6001","Providing maps, panels, and indexes","\u062a\u0632\u0648\u064a\u062f \u0628\u062e\u0631\u0627\u0626\u0637 \u0648\u0644\u0648\u062d\u0627\u062a \u0648\u0641\u0647\u0627\u0631\u0633",!1,{extraVariables:{isCitizen:"citizen"===S.applicantType,Number:S.propertyData&&S.propertyData.depT_CODE?Number(S.propertyData.depT_CODE):7}}))}const G=async()=>{y((0,p.Te)("",""));try{if("citizen"===S.applicantType){const e=B(),t=[Y(e)];Promise.allSettled(t).then(t=>{let[a]=t;"fulfilled"==a.status&&(y((0,p.Te)((0,n.t)("common.success"),(0,n.t)("common.yourReference",{refrenceNumber:e}))),v("/home"))})}else $(S.propertyData.reG_NO).then(e=>{if(!1===e.data){const e=B(),t=[Y(e)];Promise.allSettled(t).then(t=>{let[a]=t;"fulfilled"==a.status&&(y((0,p.Te)((0,n.t)("common.success"),(0,n.t)("common.yourReference",{refrenceNumber:e}))),v("/home"))})}else y((0,p.Qg)((0,n.t)("errors.openSellingRequest")))})}catch(e){console.log(e)}},H=()=>T;return(0,I.jsxs)(d.A,{className:"row flex-column flex-md-row",children:[(0,I.jsx)(i.y,{ref:g}),(0,I.jsx)("div",{className:"col-md-3 d-flex",children:(0,I.jsx)(A.A,{isOwner:x,steps:K(),getClassIcon:e=>U.index===e?"ar"===u.A.language?"pi pi-arrow-left text-main-color":"pi pi-arrow-right text-main-color":U.index>e?"pi pi-check text-main-color":"",title:null===(t=H())||void 0===t?void 0:t.t
161itle,desc:null===(a=H())||void 0===a?void 0:a.desc,targetStep:U})}),(0,I.jsxs)("div",{className:"col-md-9 col-xs-12",children:[U.step.showRealtyDetails&&(0,I.jsx)(w.A,{data:S.propertyData}),(()=>{switch(U.step.key){case"realtyInformation":return(0,I.jsx)(k,{onUpdateFormData:E,onSuccessSubmit:_,ref:D,onDisableNext:e=>M(e),checkRequestExist:$});case"applicantInformation":return(0,I.jsx)(P.A,{onClickNext:C,onSuccessSubmit:_,setSubmitForm:O,onDisableNext:e=>M(e)});case"attachments":return(0,I.jsx)(R,{onDisableNext:e=>M(e),onUpdateFormData:E,onClickNext:C,onSuccessSubmit:_});case"additionalNotes":return(0,I.jsx)(b.A,{onDisableNext:e=>M(e),onUpdateFormData:E});case"submitRequestToCheck":return(0,I.jsx)(V,{});default:return U.step.component}})(),!F&&(0,I.jsxs)("div",{className:"row flex-column flex-column-reverse flex-md-row px-0 mx-0 justify-content-end my-4 submit-action",children:[U.step.backKey&&!U.step.hideBack&&(0,I.jsx)(l.$,{onClick:()=>{U.step.backKey&&(N(U.step.backKey),M(!1))},disabled:!U.step.backKey,className:"action-btn col-md-2 col-xs-4 back-btn my-2 m-md-2 fm-kufi-regular text-sm",children:(0,n.t)("common.back")}),!U.step.hideNext&&(0,I.jsx)(l.$,{onClick:()=>{D&&D.current&&D.current.getPropertyData?D.current.getPropertyData():U.step.hasFormToSubmit?(O(!0),setTimeout(()=>{O(!1)},1e3)):U.step.submit?G():_()},className:"action-btn col-md-2 col-xs-4 my-2 m-md-2 fm-kufi-regular  text-sm "+(z?"bg-disabled-color text-dark":"submit-btn"),disabled:z,children:U.step.nextLabel||(0,n.t)("common.next")})]})]}),(0,I.jsx)(l.$,{onClick:()=>v("/government-services/dls",{replace:!0}),className:"exit-btn fm-kufi-regular text-sm action-btn w-100 d-md-none",children:(0,n.t)("common.exitFromService")})]})}}}]);
162//# sourceMappingURL=3947.274c6946.chunk.js.map

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.