PageSourceSearch

https://donat-widget.netlify.app/_next/static/chunks/pages/index-ad0d8509bf2a5f1c.js

js donat-widget.netlify.app collected 2026-10-03 10:39:56 UTC 5,256 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(7246)}])},530:function(e,t,r){"use strict";var n=r(5893),s=r(2567),i=r(3967),o=r.n(i);let a={plain:"",nav:"w-28 h-10 bg-donat-blue text-white rounded-xl [&:not(:disabled)]:hover-grow !py-4 min-w-[100px]",amount:"w-28 h-10 bg-donat-blue text-white opacity-80 [&:not(:disabled)]:hover:opacity-100 rounded-xl",iconBg:"text-2xl text-donat-blue font-light w-6 h-6 rounded-xl hover:bg-donat-blue hover:text-white",iconGrow:"[&:not(:disabled)]:hover-grow-lg",iconBoth:"min-w-[15px] p-[3px] bg-white text-donat-green rounded-sm [&:not(:disabled)]:hover:bg-donat-blue [&:not(:disabled)]:hover-grow-lg"};t.Z=e=>{let t=()=>(0,n.jsxs)("button",{disabled:e.disabled||e.loading,className:o()("flex justify-center items-center gap-3 disabled:opacity-70",a[e.variant||"plain"],e.className),type:e.type,onClick:e.onClick,children:[e.label,e.loading&&(0,n.jsx)(s.JO,{icon:"ant-design:loading-outlined",className:"animate-spin"}),!e.loading&&e.icon&&(0,n.jsx)(s.JO,{icon:e.icon,className:"text-[130%]"})]});return e.link?(0,n.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener",children:(0,n.jsx)(t,{})}):(0,n.jsx)(t,{})}},7900:function(e,t,r){"use strict";var n=r(5893),s=r(3967),i=r.n(s);t.Z=e=>(0,n.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,n.jsx)("input",{type:e.type,placeholder:e.placeholder,className:i()("w-full h-10 bg-white placeholder-gray-400  text-donat-blue px-3 py-1 rounded-xl text-center",{"border border-red-500":e.error,"border-0":!e.error},e.className),disabled:e.disabled,...e.register}),e.error&&e.error.type&&(0,n.jsx)("div",{className:"text-red-500 text-right text-xs absolute mt-[25px] ml-[10px]",children:e.error.message||e.error.type})]})},4608:function(e,t,r){"use strict";r.d(t,{a:function(){return l}});let n=(0,r(8213).createBrowserClient)("https://mhsoflkoceuefcuwcmcp.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1oc29mbGtvY2V1ZWZjdXdjbWNwIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTIzNTIzMTgsImV4cCI6MjAwNzkyODMxOH0.mQOzzMcxsba47melUYOiZ50sf8L2ZOZYTRQEDOOP4vA");var s=r(1163),i=r(6501),o=r(6243),a=r(7294);let l=()=>{let e=(0,o.Z)(e=>e.email),t=(0,o.Z)(e=>e.setEmail),r=(0,s.useRouter)();return{fetchUserData:(0,a.useCallback)(async()=>{var r,s;if(e)return!0;let{data:i}=await n.auth.getSession();return t(null===(r=i.session)||void 0===r?void 0:r.user.email),!!(null===(s=i.session)||void 0===s?void 0:s.user)},[t,e]),login:async(e,s)=>{let{data:o,error:a}=await n.auth.signInWithPassword({email:e,password:s});return a?(console.error(a.message),a.message.includes("Invalid login credentials")?i.ZP.error("Chybn\xfd e-mail nebo heslo."):i.ZP.error("Nelze V\xe1s přihl\xe1sit, zkuste to pros\xedm později."),!1):(t(o.user.email),i.ZP.success("Přihl\xe1šen\xed \xfaspěšn\xe9"),r.push("/admin"),!0)},logout:async()=>{let{error:e}=await n.auth.signOut();return e?(console.error(e.message),i.ZP.error("Nelze V\xe1s odhl\xe1sit, zkuste to pros\xedm později."),!1):(t(void 0),r.push("/"),i.ZP.success("Odhl\xe1šen\xed \xfaspěšn\xe9"),!0)}}}},7246:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return d}});var n=r(5893),s=r(530),i=r(7900),o=r(4608),a=r(7294),l=r(7536),d=!0;t.default=()=>{let{login:e}=(0,o.a)(),[t,r]=(0,a.useState)(!1),{register:d,handleSubmit:u,formState:{errors:c}}=(0,l.cI)({mode:"onBlur"}),p=async t=>{r(!0),await e(t.email,t.password),r(!1)};return(0,n.jsx)("div",{className:"w-[100vw] h-[100vh] bg-wrapper flex items-center justify-center p-4",children:(0,n.jsxs)("div",{className:"rounded-xl bg-donat-green overflow-hidden min-w-[300px] min-h-[400px]",children:[(0,n.jsx)("div",{className:"w-full title text-white bg-donat-blue p-3",children:"Donat.Widget"}),(0,n.jsxs)("form",{className:"p-3 flex flex-col gap-3",onSubmit:u(p),children:["Vstup do rozhran\xed",(0,n.jsx)(i.Z,{type:"email",placeholder:"E-mail",register:d("email",{required:"Pole je povinn\xe9.",pattern:{value:/\S+@\S+\.\S+/,message:"Zadejte platn\xfd e-mail."}}),error:c.email}),(0,n.jsx)(i.Z,{type:"password",placeholder:"Heslo",register:d("password",{required:"Pole je povinn\xe9.",minLength:{value:6,message:"Heslo m\xe1 alespoň 6 znaků."}}),error:c.password}),(0,n.jsx)(s.Z,{variant:"nav",label:"Přihl\xe1sit se",type:"submit",loading:t,className:"mx-auto !w-36"})]})]})})}},6243:function(e,t,r){"use strict";let n=(0,r(4529).Ue)(e=>({email:void 0,setEmail:t=>e({email:t})}));t.Z=n},3967:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}(r)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0!==(r=(function(){return s}).apply(t,[]))&&(e.exports=r)}()}},function(e){e.O(0,[206,876,963,536,888,774,179],function(){return e(e.s=8312)}),_N_E=e.O()}]);

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.