PageSourceSearch

https://weegee.ch/_next/static/chunks/pages/verify/[token]-1fec9fc1af3407c5.js

js weegee.ch collected 2026-10-06 15:17:57 UTC 22,944 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d3a4130-484e-49ee-a2c2-5b8a4ab2dd57",e._sentryDebugIdIdentifier="sentry-dbid-7d3a4130-484e-49ee-a2c2-5b8a4ab2dd57")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[513],{11613:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var s=r(37876);function a(e){return(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcSet:"/logo/weegee_wide.webp",media:"(min-width: 768px)"}),(0,s.jsx)("img",{src:"/logo/weegee.webp",alt:"weegee.ch",className:"max-h-16"})]})}},11845:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>b,default:()=>y});var s=r(37876),a=r(77328),i=r.n(a),l=r(89099),n=r(14232),o=r(64973);let d=n.forwardRef(function({title:e,titleId:t,...r},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}),c=n.forwardRef(function({title:e,titleId:t,...r},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"}))}),m=n.forwardRef(function({title:e,titleId:t,...r},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}),x=n.forwardRef(function({title:e,titleId:t,...r},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});var u=r(52666),h=r(88238),g=r(38093),f=r(97209);let p="https://weegee.ch";var b=!0;function y(){let{token:e}=(0,l.useRouter)().query,{t}=(0,f.Bd)("common"),[r,a]=(0,n.useState)("loading"),[b,y]=(0,n.useState)(""),[v,j]=(0,n.useState)(""),[w,N]=(0,n.useState)(""),[k,_]=(0,n.use
1State)(!1),[C,E]=(0,n.useState)(""),[S,I]=(0,n.useState)(!1),[F,L]=(0,n.useState)(""),[A,R]=(0,n.useState)(!1),[B,T]=(0,n.useState)(!1),[D,P]=(0,n.useState)(null),[W,z]=(0,n.useState)(null),[O,M]=(0,n.useState)(null),[U,$]=(0,n.useState)(null),q=(0,n.useRef)(),H=(0,n.useRef)();(0,n.useEffect)(()=>{e&&(async()=>{try{let t=await (0,o.x6)(`/api/verify/${e}`,{},!1);y(t.email),j(t.listing_id),I(!!t.phone_otp_required),t.already_reviewed?a(t.status):t.already_submitted?a("submitted"):a("pending")}catch(e){410===e.status?a("expired"):404===e.status?a("error"):(a("error"),N(e.message||"An error occurred"))}})()},[e]);let X=e=>{let t=e.target.files[0];t&&(P(t),M(URL.createObjectURL(t)),N(""))},V=e=>{let t=e.target.files[0];t&&(z(t),$(URL.createObjectURL(t)),N(""))},Y=async r=>{if(r.preventDefault(),!D)return void N(t("verify.errorFrontPhoto"));if(!W)return void N(t("verify.errorBackPhoto"));if(!C.trim())return void N(t("verify.errorPhone"));if(S&&!F.trim())return void N(t("verify.errorOtpRequired"));_(!0),N("");try{let t=new FormData;t.append("id_photo_front",D),t.append("id_photo_back",W),t.append("phone_number",C),S&&F.trim()&&t.append("otp_code",F.trim());let r=await fetch(`${p}/api/verify/${e}`,{method:"POST",body:t}),s=await r.json();if(!r.ok)throw Error(s.error||"Submission failed");a("submitted")}catch(e){N(e.message||"An error occurred during submission")}finally{_(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:t("verify.pageTitle")}),(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsx)(u.Y,{}),(0,s.jsx)("main",{children:(0,s.jsx)(g.m,{children:(0,s.jsxs)("div",{className:"max-w-lg mx-auto py-8 sm:py-12",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl mb-8",children:t("verify.title")}),(0,s.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6 sm:p-8",children:(()=>{switch(r){case"loading":return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),(0,s.jsx)("p",{className:"mt-4 text-gray-500",children:t("verify.loading")})]});case"pending":return(0,s.jsxs)("form",{onSubmit:Y,className:"space-y-6",children:[(0,s.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[(0,s.jsxs)("p",{className:"text-sm text-blue-800",children:[t("verify.verifyingAccount")," ",(0,s.jsx)("span",{className:"font-medium",children:b})]}),v&&(0,s.jsxs)("p",{className:"text-sm text-blue-600 mt-1",children:[t("verify.listing")," ",v]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:t("verify.photoLabel")}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mb-4",dangerouslySetInnerHTML:{__html:t("verify.photoDescription")}}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-2",children:t("verify.frontSide")}),(0,s.jsx)("input",{type:"file",ref:q,onChange:X,accept:"image/*,.pdf",className:"hidden"}),O?(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("img",{src:O,alt:"ID Front Preview",className:"w-full h-40 object-cover rounded-lg border border-gray-300"}),(0,s.jsx)("button",{type:"button",onClick:()=>{P(null),M(null)},className:"absolute top-2 right-2 bg-red-500 text-white rounded-full p-1 hover:bg-red-600",children:(0,s.jsx)(d,{className:"h-5 w-5"})})]}):(0,s.jsxs)("button",{type:"button",onClick:()=>q.current?.click(),className:"w-full flex flex-col items-center justify-center px-4 py-8 border-2 border-gray-300 border-dashed rounded-lg hover:border-indigo-500 transition-colors",children:[(0,s.jsx)(c,{className:"h-10 w-10 text-gray-400"}),(0,s.jsx)("span",{className:"mt-2 text-sm font-medium text-gray-600",children:t("verify.front")})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-2",children:t("verify.backSide")}),(0,s.jsx)("input",{type:"file",ref:H,onChange:V,accept:"image/*,.pdf",className:"hidden"}),U?(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("img",{src:U,alt:"ID Back Preview",className:"w-full h-40 object-cover rounded-lg border border-gray-300"}),(0,s.jsx)("button",{type:"button",onClick:()=>{z(null),$(null)},className:"absolute top-2 right-2 bg-red-500 text-white rounded-full p-1 hover:bg-red-600",children:(0,s.jsx)(d,{className:"h-5 w-5"})})]}):(0,s.jsxs)("button",{type:"button",onClick:()=>H.current?.click(),className:"w-full flex flex-col items-center justify-center px-4 py-8 border-2 border-gray-300 border-dashed rounded-lg hover:border-indigo-500 transition-colors",children:[(0,s.jsx)(c,{className:"h-10 w-10 text-gray-400"}),(0,s.jsx)("span",{className:"mt-2 text-sm font-medium text-gray-600",children:t("verify.back")})]})]})]}),(0,s.jsx)("p",{className:"mt-2 text-xs text-gray-500",children:t("verify.acceptedFormats")})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700 mb-2",children:t("verify.phoneLabel")}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"tel",id:"phone",value:C,onChange:e=>{E(e.target.value),N(""),T(!1)},placeholder:t("verify.phonePlaceholder"),className:"block flex-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-lg py-3 px-4"}),S&&(0,s.jsx)("button",{type:"button",disabled:!C.trim()||A,onClick:async()=>
1{if(C.trim()){R(!0),N(""),T(!1);try{let t=await fetch(`${p}/api/verify/${e}/request-phone-otp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone_number:C.trim()})}),r=await t.json();if(!t.ok)throw Error(r.error||"Failed to send code");T(!0),L("")}catch(e){N(e.message||t("verify.errorSendOtp"))}finally{R(!1)}}},className:"shrink-0 px-4 py-3 border border-gray-300 rounded-md bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed",children:A?t("verify.sendingOtp"):B?t("verify.resendCode"):t("verify.sendCode")})]}),S&&B&&(0,s.jsx)("div",{className:"mt-2 p-2 bg-green-50 border border-green-200 rounded-md",children:(0,s.jsx)("p",{className:"text-sm text-green-700",children:t("verify.otpCodeSent")})}),S&&(0,s.jsxs)("div",{className:"mt-3",children:[(0,s.jsx)("label",{htmlFor:"otp",className:"block text-sm font-medium text-gray-700 mb-1",children:t("verify.otpLabel")}),(0,s.jsx)("input",{type:"text",id:"otp",inputMode:"numeric",maxLength:6,value:F,onChange:e=>{L(e.target.value.replace(/\D/g,"")),N("")},placeholder:t("verify.otpPlaceholder"),className:"block w-full max-w-[8rem] rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-lg py-2 px-3"})]})]}),w&&(0,s.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,s.jsx)("p",{className:"text-sm text-red-600",children:w})}),(0,s.jsx)("button",{type:"submit",disabled:k,className:"w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed",children:k?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2"}),t("verify.submitting")]}):t("verify.submit")}),(0,s.jsx)("p",{className:"text-xs text-gray-500 text-center",children:t("verify.privacyNote")})]});case"submitted":return(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)(m,{className:"mx-auto h-16 w-16 text-yellow-500"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold text-gray-900",children:t("verify.submitted.title")}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:t("verify.submitted.message")}),(0,s.jsx)("p",{className:"mt-4 text-sm text-gray-500",children:t("verify.submitted.emailNote")})]});case"approved":return(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)(x,{className:"mx-auto h-16 w-16 text-green-500"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold text-gray-900",children:t("verify.approved.title")}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:t("verify.approved.message")}),(0,s.jsx)("a",{href:"/",className:"mt-6 inline-block px-6 py-3 bg-indigo-600 text-white rounded-md hover:bg-indigo-700",children:t("verify.approved.button")})]});case"rejected":return(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)(d,{className:"mx-auto h-16 w-16 text-red-500"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold text-gray-900",children:t("verify.rejected.title")}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:t("verify.rejected.message")}),(0,s.jsx)("a",{href:"mailto:[email protected]",className:"mt-6 inline-block px-6 py-3 bg-indigo-600 text-white rounded-md hover:bg-indigo-700",children:t("verify.rejected.button")})]});case"expired":return(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)(d,{className:"mx-auto h-16 w-16 text-red-500"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold text-gray-900",children:t("verify.expired.title")}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:t("verify.expired.message")}),(0,s.jsx)("a",{href:"mailto:[email protected]",className:"mt-6 inline-block px-6 py-3 bg-indigo-600 text-white rounded-md hover:bg-indigo-700",children:t("verify.rejected.button")})]});case"error":return(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)(d,{className:"mx-auto h-16 w-16 text-red-500"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold text-gray-900",children:t("verify.error.title")}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:w||t("verify.error.invali
1dLink")}),(0,s.jsx)("a",{href:"mailto:[email protected]",className:"mt-6 inline-block px-6 py-3 bg-indigo-600 text-white rounded-md hover:bg-indigo-700",children:t("verify.rejected.button")})]});default:return null}})()})]})})}),(0,s.jsx)(h.w,{})]})}},14724:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var s=r(37876),a=r(48230),i=r.n(a),l=r(49995);let n={solid:"group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",outline:"group inline-flex ring-1 items-center justify-center rounded-full py-2 px-4 text-sm focus:outline-none"},o={solid:{slate:"bg-slate-900 text-white hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900",blue:"bg-blue-600 text-white hover:text-slate-100 hover:bg-blue-500 active:bg-blue-800 active:text-blue-100 focus-visible:outline-blue-600",white:"bg-white text-slate-900 hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white"},outline:{slate:"ring-slate-200 text-slate-700 hover:text-slate-900 hover:ring-slate-300 active:bg-slate-100 active:text-slate-600 focus-visible:outline-blue-600 focus-visible:ring-slate-300",white:"ring-slate-700 text-white hover:ring-slate-500 active:ring-slate-700 active:text-slate-400 focus-visible:outline-white"}};function d({variant:e="solid",color:t="slate",className:r,href:a,...c}){return r=(0,l.A)(n[e],o[e][t],r),a?(0,s.jsx)(i(),{href:a,className:r,...c}):(0,s.jsx)("button",{className:r,...c})}},15898:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(14232);let a=s.forwardRef(function({title:e,titleId:t,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M9.653 16.915l-.005-.003-.019-.01a20.759 20.759 0 01-1.162-.682 22.045 22.045 0 01-2.582-1.9C4.045 12.733 2 10.352 2 7.5a4.5 4.5 0 018-2.828A4.5 4.5 0 0118 7.5c0 2.852-2.044 5.233-3.885 6.82a22.049 22.049 0 01-3.744 2.582l-.019.01-.005.003h-.002a.739.739 0 01-.69.001l-.002-.001z"}))})},34827:(e,t,r)=>{"use strict";r.d(t,{firebase_app:()=>i});var s=r(16042);let a={apiKey:"AIzaSyAUKNXUhTFPQwCNEVNipltY_PUHTPXC0Wo",authDomain:"weegee-32bc1.firebaseapp.com",projectId:"weegee",storageBucket:"weegee.appspot.com",messagingSenderId:"16064939018",appId:"1:16064939018:web:92d66bc55a914bef94cbf3",measurementId:r(65364).env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID},i=0===(0,s.Dk)().length?(0,s.Wp)(a):(0,s.Dk)()[0]},36160:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify/[token]",function(){return r(11845)}])},38093:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var s=r(37876),a=r(49995);function i({className:e,isLoading:t=!1,loadingTitle:r="Loading…",loadingDescription:l="This may take a few seconds, please dont close this page.",...n}){return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsxs)("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen z-50 overflow-hidden bg-gray-700 opacity-75 flex flex-col items-center justify-center",children:[(0,s.jsx)("div",{className:"loader ease-linear rounded-full border-4 border-t-4 border-gray-200 h-20 w-20 mb-4"}),(0,s.jsx)("h2",{className:"text-center text-white text-xl font-semibold",children:r}),(0,s.jsx)("p",{className:"w-1/3 text-center text-white",children:l})]}),(0,s.jsx)("div",{className:(0,a.A)("mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",e),...n})]})}},52666:(e,t,r)=>{"use strict";r.d(t,{Y:()=>j});var s=r(37876),a=r(48230),i=r.n(a),l=r(14724),n=r(38093),o=r(11613),d=r(14232),c=r(77119),m=r(18222),x=r(53337),u=r(89099);function h(){let e=(0,u.useRouter)(),t=(0,d.useCallback)(t=>{let r=e.asPath;return e.push(r,r,{locale:t})},[e]),r=e=>{t(e.target.getAttribute("lang-id"))};return(0,s.jsxs)(c.W,{as:"div",className:"relative inline-block text-left z-50",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(c.W.Button,{className:"inline-flex w-full justify-center rounded-md  bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100",children:[e.locale,(0,s.jsx)(x.A,{className:"-mr-1 ml-2 h-5 w-5","aria-hidden":"true"})]})}),(0,s.jsx)(m.e,{as:d.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,s.jsx)(c.W.Items,{className:"absolute right-0 z-50 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,s.jsx)("div",{className:"py-1",children:[{id:"de",text:"Deutsch"},{id:"en",text:"English"},{id:"fr",text:"Fran\xe7ais"}].map(e=>(0,s.jsx)(c.W.Item,{children:({active:t})=>(0,s.jsx)("a",{href:"#","lang-id":e.id,onClick:r,className:function(...e){return e.filter(Boolean).join(" ")}(t?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm"),children:e.text})},e.id))})})})]})}var g=r(7985),f=r(97209),p=r(34827),b=r(76559);function y(...e){return e.filter(Boolean).join(" ")}function v(){let{t:e}=(0,f.Bd)("common"),[t,r]=(0,d.useState)(),a=(0,u.useRouter)();return(0,d.useEffect)(()=>{let e=(0,b.getAuth)(p.firebase_app).onAuthStateChanged(e=>{null!=e?r(!0):r(!1)});return()=>e()}),(0,s.jsxs)(c.W,{as:"div",className:"relative inline-block text-left",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(c.W.Button,{className:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold text-gray-900  hover:bg-gray-50",children:[e("account"),(0,s.jsx)(x.A,{className:"-mr-1 h-5 w-5 text-gray-400","aria-hidden":"true"})]})}),(0,s.jsx)(m.e,{as:d.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,s.jsx)(c.W.Items,{className:"absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,s.jsx)("div",{className:"py-1",children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.W.Item,{children:({active:t})=>(0,s.jsx)("a",{onClick:()=>{a.push("/my/ads")},className:y(t?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"),children:e("listings")})}),(0,s.jsx)(c.W.Item,{children:({active:t})=>(0,s.jsx)("a",{onClick:()=>
1{a.push("/my/delete-account")},className:y(t?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"),children:e("deleteAccount.menuItem")})}),(0,s.jsx)("div",{className:"border-t border-gray-100 my-1"}),(0,s.jsx)(c.W.Item,{children:({active:t})=>(0,s.jsx)("a",{onClick:()=>{a.push("/logout")},className:y(t?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"),children:e("logout")})})]}):(0,s.jsx)(c.W.Item,{children:({active:t})=>(0,s.jsx)("a",{onClick:()=>{a.push("/login")},className:y(t?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm"),children:e("login")})})})})})]})}function j(){let e=(0,u.useRouter)(),{t}=(0,f.Bd)("common");return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("header",{className:"py-10",children:(0,s.jsx)(n.m,{children:(0,s.jsxs)("nav",{className:"relative z-20 flex justify-between",children:[(0,s.jsx)("div",{className:"flex items-center md:gap-x-12",children:(0,s.jsx)(i(),{href:"/","aria-label":"Home",children:(0,s.jsx)(o.g,{})})}),(0,s.jsxs)("div",{className:"flex items-center gap-x-5 md:gap-x-8",children:[(0,s.jsx)(l.$,{className:"bg-weegee-yellow text-black",children:(0,s.jsx)("span",{onClick:()=>{(0,g.VC)(["trackEvent","Create Listing","top-navigation-startpage","Click link"]),e.push("/insertion")},children:t("head.advertise")})}),(0,s.jsx)(h,{}),(0,s.jsx)(v,{})]})]})})})})}},88238:(e,t,r)=>{"use strict";r.d(t,{w:()=>c});var s=r(37876),a=r(48230),i=r.n(a),l=r(38093);function n({href:e,children:t}){return(0,s.jsx)(i(),{href:e,className:"inline-block rounded-lg py-1 px-2 text-sm text-slate-700 hover:bg-slate-100 hover:text-slate-900",children:t})}var o=r(97209),d=r(15898);function c(){let{t:e}=(0,o.Bd)("common");return(0,s.jsx)("footer",{className:"bg-slate-50",children:(0,s.jsxs)(l.m,{children:[(0,s.jsx)("div",{className:"py-16",children:(0,s.jsx)("nav",{className:"mt-10 text-sm","aria-label":"quick links",children:(0,s.jsxs)("div",{className:"-my-1 flex justify-center gap-x-6",children:[(0,s.jsx)(n,{href:"/wgs/about",children:e("footer.about")}),(0,s.jsx)(n,{href:"/wgs/impressum",children:e("footer.imprint")}),(0,s.jsx)(n,{href:"/wgs/agb",children:e("footer.agb")}),(0,s.jsx)(n,{href:"/browse",children:e("footer.browse")})]})})}),(0,s.jsxs)("div",{className:"flex flex-col items-center border-t border-slate-400/10 py-10 sm:flex-row-reverse sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex gap-x-4 text-sm text-gray-500 mt-0.5",children:[(0,s.jsx)("a",{href:"https://github.com/backl-hub/peptide-insider/discussions",target:"_blank",className:"hover:text-slate-700",children:"More"}),(0,s.jsx)("a",{href:"https://github.com/camillawirth/glowing-computing-machine/discussions",target:"_blank",className:"hover:text-slate-700",children:"Details"}),(0,s.jsx)("a",{href:"https://topmate.io/peptideinsider",target:"_blank",className:"hover:text-slate-700",children:"Here"})]}),(0,s.jsxs)("p",{className:"mt-6 text-sm text-slate-500 sm:mt-0",children:["\xa9 weegee.ch ",new Date().getFullYear()," made with ",(0,s.jsx)(d.A,{className:"inline w-3 h-3 text-red-600"})," in Rafz, Switzerland."]})]})]})})}}},e=>{e.O(0,[602,672,596,605,636,593,792],()=>e(e.s=36160)),_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.