1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2911],{71250:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/buyer/person/relationship/[person_one_id]/[person_two_id]/marriageCertificate",function(){return t(62277)}])},7706:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var o=t(47568),i=t(26042),r=t(828),a=t(10092),u=t(35944),s=t(15861),d=t(46901),l=t(86957),c=t(66970),p=t(76143),f=t(67324),v=t(85983),_=t(86917),m=t(64134),h=t(82518),y=t(47631),g=t(24305),b=t(87241),P=t(67294);function Z(e){var n,t,Z,C,w=(0,P.useState)([]),k=w[0],B=w[1],R=(0,P.useState)(!1),A=R[0],I=R[1],E=[(0,m.Z)(),(0,_.Z)()],S=E[0],O=E[1],F=(0,h.Z)(),U=(0,r.Z)((0,v.uf)((0,i.Z)({},(0,v.Wb)({onCompleted:function(){var e=(0,o.Z)((function(e){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,X(e[0].id)];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}()}))),2),N=U[0],j=U[1].loading,x=(0,r.Z)((0,y.oWz)(),2),D=x[0],T=x[1].loading,q=(0,P.useRef)(k),K=(0,r.Z)((0,y.xnp)(),2),W=K[0],$=K[1].loading,L=null!==(C=e.title)&&void 0!==C?C:S[e.documentType],X=function(){var n=(0,o.Z)((function(n){var t;return(0,a.__generator)(this,(function(o){switch(o.label){case 0:return[4,W({variables:{input:{id:null===(t=e.document)||void 0===t?void 0:t.id,document_name:L,document_type:e.documentType,file_id:n},on_conflict:{constraint:g.ZiC.DocumentPkey,update_columns:[g.C6b.DocumentName,g.C6b.DocumentType,g.C6b.UpdatedAt,g.C6b.FileId]}}})];case 1:return o.sent(),[2]}}))}));return function(e){return n.apply(this,arguments)}}();(0,P.useEffect)((function(){(null===e||void 0===e?void 0:e.onUploadingChange)&&e.onUploadingChange(j||$||T)}),[j,$,T]);var G=function(){var n=(0,o.Z)((function(n){var t,o,i,r,u,s,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return o=q.current,n.length>0&&(0,p.WV)(n,o)?(B(n),"application/pdf"===(i=n[0].file).type||i.type.startsWith("image/")?(I(!0),[4,N([{file:i,fileId:null===(r=e.document)||void 0===r||null===(u=r.file)||void 0===u?void 0:u.id}])]):[3,2]):[3,2];case 1:a.sent(),a.label=2;case 2:return 0===n.length&&(0,b.BX)(null===(t=e.document)||void 0===t?void 0:t.file)?(B(n),I(!0),[4,D({variables:{files:{id:null===(s=e.document)||void 0===s||null===(d=s.file)||void 0===d?void 0:d.id,filename:null,mime_type:null,url:null},on_conflict:{constraint:g.w4K.FilePkey,update_columns:[g.I9.Url,g.I9.Filename,g.I9.MimeType]}}})]):[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}();return(0,P.useEffect)((function(){e.onFileChange&&e.onFileChange(k)}),[k]),(0,P.useEffect)((function(){q.current=k}),[k]),(0,P.useEffect)((function(){var n;if(e.document&&(0,b.BX)(null===(n=e.document.file)||void 0===n?void 0:n.url)){var t,o=(null===(t=e.document.file)||void 0===t?void 0:t.url)?[e.document.file.url]:[];!A&&(0,p.WV)(o,k)&&B(o)}}),[e.document]),(0,u.BX)(u.HY,{children:[(0,u.tZ)(c.Z,{title:null===(n=F[e.documentType])||void 0===n?void 0:n.tooltip,children:(0,u.tZ)(s.Z,{variant:"body2",sx:{fontWeight:"bold"},pb:1,children:"".concat(O.resources.fileUpload.pleaseUpload," ").concat(L,":")})}),(0,f.d)(null===(t=F[e.documentType])||void 0===t?void 0:t.note)&&(0,u.tZ)(d.Z,{sx:{marginBottom:function(e){return e.spacing(1)}},severity:"warning",children:null===(Z=F[e.documentType])||void 0===Z?void 0:Z.note}),(0,u.tZ)(l.Z,{files:k,onUpdateFiles:G,multiple:!1})]})}},27199:function(e,n,t){"use strict";t.d(n,{a:function(){return s}});var o=t(47568),i=t(828),r=t(10092),a=t(47631),u=t(67294);function s(e){var n=(0,u.useState)(!1),t=n[0],s=n[1],d=(0,u.useState)(!1),l=d[0],c=d[1],p=function(){var e=(0,i.Z)((0,a.O2W)(),1)[0],n=function(){var n=(0,o.Z)((function(n){return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return[4,e({variables:{id:n.id,update:n.update}})];case 1:return t.sent(),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return{start:n}}().start,f=function(){var n=(0,o.Z)((function(n){var t;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:s(!0),c(!1),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(n.map(function(){var e=(0,o.Z)((function(e){return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return[4,p(e)];case 1:return[2,n.sent()]}}))}));return function(n){return e.apply(this,arguments)}}()))];case 2:return i.sent(),(null===e||void 0===e?void 0:e.onCompleted)&&(null===e||void 0===e||e.onCompleted()),[3,4];case 3:return t=i.sent(),(null===e||void 0===e?void 0:e.onError)&&(null===e||void 0===e||e.onError(t)),[3,4];case 4:return s(!1),c(!0),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),v=function(){var n=(0,o.Z)((function(n){var t;return(0,r.__generator)(this,(function(o){switch(o.label){case 0:s(!0),c(!1),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,p(n)];case 2:return o.sent(),(null===e||void 0===e?void 0:e.onCompleted)&&(null===e||void 0===e||e.onCompleted()),[3,4];case 3:return t=o.sent(),(null===e||void 0===e?void 0:e.onError)&&(null===e||void 0===e||e.onError(t)),[3,4];case 4:return s(!1),c(!0),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return{updateItem:v,updateItems:f,loading:t,finished:l}}},79286:function(e,n,t){"use strict";t.d(n,{J:function(){return u}});var o=t(47568),i=t(10092),r=t(11163),a=t(67294),u=function(){var e=(0,a.useState)(!1),n=e[0],t=e[1],u=(0,r.useRouter)(),s=function(){var e=(0,o.Z)((function(e){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,u.push(e)];case 1:return[2,n.sent()]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){u.events.on("routeChangeStart",(function(){t(!0)})),u.events.on("routeChangeComplete",(function(){t(!1)})),u.events.on("routeChangeError",(function(){t(!1)}))}),[u]),{router:u,push:s,isRouting:n}}},37309:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var o=t(4746),i={en:{title:"Account",active:"Active",ended:"Ended",activity:"Your Activity",name:"Name",date:"Date",bidAmount:"Bid Amount",link:"Link",asset:"Property",regi
1onCity:"Location",amount:"Amount",bidStatus:"Status",auctionStatus:"Auction Status",details:"Personal Details",bids:"Bids",bid:"Bid",offer:"Offer",favourites:"Favourites",PDFDocument:"PDF Document",privacy:"Privacy",buyerProfile:"Buyer Profiles",purchases:"Purchases",todos:"Todos",tabs:{todos:{todo:"Todo (Click to complete)",underReview:"Pending to Start...",recentlyCompleted:"Recently Completed",emptyList:"No items to complete",daysRemaining:"{days} days remaining",daysOverdue:"{days} days overdue",todoActions:{select:"Select",edit:"Edit"}},favourites:{openAuctionInNewTab:"Open auction in new tab",removeAuctionFromFavourites:"Remove auction from favourites"},buyerProfile:{company:"Company",individual:"Individual",noProfiles:"No Profiles"},purchases:{titleDefault:"Purchase for Property ({auction_id})",title:"Purchase for {property_type} in {property_city} ({auction_id})",button:"Go to dashboard"}},bidStatusOptions:{highestBid:"Highest bid",outBid:"Outbid",offerReview:"Offer Under Review",offerAccepted:"Offer Accepted",won:"Auction Won",lost:"Auction Lost"},makeAnOfferOptions:{outBid:"Outbid",underReview:"Offer Under Review",offerAccepted:"Offer Accepted",offerRejected:"Offer Rejected",won:"Auction Won",lost:"Auction Lost"}},es:{title:"Cuenta",active:"activa",ended:"finalizada",activity:"\xdaltima actividad",name:"Nombre",date:"Fecha",bidAmount:"Puja",link:"Enlace",asset:"Propiedad",regionCity:"Ubicaci\xf3n",amount:"Cantidad",bidStatus:"Estado",auctionStatus:"Subasta",details:"Informaci\xf3n personal",bids:"Tus pujas",bid:"Puja",offer:"Oferta",favourites:"Favoritos",PDFDocument:"PDF Documento",privacy:"Privacidad",buyerProfile:"Perfiles de Compradores",purchases:"Compras",todos:"Cosas que Hacer",tabs:{todos:{todo:"Para Hacer (haga clic para completar)",underReview:"Pendiente de Inicio...",recentlyCompleted:"Completado Recientemente",emptyList:"Nada para completar",daysRemaining:"Quedan {days} d\xedas",daysOverdue:"Retraso de {days} dias",todoActions:{select:"Seleccionar",edit:"Editar"}},favourites:{openAuctionInNewTab:"Abrir subasta en una nueva pesta\xf1a",removeAuctionFromFavourites:"Abrir subasta en una nueva pesta\xf1a"},buyerProfile:{company:"La compa\xf1\xeda",individual:"El individuo",noProfiles:"Sin perfiles"},purchases:{titleDefault:"Compra de Propiedad ({auction_id})",title:"Compra de {property_type} en {property_city} ({auction_id})",button:"Ir al tablero"}},bidStatusOptions:{highestBid:"puja m\xe1xima",outBid:"puja superada",offerReview:"Estamos revisando tu oferta",offerAccepted:"Oferta Aceptada",won:"Puja ganadora",lost:"Puja no ganadora"},makeAnOfferOptions:{underReview:"Oferta en revisi\xf3n",offerAccepted:"Oferta aceptada",offerRejected:"Oferta rechazada",outBid:"puja superada",won:"Puja ganadora",lost:"Puja no ganadora"}}};function r(e){return e?i[e]:(0,o.f)(i)}},41047:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var o=t(4746),i={en:{title:{problem:"Something went wrong!",confirm:"Confirm",removeConnection:"Unlink Connection"},fileUploadInProgress:"Uploading file(s). Please wait...",depositAutomation:{inProgressWarning:"In progress, please do not go back or close this window"},docsNotRequired:"You can submit this information later. Not required at this stage",button:{no:"No",yes:"Yes",delete:"DELETE"},body:{unlinkConnection:"Are you sure you want to unlink this connection?"},entities:{representative:"representative"},default:{title:"Confirm",body:"Are you sure you want to remove this item?",leftButton:"No",rightButton:"Yes"}},es:{title:{problem:"\xa1algo sali\xf3 mal!",confirm:"Confirmar",removeConnection:"Quitar Conexi\xf3n"},fileUploadInProgress:"Subiendo archivo(s). Por favor espera...",depositAutomation:{inProgressWarning:"Espere por favor, esto puede tardar hasta 3 minutos"},docsNotRequired:"Puede enviar esta informaci\xf3n m\xe1s tarde. No requerido en esta etapa",button:{no:"No",yes:"Si",delete:"Borrar"},body:{unlinkConnection:"\xbfEst\xe1s seguro de que quieres desvincular esta conexi\xf3n?"},default:{title:"Confirmar",body:"\xbfEst\xe1s seguro de querer eliminar este producto?",leftButton:"No",rightButton:"Si"}}};function r(e){return e?i[e]:(0,o.f)(i)}},3934:function(e,n,t){"use strict";t.d(n,{JS:function(){return _}});var o=t(26042),i=t(69396),r=t(7297),a=t(77423),u=t(22865),s=t(87241);function d(){var e=(0,r.Z)(["\n query GetKycPersonRelationshipByPersonalInfoId($p_info_id: Int!) {\n kyc_person_relationship(where: { person_one_obj: { info: { personal_information_id: { _eq: $p_info_id } } } }) {\n ...KycPersonRelationship\n }\n }\n"]);return d=function(){return e},e}function l(){var e=(0,r.Z)(["\n query GetKycPersonRelationshipByPk($person_one_id: Int!, $person_two_id: Int!) {\n kyc_person_relationship_by_pk(person_one: $person_one_id, person_two: $person_two_id) {\n ...KycPersonRelationship\n }\n }\n"]);return l=function(){return e},e}function c(){var e=(0,r.Z)(["\n query GetAllKycPersonRelationship {\n kyc_person_relationship {\n is_community_of_goods\n person_one\n person_two\n relationship\n }\n }\n"]);return c=function(){return e},e}function p(){var e=(0,r.Z)(["\n query GetKycPersonRelationshipByEitherPersonId($person_id: Int!) {\n kyc_person_relationship(\n where: { _or: [{ person_one: { _eq: $person_id } }, { person_two: { _eq: $person_id } }] }\n ) {\n ...KycPersonRelationship\n }\n }\n"]);return p=function(){return e},e}function f(){var e=(0,r.Z)(["\n mutation InsertKycPersonRelationship(\n $input: kyc_person_relationship_insert_input!\n $on_conflict: kyc_person_relationship_on_conflict\n ) {\n insert_kyc_person_relationship_one(object: $input, on_conflict: $on_conflict) {\n ...KycPersonRelationship\n }\n }\n"]);return f=function(){return e},e}function v(){var e=(0,r.Z)(["\n fragment KycPersonRelationship on kyc_person_relationship {\n created_at\n is_community_of_goods\n person_one\n person_two\n person_relationship_document {\n ...KycDocument\n }\n person_relationship_user_todo {\n ...UserTodo\n }\n person_one_obj {\n ...KycPerson\n }\n person_two_obj {\n ...KycPerson\n }\n relationship\n updated_at\n }\n"]);return v=function(){return e},e}(0,u.ZP)(d()),(0,u.ZP)(l()),(0,u.ZP)(c()),(0,u.ZP)(p()),(0,u.ZP)(f()),(0,u.ZP)(v());var _={getFragmentByPk:function(e){var n;return(0,i.Z)((0,o.Z)({},e),{kycPersonRelationship:null===(n=e.data)||void 0===n?void 0:n.kyc_person_relationship_by_pk})},getFragmentByPersonalInfoId:function(e){var n,t;return(0,i.Z)((0,o.Z)({},e),{kycPersonRelationship:(null===(n=e.data)||void 0===n?void 0:n.kyc_person_relationship
1)&&e.data.kyc_person_relationship.length>0?null===(t=e.data)||void 0===t?void 0:t.kyc_person_relationship[0]:null})},getFragmentByEitherPersonId:function(e){var n,t;return(0,i.Z)((0,o.Z)({},e),{kycPersonRelationship:(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.kyc_person_relationship)&&(null===e||void 0===e?void 0:e.data.kyc_person_relationship.length)>0?null===(t=e.data)||void 0===t?void 0:t.kyc_person_relationship[0]:null})},getBaseOptionsPersonalInfoId:function(e,n){return{variables:{p_info_id:e||-1},fetchPolicy:n,skip:null==e||a.F7}},getBaseOptionsPersonId:function(e,n){return{variables:{person_id:e||-1},fetchPolicy:n,skip:!(0,s.BX)(e)||a.F7}},getBaseOptionsPk:function(e,n,t){return{variables:{person_one_id:e||-1,person_two_id:n||-1},fetchPolicy:t,skip:!((0,s.BX)(e)&&(0,s.BX)(n))||a.F7}}}},62277:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return E}});var o=t(35944),i=t(47568),r=t(26042),a=t(69396),u=t(10092),s=t(90050),d=t(27199),l=t(69996),c=t(79286),p=t(37309),f=t(11098),v=t(47631),_=t(24305),m=t(3934),h=t(67294),y=t(86886),g=t(15861),b=t(83321),P=t(73545),Z=t(16503),C=t(48896),w=t(7706),k=t(60444),B=t(86917),R=t(41047);function A(e){var n,t,i,r,a,u,s=[(0,B.Z)().buyer.person,(0,k.Z)(),(0,R.Z)()],d=s[0],l=s[1],c=s[2],p=(0,h.useState)(!1),f=p[0],v=p[1],m=f||e.loading||e.submitting||!(null===(n=e.data.fileUpload)||void 0===n||null===(t=n.marriageCertificate)||void 0===t||null===(i=t.file)||void 0===i?void 0:i.url);return(0,o.tZ)(C.r.LRSplit,{showLHS:!0,contentRHS:(0,o.BX)(y.ZP,{width:"100%",maxWidth:700,minWidth:320,container:!0,direction:"column",justifyContent:"flex-start",spacing:2,children:[(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:1,children:(0,o.tZ)(g.Z,{variant:"h3",children:d.relationship.marriageCertificate.title})}),(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:1,children:(0,o.tZ)(g.Z,{variant:"body2",children:d.relationship.marriageCertificate.subtitle})}),(0,o.BX)(Z.z,{loading:e.loading,children:[(null===(r=e.data.fileUpload)||void 0===r||null===(a=r.marriageCertificate)||void 0===a?void 0:a.id)&&(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:1,children:(0,o.tZ)(w.Z,{document:null===(u=e.data.fileUpload)||void 0===u?void 0:u.marriageCertificate,documentType:_.IG.MarriageCertificate,onUploadingChange:function(e){v(e)},title:"".concat(d.relationship.marriageCertificate.title)})}),f&&(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:1,children:(0,o.tZ)(g.Z,{variant:"body2",children:c.fileUploadInProgress})}),(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:2,children:(0,o.tZ)(b.Z,{variant:"contained",color:"primary",onClick:e.onNext,size:"large",fullWidth:!0,disabled:m,children:l.save})}),(0,o.tZ)(y.ZP,{item:!0,xs:!0,paddingBottom:1,children:(0,o.tZ)(P.Z,{isLoading:e.loading||e.submitting})})]})]}),navBar:e.navBar})}function I(){var e,n=(0,h.useState)({}),t=n[0],y=n[1],g=(0,c.J)(),b=g.push,P=g.isRouting,Z=(0,l.Jf)(l.Gf.person_one_id).value,C=(0,l.Jf)(l.Gf.person_two_id).value,w=m.JS.getFragmentByPk((0,v.g0h)(m.JS.getBaseOptionsPk(Z,C,"cache-first"))),k=w.kycPersonRelationship,B=w.loading,R=(0,d.a)(),I=R.updateItem,E=R.loading,S=function(){var e=[["tab",(0,p.Z)().todos]],n=new s.y({route:f._.account,params:e}).toUrl();return{close:n,end:n,next:n}}(),O=function(){var e=(0,i.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return(null===k||void 0===k||null===(e=k.person_relationship_user_todo)||void 0===e?void 0:e.id)?[4,I({id:null===k||void 0===k||null===(n=k.person_relationship_user_todo)||void 0===n?void 0:n.id,update:{status:_.f0X.Complete}})]:[3,2];case 1:t.sent(),t.label=2;case 2:return b(S.next),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){y((0,a.Z)((0,r.Z)({},t),{fileUpload:(0,a.Z)((0,r.Z)({},t.fileUpload),{marriageCertificate:null===k||void 0===k?void 0:k.person_relationship_document})}))}),[k]),(0,o.tZ)(A,{data:t,loading:B||!(null===k||void 0===k||null===(e=k.person_relationship_document)||void 0===e?void 0:e.id),submitting:P||E,onNext:O,navBar:{close:{href:S.close},back:{href:S.end}},isUploadDisabled:!1})}function E(){return(0,o.tZ)(I,{})}}},function(e){e.O(0,[3778,6132,5068,4577,3552,7719,38,8635,5140,5993,5230,9102,2423,6936,9774,2888,179],(function(){return n=71250,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.