1"use strict";(self.webpackChunksgs_frontend=self.webpackChunksgs_frontend||[]).push([[697],{24751:(e,i,t)=>{t.d(i,{Fd:()=>g,HP:()=>c,Hq:()=>n,Mt:()=>v,Mx:()=>m,Uy:()=>d,dL:()=>l,gK:()=>u,jJ:()=>A});var a=t(7032),s=t(47679),o=t(11457);const n=a.A.injectEndpoints({endpoints:e=>({getAdmine:e.query({query:e=>({url:`/registracijaAdmina/pretraga${(0,o.MD)((0,s.pg)(e))}`,method:"POST",body:e}),providesTags:e=>{var i,t;return null!==e&&void 0!==e&&e.content?[{type:a.S,id:"LIST"},...(null===(i=e.content)||void 0===i||null===(t=i.content)||void 0===t?void 0:t.map((e=>({type:a.S,id:e.id}))))||[]]:[{type:a.S,id:"LIST"}]}}),unosAdmina:e.mutation({query:e=>({url:"/registracijaAdmina/unos",method:"POST",body:e}),invalidatesTags:[a.S]}),izmenaAdmina:e.mutation({query:e=>({url:"/registracijaAdmina/izmena",method:"POST",body:e}),invalidatesTags:(e,i,t)=>[{type:a.S,id:t.id}]}),brisanjeAdmina:e.mutation({query:e=>({url:"/registracijaAdmina/deaktiviraj",method:"POST",body:{ids:e}}),invalidatesTags:(e,i,t)=>t.map((e=>({type:a.S,id:e})))}),aktiviranjeNalogaAdmina:e.mutation({query:e=>({url:"/registracijaAdmina/aktiviraj",method:"POST",body:{ids:e}}),invalidatesTags:(e,i,t)=>t.map((e=>({type:a.S,id:e})))}),resetLozinkeAdmina:e.mutation({query:e=>({url:"/registracijaAdmina/resetLozinki",method:"POST",body:{ids:e}})}),postSacuvajKorisnikaAdmin:e.mutation({query:e=>({url:"/registracija/kreiraj/korisnika",method:"POST",body:e})}),postRegistracijaPravnaLicaAdmin:e.mutation({query:e=>({url:"/registracija/kreiraj/zahtev",method:"POST",body:e})}),odbijZahtevRegistracije:e.mutation({query:e=>({url:"/registracija/odbijanjeZahtevaReg",method:"POST",body:e})})})}),{useOdbijZahtevRegistracijeMutation:r,useGetAdmineQuery:d,useBrisanjeAdminaMutation:l,useIzmenaAdminaMutation:c,useResetLozinkeAdminaMutation:u,useUnosAdminaMutation:m,useAktiviranjeNalogaAdminaMutation:g,usePostSacuvajKorisnikaAdminMutation:v,usePostRegistracijaPravnaLicaAdminMutation:A}=n},28307:(e,i,t)=>{t.d(i,{A:()=>s});var a=t(65043);function s(e){const[i,t]=(0,a.useState)(e&&e.selectedIds||[]||0),[s,o]=(0,a.useState)(e&&e.isAllSelected||!1);return{selectedRows:i,isAllSelected:s,toggleRowId:a=>{"ALL_SELECTED"===a||"NONE_SELECTED"===a?(o("ALL_SELECTED"===a),t([])):void 0!==i.find((e=>e===a))?t(i.filter((e=>e!==a))):null!==e&&void 0!==e&&e.isMultiselectable?t([...i,a]):t([a])},isIdSelected:e=>void 0!==i.find((i=>i===e)),setSelectedRows:t}}},33438:(e,i,t)=>{t.d(i,{A:()=>o});var a=t(66734),s=t(70579);const o=(0,a.A)((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},68697:(e,i,t)=>{t.r(i),t.d(i,{default:()=>R});var a=t(65043),s=t(8070),o=t(85865),n=t(74725),r=t(10478),d=t(24858),l=t(89049),c=t(24751),u=t(11457),m=t(24723),g=t(95322),v=t(65652),A=t(83462),j=t(17392),p=t(35316),h=t(98533),S=t(19464),y=t(81637),x=t(29347),b=t(53404),P=t(3316),f=t(18566),T=t(28307),L=t(33438),k=t(70579);const w=function(e){let{open:i,onClose:t,data:a,prenesiPoslovnogPartnera:s,isLoading:o}=e;const{t:r}=(0,n.B)(),d=(0,f.T)(),l=(0,T.A)();return(0,k.jsxs)(A.A,{open:i,onClose:t,maxWidth:"md",children:[(0,k.jsx)(j.A,{onClick:t,sx:{position:"absolute",top:10,right:10,zIndex:1e3},children:(0,k.jsx)(L.A,{})}),(0,k.jsxs)(p.A,{children:[(0,k.jsx)(h.A,{children:r("page-registracija.dialogSelectPoslovniPartner")}),o?(0,k.jsx)(S.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:(0,k.jsx)(y.A,{})}):(0,k.jsx)(P.A,{columns:[d.sifraPp,d.naziv,d.jmbg,d.pib,d.mbr],getId:e=>e.sifraPp,rows:a,select:{onToogle:l.toggleRowId,selectedRowIds:l.selectedRows},showPagination:!0})]}),(0,k.jsx)(x.A,{children:(0,k.jsx)(b.A,{disabled:0===l.selectedRows.length,onClick:()=>{s(l.selectedRows[0]),t()},variant:"contained",color:"primary",children:r("page-registracija.btnSelect")})})]})};var M=t(53133),C=t(15876);const R=()=>{const{t:e}=(0,n.B)(),i=(0,M.Z)({requirePassword:!1,defaultValues:{tipLica:C.gZ,usloviKoriscenja:!0,izjavaPrivatnosti:!0}}),{setValue:t,watch:A}=i,[j,p]=(0,c.Mt)(),[h,{data:S,isLoading:y}]=(0,v.UY)(),[x,b]=(0,a.useState)(void 0),[P,f]=(0,a.useState)(void 0),[T,L]=(0,a.useState)(!1);return(0,k.jsxs)(s.A,{sx:{mt:2},children:[(0,k.jsx)(w,{open:T,onClose:()=>L(!1),data:(null===S||void 0===S?void 0:S.content)||[],isLoading:y,prenesiPoslovnogPartnera:e=>{t("sifraPp",e)}}),(0,k.jsx)(m.A,{hidden:!p.isLoading,fullscreen:!0}),(0,k.jsx)(g.A,{message:e("page-registracija.saved-successfully"),open:p.isSuccess&&void 0!=(null===x||void 0===x?void 0:x.content),AlertProps:{severity:"success"},handleClose:()=>b(void 0)}),(0,k.jsx)(g.A,{message:(null===P||void 0===P?void 0:P.message)||"",open:void 0!==P,AlertProps:{severity:"error"},handleClose:()=>f(void 0)}),(0,k.jsx)(o.A,{variant:"h4",sx:{mb:2,fontWeight:600,color:e=>e.palette.primary.main},children:e("page-registracija.headerFormeFLica")}),(0,k.jsx)(r.A,{title:"",isDialog:!0,children:(0,k.jsx)(d.Op,{...i,children:(0,k.jsx)(l.A,{onSubmit:i=>{const t=new FormData;t.append("zahtev",new Blob([JSON.stringify({...i,username:A("email")}
1)],{type:"application/json"}),"zahtev"),j(t).then((e=>{let t=(0,u._W)("data",e);if(t)b(t);else{"Nije prona\u0111en poslovni partner sa zadatim jmbg-om."===("error"in e?e.error.data.message:void 0)&&(h({sifra2:i.sifraMestaIsporuke}),L(!0));let t=(0,u._W)("error",e);f((0,u._W)("data",t))}})).catch((i=>{i.data?f(i.data.content||e("common.server-error")):f(e("common.server-error"))}))},disableSubmit:p.isLoading||p.isSuccess,onStampaZahteva:()=>{},isAdminRegistration:!0})})})]})}},98533:(e,i,t)=>{t.d(i,{A:()=>A});var a=t(98587),s=t(58168),o=t(65043),n=(t(65173),t(60222)),r=t(82056),d=t(37864),l=t(85865),c=t(63088);function u(e){return(0,c.A)("MuiDialogContentText",e)}(0,t(15904).A)("MuiDialogContentText",["root"]);var m=t(70579);const g=["children"],v=(0,r.Ay)(l.A,{shouldForwardProp:e=>(0,r.ep)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,i)=>i.root})({}),A=o.forwardRef((function(e,i){const t=(0,d.A)({props:e,name:"MuiDialogContentText"}),o=(0,a.A)(t,g),r=(e=>{const{classes:i}=e,t=(0,n.A)({root:["root"]},u,i);return(0,s.A)({},i,t)})(o);return(0,m.jsx)(v,(0,s.A)({component:"p",variant:"body1",color:"text.secondary",ref:i,ownerState:o},t,{classes:r}))}))}}]); 2//# sourceMappingURL=697.9a7d544b.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.