PageSourceSearch

https://portal.dls.gov.jo/static/js/27.8920b9f2.chunk.js

js dls.gov.jo collected 2026-09-24 10:57:19 UTC 16,161 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkdls_client||=[]).push([[27],{53840(e,a,l){l.d(a,{A:()=>h});var t=l(44978),n=l(65043),i=l(73103),r=l(9255),s=l(90799),o=l(21691),u=l(66888),d=l(70579);function h(e){let{onUpdateFormData:a,demo:l,selling:h,onDisableNext:m,refund:g,adminPrice:c,takharog:y,transmission:p}=e;const b=(0,i.d4)(e=>g?e.sellingFormDetails.oldContract:e.sellingFormDetails),[f,A]=(0,n.useState)(b.additionalNotes||""),[S,v]=(0,n.useState)(b.legalDisclaimer);(0,n.useEffect)(()=>{(y||p)&&a&&a({feePaymentType:"full"})},[p,y]),(0,n.useEffect)(()=>{(y||p)&&m&&(b.feePaymentType&&b.feePaymentName&&b.feePaymentName.id&&S?(console.log("123"),m(!1)):(m(!0),console.log("444")))},[p,y,S,b.feePaymentType]),console.log(b.buyersDetails);return(0,d.jsxs)(o.A,{title:c?(0,t.t)("realtySelling.infoCorrectness"):(0,t.t)("realtySelling.additionalNotes"),children:[(y||p)&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(s.A,{children:[(0,d.jsx)(r.A,{title:(0,t.t)("realtySelling.feePaymentType"),required:!0,fullWidth:!0,name:"feePaymentType",type:"radio",value:b.feePaymentType,onChange:e=>{a&&a({feePaymentType:e.value})},options:[{optionValue:"full",title:(0,t.t)("realtySelling.fullPayment")},{optionValue:"partial",title:(0,t.t)("realtySelling.partialPayment")}],disabled:l}),(0,d.jsx)(r.A,{title:(0,t.t)("realtySelling.getPaymentName"),required:!0,double:!0,disableFilter:!0,name:"feePaymentName",type:"select",value:b.feePaymentName,onChange:e=>{a&&a({feePaymentName:e.value})},options:(b.buyersDetails||[]).map(e=>({label:e.buyerArabicName||e.nationalId,value:{label:e.buyerArabicName,id:e.nationalId||e.buyerArabicName}})),optionLabel:"label",optionValue:"value",disabled:l})]})}),!c&&(0,d.jsx)(s.A,{children:(0,d.jsx)(r.A,{placeholder:(0,t.t)("realtySelling.additionalNotesPlaceholder"),required:!0,fullWidth:!0,name:"additionalNotes",type:"textarea",rows:5,value:f,onBlur:()=>{a({additionalNotes:f})},onChange:e=>A(e.target.value),disabled:l})}),(0,d.jsx)(u.A,{selling:h,onDisableNext:e=>{p||y?v(!e):m&&m(e)},demo:l,refund:g})]})}},14396(e,a,l){l.d(a,{A:()=>m});var t=l(44978),n=(l(65043),l(73103)),i=l(9255),r=l(90799),s=l(87668),o=l(98595),u=l(91690),d=l(77296),h=l(70579);function m(e){let{formik:a,valuesNamesMapper:l,mortgage:m,demo:g,withoutForeigner:c,applicant:y,withoutSalesAuthorization:p}=e;const{userInfo:b}=(0,n.d4)(e=>e);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r.A,{title:(0,t.t)("realtySelling.guardianInformation"),children:(0,h.jsx)(i.A,{title:(0,t.t)("\u0627\u0644\u062c\u0646\u0633\u064a\u0629"),required:!0,fullWidth:!0,name:"isJordanianGuardian",type:"radio",value:a.values.isJordanianGuardian,onChange:e=>{a.setFieldValue("isJordanianGuardian",e.target.value),a.setFieldValue(l.guardianInfo,{}),a.setFieldValue(l.guardianNationalId,""),a.setFieldValue(l.guardianCardNo,""),a.setFieldValue(l.guardianPersonalNumber,"")},options:c?[{optionValue:!0,title:(0,t.t)("realtySelling.jordanian")}]:[{optionValue:!0,title:(0,t.t)("realtySelling.jordanian")},{optionValue:!1,title:(0,t.t)("realtySelling.forigen")}],disabled:g})}),a.values.isJordanianGuardian?(0,h.jsx)(d.A,{formik:a,guardian:!0,data:a.values[l.guardianInfo],updateData:e=>a.setFieldValue(l.guardianInfo,e),applicant:y,keyMapper:{nationalId:l.guardianNationalId,personalNumber:l.guardianPersonalNumber,cardNo:l.guardianCardNo},type:(0,t.t)("errors.client"),demo:g}):(0,h.jsx)(u.A,{formik:a,guardian:!0,demo:g,data:a.values[l.guardianInfo],keyMapper:{personalNumber:"guardianPersonalNumber"},updateData:e=>a.setFieldValue(l.guardianInfo,e)}),(0,h.jsxs)(r.A,{title:(0,t.t)("realtySelling.guardianshipInformation"),children:[(0,h.jsx)(i.A,{title:(0,t.t)("realtySelling.guardianshipNumber"),required:!0,formik:a,name:"guardianshipNumber",value:a.values.guardianshipNumber,onChange:e=>{const l=e.target.value.replace(/\s/g,"");a.setFieldValue("guardianshipNumber",l)},disabled:g}),(0,h.jsx)(i.A,{title:(0,t.t)("realtySelling.dateOfIssuanceOfTheGuardianshipArgument"),required:!0,formik:a,name:"guardianshipDate",type:"date",value:"string"===typeof a.values.guardianshipDate&&a.values.guardianshipDate?new Date(a.values.guardianshipDate):a.values.guardianshipDate,onChange:a.handleChange,max:new Date,disabled:g}),(0,h.jsx)(i.A,{title:(0,t.t)("realtySelling.placeOfIssuanceOfTheGuardianshipArgument"),required:!0,double:!0,formik:a,name:"guardianshipPlace",value:a.values.guardianshipPlace,onChange:a.handleChange,disabled:g}),(0,h.jsx)(i.A,{title:(0,t.t)("realtySelling.GuardiansName"),name:"guardianName",value:(e=>{if(null!==e&&void 0!==e&&e.anamE1){const{anamE1:a,anamE2:l,anamE3:t,anamE4:n}=e;return`${a} ${l} ${t} ${n}`}return null!==e&&void 0!==e&&e.full_name?null===e||void 0===e?void 0:e.full_name:""})(a.values.guardianInfo),double:!0,disabled:!0}),(0,h.jsx)(i.A,{title:(0,t.t)("realtySelling.nameOfTheMinorOrTheInterdicted"),name:"partyName",value:a.values.partyName||a.values.buyerArabicName||y&&b.arabicName||a.values.creditorArabicName||a.values.deptorArabicName,double:!0,disabled:!0})]}),(0,h.jsx)(r.A,{children:(0,h.jsxs)("div",{className:"col-lg-3 col-sm-6 mb-4 form-inputs",children:[(0,h.jsxs)("label",{className:"block text-xs fm-kufi-regular text-form-label",children:[(0,t.t)("realtySelling.guardianshipAttachment")," ",(0,h.jsx)("span",{className:"text-danger",children:"*"})]}),(0,h.jsx)(s.A,{uploadLabel:(0,t.t)("realtySelling.guardianshipAttachment"),uploadedImage:a.values.guardianshipAttachment,onUploadFile:e=>{a.setFieldValue("guardianshipAttachment",e)},disabled:g,name:"guardianshipAttachment"}),(0,o.AH)(a,"guardianshipAttachment")]})}),p?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(r.A,{title:m?(0,t.t)("mortgageServices.permissionToSellInformation"):(0,t.t)("realtySelling.permissionToSellInformation"),children:[(0,h.jsx)(i.A,{title:m?(0,t.t)("mortgageServices.salesAuthorizationNumber"):(0,t.t)("realtySelling.salesAuthorizationNumber"),required:!0,formik:a,name:"salesAuthorizationNumber",value:a.values.salesAuthorizationNumber,onChange:e=>{const l=e.target.value.replace(/\s/g,"");a.setFieldValue("salesAuthorizationNumber",l)},disabled:g}),(0,h.jsx)(i.A,{title:m?(0,t.t)("mortgageServices.dateOfIssuanceOfTheAuthorizationToSell"):(0,t.t)("realtySelling.dateOfIssuanceOfTheAuthorizationToSell"),required:!0,formik:a,name:"salesAuthorizationDate",type:"date",value:"string"===typeof a.values.salesAuthorizationDate&&a.values.salesAuthorizationDate?new Date(a.values.salesAuthorizationDate):a.values.salesAuthorizationDate,onChange:a.handleChange,max:new Date,disabled:g}),(0,h.jsx)(i.A,{title:m?(0,t.t)("mortgageServices.placeOfIssuanceOfTheAuthorizationToSell"):(0,t.t)("realtySelling.placeOfIssuanceOfTheAuthorizationToSell"),required:!0,formik:a,name:"salesAuthorizationPlace",value:a.values.salesAuthorizationPlace,onChange:a.handleChange,disabled:g})]}),(0,h.jsx)(r.A,{children:(0,h.jsxs)("div",{className:"col-lg-3 col-sm-6 mb-4 form-inputs",children:[(0,h.jsxs)("label",{className:"block text-xs fm-kufi-regular text-form-label",children:[m?(0,t.t)("mortgageServices.mortgageAuthorizationAttachment"):(0,t.t)("realtySelling.salesAuthorizationAttachment")," ",(0,h.jsx)("span",{className:"text-danger",children:"*"})]}),(0,h.jsx)(s.A,{uploadLabel:m?(0,t.t)("mortgageServices.mortgageAuthorizationAttachment"):(0,t.t)("realtySelling.salesAuthorizationAttachment"),uploadedImage:a.values.salesAuthorizationAttachment,onUploadFile:e=>{a.setFieldValue(l.salesAuthorizationAttachment,e)},disabled:g,name:l.salesAuthorizationAttachment}),(0,o.AH)(a,l.salesAuthorizationAttachment)]})})]})]})}},91613(e,a,l){l.d(a,{A:()=>A});var t=l(77627),n=l(44978),i=l(86178),r=l.n(i),s=l(72018),o=l(9642),u=l(81931),d=l(65043),h=l(73103),m=(l(61135),l(9255)),g=l(90799),c=l(21691),y=l(98595),p=l(75357),b=l(82113),f=l(70579);function A(e){let{onDisableNext:a,demo:l,withPRandom:i,withoutWell:A,selling:S,landAndApartment:v,withElectricityClearance:x,c
1orrectServeyInfo:j}=e;const C=(0,h.wA)(),N=(0,h.d4)(e=>e.sellingFormDetails),{propertyData:w}=N,[k,T]=(0,d.useState)(N.hasBelongings||!1),[V,D]=(0,d.useState)(N.hasDemolishedBuilding||!1),[I,F]=(0,d.useState)([]),[P,W]=(0,d.useState)([]),[z,q]=(0,d.useState)(N.physicalLandmarks||{buildings:!1,fences:!1,shrubs:!1,settlementIron:!1,waterWell:!1,railway:!1,houriaChains:!1,waterCanal:!1,valley:!1,none:!1,other:!1,otherText:""}),B=[{label:(0,n.t)("realtySelling.constructionType"),key:"label"},{label:(0,n.t)("realtySelling.buildingArea"),key:"area"},{label:(0,n.t)("realtySelling.constructionYear"),key:"year"},{label:(0,n.t)("realtySelling.sharesRatio"),key:"sharesRatio",body:e=>`${e.wholeShares} / ${e.soldShares}`},{label:"",key:"action",body:(e,a)=>{let{rowIndex:t}=a;return(0,f.jsx)(s.$,{icon:"pi pi-trash text-danger text-sm",onClick:()=>E(t),disabled:l,className:"p-button-rounded  bg-transparent outline-none"})},hidden:l}],O=(0,t.Wx)({initialValues:{item:"",area:"",year:"",wholeShares:"",soldShares:"",buildingType:"",hasWell:N.hasWell||!1},validate:e=>{const a=(0,y.XU)(e);let l={};return a.item||(l.item=(0,n.t)("errors.required")),a.area?(a.area<1||isNaN(+a.area))&&(l.area=(0,n.t)("errors.areaMoreThanZero")):l.area=(0,n.t)("errors.required"),a.year||(l.year=(0,n.t)("errors.required")),a.wholeShares||(l.wholeShares=(0,n.t)("errors.required")),a.soldShares?+a.soldShares>+a.wholeShares&&(l.soldShares=(0,n.t)("errors.soldSharesCanNotBeMoreThanWholeShares")):l.soldShares=(0,n.t)("errors.required"),l},onSubmit:e=>{const a=[...P];e.year=r()(e.year).format("YYYY"),e.label=I.find(a=>a.buildCode===e.item).buildDesc,a.push(e),W(a),C((0,p.Te)((0,n.t)("common.saved"))),setTimeout(()=>{C((0,p.Te)(""))},3e3),O.resetForm()}});(0,d.useEffect)(()=>{l||(C((0,p.Xf)({...N,hasBelongings:k,hasDemolishedBuilding:V,realtyBelongings:P,hasWell:O.values.hasWell,physicalLandmarks:z})),P.length<1&&k&&!j?a(!0):a(!1))},[P,O.values.hasWell,V,k,j,z]),(0,d.useEffect)(()=>{l||(k&&!j?P.length<1&&a(!0):a(!1))},[k,j]);const L=[{label:(0,n.t)("realtySelling.swimmingPool"),value:"swimmingPool"},{label:(0,n.t)("realtySelling.enterpriseValue"),value:"enterpriseValue"},{label:(0,n.t)("realtySelling.trees"),value:"trees"},{label:(0,n.t)("realtySelling.others"),value:"others"}],E=e=>{const a=[...P];a.splice(e,1),W(a),C((0,p.Te)((0,n.t)("common.deleted"))),setTimeout(()=>{C((0,p.Te)(""))},3e3)};return(0,d.useEffect)(()=>{if(!l){let e=1;v&&(e=(0,y.Q$)(w.landFlag)?1:0),(0,b.Jk)(e).then(e=>{F(e.data)})}W(N.realtyBelongings||[])},[]),console.log(O.values),console.log([z.buildings&&"buildings",z.fences&&"fences",z.shrubs&&"shrubs",z.settlementIron&&"settlementIron",z.waterWell&&"waterWell",z.railway&&"railway",z.houriaChains&&"houriaChains",z.waterCanal&&"waterCanal",z.valley&&"valley",z.other&&"other"].filter(Boolean)),(0,f.jsxs)(f.Fragment,{children:[!j&&(0,f.jsxs)(c.A,{title:(0,n.t)("realtySelling.landingBelongingsInformation"),afterText:i&&w.pRandom,children:[(0,f.jsx)(g.A,{children:(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.hasBelonings"),required:!0,double:!0,formik:O,name:"hasBelongings",type:"radio",value:k,onChange:e=>T(e.value),options:[{optionValue:!0,title:(0,n.t)("common.yes")},{optionValue:!1,title:(0,n.t)("common.no")}],disabled:l})}),k&&!j&&(0,f.jsxs)(f.Fragment,{children:[!l&&(0,f.jsx)("form",{onSubmit:O.handleSubmit,className:"row",children:(0,f.jsxs)(g.A,{children:[(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.constructionType"),required:!0,formik:O,name:"item",type:"select",value:O.values.item,onChange:O.handleChange,options:I.length?I:[],optionLabel:"buildDesc",optionValue:"buildCode",filterBy:"buildDesc",double:!0}),(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.buildingArea"),required:!0,formik:O,name:"area",keyfilter:"pnum",min:1,maxLength:10,value:O.values.area,onChange:O.handleChange,afterText:(0,n.t)("realtySelling.meterSequare")}),(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.constructionYear"),required:!0,formik:O,name:"year",type:"date",keyfilter:"pnum",min:1,max:new Date,year:!0,readOnlyInput:!0,value:O.values.year,onChange:e=>{O.handleChange(e)}}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.wholeShares"),required:!0,formik:O,name:"wholeShares",keyfilter:"pnum",value:O.values.wholeShares,onChange:O.handleChange}),(0,f.jsx)(m.A,{title:S?(0,n.t)("realtySelling.soldShares"):(0,n.t)("OwnershipTransfer.willDocumentation.ownerShare"),required:!0,formik:O,name:"soldShares",keyfilter:"pnum",value:O.values.soldShares,onChange:O.handleChange})]}),(0,f.jsx)(m.A,{type:"button",buttonType:"submit",label:(0,n.t)("realtySelling.add")})]})}),(0,f.jsx)(u.b,{className:"realty-table fm-kufi-regular",tableClassName:"w-100",value:P,responsiveLayout:"scroll",emptyMessage:(0,n.t)("common.noResultsFound"),children:B.map(e=>(0,f.jsx)(o.V,{field:e.key,header:e.label,body:e.body?e.body:null,hidden:e.hidden},e.key))})]}),x&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(g.A,{children:(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.hasDemolishedBuilding"),required:!0,double:!0,formik:O,name:"hasDemolishedBuilding",type:"radio",value:V,onChange:e=>{D(e.value)},options:[{optionValue:!0,title:(0,n.t)("common.yes")},{optionValue:!1,title:(0,n.t)("common.no")}],disabled:l})})}),(0,f.jsx)(g.A,{title:(0,n.t)("realtySelling.additionalOtherBelongings"),children:(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.valueAdditionalOtherBelongings"),info:L.map(e=>e.label).join(", "),formik:O,double:!0,name:"hasBelongings",keyfilter:"pnum",value:N.additionalBelongingsValue||"",onChange:e=>{isNaN(+e.target.value)||C((0,p.Xf)({...N,additionalBelongingsValue:e.target.value,hasBelongings:k,hasDemolishedBuilding:V}))},disabled:l,afterText:(0,n.t)("realtySelling.jod")})})]}),!A&&"LAND"===N.propertyData.landFlag&&(0,f.jsx)(c.A,{title:(0,n.t)("realtySelling.hasWell"),afterText:i&&w.pRandom,children:(0,f.jsx)(g.A,{children:(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.hasWell?"),required:!0,double:!0,formik:O,name:"hasWell",type:"radio",value:O.values.hasWell,onChange:O.handleChange,options:[{optionValue:!0,title:(0,n.t)("common.yes")},{optionValue:!1,title:(0,n.t)("common.no")}],disabled:l})})}),j&&(0,f.jsxs)(c.A,{title:(0,n.t)("realtySelling.physicalLandmarksOnGround"),afterText:i&&w.pRandom,children:[(0,f.jsx)(g.A,{children:(0,f.jsx)(m.A,{withoutLabel:!0,fullWidth:!0,name:"physicalLandmarks",type:"checkbox",value:[z.buildings&&"buildings",z.fences&&"fences",z.shrubs&&"shrubs",z.settlementIron&&"settlementIron",z.waterWell&&"waterWell",z.railway&&"railway",z.houriaChains&&"houriaChains",z.waterCanal&&"waterCanal",z.valley&&"valley",z.n
1one&&"none",z.other&&"other"].filter(Boolean),onChange:e=>{const a=e.value,l=a.includes("none"),t=z.none;q(l&&!t?{...z,buildings:!1,fences:!1,shrubs:!1,settlementIron:!1,waterWell:!1,railway:!1,houriaChains:!1,waterCanal:!1,valley:!1,other:!1,none:!0,otherText:""}:{...z,buildings:a.includes("buildings"),fences:a.includes("fences"),shrubs:a.includes("shrubs"),settlementIron:a.includes("settlementIron"),waterWell:a.includes("waterWell"),railway:a.includes("railway"),houriaChains:a.includes("houriaChains"),waterCanal:a.includes("waterCanal"),valley:a.includes("valley"),other:a.includes("other"),none:!1,otherText:a.includes("other")?z.otherText:""})},disabled:l,labelClassName:"d-inline",options:[{optionValue:"buildings",label:(0,n.t)("realtySelling.buildings")},{optionValue:"fences",label:(0,n.t)("realtySelling.fences")},{optionValue:"shrubs",label:(0,n.t)("realtySelling.shrubs")},{optionValue:"settlementIron",label:(0,n.t)("realtySelling.settlementIron")},{optionValue:"waterWell",label:(0,n.t)("realtySelling.waterWell")},{optionValue:"railway",label:(0,n.t)("realtySelling.railway")},{optionValue:"houriaChains",label:(0,n.t)("realtySelling.houriaChains")},{optionValue:"waterCanal",label:(0,n.t)("realtySelling.waterCanal")},{optionValue:"valley",label:(0,n.t)("realtySelling.valley")},{optionValue:"other",label:(0,n.t)("realtySelling.other")},{optionValue:"none",label:(0,n.t)("realtySelling.none")}]})}),z.other&&(0,f.jsx)(g.A,{children:(0,f.jsx)(m.A,{title:(0,n.t)("realtySelling.otherDetails"),formik:O,name:"otherText",type:"textarea",double:!0,value:z.otherText,onChange:e=>{q({...z,otherText:e.target.value})},disabled:l})})]})]})}}}]);
2//# sourceMappingURL=27.8920b9f2.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.