PageSourceSearch

https://unisport-akreditacijska-prod.herokuapp.com/static/js/43.a9977c8e.chunk.js

js unisport-akreditacijska-prod.herokuapp.com collected 2026-10-03 14:54:11 UTC 4,557 bytes, 2 lines download raw bytes

1(this["webpackJsonpvuexy-react-admin-dashboard"]=this["webpackJsonpvuexy-react-admin-dashboard"]||[]).push([[43],{110:function(e,t,n){"use strict";var a=n(4),c=n(5),s=n(0),o=n.n(s),i=n(2),r=n.n(i),l=n(12),u=n.n(l),b=n(13),j={tag:b.q,size:r.a.string,className:r.a.string,cssModule:r.a.object},d=function(e){var t=e.className,n=e.cssModule,s=e.tag,i=e.size,r=Object(c.a)(e,["className","cssModule","tag","size"]),l=Object(b.m)(u()(t,"input-group",i?"input-group-"+i:null),n);return o.a.createElement(s,Object(a.a)({},r,{className:l}))};d.propTypes=j,d.defaultProps={tag:"div"},t.a=d},1187:function(e,t,n){"use strict";n.r(t);var a=n(0),c=n(64),s=n(8),o=n(91),i=n(1123),r=n(1124),l=n(1119),u=n(1120),b=n(1121),j=n(1122),d=n(52),p=n(342),m=(n(32),n(71)),f=(n(984),n(110)),h=n(1130),O=n(3),g=function(e){var t=Object(a.useState)(e.info?e.info:""),n=Object(s.a)(t,2),c=n[0],o=n[1];return Object(O.jsxs)(a.Fragment,{children:[Object(O.jsx)(f.a,{className:"mb-1",size:"lg",children:Object(O.jsx)(h.a,{disabled:e.info,placeholder:"Naziv",onChange:function(t){e.kontaktData[e.index].name=t.target.value,console.log(e.kontaktData)},value:e.name})}),Object(O.jsx)(f.a,{size:"sm",children:Object(O.jsx)(h.a,{placeholder:"Podaci",onChange:function(t){o(t.target.value),e.kontaktData[e.index].info=t.target.value,console.log(e.kontaktData)},value:c})})]})},x=n(55),v=n.n(x),k=n(88),N=(n(57),n(60)),C=n.n(N),R=n(59),y=n.n(R),z=n(63),D=C()(y.a),M=function(){var e=Object(k.g)(),t=Object(a.useState)([]),n=Object(s.a)(t,2),f=n[0],h=n[1],x=f;Object(a.useEffect)((function(){v.a.post("".concat("https://unisport-backend-prod.herokuapp.com","/admin/get-contacts"),{organisationId:Object(z.c)()?Object(z.c)().id:null}).then((function(e){console.log(e),h(e.data.contacts?e.data.contacts:[])})).catch((function(e){return console.log(e)}))}),[]);return Object(O.jsxs)(a.Fragment,{children:[Object(O.jsx)(m.a,{breadCrumbTitle:"Kontakt podaci",breadCrumbParent:"Stranice",breadCrumbActive:"Kontakt"}),Object(O.jsxs)(o.a,{onSubmit:function(t){t.preventDefault(),v.a.post("".concat("https://unisport-backend-prod.herokuapp.com","/admin/post-contacts"),{organisationId:Object(z.c)()?Object(z.c)().id:null,contacts:f}).then((function(e){D.fire({icon:"success",title:"Uspje\u0161no",text:"Uspje\u0161no izmijenjeno!",customClass:{confirmButton:"btn btn-success"}})})).catch((function(e){D.fire({icon:"warning",title:"Pogre\u0161ka",text:"Ne\u0161to je po\u0161lo po krivu. Molimo probajte ponovno",customClass:{confirmButton:"btn btn-success"}})})),e.push("/stranice")},children:[Object(O.jsx)(i.a,{className:"match-height",children:null===f||void 0===f?void 0:f.map((function(e,t){return Object(O.jsx)(r.a,{md:"6",sm:"12",children:Object(O.jsxs)(l.a,{children:[Object(O.jsxs)(u.a,{children:[Object(O.jsx)("div",{children:Object(O.jsx)(b.a,{tag:"h4",children:""})}),Object(O.jsx)(p.a,{size:18,onClick:function(){x.splice(t,1),h(Object(c.a)(x)),console.log(t),console.log(f)},className:"cursor-pointer"})]}),Object(O.jsx)(j.a,{children:Object(O.jsx)(g,{kontaktData:x,index:t,name:e.name,info:e.info})})]})},t)}))}),Object(O.jsx)(d.a.Ripple,{type:"submit",color:"primary",className:"btn-next mb-3",children:Object(O.jsx)("span",{children:"Spremi"})}),Object(O.jsx)(d.a.Ripple,{onClick:function(){console.log("We add member now"),x.push({}),h(Object(c.a)(x)),console.log(f)},color:"primary",className:"btn-next mb-3 mx-3",children:Object(O.jsx)("span",{children:"Dodaj novo polje"})})]})]})};t.default=function(){return Object(O.jsx)(a.Fragment,{children:Object(O.jsx)(M,{})})}},91:function(e,t,n){"use strict";var a=n(4),c=n(5),s=n(23),o=n(21),i=n(0),r=n.n(i),l=n(2),u=n.n(l),b=n(12),j=n.n(b),d=n(13),p={children:u.a.node,inline:u.a.bool,tag:d.q,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),className:u.a.string,cssModule:u.a.object},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind(Object(s.a)(n)),n.submit=n.submit.bind(Object(s.a)(n)),n}Object(o.a)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.submit=function(){this.ref&&this.ref.submit()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,s=e.inline,o=e.tag,i=e.innerRef,l=Object(c.a)(e,["className","cssModule","inline","tag","innerRef"]),u=Object(d.m)(j()(t,!!s&&"form-inline"),n);return r.a.createElement(o,Object(a.a)({},l,{ref:i,className:u}))},t}(i.Component);m.propTypes=p,m.defaultProps={tag:"form"},t.a=m},984:function(e){e.exports=JSON.parse("{}")}}]);
2//# sourceMappingURL=43.a9977c8e.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.