PageSourceSearch

https://www.girard-perregaux.com/_next/static/chunks/module-faq-container.52398e39ad2a671c.js

js girard-perregaux.com collected 2026-10-02 06:03:01 UTC 10,984 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1688,8366],{4654:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var a=t(95155),n=t(77601),l=t(4458),s=t(28291);function o(e){let{data:r,children:t}=e,{title:o,button:i}=r,d=(0,s.A)(r),c=(0,l.A)(),u=(null==i?void 0:i.link)&&(null==i?void 0:i.label)?c(i.label,i.link):void 0;return(0,a.jsx)(n.default,{...d,title:o,button:u,items:t})}},13496:(e,r,t)=>{t.d(r,{$m:()=>h,As:()=>f,nD:()=>c,ub:()=>m});var a=t(95155),n=t(58609),l=t(32467),s=t(83101);t(12115);var o=t(64269),i=t(27278),d=t(51337);let c=n.bL,u=(0,s.F)("",{defaultVariants:{noBorder:!1},variants:{noBorder:{true:"",false:"relative before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-neutral-400 before:transition-colors hover:before:bg-neutral-900 dark:before:bg-neutral-25"}}}),f=e=>{let{className:r,noBorder:t,ref:l,...s}=e;return(0,a.jsx)(n.q7,{ref:l,className:u({noBorder:t,className:r}),...s})},h=e=>{let{className:r,children:t,iconChevron:s,ref:c,...u}=e;return(0,a.jsx)(n.Y9,{asChild:!0,children:(0,a.jsxs)(n.l9,{ref:c,className:(0,o.cn)("flex w-full cursor-pointer items-center justify-between gap-8 py-8 text-lg transition-all [&[data-state=open]>svg]:rotate-180",r),...u,children:[(0,a.jsx)(l.xV,{children:t}),s?(0,a.jsx)(d.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200 md:h-5 md:w-5"}):(0,a.jsx)(i.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200 md:h-5 md:w-5"})]})})},p=(0,s.F)("transform-gpu overflow-hidden !ease-in-out",{defaultVariants:{forceMount:!1},variants:{forceMount:{true:"grid [animation:none] !transition-[grid-template-rows] data-[state=closed]:grid-rows-[0fr] data-[state=open]:grid-rows-[1fr]",false:"data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"}}}),m=e=>{let{className:r,children:t,forceMount:l,...s}=e;return(0,a.jsx)(n.UC,{forceMount:l,className:p({forceMount:l,className:"group/accordion-content"}),...s,children:(0,a.jsx)("div",{className:(0,o.cn)(l?"min-h-0 transition-[visibility] group-data-[state=closed]/accordion-content:invisible group-data-[state=open]/accordion-content:visible":"pb-8",r),children:t})})}},27278:(e,r,t)=>{t.d(r,{A:()=>s});var a,n=t(12115);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let s=(0,n.forwardRef)(function(e,r){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",focusable:!1,role:"presentation",ref:r},e),a||(a=n.createElement("path",{d:"M7.32837 7.33325V3.33325H8.6617V7.33325H12.6617V8.66659H8.6617V12.6666H7.32837V8.66659H3.32837V7.33325H7.32837Z"})))})},28291:(e,r,t)=>{function a(e){let r=Number(e);return 0===r||1===r||2===r?r:1}t.d(r,{A:()=>l});var n=t(36365);function l(e){let{additional_classes:r,full_height:t,full_width:l,margin_bottom:s,margin_top:o,anchor:i}=e;return{id:i||void 0,className:r,fullHeight:(0,n.A)(t),fullWidth:(0,n.A)(l),marginBottom:a(s),marginTop:a(o)}}},58609:(e,r,t)=>{t.d(r,{UC:()=>K,Y9:()=>T,bL:()=>B,l9:()=>F,q7:()=>P});var a=t(12115),n=t(3468),l=t(88167),s=t(94446),o=t(92556),i=t(23558),d=t(97602),c=t(57259),u=t(68946),f=t(66218),h=t(95155),p="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[x,b,v]=(0,l.N)(p),[w,g]=(0,n.A)(p,[v,c.z3]),j=(0,c.z3)(),y=a.forwardRef((e,r)=>{let{type:t,...a}=e;return(0,h.jsx)(x.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,h.jsx)(_,{...a,ref:r}):(0,h.jsx)(I,{...a,ref:r})})});y.displayName=p;var[A,N]=w(p),[C,k]=w(p,{collapsible:!1}),I=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:l=()=>{},collapsible:s=!1,...o}=e,[d,c]=(0,i.i)({prop:t,defaultProp:n,onChange:l});return(0,h.jsx)(A,{scope:e.__scopeAccordion,value:d?[d]:[],onItemOpen:c,onItemClose:a.useCallback(()=>s&&c(""),[s,c]),children:(0,h.jsx)(C,{scope:e.__scopeAccordion,collapsible:s,children:(0,h.jsx)(L,{...o,ref:r})})})}),_=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:l=()=>{},...s}=e,[o=[],d]=(0,i.i)({prop:t,defaultProp:n,onChange:l}),c=a.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[d]),u=a.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[d]);return(0,h.jsx)(A,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:(0,h.jsx)(C,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(L,{...s,ref:r})})})}
1),[R,H]=w(p),L=a.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:l,orientation:i="vertical",...c}=e,u=a.useRef(null),p=(0,s.s)(u,r),v=b(t),w="ltr"===(0,f.jH)(l),g=(0,o.m)(e.onKeyDown,e=>{var r;if(!m.includes(e.key))return;let t=e.target,a=v().filter(e=>{var r;return!(null==(r=e.ref.current)?void 0:r.disabled)}),n=a.findIndex(e=>e.ref.current===t),l=a.length;if(-1===n)return;e.preventDefault();let s=n,o=l-1,d=()=>{(s=n+1)>o&&(s=0)},c=()=>{(s=n-1)<0&&(s=o)};switch(e.key){case"Home":s=0;break;case"End":s=o;break;case"ArrowRight":"horizontal"===i&&(w?d():c());break;case"ArrowDown":"vertical"===i&&d();break;case"ArrowLeft":"horizontal"===i&&(w?c():d());break;case"ArrowUp":"vertical"===i&&c()}null==(r=a[s%l].ref.current)||r.focus()});return(0,h.jsx)(R,{scope:t,disabled:n,direction:l,orientation:i,children:(0,h.jsx)(x.Slot,{scope:t,children:(0,h.jsx)(d.sG.div,{...c,"data-orientation":i,ref:p,onKeyDown:n?void 0:g})})})}),V="AccordionItem",[O,z]=w(V),D=a.forwardRef((e,r)=>{let{__scopeAccordion:t,value:a,...n}=e,l=H(V,t),s=N(V,t),o=j(t),i=(0,u.B)(),d=a&&s.value.includes(a)||!1,f=l.disabled||e.disabled;return(0,h.jsx)(O,{scope:t,open:d,disabled:f,triggerId:i,children:(0,h.jsx)(c.bL,{"data-orientation":l.orientation,"data-state":M(d),...o,...n,ref:r,disabled:f,open:d,onOpenChange:e=>{e?s.onItemOpen(a):s.onItemClose(a)}})})});D.displayName=V;var E="AccordionHeader",S=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=H(p,t),l=z(E,t);return(0,h.jsx)(d.sG.h3,{"data-orientation":n.orientation,"data-state":M(l.open),"data-disabled":l.disabled?"":void 0,...a,ref:r})});S.displayName=E;var U="AccordionTrigger",Y=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=H(p,t),l=z(U,t),s=k(U,t),o=j(t);return(0,h.jsx)(x.ItemSlot,{scope:t,children:(0,h.jsx)(c.l9,{"aria-disabled":l.open&&!s.collapsible||void 0,"data-orientation":n.orientation,id:l.triggerId,...o,...a,ref:r})})});Y.displayName=U;var q="AccordionContent",G=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=H(p,t),l=z(q,t),s=j(t);return(0,h.jsx)(c.UC,{role:"region","aria-labelledby":l.triggerId,"data-orientation":n.orientation,...s,...a,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function M(e){return e?"open":"closed"}G.displayName=q;var B=y,P=D,T=S,F=Y,K=G},70035:(e,r,t)=>{t.r(r),t.d(r,{default:()=>h});var a=t(95155),n=t(95604),l=t(12115),s=t(38414),o=t(4654),i=t(19170),d=t(64269),c=t(9252),u=t(58787),f=t(28291);function h(e){let{data:r,children:t}=e,h=(0,f.A)(r),[p,m]=(0,l.useState)(""),x=(0,n.useTranslations)("pages.services/faq"),b=t.map(e=>{let r=(e.children||[]).filter(e=>e.data.question.toLowerCase().includes(p.toLowerCase())||e.data.answer.toLowerCase().includes(p.toLowerCase()));return{...e,children:r}}).filter(e=>e.children.length>0);return(0,a.jsxs)(s.A,{...h,overflowHidden:!1,className:"relative",children:[(0,a.jsxs)("header",{className:"sticky top-0 z-10 flex w-full items-center justify-between bg-neutral-200 py-4",children:[(()=>{let e=(0,l.useId)();return(0,a.jsxs)("div",{role:"search",className:"relative w-full focus-within:outline",children:[(0,a.jsx)("label",{htmlFor:e,className:"sr-only",children:x("search")}),(0,a.jsx)("input",{id:e,type:"search",className:(0,d.cn)("w-full rounded-base bg-white py-3 pr-14 pl-6 transition-colors focus:outline-none"),placeholder:x("search"),value:p,onChange:e=>m(e.target.value),"aria-label":x("search")})]})})(),(0,a.jsx)("div",{className:"absolute top-1/2 right-3 z-10 -translate-y-1/2 transform",children:p?(0,a.jsx)(i.A,{onClick:()=>m(""),"aria-label":x("clearSearch"),children:(0,a.jsx)(c.A,{})}):(0,a.jsx)(u.A,{})})]}),b.length>0?b.map((e,r)=>(0,a.jsx)(o.default,{...e},r)):(0,a.jsx)("p",{className:"mt-8 font-bold",children:x("noResults")})]})}},74766:(e,r,t)=>{t.d(r,{I:()=>s});var a=t(12115),n=t(67789),l=t(39266);function s(){l.r.current||(0,n.U)();let[e]=(0,a.useState)(l.O.current);return e}},77601:(e,r,t)=>{t.d(r,{default:()=>b});var a=t(95155),n=t(30149),l=t(74766),s=t(39583),o=t(64804),i=t(63883),d=t(12115),c=t(38414),u=t(13496),f=t(3998),h=t(25253),p=t(16933),m=t(64269);let x=n.m.create(p.N_);function b(e){let{title:r,button:t,items:p,...m}=e,{ref:b,translation:w,buttonTranslation:g,shouldReduceMotion:j}=function(){let e=(0,d.useRef)(null),r=(0,l.I)(),{scrollYProgress:t}=(0,s.L)({target:e,offset:["start end","start 70vh"]}),a=(0,o.z)(t,h.m),n=(0,i.G)(a,[0,1],["100px","0px"]);return{ref:e,translation:(0,i.G)(a,[0,1],["200px","0px"]),buttonTranslation:n,shouldReduceMotion:r}}();return(0,a.jsx)(c.A,{...m,children:(0,a.jsxs)("div",{className:"group/faq lg:flex lg:flex-col",children:[(0,a.jsx)("header",{className:"mb-8 max-w-xs items-center justify-between md:mb-16 md:flex md:max-w-120",children:(0,a.jsxs)("div",{className:"max-w-md 
1space-y-8 md:space-y-10",children:[(0,a.jsx)("h2",{className:"text-h2 text-balance uppercase",children:r}),(null==t?void 0:t.link)&&(null==t?void 0:t.label)&&(0,a.jsx)(f.A,{variant:"primary",asChild:!0,children:(0,a.jsx)(x,{href:t.link,"aria-label":t.hiddenLabel,style:{translateY:j?"0px":g},children:t.label})})]})}),(0,a.jsx)(n.m.div,{ref:b,className:"xl:w-360 xl:self-end",style:{translateY:j?"0px":w},children:(0,a.jsx)(u.nD,{type:"multiple",children:p.map((e,r)=>(0,a.jsx)(v,{value:"".concat(r),index:r,...e.data},r))})})]})})}function v(e){let{value:r,question:t,answer:o,index:c}=e,{ref:f,progress:h,shouldReduceMotion:p}=function(){let e=(0,d.useRef)(null),r=(0,l.I)(),{scrollYProgress:t}=(0,s.L)({target:e,offset:["start end","end 70vh"]});return{ref:e,progress:(0,i.G)(t,[0,1],["0%","100%"]),shouldReduceMotion:r}}();return(0,a.jsx)(u.As,{ref:f,value:r,asChild:!0,children:(0,a.jsxs)(n.m.div,{className:(0,m.cn)("group before:origin-left before:transition-transform before:delay-[calc(var(--index)*100ms)] motion-safe:before:scale-x-(--progress)"),style:{"--index":c,"--progress":h},children:[(0,a.jsx)(u.$m,{asChild:!0,iconChevron:!0,children:(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"overflow-hidden",children:(0,a.jsx)(n.m.h3,{initial:{translateY:p?"0%":"100%"},whileInView:{translateY:"0%",transition:{duration:.3,delay:(1+c)*.1}},className:"cursor-pointer text-lg",children:t})})})}),(0,a.jsx)(u.ub,{children:(0,a.jsx)("div",{className:"wysiwyg-content",dangerouslySetInnerHTML:{__html:o}})})]})})}b.Item=v}}]);

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.