You've already forked Atomcms-edit
1 line
7.3 KiB
JavaScript
Executable File
1 line
7.3 KiB
JavaScript
Executable File
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),u=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",i=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||u.test(n))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${s}${o}${c}${l}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return l(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return g}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),u=e.r(43476),l=a._(e.r(71645)),i=e.r(95057),s=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550);e.r(33525);let p=e.r(88540),h=e.r(91949),m=e.r(73668),y=e.r(9396);function b(t){var r,n;let o,a,b,[g,j]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,l.useRef)(null),{href:_,as:S,children:P,prefetch:O=null,passHref:T,replace:C,shallow:N,scroll:R,onClick:E,onMouseEnter:w,onTouchStart:L,legacyBehavior:M=!1,onNavigate:k,transitionTypes:U,ref:A,unstable_dynamicOnHover:I,...K}=t;o=P,M&&("string"==typeof o||"number"==typeof o)&&(o=(0,u.jsx)("a",{children:o}));let $=l.default.useContext(s.AppRouterContext),B=!1!==O,D=!1!==O?null===(n=O)||"auto"===n?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,F="string"==typeof(r=S||_)?r:(0,i.formatUrl)(r);if(M){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(o)}let q=M?a&&"object"==typeof a&&a.ref:A,V=l.default.useCallback(e=>(null!==$&&(x.current=(0,h.mountLinkInstance)(e,F,$,D,B,j)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,F,$,D,j]),W={ref:(0,c.useMergedRef)(V,q),onClick(t){M||"function"!=typeof E||E(t),M&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,o,a,u,i){if("u">typeof window){let s,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);l.default.startTransition(()=>{f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i)})}}(t,F,x,C,R,k,U)},onMouseEnter(e){M||"function"!=typeof w||w(e),M&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){M||"function"!=typeof L||L(e),M&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,f.isAbsoluteUrl)(F)?W.href=F:M&&!T&&("a"!==a.type||"href"in a.props)||(W.href=(0,d.addBasePath)(F)),b=M?l.default.cloneElement(a,W):(0,u.jsx)("a",{...K,...W,children:o}),(0,u.jsx)(v.Provider,{value:g,children:b})}e.r(84508);let v=(0,l.createContext)(h.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},80377,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),o=e.i(9165);e.s(["default",0,function(){let[e,a]=(0,r.useState)(""),[u,l]=(0,r.useState)(!1),[i,s]=(0,r.useState)(!1),[c,f]=(0,r.useState)(""),d=async t=>{t.preventDefault(),s(!0),f("");let{data:r,error:n}=await o.api.post("/auth/forgot-password",{email:e});if(n){f(n),s(!1);return}l(!0),s(!1)};return(0,t.jsx)("div",{className:"bg-background min-h-screen",children:(0,t.jsx)("div",{className:"max-w-md mx-auto p-6",children:(0,t.jsxs)("div",{className:"bg-surface rounded-lg p-6 shadow-card",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold mb-4 text-center",children:"Wachtwoord vergeten"}),u?(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-accent mb-4",children:"Er is een e-mail verstuurd naar je adres!"}),(0,t.jsx)(n.default,{href:"/",className:"text-primary hover:underline",children:"Terug naar home"})]}):(0,t.jsxs)("form",{onSubmit:d,children:[c&&(0,t.jsx)("div",{className:"mb-4 p-3 rounded bg-red-50 text-red-600 text-sm",children:c}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"block font-semibold text-gray-700 mb-2",children:"E-mailadres"}),(0,t.jsx)("input",{type:"email",value:e,onChange:e=>a(e.target.value),className:"w-full px-3 py-2 border-2 rounded focus:border-primary focus:ring-0",placeholder:"je@email.com",required:!0})]}),(0,t.jsx)("button",{type:"submit",disabled:i,className:"w-full py-2 bg-primary text-text-main rounded font-semibold hover:opacity-90 disabled:opacity-50",children:i?"Versturen...":"Verstuur reset link"})]})]})})})}])}]); |