PageSourceSearch

https://portal.dls.gov.jo/static/js/4193.cb358019.chunk.js

js dls.gov.jo collected 2026-09-24 10:59:48 UTC 57,889 bytes, 269 lines download raw bytes

1"use strict";(globalThis.webpackChunkdls_client||=[]).push([[4193],{37944(e,t,a){var r,n=a(65043);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s.apply(null,arguments)}function l(e,t){let{title:a,titleId:l,...o}=e;return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,viewBox:"0 0 40 40",ref:t,"aria-labelledby":l},o),a?n.createElement("title",{id:l},a):null,r||(r=n.createElement("g",{id:"contract",transform:"translate(0 -0.039)"},n.createElement("path",{id:"Path_18","data-name":"Path 18",d:"M216.243,97.516a2.021,2.021,0,0,0-3.7-.485l-.337.586a.673.673,0,0,0-.916.243l-1.71,2.915-.586-.337a.673.673,0,1,0-.673,1.165l.586.337-5.723,9.918-1.414,3.778-.673,1.259a2.02,2.02,0,0,0,.108,2.182l-1.515,1.858-.424-1.064a1.347,1.347,0,0,0-2.4-.189l-.242.411-.229-2.693a1.347,1.347,0,0,0-2.619-.316l-1.656,4.969a.673.673,0,0,0,.424.849.582.582,0,0,0,.209.054.673.673,0,0,0,.64-.458l1.649-4.969.236,2.733a1.347,1.347,0,0,0,2.5.579l.249-.411.418,1.057a1.346,1.346,0,0,0,2.3.343l1.569-1.986a2.075,2.075,0,0,0,.532.067,2.02,2.02,0,0,0,1.757-1l.673-1.124,2.565-3.117,5.784-10.039.586.337a.675.675,0,0,1,.249.923l-2.693,4.666a.668.668,0,1,0,1.138.7l2.693-4.666a2.019,2.019,0,0,0-.741-2.761l-.586-.337,1.683-2.916a.674.674,0,0,0-.242-.916l.337-.586A2.019,2.019,0,0,0,216.243,97.516ZM213.7,97.7a.673.673,0,0,1,.411-.316.707.707,0,0,1,.512.067.674.674,0,0,1,.317.411.707.707,0,0,1-.067.512l-.337.586-1.172-.673Zm-9.177,18.8-.337-.2-1-.579.956-2.559,2.121,1.225Zm-2.02,1.946a.673.673,0,0,1-.2-.882l.337-.586,1.171.673-.337.579a.673.673,0,0,1-.97.215Zm4.532-5.158-2.33-1.347,5.387-9.333,2.33,1.347Zm6.06-10.5-2.33-1.347,1.347-2.33,2.33,1.347Zm0,0",transform:"translate(-176.317 -88.302)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_19","data-name":"Path 19",d:"M72.272,356.758l-2.383,2.377-1.428-1.427a.674.674,0,1,0-.95.956l1.428,1.427a1.357,1.357,0,0,0,1.906,0l2.377-2.384a.673.673,0,0,0-.949-.949Zm0,0",transform:"translate(-61.647 -326.876)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_20","data-name":"Path 20",d:"M32,317.764a5.723,5.723,0,0,0,11.447,0,.673.673,0,1,0-1.347,0,4.377,4.377,0,1,1-1.751-3.5.673.673,0,0,0,.808-1.077A5.723,5.723,0,0,0,32,317.764Zm0,0",transform:"translate(-29.307 -286.142)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_21","data-name":"Path 21",d:"M90.18,49.386a.673.673,0,1,0,0-1.347H72.673a.673.673,0,0,0-.673.673v2.693a.673.673,0,0,0,.673.673H90.18a.673.673,0,1,0,0-1.347H73.347V49.386Zm0,0",transform:"translate(-65.94 -43.96)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_22","data-name":"Path 22",d:"M96.673,112.039a.673.673,0,1,0,0,1.347H110.14a.673.673,0,1,0,0-1.347Zm0,0",transform:"translate(-88.048 -102.67)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_23","data-name":"Path 23",d:"M143.487,168.039H128.673a.673.673,0,1,0,0,1.347h14.813a.673.673,0,0,0,0-1.347Zm0,0",transform:"translate(-117.407 -154.005)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_24","data-name":"Path 24",d:"M70.813,216.712a.673.673,0,0,0-.673-.673H56.673a.673.673,0,0,0,0,1.347H70.14A.673.673,0,0,0,70.813,216.712Zm0,0",transform:"translate(-51.287 -198.006)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_25","data-name":"Path 25",d:"M253.387,216.039h-4.713a.673.673,0,1,0,0,1.347h4.713a.673.673,0,1,0,0-1.347Zm0,0",transform:"translate(-227.374 -198.006)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_26","data-name":"Path 26",d:"M63.407,257.386a.673.673,0,0,0,0-1.347H56.673a.673.673,0,0,0,0,1.347Zm0,0",transform:"translate(-51.287 -234.674)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_27","data-name":"Path 27",d:"M168.673,257.386h4.713a.673.673,0,0,0,0-1.347h-4.713a.673.673,0,1,0,0,1.347Zm0,0",transform:"translate(-154.027 -234.674)",fill:"#4bb8a7"}),n.createElement("path",{id:"Path_28","data-name":"Path 28",d:"M29.9,30.706a.666.666,0,0,0-.664.667v6.667a.665.665,0,0,1-.664.667H1.993a.665.665,0,0,1-.664-.667v-36a.666.666,0,0,1,.664-.667h26.58a.666.666,0,0,1,.664.667v12.52a.664.664,0,1,0,1.329,0V2.039a2,2,0,0,0-1.993-2H1.993A2,2,0,0,0,0,2.039v36a2,2,0,0,0,1.993,2h26.58a2,2,0,0,0,1.993-2V31.372A.666.666,0,0,0,29.9,30.706Zm0,0",transform:"translate(0 0)",fill:"#4bb8a7"}))))}const o=n.forwardRef(l);a.p;
1a.d(t,["h",0,o])},56091(e,t,a){var r=a(57751),n=a(44978);const s=r.Ay.div`
2.sidebar {
3    height: fit-content;
4    ${"ar"===n.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,s])},87668(e,t,a){a.d(t,{A:()=>j});var r=a(73237),n=(a(42340),a(39525),a(57798)),s=a(50281),l=a(43689),o=a(44978),i=a(15666),c=a(65043),d=a(73103),u=a(69746),p=a(37944),m=a(64091),f=a(98595),b=a(75357);const h=a(57751).Ay.div`
162    height:204px;
163    display:flex;
164    justify-content:space-between;
165    width:100%;
166    .media-area{
167        height:80%;
168        background:#F2F2F2;
169        span{
170            // height:100%;
171        }
172        img{
173            width: 100%;
174            height: 100%;
175            border-radius: 2px;
176            object-fit: contain;
177        }
178    }
179    .p-button:enabled:hover, .p-button:not(button):not(a):not(.p-disabled):hover , 
180    .p-button:enabled:active, .p-button:not(button):not(a):not(.p-disabled):active{
181        color:var(--main-color);
182        background:var(--main-color);
183        border:1px solid var(--main-color);
184        box-shadow: none;
185        outline: none;
186    }
187
188    .upload-btn{
189        border-radius:7px;
190        .show-image{
191            border:0;
192            border-left:1px solid var(--main-color);
193            border-radius:0;
194        }
195        .ant-upload{
196            color:var(--main-color);
197        }
198
199    }
200    .pdf-upload:hover {
201        color: var(--main-color);
202        height: 10px;
203    }
204    .file-name{
205        min-height: 50px;
206    }
207`;var x=a(85689),g=a(70579);const v=[".dwg",".dwf"],y=c.memo(function(e){let{isPdf:t,previewImage:a,uploadedImage:l,accept:o,onZoom:i}=e;const c=(0,n.fullScreenPlugin)(),{EnterFullScreenButton:d}=c,u=(0,s.zoomPlugin)(),{Zoom:p,zoomTo:m}=u;return(0,g.jsxs)(r.Worker,{workerUrl:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.min.js",children:[(0,g.jsx)(d,{}
207),(0,g.jsx)(r.Viewer,{fileUrl:URL.createObjectURL((0,f.Cu)(a||l)),plugins:[c,u],defaultScale:r.SpecialZoomLevel.PageWidth})]})}),j=c.memo(e=>{const t=(0,c.useRef)(),[a,r]=(0,c.useState)(null),[n,s]=(0,c.useState)(!1),[j,w]=(0,c.useState)(!1),N=(0,d.wA)(),S=()=>{if(e.allowAllFile)return"*";let t=e.accept?e.accept:".jpg,.png,.jpeg";const a=t.split(",").map(e=>e.trim());return a.length>1&&!a.includes(".pdf")&&(t+=",.pdf"),t};return(0,c.useEffect)(()=>{e.uploadedImage?"data:application/pdf"===e.uploadedImage.slice(0,20)?(s(!0),w(!1),r(null)):e.uploadedImage.startsWith("data:image/")?(s(!1),w(!1),v.includes(e.accept)&&e.uploadedImage?r(x):r(e.uploadedImage)):e.allowAllFile?(s(!1),w(!0),r(null)):(v.includes(e.accept)&&e.uploadedImage?r(x):r(e.uploadedImage),w(!1)):(v.includes(e.accept)&&e.uploadedImage?r(x):r(null),s(!1),w(!1))},[e.uploadedImage,e.allowAllFile,e.accept]),(0,g.jsx)(h,{children:(0,g.jsxs)("div",{className:"d-flex flex-column w-100",children:[(0,g.jsx)("div",{className:"d-flex justify-content-center align-items-center media-area",children:n?(0,g.jsx)(y,{isPdf:n,previewImage:a,uploadedImage:e.uploadedImage}):j?(0,g.jsx)(p.h,{width:"50px",height:"50px"}):a?(0,g.jsx)(l.A,{width:v.includes(e.accept)?"50px":"100%",height:v.includes(e.accept)?"50px":"100%",src:a,preview:{mask:(0,g.jsxs)("span",{children:[(0,o.t)("common.preview")," ",(0,g.jsx)("i",{className:"pi pi-eye"})]})}}):(0,g.jsx)(u.h,{width:"25"})}),(0,g.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[!e.showDownload&&(0,g.jsx)("div",{className:"upload-btn d-flex border-main-color py-1 "+(e.uploadedImage&&!e.disabled?"col-9":"col-12"),children:(0,g.jsx)(i.e,{className:"col-12",chooseLabel:(0,o.t)("common.attachFile"),chooseOptions:{icon:" ",className:"py-1 fm-kufi-regular w-100 h-100 bg-transparent text-main-color border-0  text-xs  box-shadow-none"},mode:"basic",accept:S(),customUpload:!0,auto:!0,uploadHandler:a=>{let{files:l}=a;const i=n;s(!1),w(!1);const[c]=l,d=new FileReader;c.size<=(e.maxFileSize?e.maxFileSize:m.A.maxFileSize)?(d.onload=t=>{if(e.allowAllFile)"application/pdf"===c.type?(s(!0),r(null)):c.type.startsWith("image/")?r(t.target.result):(w(!0),r(null)),e.onUploadFile(t.target.result);else if(e.allowedExtentions&&-1!==e.allowedExtentions.indexOf("application/pdf")&&("application/pdf"===c.type?s(!0):s(!1)),v.includes(e.accept))".dwg"===e.accept&&("dwg"===c.name.split(".").pop()?(r(x),e.onUploadFile(t.target.result)):N((0,b.Qg)((0,o.t)("errors.onlyAutoCad")))),".dwf"===e.accept&&("dwf"===c.name.split(".").pop()?(r(x),e.onUploadFile(t.target.result)):N((0,b.Qg)((0,o.t)("errors.onlyAutoCadDwf"))));else{const a=e.allowedExtentions?[...e.allowedExtentions]:["image/jpeg","image/jpg","image/png"];e.allowGif&&a.push("image/gif");S().includes(".pdf")&&!a.includes("application/pdf")&&a.push("application/pdf"),-1!==a.indexOf(c.type)?("application/pdf"!==c.type?r(t.target.result):r(null),e.onUploadFile(t.target.result)):(s(i),e.typeError?N((0,b.Qg)(e.typeError)):N((0,b.Qg)((0,o.t)("errors.onlyImagesAndPdf"))))}},d.readAsDataURL(c)):N((0,b.Qg)((0,o.t)("errors.onlyFIveMegaBytes"))),t.current.clear()},ref:t,disabled:e.disabled})}),e.showDownload&&e.uploadedImage&&(0,g.jsxs)("button",{className:"btn btn-outline-success col-12 d-flex justify-content-center align-items-center fm-kufi-regular text-xs",onClick:()=>{(0,f.w3)(e.uploadedImage,"attachment")},type:"button",children:[(0,g.jsx)("i",{className:"pi pi-download",style:{marginLeft:"8px"}}),(0,o.t)("property.download")]}),e.uploadedImage&&!e.disabled&&!e.showDownload&&(0,g.jsx)("button",{className:"btn btn-outline-danger col-2 d-flex justify-content-center align-items-center",onClick:()=>{r(null),s(!1),w(!1),e.onUploadFile(null),t.current.clear()},type:"button",children:(0,g.jsx)("i",{className:"pi pi-trash"})})]})]})})})},34193(e,t,a){a.r(t),a.d(t,{default:()=>U});var r=a(20031),n=a(89421),s=a(44978),l=a(31892),o=a(65043),i=a(73216),c=a(77753),d=a(64091),u=a(86178),p=a.n(u),m=a(84052),f=a(9642),b=a(81104),h=a(81931),x=a(83386),g=a(72052),v=a(73103),y=a(35475),j=a(9180),w=a(29908),N=a(3565),S=a(98595),k=a(80045),D=a(75357),A=a(23519),C=a(67694),I=a(9255),L=a(70579);const E=e=>{let{closeAppointmentModal:t,appointmentModal:a}=e;const r=(0,v.wA)(),[l,i]=(0,o.useState)([]),[c,d]=(0,o.useState)([]),[u,m]=(0,o.useState)(""),[f,b]=(0,o.useState)("");(0,o.useEffect)(()=>{a&&a.data&&(async()=>
207{if(a.data.centerCode){const e=await C.m.getWaqtakAutherization({refrenceNumber:a.data.refrenceNumber}),t=await C.m.getServiceDates({refrenceNumber:a.data.refrenceNumber,processDefinitionKey:a.data.processDefinitionKey,access_token:e});i(t.data||[])}else{const e=await C.m.getValidSlotDates({refrenceNumber:a.data.refrenceNumber,deptCode:a.data.deptCode});i(e.data||[])}})()},[a]);return(0,L.jsx)(x.l,{visible:a.show,style:{maxWidth:"500px",width:"100%",border:"solid 1px #036822"},onHide:()=>t(),closable:!1,resizable:!1,draggable:!1,header:!1,className:"status-modal",footer:(0,L.jsxs)("div",{className:"d-flex justify-content-center border-none",children:[(0,L.jsx)(n.A,{label:(0,s.t)("property.reserve"),icon:"",onClick:()=>(async()=>{try{if(a.data.centerCode){const e=await C.m.getWaqtakAutherization({refrenceNumber:a.data.refrenceNumber});await C.m.postAppointment({access_token:e,appointmentTime:f,refrenceNumber:a.data.refrenceNumber,processDefinitionKey:a.data.processDefinitionKey}),r((0,D.Te)((0,s.t)("property.reserveSaved"))),setTimeout(()=>{r((0,D.Te)(""))},3e3),t()}else await C.m.bookSelectedSlot({refrenceNumber:a.data.refrenceNumber,deptCode:a.data.deptCode,selectedDate:u,startSlot:f}),r((0,D.Te)((0,s.t)("property.reserveSaved"))),setTimeout(()=>{r((0,D.Te)(""))},3e3),t()}catch(e){console.log(e)}})(),className:"action-btn p-button-text py-2 h-100 fm-kufi-regular bg-success text-white danger-button-dialog",disabled:!f,children:(0,L.jsx)("span",{children:(0,s.t)("property.reserve")})}),(0,L.jsx)(n.A,{label:(0,s.t)("common.close"),icon:"",onClick:()=>t(),className:"action-btn p-button-text py-2 h-100 fm-kufi-regular bg-danger text-white danger-button-dialog",children:(0,L.jsx)("span",{children:(0,s.t)("common.close")})})]}),children:(0,L.jsxs)("div",{className:"d-flex flex-column justify-content-center w-100",children:[(0,L.jsx)(I.A,{title:(0,s.t)("property.chooseDay"),required:!0,name:"chooseDay",type:"select",value:u,onChange:e=>{(async e=>{if(m(e),b(""),a.data.centerCode){const t=await C.m.getWaqtakAutherization({refrenceNumber:a.data.refrenceNumber}),r=await C.m.getServiceTimeSlots({access_token:t,appointmentDate:e,refrenceNumber:a.data.refrenceNumber,processDefinitionKey:a.data.processDefinitionKey});d(r.data||[])}else{const t=await C.m.getStartSlotsForDate({refrenceNumber:a.data.refrenceNumber,deptCode:a.data.deptCode,selectedDate:e});d(t.data||[])}})(e.target.value)},options:l.map(e=>({label:p()(e).format("YYYY/MM/DD"),value:e})),optionLabel:"label",optionValue:"value",fullWidth:!0}),(0,L.jsx)(I.A,{title:(0,s.t)("property.chooseHour"),required:!0,name:"chooseHour",type:"select",value:f,onChange:e=>{b(e.target.value)},options:c.map(e=>{let t;return t="string"===typeof e&&/^\d{1,2}:\d{2}$/.test(e)?p()(e,"HH:mm"):p()(e),{label:t.format("hh:mm A"),value:e}}),optionLabel:"label",optionValue:"value",fullWidth:!0,disabled:!u})]})})};var O=a(26081),q=a(87668),P=a(72018),R=a(56091);function T(e){let{visible:t,onHide:a,onSubmit:r,rowData:n}=e;const[l,i]=(0,o.useState)([{id:1,file:null}]),[c,d]=(0,o.useState)(!1),u=()=>{i([{id:1,file:null}]),a()},p=l.some(e=>e.file);return(0,L.jsx)(O.A,{closable:!0,centered:!0,open:t,footer:null,onCancel:u,className:"view-menu container",style:{borderRadius:"20px",textAlign:"right"},width:600,children:(0,L.jsx)(R.A,{children:(0,L.jsxs)("div",{className:"px-3",children:[(0,L.jsx)("h6",{className:"text-center text-underline mb-3",children:null===n||void 0===n?void 0:n.refrenceNumber}),(0,L.jsx)("p",{className:"text-center mb-4 fm-kufi-regular",children:(0,s.t)("common.attachRequiredFiles")}),(0,L.jsxs)("div",{className:"mb-4",children:[l.map((e,t)=>(0,L.jsxs)("div",{className:"mb-3",children:[(0,L.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-2",children:[(0,L.jsxs)("label",{className:"block text-xs fm-kufi-regular text-form-label",children:[(0,s.t)("common.file")," ",t+1,(0,L.jsx)("span",{className:"text-danger",children:"*"})]}),(0,L.jsx)("div",{className:"d-flex gap-2",children:l.length>1&&(0,L.jsx)(P.$,{type:"button",className:"action-btn text-xs bg-danger text-white fm-kufi-regular",style:{padding:"4px 12px",height:"auto",border:"none"},onClick:()=>{return t=e.id,void(l.length>1&&i(l.filter(e=>e.id!==t)));var t},children:(0,L.jsx)("i",{className:"pi pi-trash",style:{fontSize:"12px"}})})})]}
207),(0,L.jsx)(q.A,{name:`file_${e.id}`,uploadLabel:(0,s.t)("realtySelling.uploadFile"),onUploadFile:t=>{((e,t)=>{i(l.map(a=>a.id===e?{...a,file:t}:a))})(e.id,t)},uploadedImage:e.file,allowAllFile:!0})]},e.id)),(0,L.jsx)("div",{className:"d-flex justify-content-start mb-3",children:(0,L.jsxs)(P.$,{type:"button",onClick:()=>{i([...l,{id:Date.now(),file:null}])},className:"action-btn text-xs text-white fm-kufi-regular",style:{padding:"4px 12px",height:"auto",border:"none",backgroundColor:"#286c4d"},children:[(0,L.jsx)("i",{className:"pi pi-plus",style:{fontSize:"12px",marginLeft:"4px"}}),(0,L.jsx)("span",{style:{fontSize:"12px"},children:(0,s.t)("common.addNewFile")})]})})]}),(0,L.jsxs)("div",{className:"d-flex flex-column gap-2",children:[(0,L.jsx)(P.$,{onClick:async()=>{const e=l.filter(e=>e.file).map((e,t)=>({name:`\u0645\u0644\u0641 ${t+1}`,file:null,arrachmentStr:e.file,key:`file_${t+1}`}));if(0!==e.length){d(!0);try{await r(e),i([{id:1,file:null}])}catch(t){console.error("Error submitting files:",t)}finally{d(!1)}}},className:"action-btn submit-btn col-12 my-2 buttonWidth text-white fm-kufi-regular d-flex justify-content-center",disabled:!p||c,loading:c,children:(0,s.t)("common.submit")}),(0,L.jsx)(P.$,{onClick:u,disabled:c,className:"col-12 main-button buttonWidth d-flex justify-content-center fm-kufi-regular",style:{backgroundColor:"transparent",border:"1px solid #286c4d",color:"#286c4d"},children:(0,s.t)("common.close")})]})]})})})}var _=a(27932);function F(e){let{row:t,setRow:a,sendObjection:r,sendAcception:l,cancelInstance:i}=e;const[c,d]=(0,o.useState)(null);return(0,L.jsxs)(O.A,{closable:!0,centered:!0,visible:!0,footer:null,onCancel:()=>a({}),className:"view-menu container",style:{borderRadius:"20px",textAlign:"right"},children:[(0,L.jsx)("h6",{className:"text-center text-underline",children:t.refrenceNumber}),(0,L.jsx)("p",{className:"text-center text-success",children:t.status}),(0,L.jsxs)("h6",{className:"d-flex justify-content-center my-4",children:[(0,L.jsx)("div",{className:"mx-2",children:"\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0633\u0648\u0645"===t.status?(0,s.t)("\u0627\u0644\u0631\u0633\u0648\u0645 \u0627\u0644\u0645\u0642\u0631\u0631\u0629 \u0628\u0639\u062f \u0642\u0628\u0648\u0644 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636"):(0,s.t)("\u0627\u0644\u0631\u0633\u0648\u0645 \u0627\u0644\u0645\u0642\u0631\u0631\u0629")}),(0,L.jsx)("div",{children:`${t.price} \u062f\u064a\u0646\u0627\u0631`})]}),(0,L.jsxs)("div",{className:"w-100 d-block justify-content-center",children:["string"===typeof c?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_.Z,{className:"w-100",rows:2,cols:40,placeholder:"\u0633\u0628\u0628 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636",value:c,onChange:e=>d(e.target.value)}),(0,L.jsx)("p",{className:"text-danger text-xs",children:"\u0633\u062a\u0633\u062a\u063a\u0631\u0642 \u0645\u0639\u0627\u0644\u062c\u0629 \u0637\u0644\u0628 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0645\u062f\u0629 10 - 30 \u064a\u0648\u0645\u0627\u064b"})]}):(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(n.A,{onClick:()=>l(),className:"action-btn col-12 my-2 main-button buttonWidth bg-success text-white",children:(0,s.t)("\u0645\u0648\u0627\u0641\u0642 \u0639\u0644\u0649 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u0627\u0633\u062a\u0643\u0645\u0627\u0644 \u0637\u0644\u0628 \u0627\u0644\u0628\u064a\u0639")})}),"\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0633\u0648\u0645"===t.status||"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0627\u0644\u0631\u0633\u0648\u0645"===t.status?"":t.price&&"\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0633\u0648\u0645"!==t.status&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(n.A,{onClick:c?()=>r({object:c,setObject:d}):()=>d(""),disabled:"string"===typeof c&&!(null!==c&&void 0!==c&&c.length),className:`action-btn col-12 my-2 main-button buttonWidth ${"string"!==typeof c||null!==c&&void 0!==c&&c.length?"bg-danger":"bg-secondary"} text-white`,children:(0,s.t)("\u062a\u0642\u062f\u064a\u0645 \u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0631\u0633\u0648\u0645 \u0637\u0644\u0628 \u0627\u0644\u0628\u064a\u0639")})}),(0,L.jsx)(n.A,{onClick:()=>i(),className:"action-btn col-12 my-2 main-button buttonWidth bg-danger text-white",children:"\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0633\u0648\u0645"===t.status||"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0627\u0644\u0631\u0633\u0648\u0645"===t.status?(0,s.t)("\u0631\u0641\u0636 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u0625\u0644\u063a\u0627\u0621 \u0637\u0644\u0628 \u0627\u0644\u0628\u064a\u0639"):(0,s.t)("\u0625\u0644\u063a\u0627\u0621 \u0637\u0644\u0628 \u0627\u0644\u0628\u064a\u0639")}),(0,L.jsx)(n.A,{onClick:()=>a({}),className:"back-btn col-12 my-2 main-button buttonWidth ",children:(0,s.t)("common.close")})]})]})}function W(e){let{data:t,setData:a,reason:r,reasonLabel:l}=e;const o=(null===t||void 0===t?void 0:t.Attachments)||(null===t||void 0===t?void 0:t.attachments),i=Array.isArray(o)?o:[o];
207return(0,L.jsxs)(O.A,{closable:!0,centered:!0,visible:r,footer:null,onCancel:()=>a({}),className:"view-menu container",style:{borderRadius:"20px",textAlign:"right"},children:[(0,L.jsx)("h6",{className:"text-center text-underline",children:null===t||void 0===t?void 0:t.refrenceNumber}),(0,L.jsx)("p",{className:"text-center text-danger",children:null===t||void 0===t?void 0:t.status}),(0,L.jsx)("table",{className:"table table-borderless",children:(0,L.jsx)("tbody",{children:(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:l||(0,s.t)("property.reason")}),(0,L.jsx)("td",{style:{wordBreak:"break-all"},children:r})]})})}),"DLS7015"===(null===t||void 0===t?void 0:t.serviceCode)&&i.length>0&&(0,L.jsxs)("div",{className:"mb-4",children:[(0,L.jsx)("h6",{className:"text-center mb-3",children:(0,s.t)("governmentServices.attchments")}),(0,L.jsx)("div",{className:"d-flex flex-wrap justify-content-center gap-3",children:i.map((e,t)=>(0,L.jsx)("div",{style:{width:"100%",maxWidth:"200px"},children:(0,L.jsx)(q.A,{allowAllFile:!0,uploadedImage:e,disabled:!0,showDownload:!0,onUploadFile:()=>{}})},t))})]}),(0,L.jsx)("div",{className:"d-flex justify-content-center",children:(0,L.jsx)(n.A,{onClick:()=>a({}),className:"action-btn col-lg-4 col-xs-12 main-button buttonWidth bg-success text-white",children:(0,s.t)("common.close")})})]})}const z=["DLS4008","DLS4009","DLS4010","DLS4011","DLS4012","DLS4013","DLS4014","DLS4015","DLS4016","DLS4017","DLS1032","DLS7015"],M=["DLS1001","DLS1029","DLS1031","DLS1030","DLS1008","DLS1034","DLS1006","DLS1025"];function H(){const[e,t]=(0,o.useState)([]),[a,l]=(0,o.useState)([]),[i,c]=(0,o.useState)(0),[u,I]=(0,o.useState)(0),[O,q]=(0,o.useState)(20),[P,R]=(0,o.useState)(!1),[_,H]=(0,o.useState)(!1),[V,Z]=(0,o.useState)(!1),[$,B]=(0,o.useState)({show:!1,data:null}),[U,K]=(0,o.useState)({}),[Y,J]=(0,o.useState)({show:!1,data:null}),[Q,X]=(0,o.useState)({service:"all",status:"",refrenceNumber:"",serviceTitle:""}),G=(0,r.A)(`(min-width:${d.A.breakdowns.MOBILE_MAX_WIDTH}px)`),ee=(0,v.wA)(),te=["refrenceNumber","propertyData#reG_NO","status","taskType#ar","taskType#en","auditorRefuseReason","created","price","paymentNo","serviceCode","refuse_Reason","refuseReason","sms_DESC","acknowledgmentAtServiceCenter","centerCode","deptCode","hasAppointment","HasAppointment","headReject","auditorReject","executiveReject","requestCompleted","Attachments","attachments"],[ae,re]=(0,o.useState)(null),[ne,se]=(0,o.useState)(""),le=()=>{oe()},oe=()=>{re({global:{value:null,matchMode:m.Rn.CONTAINS}}),se("")},ie=(n.A,e=>e?p()(e).format("DD-MM-YYYY | hh:mm a"):"-"),{userInfo:ce}=(0,v.d4)(e=>e),de=async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===Q||void 0===Q?void 0:Q.status,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null===Q||void 0===Q?void 0:Q.refrenceNumber,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null===Q||void 0===Q?void 0:Q.serviceTitle;console.log("getData");try{const l=await(0,A._BP)(ce.nationalId,te,e,r,n,s),o=await(0,A.PQy)(ce.nationalId,r,n,s);if(c(o.data.count),q(o.data.pageSize),l.data){const e=JSON.parse(JSON.stringify(l)).data;t(e)}else t([]);I(a)}catch(l){console.error("Error fetching data:",l)}};(0,o.useEffect)(()=>{(null!==Q&&void 0!==Q&&Q.refrenceNumber||null!==Q&&void 0!==Q&&Q.serviceTitle||null!==Q&&void 0!==Q&&Q.status)&&de(1,0,null===Q||void 0===Q?void 0:Q.status,null===Q||void 0===Q?void 0:Q.refrenceNumber,null===Q||void 0===Q?void 0:Q.serviceTitle,1)},[null===Q||void 0===Q?void 0:Q.refrenceNumber,null===Q||void 0===Q?void 0:Q.serviceTitle,null===Q||void 0===Q?void 0:Q.status]);(0,o.useEffect)(()=>{de(1)},[]);(0,o.useLayoutEffect)(()=>{(async()=>{const t=[],a=e.sort((e,t)=>new Date(t.lstVariables.created)-new Date(e.lstVariables.created));for(const e of a){e.lstVariables.created=ie(e.lstVariables.created),e.lstVariables.id=e.currentProcessInstance.id,e.lstVariables.completeStatus=e.currentProcessInstance.state,e.lstVariables.processDefinitionKey=e.currentProcessInstance.processDefinitionKey;try{M.includes(e.lstVariables.serviceCode)&&(await C.m.checkRequestPaid({refrenceNumber:e.lstVariables.refrenceNumber,hasCenterCode:Boolean(e.lstVariables.centerCode)})).data&&!Boolean(e.hasAppointment||e.HasAppointment)&&(e.lstVariables.showBookAppointmentBtn=!0)}catch(r){console.error("Error checking request paid:",r)}e.lstAttachments&&e.lstAttachments.length>0&&(e.lstVariables.Attachments=e.lstAttachments.map(e=>e.arrachmentStr)),t.push(e.lstVariables)}l(t)})(),oe()},[e]);const ue=[{field:"refrenceNumber",header:(0,s.t)("property.refNum")},{field:"created",header:(0,s.t)("property.date")},{field:"ar"===k.A.language?"taskType#ar":"taskType#en",header:(0,s.t)("property.taskType")},{field:"status",header:(0,s.t)("property.status"),body:e=>(0,L.jsx)("span",{className:""+("\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"===e.status||"DLS7013"===e.serviceCode?"":"text-decoration-underline cursor-pointer"),style:{color:"#1D9ADA"},onClick:()=>{"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"!==e.status&&"DLS7013"!==e.serviceCode&&(Z(!0),K(e))},children:e.status})},{field:"actions",header:""}],pe=ue.filter(e=>"actions"!==e.field).map((e,t)=>{let{field:a,header:r,...n}=e;return(0,L.jsx)(f.V,{field:a,header:r,style:{width:"20%"},...n},a)}),me=e=>{(e=>{e.id&&(0,A.FbW)(e.id).then(()=>{ee((0,D.Te)((0,s.t)("quickServices.applicationCanceled",{value:e.refrenceNumber}))),de(1)})})(e)},fe=()=>{},be=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,b.Z)({message:(0,s.t)("dialog.sureToRemove"),accept:()=>t?void(0,A.pp9)({..._,status:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0637\u0644\u0628",action:"\u062a\u0645 \u0627\u0644\u0625\u0644\u063a\u0627\u0621",serviceTitle:"\u0627\u0644\u0628\u064a\u0639"}).then(e=>{ee((0,D.Te)((0,s.t)("\u062a\u0645 \u0628\u0646\u062c\u0627\u062d \u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628 \u0627\u0644\u0625\u0644\u063a\u0627\u0621 \u0644\u0644\u0645\u0639\u0627\u0645\u0644\u0629"),(0,s.t)("common.yourReference",{refrenceNumber:_.refrenceNumber}))),de(1)}):me(e),reject:fe,acceptLabel:(0,s.t)("dialog.yes"),rejectLabel:(0,s.t)("dialog.no"),draggable:!1,style:{fontSize:"13px",fontFamilt:"kufi-regular",textAlign:"center"},acceptClassName:"action-btn text-xs col-md-2 col-xs-4 submit-btn fm-kufi-regular text-sm",rejectClassName:"action-btn text-xs col-md-2 col-xs-4 back-btn fm-kufi-regular text-sm",className:"text-sm fm-kufi-regular confirm-dialog-center"})},he=e=>{const{status:t,price:a}=e;return"\u062a\u0645 \u0642\u0628\u0648\u0644 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u062f\u0641\u0639"===t||"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0637\u0644\u0628"===t||"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0637\u0644\u0628"===t||"\u062a\u0645 \u0642\u0628\u0648\u0644 \u0627\u0644\u0637\u0644\u0628"===t?(0,L.jsx)(n.A,{className:"action-btn text-xs backcolor",style:{width:"135px"},disabled:!0,children:(0,s.t)("property.delete")}):"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0627\u0644\u0631\u0633\u0648\u0645"===t||"\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0633\u0648\u0645"===t?(0,L.jsx)(n.A,{className:"action-btn text-xs main-button buttonWidth",style:{width:"135px"},onClick:()=>H(e),children:(0,s.t)("property.response")}):"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"===t?(0,L.jsx)(n.A,{className:"action-btn text-xs main-button buttonWidth",style:{width:"135px"},onClick:()=>R(e),children:(0,s.t)("property.reason")}):a&&"\u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0642\u064a\u062f \u0627\u0644\u062f\u0631\u0627\u0633\u0629"!==t?(0,L.jsx)(n.A,{className:"action-btn text-xs main-button buttonWidth",style:{width:"135px"},onClick:()=>H(e),children:(0,s.t)("property.response")}):(0,L.jsx)(n.A,{className:"action-btn text-xs main-button buttonWidth bg-danger",style:{width:"135px"},onClick:()=>be(e),children:(0,s.t)("property.delete")})},xe=e=>{switch(e){case"DLS4008":return"/government-services/dls/efraz/partner-apartments/edit";case"DLS4009":return"/government-services/dls/efraz/partner-lands/edit";case"DLS4010":return"/government-services/dls/efraz/split-apartments/edit";case"DLS4011":return"/government-services/dls/efraz/split-lands/edit";case"DLS4012":return"/government-services/dls/efraz/tawheed-Apartments/edit";case"DLS4013":return"/government-services/dls/efraz/tawheed-lands/edit";case"DLS4014":return"/government-services/dls/efraz/selling-apartments/edit";case"DLS4015":return"/government-services/dls/efraz/selling-lands/edit";case"DLS4016":return"/government-services/dls/efraz/judicial-apartments/edit";case"DLS4017":return"/government-services/dls/efraz/judicial-lands/edit";case"DLS1032":return"/government-services/dls/ownership-transfer/agency-accreditation/edit";case"DLS7015":return"/government-services/dls/ownership-transfer/correct-servey-info/edit"}},[ge,ve]=(0,o.useState)(""),[ye,je]=(0,o.useState)([]),[we,Ne]=(0,o.useState)([]),Se=(0,o.useRef)(null);(0,o.useEffect)(()=>{(async()=>{try{const e=await(0,A.z_p)(),t=await(0,A.W8n)(),a=e.data.map(e=>({label:e.statusTitle,value:e.statusTitle}));a.unshift({label:(0,s.t)("common.all"),value:""}),Ne(a);const r=t.data.map(e=>({label:e.serviceTitle,value:e.serviceCode}));r.unshift({label:(0,s.t)("common.all"),value:""}),je(r)}catch(e){console.error("Error fetching data:",e)}})()},[]);const ke=(e,t)=>{const a=e.target.value;"refrenceNumber"===t?(ve(a),Se.current&&clearTimeout(Se.current),Se.current=setTimeout(()=>{X(e=>({...e,[t]:a}))},600)):X(e=>({...e,[t]:a}))},De=()=>{J({data:null,show:!1})};return(0,L.jsxs)("div",{className:"card",children:[(0,L.jsx)(b.T,{}),(0,L.jsxs)(h.b,{paginator:!0,pageLinkSize:G?5:2,stripedRows:!0,value:a,responsiveLayout:"scroll",className:"text-sm realty-table fm-kufi-regular",emptyMessage:(0,s.t)("common.noResultsFound"),filters:ae,globalFilterFields:["refrenceNumber","created","taskType#ar","status"],headerColumnGroup:(()=>{const e=[{key:"refrenceNumber",component:(0,L.jsxs)("span",{className:"w-100 "+("ar"===k.A.language?"p-input-icon-left":"p-input-icon-right"),children:[(0,L.jsx)("i",{className:"pi pi-search"}),(0,L.jsx)(g.S,{value:ge,onChange:e=>ke(e,"refrenceNumber"),placeholder:(0,s.t)("common.referenceNumberSearch"),name:"search",className:"text-xs w-100 fm-kufi-regular py-2"})]})},{key:"ar"===k.A.language?"taskType#ar":"taskType#en",component:(0,L.jsx)(N.A,{options:ye,onChange:e=>ke(e,"serviceTitle"),value:null===Q||void 0===Q?void 0:Q.serviceTitle})},{key:"status",component:(0,L.jsx)(N.A,{options:we,onChange:e=>ke(e,"status"),value:null===Q||void 0===Q?void 0:Q.status})}],t=(0,L.jsxs)(j.o,{children:[(0,L.jsx)(w.f,{children:ue.map((t,a)=>{let{field:r}=t;const n=e.find(e=>e.key===r);return(0,L.jsx)(f.V,{align:"center",header:null!==n&&void 0!==n&&n.key?n.component:""},a)})}),(0,L.jsx)(w.f,{children:ue.map((e,t)=>{let{header:a,field:r}=e;return(0,L.jsx)(f.V,{header:a,field:r,align:"center"},t)})})]});return t})(),lazy:!0,rows:O,first:u,totalRecords:i,onPage:e=>{const{page:a,first:r,rows:n}=e;I(r),q(n),(0,A._BP)(ce.nationalId,te,a+1,null===Q||void 0===Q?void 0:Q.status,null===Q||void 0===Q?void 0:Q.refrenceNumber,null===Q||void 0===Q?void 0:Q.serviceTitle).then(e=>{if(e.data){const a=JSON.parse(JSON.stringify(e)).data;t(a)}else t([])}).catch(e=>{console.error("Error fetching data:",e)})},children:[pe,(0,L.jsx)(f.V,{bodyClassName:"d-flex gap-2",header:"",body:e=>(0,L.jsxs)(L.Fragment,{children:[e.sms_DESC&&(0,L.jsx)("a",{href:e.sms_DESC,target:"_blank",rel:"noopener noreferrer",children:(0,L.jsx)(n.A,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success",style:{width:"135px"},children:(0,s.t)("property.downloadCert")})}),e.showBookAppointmentBtn&&(0,L.jsx)(n.A,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success",style:{width:"135px"},onClick:()=>(async e=>{B({data:e,show:!0})})(e),children:(0,s.t)("property.requestAppointment")}),"\u0645\u0633\u0648\u062f\u0629"===e.status?null:(0,L.jsx)(n.A,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success",style:{width:"135px"},onClick:()=>(e=>{(0,A.fKk)({processInstanceId:e.id}).then(t=>{const a=`${e["taskType#ar"]}_${e.refrenceNumber}`;(0,S.pF)(a,t.data)})})(e),children:(0,s.t)("property.download")}),"true"===e.requestCompleted&&"DLS7015"===e.serviceCode&&(0,L.jsx)(n.A,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success",style:{width:"135px"},onClick:()=>(e=>{(0,A.El1)(e.refrenceNumber).then(t=>{const a=`Certificate_${e.refrenceNumber}`;(0,S.pF)(a,t.data)})})(e),children:(0,s.t)("property.downloadCert")}),z.includes(e.serviceCode)&&"DLS7015"===e.serviceCode&&("true"===e.headReject||"true"===e.auditorReject||"true"===e.executiveReject)&&(0,L.jsx)(n.A,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success",style:{width:"135px"},onClick:()=>J({show:!0,data:e}),children:(0,s.t)("common.edit")}
207),z.includes(e.serviceCode)&&"DLS7015"!==e.serviceCode&&("\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"===e.status||"\u0645\u0633\u0648\u062f\u0629"===e.status)&&(0,L.jsx)(y.N_,{className:"action-btn text-xs mx-1 text-sm main-button buttonWidth bg-success d-flex align-items-center justify-content-center",style:{width:"135px"},to:{pathname:xe(e.serviceCode)},state:{refrenceNumber:e.refrenceNumber},children:(0,s.t)("common.edit")}),he(e),(e.refuse_Reason||e.refuseReason)&&(0,L.jsx)(n.A,{className:"action-btn text-xs main-button buttonWidth",onClick:()=>R(e),style:{width:"135px"},children:(0,s.t)("property.reason")})]})})]}),(null===P||void 0===P?void 0:P.auditorRefuseReason)&&(0,L.jsx)(W,{data:P,setData:R,reason:null===P||void 0===P?void 0:P.auditorRefuseReason}),((null===P||void 0===P?void 0:P.refuse_Reason)||(null===P||void 0===P?void 0:P.refuseReason))&&(0,L.jsx)(W,{data:P,setData:R,reason:(null===P||void 0===P?void 0:P.refuse_Reason)||(null===P||void 0===P?void 0:P.refuseReason)}),(null===_||void 0===_?void 0:_.status)&&(0,L.jsx)(F,{row:_,setRow:H,sendObjection:e=>{let{object:t,setObject:a}=e;(0,A.pp9)({..._,status:"\u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0642\u064a\u062f \u0627\u0644\u062f\u0631\u0627\u0633\u0629",action:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636",serviceTitle:"\u0627\u0644\u0628\u064a\u0639",objectionReason:t}).then(e=>{ee((0,D.Te)((0,s.t)("\u062a\u0645 \u0628\u0646\u062c\u0627\u062d \u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0631\u0633\u0648\u0645 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0629"),(0,s.t)("common.yourReference",{refrenceNumber:_.refrenceNumber}))),de(1),a(null),H({})})},sendAcception:()=>{(0,A.pp9)({..._,status:"\u062a\u0645 \u0642\u0628\u0648\u0644 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u062f\u0641\u0639",action:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0639\u0644\u0649 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u062f\u0641\u0639\u0647\u0627",serviceTitle:"\u0627\u0644\u0628\u064a\u0639"}).then(e=>{ee((0,D.Te)((0,s.t)("\u062a\u0645 \u0628\u0646\u062c\u0627\u062d \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u062e\u0637\u0627\u0631 \u0628\u0642\u0628\u0648\u0644 \u0631\u0633\u0648\u0645 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0629"),(0,s.t)("common.yourReference",{refrenceNumber:_.refrenceNumber}))),de(1),H({})})},cancelInstance:()=>{be({},!0),H({})}}),(0,L.jsx)(x.l,{visible:V,style:{maxWidth:"500px",width:"100%",border:"solid 1px #036822"},onHide:()=>Z(!1),closable:!1,resizable:!1,draggable:!1,header:!1,className:"status-modal",footer:(0,L.jsx)("div",{className:"d-flex justify-content-center border-none",children:(0,L.jsx)(n.A,{label:(0,s.t)("common.close"),icon:"",onClick:()=>Z(!1),className:"action-btn p-button-text py-2 h-100 fm-kufi-regular bg-danger text-white danger-button-dialog",children:(0,L.jsx)("span",{children:(0,s.t)("common.close")})})}),children:(0,L.jsx)("div",{className:"d-flex justify-content-center",children:(0,L.jsxs)("div",{className:"d-inline-block",children:[(0,L.jsxs)("p",{className:"text-md fm-kufi-regular",children:[(0,L.jsxs)("span",{className:"fm-kufi-bold",children:[(0,s.t)("\u0631\u0633\u0648\u0645 \u0627\u0644\u0637\u0644\u0628"),": "]}),(e=>"\u0642\u064a\u062f \u0627\u0644\u062f\u0631\u0627\u0633\u0629"===e.status?"\u0642\u064a\u062f \u0627\u0644\u062d\u0633\u0627\u0628":"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"===e.status||"\u0645\u0633\u0648\u062f\u0629"===e.status?"-":e.price||" \u0642\u064a\u062f \u0627\u0644\u062d\u0633\u0627\u0628")(U)]}),(0,L.jsxs)("p",{className:"text-md fm-kufi-regular",children:[(0,L.jsxs)("span",{className:"fm-kufi-bold",children:[(0,s.t)("\u0631\u0642\u0645 \u0627\u0644\u062f\u0641\u0639 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a"),":"," "]}),U.paymentNo||(e=>"\u062a\u0645 \u0631\u0641\u0636 \u0627\u0644\u0637\u0644\u0628"===e.status||"\u0645\u0633\u0648\u062f\u0629"===e.status?"-":"\u0642\u064a\u062f \u0627\u0644\u0625\u0635\u062f\u0627\u0631")(U)]})]})})}),(0,L.jsx)(E,{closeAppointmentModal:()=>{B({data:null,show:!1})},appointmentModal:$}),(0,L.jsx)(T,{visible:Y.show,onHide:De,onSubmit:async e=>{console.log({ProcessInstanceId:Y.data.id,Attachments:e});try{await(0,A.qm8)({ProcessInstanceId:Y.data.id,Attachments:e}),ee((0,D.Te)((0,s.t)("common.filesSubmittedSuccessfully"),(0,s.t)("common.yourReference",{refrenceNumber:Y.data.refrenceNumber}))),De(),de(1)}catch(t){console.error("Error submitting files:",t)}},rowData:Y.data})]})}var V=a(4126);function Z(){const[e,t]=(0,o.useState)([]),[a,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(""),[p,m]=(0,o.useState)(!0),[b,x]=(0,o.useState)(0),[v,y]=(0,o.useState)(0),[j,w]=(0,o.useState)(20),[N,k]=(0,o.useState)(!1),D=(0,i.Zp)(),A=(0,r.A)(`(min-width:${d.A.breakdowns.MOBILE_MAX_WIDTH}px)`),C=()=>
207{l(""),u("")},I=(0,L.jsxs)("div",{className:"d-flex justify-content-between flex-wrap",children:[(0,L.jsxs)("div",{className:"d-flex gap-2",children:[(0,L.jsxs)("span",{className:"ar"===s.Ay.language?"p-input-icon-left":"p-input-icon-right",children:[(0,L.jsx)("i",{className:"pi pi-search"}),(0,L.jsx)(g.S,{value:a,onChange:e=>l(e.target.value),placeholder:(0,s.t)("property.refNum"),name:"requestNumber",className:"text-xs w-100 fm-kufi-regular py-2"})]}),(0,L.jsxs)("span",{className:"ar"===s.Ay.language?"p-input-icon-left":"p-input-icon-right",children:[(0,L.jsx)("i",{className:"pi pi-search"}),(0,L.jsx)(g.S,{value:c,onChange:e=>u(e.target.value),placeholder:(0,s.t)("property.paymentId"),name:"efCode",className:"text-xs w-100 fm-kufi-regular py-2"})]})]}),(0,L.jsx)(n.A,{type:"button",label:"Clear",className:"p-button-outlined",onClick:C})]}),E=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return m(!0),(0,V.Dj)(e,r,n).then(e=>{let a=JSON.parse(JSON.stringify(e)).data;if(a.lstResult&&Array.isArray(a.lstResult)){x(a.allCount);const e=a.lstResult.map(e=>({...e,requestID:e.reQ_ID,creationDate:e.reQ_DATE,totalAmount:e.totaL_FEES,paymentOrderID:e.eF_CODE,serviceID:e.servicE_ID,requestStatusID:Number(e.reQ_STATUS_ID),referenceID:e.reQ_ID,regNo:e.reG_NO,serviceLabel:e.servicE_DESC,requestStatusLabel:e.statuS_DESC,refuse_reason:e.refuse_reason||e.refusE_REASON}));t(e.sort((e,t)=>new Date(t.creationDate)-new Date(e.creationDate)))}}).finally(()=>{m(!1)})};(0,o.useEffect)(()=>{const e=setTimeout(()=>{y(0),E(1,a,c)},500);return()=>clearTimeout(e)},[a,c,s.Ay.language]);const O=e=>{(0,V.xc)(e.referenceID,e.regNo).then(e=>{var t;"string"===typeof(t=e.data)?(0,S.pF)("file",t):t.map(e=>{(0,S.pF)("file",(0,S.Ms)(e.fileContents))})})},q=[{field:"requestID",header:(0,s.t)("property.refNum")},{field:"creationDate",header:(0,s.t)("property.date"),body:e=>(0,S.Yq)(e.creationDate)},{field:"serviceLabel",header:(0,s.t)("property.serviceType")},{field:"totalAmount",header:(0,s.t)("property.totalExpense")},{field:"paymentOrderID",header:(0,s.t)("property.paymentId")},{field:"requestStatusLabel",header:(0,s.t)("property.status")}].map((e,t)=>(0,L.jsx)(f.V,{field:e.field,header:e.header,body:e.body||null},e.field));return(0,L.jsxs)("div",{className:"card",children:[(0,L.jsxs)(h.b,{paginator:!0,stripedRows:!0,value:e,responsiveLayout:"scroll",className:"text-sm realty-table fm-kufi-regular",emptyMessage:(0,s.t)("common.noResultsFound"),pageLinkSize:A?5:2,header:I,loading:p,lazy:!0,rows:j,first:v,totalRecords:b,onPage:async e=>{const{page:t,first:r,rows:n}=e;y(r),w(n),await E(t+1,a,c)},children:[q,(0,L.jsx)(f.V,{header:"",body:e=>e.completeRequest?(0,L.jsx)(n.A,{className:"action-btn col-12 main-button buttonWidth",onClick:()=>{D(161===e.serviceID?"/government-services/dls/quick-services/registered-property-authorization/apply":"/government-services/dls/quick-services/change-statement/apply",{state:{requestID:e.requestID}})},children:(0,s.t)("quickServices.completeRequest")}):7===e.requestStatusID?(0,L.jsx)(n.A,{className:"action-btn col-12 main-button buttonWidth",onClick:()=>k(e),children:(0,s.t)("property.reasonOnly")}):(0,L.jsx)(n.A,{className:[2,3,10].includes(e.requestStatusID)?"action-btn col-12 main-button buttonWidth":"action-btn col-12 backcolor",disabled:![2,3,10].includes(e.requestStatusID),onClick:()=>O(e),children:(0,s.t)("property.print")})})]}),N&&N.requestID&&(0,L.jsx)(W,{data:{...N,refrenceNumber:N.requestID,status:N.requestStatusLabel},reasonLabel:(0,s.t)("property.reasonOnly"),setData:k,reason:N.refuse_reason||N.refusE_REASON})]})}function $(){const[e,t]=(0,o.useState)([]),[a,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(""),p=(0,i.Zp)(),b=(0,r.A)(`(min-width:${d.A.breakdowns.MOBILE_MAX_WIDTH}px)`),x=()=>{y()},v=e=>{const t=e.target.value;let r={...a};r.global?r.global.value=t:r.global={value:t},l(r),u(t)},y=()=>{l({global:{value:null,matchMode:m.Rn.CONTAINS}}),u("")},j=(0,L.jsxs)("div",{className:"flex justify-content-between",children:[(0,L.jsxs)("span",{className:"ar"===s.Ay.language?"p-input-icon-left":"p-input-icon-right",children:[(0,L.jsx)("i",{className:"pi pi-search"}),(0,L.jsx)(g.S,{value:c,onChange:v,placeholder:(0,s.t)("common.quickServiceSearch"),name:"search",className:"text-xs w-100 fm-kufi-regular py-2 pl-4"})]}),(0,L.jsx)(n.A,{type:"button",label:"Clear",className:"p-button-outlined",onClick:x})]}),w=(e,t)=>{let a="";return e.map(e=>{t===e.id&&(a=e.label)}),a};(0,o.useEffect)(()=>{(0,V.to)().then(e=>{const a=JSON.parse(JSON.stringify(e)).data;a.map(e=>
207(2===e.requestStatusID&&-1!==[7,6].indexOf(e.serviceID)?(e.requestStatusLabel=w((0,d.I)().requestStatusID,7),e.completeRequest=!0):e.requestStatusLabel=w((0,d.I)().requestStatusID,e.requestStatusID),e.serviceLabel=w((0,d.I)().serviceID,e.serviceID),e)),t(a.sort((e,t)=>new Date(t.creationDate)-new Date(e.creationDate))),y()})},[s.Ay.language]);const N=e=>{"string"===typeof e?(0,S.pF)("file",e):e.map(e=>{(0,S.pF)("file",(0,S.Ms)(e.fileContents))})},k=[{field:"requestID",header:(0,s.t)("property.refNum")},{field:"creationDate",header:(0,s.t)("property.date"),body:e=>(0,S.Yq)(e.creationDate)},{field:"serviceLabel",header:(0,s.t)("property.serviceType")},{field:"totalAmount",header:(0,s.t)("property.totalExpense")},{field:"paymentOrderID",header:(0,s.t)("property.paymentId")},{field:"requestStatusLabel",header:(0,s.t)("property.status")}].map((e,t)=>(0,L.jsx)(f.V,{field:e.field,header:e.header,body:e.body||null},e.field));return(0,L.jsx)("div",{className:"card",children:(0,L.jsxs)(h.b,{paginator:!0,rows:7,stripedRows:!0,value:e,responsiveLayout:"scroll",className:"text-sm realty-table fm-kufi-regular",emptyMessage:(0,s.t)("common.noResultsFound"),filters:a,pageLinkSize:b?5:2,globalFilterFields:["requestID","creationDate","serviceLabel","totalAmount","paymentOrderID","requestStatusLabel"],header:j,children:[k,(0,L.jsx)(f.V,{header:"",body:e=>e.completeRequest?(0,L.jsx)(n.A,{className:"action-btn col-12 main-button buttonWidth",onClick:()=>{p(6===e.serviceID?"/government-services/dls/quick-services/registered-property-authorization/apply":"/government-services/dls/quick-services/change-statement/apply",{state:{requestID:e.requestID}})},children:(0,s.t)("quickServices.completeRequest")}):(0,L.jsx)(n.A,{className:[2,5].includes(e.requestStatusID)?"action-btn col-12 main-button buttonWidth":"action-btn col-12 backcolor",disabled:![2,5].includes(e.requestStatusID),onClick:()=>(e=>{switch(e.serviceID){case 1:(0,V.EP)(e.referenceID).then(e=>{N(e.data)});break;case 2:(0,V.Zy)(e.referenceID,e.regNo).then(e=>{N(e.data)});break;case 3:(0,V._W)(e.requestID,e.regNo).then(e=>{N(e.data)});break;case 6:(0,V.cg)(e.referenceID).then(e=>{N(e.data)});break;case 7:(0,V.tM)(e.referenceID).then(e=>{N(e.data)});break;case 8:(0,V.so)(e.referenceID).then(e=>{N(e.data)})}})(e),children:(0,s.t)("property.print")})})]})})}const B=a(57751).Ay.div`
208// .p-datatable-wrapper {
209//     border-radius: 10px;
210// }
211.card {
212    border: none;
213}
214.p-datatable .p-datatable-thead > tr > th {
215    background-color: #f8f9fa !important;
216    // background-color: white
217}
218
219.wrapper-div{
220    display: flex;
221    flex-direction: column;
222}
223.main-button{
224    align-self: center;
225    border-radius: 10px;
226    background-color: #286C4D;
227    color: white;
228    height: 45px;
229    text-decoration: none;
230}
231.p-datatable .p-datatable-tbody > tr > td {
232    text-align: center; 
233   border: 1px solid #dee2e6;
234   border-width: 0 0 1px 0;
235   padding: .8rem;
236   font-size:11px;
237}
238.p-datatable .p-datatable-thead > tr > th {
239    text-align: right;
240    font-weight: 700;
241    color: #343a40;
242  }
243.backcolor{
244    background-color:#f5f5f5 ;
245    align-self: center;
246    border-radius: 10px;
247    color: white;
248    height: 30px;
249}
250.buttonWidth{
251    height: 30px;
252}
253.p-datatable-wrapper {
254    // border-radius: 0 0 20px 20px;
255    padding: 0 !important;
256    border-radius: 20px 20px 20px 20px;
257    border-color: var(--main-color)
258}
259p-column-header-content. .p-column-title{
260    width: 100%;
261}
262.p-datatable-header{
263    border: 1px solid var(--main-color);
264    border-width: 1px;
265    border-radius: 20px 20px 0 0;
266    border-bottom: none;
267}
268`;function U(){const e=(0,i.Zp)(),[t,a]=(0,o.useState)("quickServices"),u=(0,r.A)(`(min-width:${d.A.breakdowns.MOBILE_MAX_WIDTH}px)`);return(0,L.jsx)(B,{children:(0,L.jsxs)("div",{className:"wrapper-div",children:[(0,L.jsx)("h4",{className:"text-center mb-5 fm-kufi-bold text-lg",children:(0,s.t)("property.requests")}),(0,L.jsxs)("div",{className:"d-flex flex-column flex-sm-row justify-content-evenly mb-5",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)(l.a,{value:"quickServices",checked:"quickServices"===t,onChange:e=>a(e.value),name:"type"}),(0,L.jsxs)("label",{className:"fm-kufi-bold text-sm d-inline-flex align-items-center gap-2",children:[(0,s.t)("property.quickServices"),(0,L.jsx)(c.A,{children:(0,L.jsx)("i",{className:"pi pi-info-circle popovers text-info","data-pr-tooltip":(0,d.I)().services.filter(e=>"quick-services"===e.category&&!e.hide).map((e,t)=>`${t+1}- ${e.label}`).join(" \n ")})})]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(l.a,{value:"quickServicesOld",checked:"quickServicesOld"===t,onChange:e=>a(e.value),name:"type"}),(0,L.jsxs)("label",{className:"fm-kufi-bold text-sm d-inline-flex align-items-center gap-2",children:[(0,s.t)("property.quickServicesOld"),(0,L.jsx)(c.A,{children:(0,L.jsx)("i",{className:"pi pi-info-circle popovers text-info","data-pr-tooltip":(0,d.I)().services.filter(e=>"quick-services"===e.category&&!e.hide).map((e,t)=>`${t+1}- ${e.label}`).join(" \n ")})})]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(l.a,{value:"camundaServices",checked:"camundaServices"===t,onChange:e=>a(e.value),name:"type"}),(0,L.jsx)("label",{className:"fm-kufi-bold text-sm",children:(0,s.t)("property.camundaServices")})]})]}),"quickServices"===t&&(0,L.jsx)(Z,{}),"quickServicesOld"===t&&(0,L.jsx)($,{}),"camundaServices"===t&&(0,L.jsx)(H,{}),!u&&(0,L.jsx)(n.A,{onClick:()=>e("/"),className:"action-btn mt-4  main-button col-lg-2 col-sm-6",children:(0,s.t)("property.mainMenu")})]})})}},9180(e,t,a){a.d(t,{o:()=>r});var r=function(){};r.displayName="ColumnGroup",r.defaultProps={__TYPE:"ColumnGroup"}},81104(e,t,a){a.d(t,{T:()=>y,Z:()=>v});var r=a(65043),n=a(84052),s=a(72018),l=a(83386),o=a(2028),i=a(9988),c=a(48794),d=a(4504);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u.apply(this,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,s,l,o=[],i=!0,c=!1;try{if(s=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(r=s.call(a)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(d){c=!0,n=d}finally{try{if(!i&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function b(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}function h(e,t,a){return(t=b(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
268t%2?x(Object(a),!0).forEach(function(t){h(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=g(g({},e),{visible:void 0===e.visible||e.visible})).visible&&i.s.emit("confirm-dialog",e);return{show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.s.emit("confirm-dialog",g(g(g({},e),t),{visible:!0}))},hide:function(){i.s.emit("confirm-dialog",{visible:!1})}}},y=r.memo(r.forwardRef(function(e,t){var a=m(r.useState(e.visible),2),p=a[0],f=a[1],b=m(r.useState(!1),2),h=b[0],x=b[1],g=r.useRef(null),v=function(){return g.current||e},j=function(t){return(g.current||e)[t]},w=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return d.BF.getPropValue(j(e),a)},N=j("acceptLabel")||(0,n.WP)("accept"),S=j("rejectLabel")||(0,n.WP)("reject"),k=function(){w("accept"),C("accept")},D=function(){w("reject"),C("reject")},A=function(){f(!0)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cancel";f(!1),w("onHide",e)},I=function(t){if(t.tagKey===e.tagKey){var a=p!==t.visible;j("target")!==t.target&&!e.target?(C(),g.current=t,x(!0)):a&&(g.current=t,t.visible?A():C())}};r.useEffect(function(){e.visible?A():C()},[e.visible]),r.useEffect(function(){return e.target||e.message||i.s.on("confirm-dialog",I),function(){i.s.off("confirm-dialog",I)}},[e.target]),(0,o.w5)(function(){h&&A()},[h]),(0,o.l0)(function(){i.s.off("confirm-dialog",I)}),r.useImperativeHandle(t,function(){return{props:e,confirm:I}});var L=function(){var e=v(),t=(0,d.xW)("p-confirm-dialog",j("className")),a=d.BF.findDiffKeys(e,y.defaultProps),n=d.BF.getJSXElement(j("message"),e),o=d.Hj.getJSXIcon(j("icon"),{className:"p-confirm-dialog-icon"},{props:e}),i=function(){var e=(0,d.xW)("p-confirm-dialog-accept",j("acceptClassName")),t=(0,d.xW)("p-confirm-dialog-reject",{"p-button-text":!j("rejectClassName")},j("rejectClassName")),a=r.createElement(r.Fragment,null,r.createElement(s.$,{label:S,icon:j("rejectIcon"),className:t,onClick:D}),r.createElement(s.$,{label:N,icon:j("acceptIcon"),className:e,onClick:k,autoFocus:!0}));if(j("footer")){var n={accept:k,reject:D,acceptClassName:e,rejectClassName:t,acceptLabel:N,rejectLabel:S,element:a,props:v()};return d.BF.getJSXElement(j("footer"),n)}return a}();return r.createElement(l.l,u({visible:p},a,{className:t,footer:i,onHide:C,breakpoints:j("breakpoints")}),o,r.createElement("span",{className:"p-confirm-dialog-message"},n))}();return r.createElement(c.Z,{element:L,appendTo:j("appendTo")})}));y.displayName="ConfirmDialog",y.defaultProps={__TYPE:"ConfirmDialog",tagKey:void 0,visible:void 0,message:null,rejectLabel:null,acceptLabel:null,icon:null,rejectIcon:null,acceptIcon:null,rejectClassName:null,acceptClassName:null,className:null,appendTo:null,footer:null,breakpoints:null,onHide:null,accept:null,reject:null}},29908(e,t,a){a.d(t,{f:()=>l});var r=a(65043),n=a(4504);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s.apply(this,arguments)}var l=function e(t){var a=n.BF.findDiffKeys(t,e.defaultProps);return r.createElement("tr",s({className:t.className,style:t.style},a),t.children)};l.displayName="Row",l.defaultProps={__TYPE:"Row",style:null,className:null}}}]);
269//# sourceMappingURL=4193.cb358019.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.