1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2444],{6132:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(71847).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},21873:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(71847).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},32444:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var r=s(95155),a=s(51211),l=s(86651),o=s(6132),n=s(21873),i=s(35299),c=s(61362);let d=(0,s(71847).A)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);var m=s(65229),x=s(91169),h=s(17910),u=s(3998),p=s(65142),f=s(12115);s(47650);var b=s(46673),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let s=(0,b.TL)(`Primitive.${t}`),a=f.forwardRef((e,a)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(l?s:t,{...o,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),j=f.forwardRef((e,t)=>(0,r.jsx)(g.label,{...e,ref:t,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||(null==(s=e.onMouseDown)||s.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));j.displayName="Label";var N=s(64269);function v(e){let{className:t,...s}=e;return(0,r.jsx)(j,{"data-slot":"label",className:(0,N.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...s})}var y=s(86948),w=s(11647),z=s(34663),A=s(18955);function k(e){let{formData:t,setFormData:s,formErrors:f,setFormErrors:b,addressSuggestions:g,showSuggestions:j,setShowSuggestions:N,isLoadingAddress:k,addressInputRef:C,suggestionsRef:F,fileInputRef:P,handleAddressChange:q,selectAddress:D,handlePhotoUpload:_,removePhoto:E,handleSubmit:T,isFaceModelLoading:B=!1}=e,H=(0,A.c)();return(0,r.jsx)(a.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"max-w-2xl mx-auto px-4 pt-12 pb-16",children:(0,r.jsxs)(y.Zp,{className:"bg-zinc-900/80 backdrop-blur-xl border-white/10 shadow-2xl shadow-black/50 rounded-3xl overflow-hidden",children:[(0,r.jsxs)(y.aR,{className:"bg-gradient-to-r from-zinc-800/50 to-zinc-900/50 border-b border-white/5 p-8",children:[(0,r.jsxs)(y.ZB,{className:"text-2xl font-bold flex items-center gap-3 text-white",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-rose-500 to-orange-500 rounded-xl flex items-center justify-center shadow-lg shadow-rose-500/20",children:(0,r.jsx)(l.A,{className:"w-6 h-6 text-white"})}),H("form.title")]}),(0,r.jsx)(y.BT,{className:"text-base text-zinc-400 mt-3",children:H("form.subtitle")})]}),(0,r.jsx)(y.Wu,{className:"p-8",children:(0,r.jsxs)("form",{onSubmit:T,className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(v,{htmlFor:"firstName",className:"text-sm font-semibold text-zinc-300",children:[H("form.firstName")," ",(0,r.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,r.jsx)(p.p,{id:"firstName",placeholder:H("form.firstNamePlaceholder"),required:!0,className:"h-12 rounded-xl bg-zinc-800/50 text-white placeholder:text-zinc-500 focus:border-rose-500 focus:ring-rose-500/20 transition-all ".concat(f.firstName?"border-rose-500":t.firstName.trim()?"border-zinc-700/50":"border-rose-500/50"),value:t.firstName,onChange:e=>{s({...t,firstName:e.target.value}),f.firstName&&b(e=>({...e,firstName:void 0}))}}),f.firstName?(0,r.jsxs)("p",{className:"text-xs text-rose-400 flex items-center gap-1",children:[(0,r.jsx)(o.A,{className:"w-3 h-3"}),f.firstName]}):!t.firstName.trim()&&(0,r.jsx)("p",{className:"text-xs text-rose-400",children:H("form.required")})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(v,{htmlFor:"age",className:"text-sm font-semibold text-zinc-300",children:[H("form.age")," ",(0,r.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,r.jsx)(p.p,{id:"age",type:"number",placeholder:H("form.agePlaceholder"),required:!0,min:"18",max:"85",className:"h-12 rounded-xl bg-zinc-800/50 text-white placeholder:text-zinc-500 focus:border-rose-500 focus:ring-rose-500/20 transition-all ".concat(f.age?"border-rose-500":t.age.trim()?"border-zinc-700/50":"border-rose-500/50"),value:t.age,onChange:e=>{s({...t,age:e.target.value}),f.age&&b(e=>({...e,age:void 0}))}}),f.age?(0,r.jsxs)("p",{className:"text-xs text-rose-400 flex items-center gap-1",children:[(0,r.jsx)(o.A,{className:"w-3 h-3"}),f.age]}):!t.age.trim()&&(0,r.jsx)("p",{className:"text-xs text-rose-400",children:H("form.required")})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(v,{className:"text-sm font-semibold text-zinc-300",children:[H("form.gender")," ",(0,r.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:()=>s({...t,gender:"male"}),className:"h-12 rounded-xl border-2 font-medium transition-all ".concat("male"===t.gender?"border-rose-500 bg-rose-500/10 text-rose-400":"border-zinc-700/50 bg-zinc-800/30 text-zinc-400 hover:border-zinc-600/50"),children:H("form.male")}),(0,r.jsx)("button",{type:"button",onClick:()=>s({...t,gender:"female"}),className:"h-12 rounded-xl border-2 font-medium transition-all ".concat("female"===t.gender?"border-rose-500 bg-rose-500/10 text-rose-400":"border-zinc-700/50 bg-zinc-800/30 text-zinc-400 hover:border-zinc-600/50"),children:H("form.female")})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(v,{htmlFor:"location",className:"text-sm font-semibold text-zinc-300",children:[H("form.location")," ",(0,r.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,r.jsx)("p",{className:"text-xs text-zinc-500 mb-1",children:H("form.locationHint")}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(n.A,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 z-10"}),k?(0,r.jsx)(i.A,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 animate-spin z-10"}):t.location.trim().length>=3?(0,r.jsx)(c.A,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-emerald-400 z-10"}):null,(0,r.jsx)(p.p,{ref:C,id:"location",placeholder:H("form.locationPlaceholder"),required:!0,autoComplete:"off",className:"h-12 pl-11 rounded-xl bg-zinc-800/50 text-white placeholder:text-zinc-500 focus:border-rose-500 focus:ring-rose-500/20 transition-all ".concat(t.location.trim()?"border-emerald-500/50":"border-rose-500/50"),value:t.location,onChange:q,onFocus:()=>g.length>0&&N(!0)}),j&&g.length>0&&(0,r.jsx)("div",{ref:F,className:"absolute top-full left-0 right-0 mt-2 bg-zinc-800 border border-zinc-700 rounded-xl shadow-xl z-50 overflow-hidden",children:g.map((e,t)=>(0,r.jsxs)("button",{type:"button",className:"w-full px-4 py-3 text-left hover:bg-zinc-700 transition-colors flex items-start gap-3 border-b border-zinc-700/50 last:border-b-0",onClick:()=>D(e),children:[(0,r.jsx)(n.A,{className:"w-4 h-4 text-rose-400 mt-0.5 shrink-0"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-white",children:e.display}),e.city&&e.country&&(0,r.jsxs)("p",{className:"text-xs text-zinc-500 mt-0.5",children:[e.city,", ",e.country]})]})]},t))})]}),!t.location.trim()&&(0,r.jsx)("p",{className:"text-xs text-rose-400",children:H("form.required")})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(v,{className:"text-sm font-semibold text-zinc-300",children:H("form.photos")}),(0,r.jsx)("p",{className:"text-xs text-zinc-500 mt-1",children:H("form.photosHint")})]}),(0,r.jsx)(w.E,{variant:"outline",className:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10 text-xs",children:H("form.photosAccuracy")})]}),(0,r.jsx)("input",{ref:P,type:"file",accept:"image/*",multiple:!0,style:{opacity:0,pointerEvents:"none",position:"absolute",width:1,height:1},onChange:_,tabIndex:-1}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3",children:[0,1,2,3].map(e=>{let s=!t.photos[e]&&t.photos.length<4,a=t.photos[e],l=(null==a?void 0:a.dataUrl)&&"placeholder"!==a.dataUrl?a.dataUrl:null,n=e=>{e&&(e.preventDefault(),e.stopPropagation()),s&&P.current&&(P.current.value="",P.current.click())};return(0,r.jsx)("div",{role:"button",tabIndex:s?0:-1,onClick:n,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},className:"relative aspect-square border-2 border-dashed rounded-xl transition-all ".concat(a?a.hasFace?"border-emerald-500/50 bg-zinc-800/30":a.isAnalyzing?"border-amber-500/50 bg-zinc-800/30":"border-rose-500/50 bg-zinc-800/30":0===e&&0===t.photos.length?"border-rose-500/50 bg-zinc-800/20 hover:border-rose-500 hover:bg-zinc-800/30":"border-zinc-700/50 bg-zinc-800/10 hover:border-zinc-600/50 hover:bg-zinc-800/20"," ").concat(t.photos.length>=4&&!a?"opacity-50 cursor-not-allowed":"cursor-pointer"),children:a?(0,r.jsxs)("div",{className:"relative w-full h-full",children:[l?(0,r.jsx)("img",{src:l,alt:"Photo ".concat(e+1),className:"w-full h-full object-cover rounded-xl"}):(0,r.jsx)("div",{className:"w-full h-full flex flex-col items-center justify-center bg-zinc-800/50 rounded-xl",children:(0,r.jsx)(d,{className:"w-6 h-6 text-zinc-500 mb-1"})}),(0,r.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),E(e)},className:"absolute -top-2 -right-2 bg-rose-500 text-white p-1.5 rounded-full shadow-lg hover:bg-rose-600 transition-colors z-10",children:(0,r.jsx)(m.A,{className:"w-3 h-3"})}),a.isAnalyzing?(0,r.jsxs)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm rounded-xl flex flex-col items-center justify-center",children:[(0,r.jsx)(i.A,{className:"w-6 h-6 text-amber-400 animate-spin mb-2"}),(0,r.jsx)("span",{className:"text-[10px] text-amber-400 font-medium",children:H("form.analyzing")})]}):a.hasFace?(0,r.jsx)("div",{className:"absolute bottom-2 left-2 right-2",children:a.faceCount&&a.faceCount>1?(0,r.jsxs)("div",{className:"flex items-center gap-1 bg-amber-500/90 text-white text-[10px] px-2 py-1 rounded-full font-medium backdrop-blur-sm",children:[(0,r.jsx)(x.A,{className:"w-3 h-3"}),(0,r.jsxs)("span",{children:[a.faceCount," ",H("form.facesDetected")]})]}):(0,r.jsxs)("div",{className:"flex items-center gap-1 bg-emerald-500/90 text-white text-[10px] px-2 py-1 rounded-full font-medium backdrop-blur-sm",children:[(0,r.jsx)(c.A,{className:"w-3 h-3"}),(0,r.jsxs)("span",{children:[H("form.faceDetected"),a.confidence>0?" (".concat(a.confidence,"%)"):""]})]})}):(0,r.jsx)("div",{className:"absolute bottom-2 left-2 right-2",children:(0,r.jsxs)("div",{className:"flex items-center gap-1 bg-rose-500/90 text-white text-[10px] px-2 py-1 rounded-full font-medium backdrop-blur-sm",children:[(0,r.jsx)(o.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:H("form.noFace")})]})}),0===e&&(0,r.jsx)("span",{className:"absolute top-2 left-2 text-[10px] bg-rose-500 text-white px-2 py-0.5 rounded-full font-medium",children:H("form.mainPhoto")})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-xl border flex items-center justify-center mb-2 transition-all ".concat(0===e&&0===t.photos.length?"bg-rose-500/20 border-rose-500/30":"bg-zinc-800/80 border-zinc-700/50"),children:(0,r.jsx)(d,{className:"w-5 h-5 transition-colors ".concat(0===e&&0===t.photos.length?"text-rose-400":"text-zinc-500")})}),(0,r.jsx)("p",{className:"text-xs text-zinc-400 text-center px-2",children:0===e&&0===t.photos.length?(0,r.jsx)("span",{className:"text-rose-400 font-medium",children:H("form.required")}):"".concat(H("faceSelection.photo",{number:e+1}))})]})},e)})}),(0,r.jsx)("p",{className:"text-xs text-zinc-500 text-center",children:0===t.photos.length?(0,r.jsx)("span",{className:"text-rose-400",children:H("form.addPhoto")}):t.photos.some(e=>e.isAnalyzing)?(0,r.jsxs)("span",{className:"text-amber-400 flex items-center justify-center gap-1",children:[(0,r.jsx)(i.A,{className:"w-3 h-3 animate-spin"}),H("form.analyzingFaces")]}):(0,r.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("span",{className:"text-emerald-400",children:H("form.photosCount",{count:t.photos.length})}),t.photos.filter(e=>e.faceCount&&e.faceCount>0).length>0&&(0,r.jsxs)("span",{className:"text-emerald-400",children:["⢠",H("form.facesCount",{count:t.photos.reduce((e,t)=>e+(t.faceCount||0),0)})]}),t.photos.filter(e=>!e.hasFace&&!e.isAnalyzing).length>0&&(0,r.jsxs)("span",{className:"text-rose-400",children:["⢠",H("form.withoutFace",{count:t.photos.filter(e=>!e.hasFace&&!e.isAnalyzing).length})]})]})}),f.photos&&(0,r.jsxs)(a.P.div,{initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},className:"p-3 bg-rose-500/10 border border-rose-500/30 rounded-xl flex items-center gap-2",children:[(0,r.jsx)(o.A,{className:"w-4 h-4 text-rose-400 shrink-0"}),(0,r.jsx)("p",{className:"text-rose-400 text-xs font-medium",children:f.photos})]}),(0,r.jsxs)("div",{className:"flex items-start gap-3 p-4 bg-zinc-800/30 rounded-xl border border-zinc-700/30",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full bg-emerald-500/10 flex items-center justify-center shrink-0",children:(0,r.jsx)(h.A,{className:"w-4 h-4 text-emerald-400"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs text-zinc-300 font-medium mb-1",children:H("form.privacyTitle")}),(0,r.jsx)("p",{className:"text-[11px] text-zinc-500 leading-relaxed",children:H("form.privacyText")})]})]})]}),(0,r.jsx)(u.$,{type:"submit",disabled:0===t.photos.length||!t.firstName.trim()||!t.age.trim()||!t.location.trim()||t.photos.some(e=>e.isAnalyzing)||B&&t.photos.length>0,className:"w-full h-14 text-lg font-bold rounded-2xl bg-gradient-to-r from-rose-600 to-orange-500 hover:from-rose-500 hover:to-orange-400 shadow-xl shadow-rose-500/20 border-0 transition-all hover:shadow-rose-500/30 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:from-rose-600 disabled:hover:to-orange-500",children:t.photos.some(e=>e.isAnalyzing)||B&&t.photos.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{className:"mr-2 w-5 h-5 animate-spin"}),H("form.analyzing")||H("form.submitting")]}):(0,r.jsxs)(r.Fragment,{children:[H("form.submit")," ",(0,r.jsx)(l.A,{className:"ml-2 w-5 h-5"})]})}),(0,r.jsx)("p",{className:"text-center text-xs text-zinc-500",children:H.rich("form.terms",{terms:e=>(0,r.jsx)(z.N_,{href:"/conditions",className:"text-rose-400 hover:underline",children:e}),privacy:e=>(0,r.jsx)(z.N_,{href:"/confidentialite",className:"text-rose-400 hover:underline",children:e})})})]})})]})},"form")}},86948:(e,t,s)=>{s.d(t,{BT:()=>i,Wu:()=>c,ZB:()=>n,Zp:()=>l,aR:()=>o});var r=s(95155);s(12115);var a=s(64269);function l(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function o(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function n(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",t),...s})}function i(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...s})}function c(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",t),...s})}}}]);
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.