PageSourceSearch

https://www.secretbox.fr/_nuxt/DgR-t1EW.js

js secretbox.fr collected 2026-10-03 21:27:43 UTC 26,160 bytes, 1 lines download raw bytes

1import{A as e,E as t,H as n,Ht as r,I as i,N as a,U as o,Z as s,_ as c,_t as l,at as u,b as d,d as f,f as p,k as m,l as h,o as g,p as _,r as v,rt as y,st as b,tt as x,u as S,ut as C,v as w,vt as T,z as E,zt as D}from"./CgDnuvNn.js";import{l as O,s as k,u as A}from"./DIkiUomw.js";import{u as j}from"./DxsG3bq2.js";import{t as M}from"./C8FudJIn.js";import{n as ee}from"./BzTDrFb9.js";import{n as te}from"./XDxTjG-L.js";import{t as ne}from"./B65RteAa.js";import{t as N}from"./BeBUUQa6.js";import{t as re}from"./7z4HVtDv.js";import{t as P}from"./BStq9B-M.js";import{t as F}from"./1zW__jBu.js";import{t as ie}from"./r-TXGyuO2.js";import{t as I}from"./CvPIlA0A2.js";import{t as L}from"./bj_Snf2F2.js";import{t as ae}from"./C4WSmw6k2.js";import{t as oe}from"./7fca_gcx2.js";import{a as se,i as ce,n as R,r as z}from"./BN42Mf2e2.js";import{n as le,t as B}from"./Ceog9k9P.js";var V=[`width`,`height`,`fill`,`transform`],ue={key:0},H=[S(`path`,{d:`M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z`},null,-1)],U={key:1},W=[S(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`},null,-1),S(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`},null,-1)],G={key:2},K=[S(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z`},null,-1)],de={key:3},fe=[S(`path`,{d:`M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z`},null,-1)],pe={key:4},me=[S(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`},null,-1)],he={key:5},ge=[S(`path`,{d:`M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z`},null,-1)],q=d({name:`PhCircleNotch`,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){let n=e,r=t(`weight`,`regular`),i=t(`size`,`1em`),a=t(`color`,`currentColor`),s=t(`mirrored`,!1),c=h(()=>n.weight??r),l=h(()=>n.size??i),u=h(()=>n.color??a),d=h(()=>n.mirrored===void 0?s?`scale(-1, 1)`:void 0:n.mirrored?`scale(-1, 1)`:void 0);return(e,t)=>(E(),_(`svg`,m({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,width:l.value,height:l.value,fill:u.value,transform:d.value},e.$attrs),[o(e.$slots,`default`),c.value===`bold`?(E(),_(`g`,ue,H)):c.value===`duotone`?(E(),_(`g`,U,W)):c.value===`fill`?(E(),_(`g`,G,K)):c.value===`light`?(E(),_(`g`,de,fe)):c.value===`regular`?(E(),_(`g`,pe,me)):c.value===`thin`?(E(),_(`g`,he,ge)):p(``,!0)],16,V))}}),_e=[`width`,`height`,`fill`,`transform`],ve={key:0},ye=[S(`path`,{d:`M238.7,102.46,62.81,37.21l-.25-.09A20,20,0,0,0,37.12,62.56l.09.25L102.46,238.7A20,20,0,0,0,121.3,252h.35a20,20,0,0,0,18.77-14.12l.09-.29,21.23-75.85,75.85-21.23.29-.09a20,20,0,0,0,.82-38Zm-89.93,38a12,12,0,0,0-8.32,8.32l-19.68,70.29L62.8,62.8l156.26,58Z`},null,-1)],be={key:1},xe=[S(`path`,{d:`M234.35,129,152,152,129,234.35a8,8,0,0,1-15.21.27l-65.28-176A8,8,0,0,1,58.63,48.46l176,65.28A8,8,0,0,1,234.35,129Z`,opacity:`0.2`},null,-1),S(`path`,{d:`M237.33,106.21,61.41,41l-.16-.05A16,16,0,0,0,40.9,61.25a1,1,0,0,0,.05.16l65.26,175.92A15.77,15.77,0,0,0,121.28,248h.3a15.77,15.77,0,0,0,15-11.29l.06-.2,21.84-78,78-21.84.2-.06a16,16,0,0,0,.62-30.38ZM149.84,144.3a8,8,0,0,0-5.54,5.54L121.3,232l-.06-.17L56,56l175.82,65.22.16.06Z`},null,-1)],Se={key:2},Ce=[S(`path`,{d:`M248,121.58a15.76,15.76,0,0,1-11.29,15l-.2.06-78,21.84-21.84,78-.06.2a15.7
17,15.77,0,0,1-15,11.29h-.3a15.77,15.77,0,0,1-15.07-10.67L41,61.41a1,1,0,0,1-.05-.16A16,16,0,0,1,61.25,40.9l.16.05,175.92,65.26A15.78,15.78,0,0,1,248,121.58Z`},null,-1)],we={key:3},Te=[S(`path`,{d:`M236.65,108.1,60.72,42.83l-.13,0A14,14,0,0,0,42.78,60.59s0,.09,0,.13L108.1,236.65A13.77,13.77,0,0,0,121.28,246h.26a13.8,13.8,0,0,0,13.14-9.88l0-.15,22.14-79.1L236,134.73l.15,0a14,14,0,0,0,.53-26.58Zm-4,15.1-82.26,23a6,6,0,0,0-4.16,4.16l-23,82.26a1.85,1.85,0,0,1-1.86,1.36,1.82,1.82,0,0,1-1.92-1.35.61.61,0,0,0,0-.12L54.11,56.62a2,2,0,0,1,2.51-2.51l175.91,65.26.12,0a2,2,0,0,1,0,3.79Z`},null,-1)],Ee={key:4},De=[S(`path`,{d:`M237.33,106.21,61.41,41l-.16-.05A16,16,0,0,0,40.9,61.25a1,1,0,0,0,.05.16l65.26,175.92A15.77,15.77,0,0,0,121.28,248h.3a15.77,15.77,0,0,0,15-11.29l.06-.2,21.84-78,78-21.84.2-.06a16,16,0,0,0,.62-30.38ZM149.84,144.3a8,8,0,0,0-5.54,5.54L121.3,232l-.06-.17L56,56l175.82,65.22.16.06Z`},null,-1)],Oe={key:5},ke=[S(`path`,{d:`M236,110,59.93,44.67A12,12,0,0,0,44.69,60L110,235.93A11.83,11.83,0,0,0,121.28,244h.22a11.82,11.82,0,0,0,11.26-8.47l0-.1,22.45-80.19,80.19-22.44.1,0A12,12,0,0,0,236,110Zm-2.79,15.12-82.3,23a4,4,0,0,0-2.78,2.77l-23,82.3a3.88,3.88,0,0,1-3.74,2.78,4,4,0,0,1-3.88-2.77L52.22,57.32a3.93,3.93,0,0,1,1-4.14A4,4,0,0,1,56,52a3.86,3.86,0,0,1,1.25.21l176.08,65.32a4,4,0,0,1-.09,7.59Z`},null,-1)],Ae=d({name:`PhNavigationArrow`,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){let n=e,r=t(`weight`,`regular`),i=t(`size`,`1em`),a=t(`color`,`currentColor`),s=t(`mirrored`,!1),c=h(()=>n.weight??r),l=h(()=>n.size??i),u=h(()=>n.color??a),d=h(()=>n.mirrored===void 0?s?`scale(-1, 1)`:void 0:n.mirrored?`scale(-1, 1)`:void 0);return(e,t)=>(E(),_(`svg`,m({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,width:l.value,height:l.value,fill:u.value,transform:d.value},e.$attrs),[o(e.$slots,`default`),c.value===`bold`?(E(),_(`g`,ve,ye)):c.value===`duotone`?(E(),_(`g`,be,xe)):c.value===`fill`?(E(),_(`g`,Se,Ce)):c.value===`light`?(E(),_(`g`,we,Te)):c.value===`regular`?(E(),_(`g`,Ee,De)):c.value===`thin`?(E(),_(`g`,Oe,ke)):p(``,!0)],16,_e))}});function je(e){return y()?(b(e),!0):!1}var J=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Me=Object.prototype.toString,Ne=e=>Me.call(e)===`[object Object]`,Y=()=>{},Pe=Fe();function Fe(){return J&&(window==null?void 0:window.navigator)?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(window==null?void 0:window.navigator)?.maxTouchPoints>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ie(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var Le=e=>e();function Re(e,t={}){let n,r,i=Y,a=e=>{clearTimeout(e),i(),i=Y},o;return s=>{let c=l(e),u=l(t.maxWait);return n&&a(n),c<=0||u!==void 0&&u<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,o=s,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},u)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function ze(e){return Array.isArray(e)?e:[e]}function Be(e,t,n={}){let{eventFilter:r=Le,...i}=n;return s(e,Ie(r,t),i)}function Ve(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Be(e,t,{...a,eventFilter:Re(r,{maxWait:i})})}function He(e,t,n){return s(e,t,{...n,immediate:!0})}var Ue=J?window:void 0;J&&window.document,J&&window.navigator,J&&window.location;function X(e){let t=l(e);return t?.$el??t}function Z(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=h(()=>{let t=ze(l(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=He(()=>[i.value?.map(e=>X(e))??[Ue].filter(e=>e!=null),ze(l(i.value?e[1]:e[0])),ze(T(i.value?e[2]:e[1])),l(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Ne(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return je(n),()=>{a(),n()}}var We=!1;function Ge(e,t,n={}){let{window:r=Ue,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:Y,cancel:Y,trigger:Y}:Y;if(Pe&&!We){We=!0;let e={passive:!0};
1Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,Y,e)),r.document.documentElement.addEventListener(`click`,Y,e)}let c=!0,u=e=>l(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=X(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=l(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=l(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=X(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!u(n)),!c){c=!0;return}t(n)}},m=!1,h=[Z(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:a}),Z(r,`pointerdown`,t=>{let n=X(e);c=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Z(r,`blur`,n=>{setTimeout(()=>{let i=X(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return s?{stop:g,cancel:()=>{c=!1},trigger:e=>{c=!0,p(e),c=!1}}:g}var Q=[100,250,500,1e3,2500],Ke=3,qe=300,Je=()=>{let{locale:t,t:n}=te(),{localePath:r}=re(),{catalog:i}=oe(),{apiUrl:a}=ne(),{errorMessage:o,isLocating:s,requestPosition:c}=se(),l=C(null),u=C(null),d=C(null),f=C([]),p=C([]),m=C(`/themes.html`),g=C(!1),_=C(!1),v=C(!1),y=C(!1),b=C(!1),x=C(``),S=C([]),w=C(!1),T=C(``),E=C(null),D=C(null),O=C(null),k=e=>new Intl.NumberFormat(t.value,{maximumFractionDigits:0}).format(e),A=h(()=>{let e=[{id:`all`,label:n(`catalog.heroSearch.allBudgets`),value:null}];Q.forEach((t,r)=>{let i=Q[r-1];if(i===void 0){e.push({id:`*_${t}`,label:n(`catalog.heroSearch.budgetUpTo`,{max:k(t)}),value:`*_${t}`});return}e.push({id:`${i}_${t}`,label:n(`catalog.heroSearch.budgetRange`,{min:k(i),max:k(t)}),value:`${i}_${t}`})});let t=Q[Q.length-1];return t!==void 0&&e.push({id:`${t}_*`,label:n(`catalog.heroSearch.budgetFrom`,{min:k(t)}),value:`${t}_*`}),e}),ee=e=>d.value?d.value.id===e.id:e.value===null,N=h(()=>R(x.value)),P=h(()=>{let e=N.value;return e?f.value.map(t=>({...t,options:t.options.filter(t=>R(t.label).includes(e))})).filter(e=>e.options.length):f.value}),F=h(()=>N.value.length>=Ke&&P.value.length===0&&_.value&&!g.value),ie=h(()=>T.value===N.value),I=h(()=>ie.value?S.value:[]),L=h(()=>F.value&&(w.value||!ie.value)),ae=h(()=>!P.value.length&&!L.value&&!I.value.length),le=async e=>{w.value=!0;try{let t=await M(`/api/geo/cities`,{query:{q:e}});if(e!==N.value)return;S.value=t.cities,T.value=e}catch(t){if(e!==N.value)return;console.error(`Unable to search cities`,t),S.value=[],T.value=e}finally{e===N.value&&(w.value=!1)}};Ve([N,F],()=>{if(!F.value){S.value=[],T.value=``,w.value=!1;return}le(N.value)},{debounce:qe});let B=e=>!!(e.name&&e.include_in_menu!==0&&e.product_count>0),V=async()=>{if(!(_.value||g.value)){g.value=!0;try{let e=await M(a(`/api/hero-search-options`));_.value=!0,m.value=e.themesRootPath,p.value=e.themes.filter(B).sort((e,t)=>(e.position||0)-(t.position||0)),f.value=e.locationGroups}catch(e){console.error(`Unable to load hero search options`,e),f.value=[],p.value=[]}finally{g.value=!1}}},ue=async()=>{y.value=!1,b.value=!1,v.value=!0,x.value=``,S.value=[],T.value=``,o.value=``,V(),await e(),E.value?.focus()},H=()=>{v.value=!1},U=()=>{y.value=!y.value,y.value&&(b.value=!1,V())},W=()=>{b.value=!b.value,b.value&&(y.value=!1)},G=e=>{l.value=e?{kind:`attribute`,...e}:null,v.value=!1},K=e=>{l.value={kind:`geo`,code:e.code,context:e.context,label:e.label,lat:e.lat,lng:e.lng},v.value=!1};return Ge(D,()=>{y.value=!1}),Ge(O,()=>{b.value=!1}),{budgetDropdownRef:O,budgetRanges:A,closeLocationDialog:H,filteredLocationGroups:P,geolocationError:o,heroRadiusKm:80,isBudgetOpen:b,isBudgetSelected:ee,isLoading:g,isLocating:s,isLocationOpen:v,isCitySearchPending:L,isThemeOpen:y,locationFilter:x,locationInputRef:E,openLocationDialog:ue,selectBudget:e=>{d.value=e.value?e:null,b.value=!1},selectCity:K,selectFirstCity:()=>{let[e]=I.value;e&&K(e)},selectLocation:G,selectTheme:e=>{u.value=e,y.value=!1},selectedBudget:d,selectedLocation:l,selectedTheme:u,shouldSearchCities:F,showNoLocation:ae,submitSearch:async()=>{let e=u.value,t=e?e.canonical_path||`/${e.url_key}.html`:m.value,n={},a=l.value;a?.kind===`geo`?(n.lat=String(z(a.lat)),n.lng=String(z(a.lng)),n.radius=`80`):a&&(n[a.attributeCode]=a.value),d.value?.value&&(n.price=d.value.value);let o=n.lat&&ce(t)?i.rootCategory.path:t;await j({path:r(o),query:n})},themeDropdownRef:D,themes:p,toggleBudgetDropdown:W,toggleThemeDialog:U,useCurrentPosition:async()=>{let e=await c();e&&(l.value={kind:`geo`,label:n(`catalog.listing.geo.aroundMe`),lat:e.latitude,lng:e.longitude},v.value=!1)},visibleCities:I}},Ye=[`aria-expanded`,`aria-label`],Xe={class:`truncate`},Ze=[`aria-expanded`,`aria-label`],Qe={class:`line-clamp-2`},$e=[`aria-label`],et={key:0,class:`flex items-center justify-center gap-2 px-4 py-5 text-sm text-ink/50`},tt=[`aria-selected`],nt=[`aria-selected`,`onClick`],rt=[`aria-expanded`,`aria-label`],it={class:`truncate`},at=[`aria-label`],ot=[`aria-selected`,`onClick`],st={type:`submit`,class:`min-h-14 shrink-0 whitespace-nowrap bg-vif px-6 text-[12px] uppercase tracking-[0.18em] text-white transition-colors hover:bg-midnight sm:px-8`},ct=[`aria-label`],lt={class:`flex shrink-0 items-center justify-between gap-4`},ut={class:`font-display text-xl font-normal`},dt=[`aria-label`],ft={class:`mt-1 shrink-0 text-sm font-light text-ink/60`},pt=[`placeholder`,`aria-label`,`aria-busy`],mt=[`disabled`],ht={key:0,class:`mt-2 shrink-0 text-[12px] text-vif`,role:`status`},gt={key:1,class:`flex min-h-40 items-center justify-center gap-2 text-sm text-ink/50`,role:`status`},_t={key:2,class:`mt-3 min-h-0 flex-1 overflow-y-auto pr-1 sm:max-h-[50vh] sm:flex-none`},vt={class:`px-2 text-[10px] uppercase tracking-[0.18em] text-ink/40`},yt=[`onClick`],bt={class:`ml-auto text-[10px] text-ink/35`},xt={key:0,class:`flex items-center justify-center gap-2 px-2 py-8 text-sm text-ink/50`,role:`status`,"aria-live":`polite`},St={key:1,class:`mt-4 first:mt-2`},Ct={class:`px-2 text-[10px] uppercase tracking-[0.18em] text-ink/40`},wt=[`onClick`],Tt={class:`ml-auto truncate pl-2 text-[10px] text-ink/35`},Et={class:`px-2 pt-2 text-[11px] font-light text-ink/45`},Dt={key:2,class:`px-2 py-8 text-center text-sm text-ink/50`,role:`status`,"aria-live":`polite`},Ot=Object.assign(d({__name:`hero-search`,setup(e){let{budgetDropdownRef:t,budgetRanges:i,closeLocationDialog:a,filteredLocationGroups:o,geolocationError:s,heroRadiusKm:l,isBudgetOpen:d,isBudgetSelected:m,isLoading:h,isLocating:y,isLocationOpen:b,isCitySearchPending:C,isThemeOpen:j,locationFilter:M,locationInputRef:ee,openLocationDialog:te,selectBudget:ne,selectCity:N,selectFirstCity:re,selectLocation:oe,selectTheme:se,selectedBudget:ce,selectedLocation:R,selectedTheme:z,showNoLocation:le,submitSearch:B,themeDropdownRef:V,themes:ue,toggleBudgetDropdown:H,toggleThemeDialog:U,useCurrentPosition:W,visibleCities:G}=Je();return(e,K)=>(E(),_(v,null,[S(`form`,{class:`relative mx-auto mt-10 flex max-w-4xl flex-col items-stretch bg-white/95 text-ink shadow-xl backdrop-blur sm:flex-row`,role:`search`,onSubmit:K[4]||=A((...e)=>T(B)&&T(B)(...e),[`prevent`])},[S(`button`,{type:`button`,class:`flex min-h-14 min-w-0 items-center gap-2 border-b border-ink/10 px-4 text-sm transition-colors hover:text-gold sm:border-b-0 sm:border-r sm:px-5`,"aria-haspopup":`dialog`,"aria-expanded":T(b),"aria-label":e.$t(`catalog.heroSearch.chooseLocation`),onClick:K[0]||=(...e)=>T(te)&&T(te)(...e)},[w(T(I),{size:16,class:`shrink-0 text-gold`,"aria-hidden":`true`}),S(`span`,Xe,r(T(R)?.label||e.$t(`catalog.heroSearch.allLocations`)),1),w(T(P),{size:16,class:D([`ml-auto shrink-0 text-ink/40 transition-transform`,{"rotate-180":T(b)}]),"aria-hidden":`true`},null,8,[`class`])],8,Ye),S(`div`,{ref_key:`themeDropdownRef`,ref:V,class:`relative flex min-h-14 min-w-0 flex-1 items-center gap-2.5 border-b border-ink/10 px-4 sm:border-b-0 sm:px-5`},[w(T(ie),{size:16,weight:`light`,class:`shrink-0 text-gold`,"aria-hidden":`true`}),S(`button`,{type:`button`,class:`flex w-full min-w-0 items-center justify-between gap-2 py-2 text-left text-sm outline-none`,"aria-haspopup":`listbox`,"aria-expanded":T(j),"aria-label":e.$t(`catalog.heroSearch.chooseTheme`),onClick:K[1]||=(...e)=>T(U)&&T(U)(...e)},[S(`span`,Qe,r(T(z)?.name||e.$t(`catalog.heroSearch.allThemes`)),1),T(h)?(E(),f(T(q),{key:0,size:16,class:`shrink-0 animate-spin text-gold`,"aria-label":e.$t(`catalog.heroSearch.loading`)},null,8,[`aria-label`])):(E(),f(T(P),{key:1,size:16,class:D([`shrink-0 text-ink/40 transition-transform`,{"rotate-180":T(j)}]),"aria-hidden":`true`},null,8,[`class`]))],8,Ze),T(j)?(E(),_(`ul`,{key:0,class:`absolute bottom-full left-0 right-0 z-50 mb
1-2 max-h-80 overflow-y-auto rounded-xl bg-white py-2 text-left shadow-2xl ring-1 ring-ink/5`,role:`listbox`,"aria-label":e.$t(`catalog.heroSearch.themesLabel`)},[T(h)?(E(),_(`li`,et,[w(T(q),{size:17,class:`animate-spin text-gold`,"aria-hidden":`true`}),c(` `+r(e.$t(`catalog.heroSearch.loading`)),1)])):(E(),_(v,{key:1},[S(`li`,null,[S(`button`,{type:`button`,role:`option`,"aria-selected":!T(z),class:D([`flex w-full items-center gap-2.5 px-4 py-2.5 text-left text-sm transition-colors hover:bg-ivory hover:text-vif`,T(z)?`text-ink/80`:`text-gold`]),onClick:K[2]||=e=>T(se)(null)},[w(T(F),{size:16,class:D(T(z)?`opacity-0`:`opacity-100`),"aria-hidden":`true`},null,8,[`class`]),c(` `+r(e.$t(`catalog.heroSearch.allThemes`)),1)],10,tt)]),(E(!0),_(v,null,n(T(ue),e=>(E(),_(`li`,{key:e.uid},[S(`button`,{type:`button`,role:`option`,"aria-selected":T(z)?.uid===e.uid,class:D([`flex w-full items-center gap-2.5 px-4 py-2.5 text-left text-sm transition-colors hover:bg-ivory hover:text-vif`,T(z)?.uid===e.uid?`text-gold`:`text-ink/80`]),onClick:t=>T(se)(e)},[w(T(F),{size:16,class:D(T(z)?.uid===e.uid?`opacity-100`:`opacity-0`),"aria-hidden":`true`},null,8,[`class`]),c(` `+r(e.name),1)],10,nt)]))),128))],64))],8,$e)):p(``,!0)],512),S(`div`,{ref_key:`budgetDropdownRef`,ref:t,class:`relative flex min-h-14 shrink-0 items-center border-b border-ink/10 sm:border-b-0 sm:border-l`},[S(`button`,{type:`button`,class:`flex w-full items-center gap-2 px-4 text-sm transition-colors hover:text-gold sm:px-5`,"aria-haspopup":`listbox`,"aria-expanded":T(d),"aria-label":e.$t(`catalog.heroSearch.chooseBudget`),onClick:K[3]||=(...e)=>T(H)&&T(H)(...e)},[w(T(L),{size:16,weight:`light`,class:`shrink-0 text-gold`,"aria-hidden":`true`}),S(`span`,it,r(T(ce)?.label||e.$t(`catalog.heroSearch.budget`)),1),w(T(P),{size:16,class:D([`ml-auto shrink-0 text-ink/40 transition-transform`,{"rotate-180":T(d)}]),"aria-hidden":`true`},null,8,[`class`])],8,rt),T(d)?(E(),_(`ul`,{key:0,class:`absolute bottom-full right-0 z-50 mb-2 max-h-80 w-60 overflow-y-auto rounded-xl bg-white py-2 text-left shadow-2xl ring-1 ring-ink/5`,role:`listbox`,"aria-label":e.$t(`catalog.heroSearch.budgetLabel`)},[(E(!0),_(v,null,n(T(i),e=>(E(),_(`li`,{key:e.id},[S(`button`,{type:`button`,role:`option`,"aria-selected":T(m)(e),class:D([`flex w-full items-center gap-2.5 px-4 py-2.5 text-left text-sm transition-colors hover:bg-ivory hover:text-gold`,T(m)(e)?`text-gold`:`text-ink/80`]),onClick:t=>T(ne)(e)},[w(T(F),{size:16,class:D(T(m)(e)?`opacity-100`:`opacity-0`),"aria-hidden":`true`},null,8,[`class`]),c(` `+r(e.label),1)],10,ot)]))),128))],8,at)):p(``,!0)],512),S(`button`,st,r(e.$t(`catalog.heroSearch.submit`)),1)],32),(E(),f(g,{to:`body`},[T(b)?(E(),_(`div`,{key:0,class:`fixed inset-0 z-[80] flex items-stretch justify-center bg-ink/50 backdrop-blur-sm sm:items-start sm:p-4 sm:pt-[18vh]`,onClick:K[10]||=A(e=>T(a)(),[`self`]),onKeydown:K[11]||=O(e=>T(a)(),[`esc`])},[S(`section`,{class:`flex h-full w-full max-w-xl flex-col bg-white p-5 text-left text-ink shadow-2xl sm:h-auto sm:rounded-xl sm:p-6`,role:`dialog`,"aria-modal":`true`,"aria-label":e.$t(`catalog.heroSearch.chooseLocation`)},[S(`div`,lt,[S(`h2`,ut,r(e.$t(`catalog.heroSearch.locationTitle`)),1),S(`button`,{type:`button`,class:`text-ink/50 transition-colors hover:text-ink`,"aria-label":e.$t(`general.closeButton`),onClick:K[5]||=e=>T(a)()},[w(T(ae),{size:20,"aria-hidden":`true`})],8,dt)]),S(`p`,ft,r(e.$t(`catalog.heroSearch.locationDescription`)),1),x(S(`input`,{ref_key:`locationInputRef`,ref:ee,"onUpdate:modelValue":K[6]||=e=>u(M)?M.value=e:null,type:`search`,class:`mt-4 w-full shrink-0 border border-ink/20 px-4 py-3 text-base outline-none focus:border-gold sm:text-sm`,placeholder:e.$t(`catalog.heroSearch.locationPlaceholder`),"aria-label":e.$t(`catalog.heroSearch.locationPlaceholder`),"aria-busy":T(C),onKeydown:K[7]||=O(A((...e)=>T(re)&&T(re)(...e),[`prevent`]),[`enter`])},null,40,pt),[[k,T(M)]]),S(`button`,{type:`button`,disabled:T(y),class:`mt-3 flex w-full shrink-0 items-center gap-3 border border-ink/15 px-3 py-2.5 text-left text-sm text-ink/80 transition-colors hover:border-gold hover:text-gold disabled:opacity-60`,onClick:K[8]||=(...e)=>T(W)&&T(W)(...e)},[T(y)?(E(),f(T(q),{key:0,size:15,class:`shrink-0 animate-spin text-gold`,"aria-hidden":`true`})):(E(),f(T(Ae),{key:1,size:15,class:`shrink-0 text-gold`,"aria-hidden":`true`})),c(` `+r(T(y)?e.$t(`catalog.listing.geo.locating`):e.$t(`catalog.listing.geo.aroundMe`)),1)],8,mt),T(s)?(E(),_(`p`,ht,r(T(s)),1)):p(``,!0),T(h)?(E(),_(`div`,gt,[w(T(q),{size:18,class:`animate-spin text-gold`,"aria-hidden":`true`}),c(` `+r(e.$t(`catalog.heroSearch.loading`)),1)])):(E(),_(`div`,_t,[S(`button`,{type:`button`,class:D([`flex w-full items-center gap-3 px-2 py-2.5 text-left text-sm transition-colors hover:bg-ivory hover:text-gold`,T(R)?`text-ink/75`:`text-gold`]),onClick:K[9]||=e=>T(oe)(null)},[w(T(I),{size:15,class:`shrink-0 text-gold`,"aria-hidden":`true`}),c(` `+r(e.$t(`catalog.heroSearch.allLocations`)),1)],2),(E(!0),_(v,null,n(T(o),e=>(E(),_(`section`,{key:e.attributeCode,class:`mt-4 first:mt-2`},[S(`h3`,vt,r(e.label),1),(E(!0),_(v,null,n(e.options,e=>(E(),_(`button`,{key:`${e.attributeCode}-${e.value}`,type:`button`,class:`flex w-full items-center gap-3 px-2 py-2.5 text-left text-sm text-ink/75 transition-colors hover:bg-ivory hover:text-gold`,onClick:t=>T(oe)(e)},[w(T(I),{size:15,class:`shrink-0 text-gold`,"aria-hidden":`true`}),S(`span`,null,r(e.label),1),S(`span`,bt,r(e.count),1)],8,yt))),128))]))),128)),T(C)?(E(),_(`div`,xt,[w(T(q),{size:17,class:`animate-spin text-gold`,"aria-hidden":`true`}),c(` `+r(e.$t(`catalog.heroSearch.searchingCities`)),1)])):T(G).length?(E(),_(`section`,St,[S(`h3`,Ct,r(e.$t(`catalog.heroSearch.citiesLabel`)),1),(E(!0),_(v,null,n(T(G),e=>(E(),_(`button`,{key:e.code,type:`button`,class:`flex w-full items-center gap-3 px-2 py-2.5 text-left text-sm text-ink/75 transition-colors hover:bg-ivory hover:text-gold`,onClick:t=>T(N)(e)},[w(T(I),{size:15,class:`shrink-0 text-gold`,"aria-hidden":`true`}),S(`span`,null,r(e.label),1),S(`span`,Tt,r(e.context),1)],8,wt))),128)),S(`p`,Et,r(e.$t(`catalog.heroSearch.cityRadiusHint`,{radius:T(l)})),1)])):T(le)?(E(),_(`p`,Dt,r(e.$t(`catalog.heroSearch.noLocation`)),1)):p(``,!0)]))],8,ct)],32)):p(``,!0)]))],64))}}),{__name:`CmsBlockHeroSearch`}),kt=globalThis.setInterval,At={class:`relative isolate flex min-h-[680px] items-center justify-center overflow-hidden md:min-
1h-[760px]`},jt={class:`absolute inset-0`},Mt=[`srcset`,`sizes`],Nt=[`src`,`srcset`,`sizes`],Pt={class:`relative mx-auto w-full max-w-6xl px-5 pb-6 pt-24 text-center text-white md:px-6`},Ft={class:`mt-4 grid min-h-[2.3em] place-items-center overflow-hidden font-display text-4xl font-light leading-[1.12] sm:text-5xl md:text-6xl lg:text-7xl [&_em]:italic`},It=[`innerHTML`],Lt=[`innerHTML`],$=`100vw`,Rt=Object.assign(d({__name:`heroscreen`,props:{block:{}},setup(e){let{storeState:t}=N(),r=C(0),o=null,s=h(()=>le(e.block)),c=h(()=>[s.value.rotating_title_1,s.value.rotating_title_2,s.value.rotating_title_3].filter(Boolean).map(e=>B(e))),l=h(()=>t.value?.storeConfig.root_category_optimized_image),u=h(()=>t.value?.storeConfig.root_category_vertical_optimized_image),d=e=>{if(!e?.large)return null;let t=e.sources??[];return{href:e.large,srcset:t.length?t.map(({url:e,width:t})=>`${e} ${t}w`).join(`, `):void 0}},f=h(()=>d(u.value)),m=h(()=>d(l.value));return ee(()=>({link:[...f.value?[{rel:`preload`,as:`image`,fetchpriority:`high`,media:`(max-width: 767px)`,...f.value.srcset?{imagesrcset:f.value.srcset,imagesizes:$}:{href:f.value.href}}]:[],...m.value?[{rel:`preload`,as:`image`,fetchpriority:`high`,...f.value?{media:`(min-width: 768px)`}:{},...m.value.srcset?{imagesrcset:m.value.srcset,imagesizes:$}:{href:m.value.href}}]:[]]})),i(()=>{c.value.length<2||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||(o=kt(()=>{r.value=(r.value+1)%c.value.length},3500))}),a(()=>{o&&clearInterval(o)}),(e,t)=>{let i=Ot;return E(),_(`section`,At,[S(`picture`,jt,[T(f)?(E(),_(`source`,{key:0,media:`(max-width: 767px)`,srcset:T(f).srcset??T(f).href,sizes:T(f).srcset?$:void 0},null,8,Mt)):p(``,!0),S(`img`,{src:T(l)?.large,srcset:T(m)?.srcset,sizes:T(m)?.srcset?$:void 0,alt:`SecretBox Coffrets d'expériences & Cadeaux`,class:`h-full w-full object-cover`,fetchpriority:`high`},null,8,Nt)]),t[0]||=S(`div`,{class:`absolute inset-0 bg-gradient-to-b from-ink/45 via-ink/25 to-ink/55`},null,-1),S(`div`,Pt,[S(`h1`,Ft,[S(`span`,{class:`sr-only`,innerHTML:T(c)[0]},null,8,It),(E(!0),_(v,null,n(T(c),(e,t)=>(E(),_(`span`,{key:t,"aria-hidden":`true`,class:D([`col-start-1 row-start-1 transition-all duration-700 ease-out`,T(r)===t?`translate-x-0 opacity-100`:`translate-x-16 opacity-0`]),innerHTML:e},null,10,Lt))),128))]),w(i)])])}}}),{__name:`CmsBlockHeroscreen`});export{Rt as default};

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.