PageSourceSearch

https://www.truewatch.com/_next/static/chunks/pages/request-demo-13d8c2b68b18cc4b.js

js truewatch.com collected 2026-10-03 20:40:43 UTC 19,858 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2881],{61071:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/request-demo",function(){return r(77945)}])},77945:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>F,default:()=>A});var o=r(86070),s=r(8036),n=r(24718),l=r(28174),a=r(80514),i=r(72665);let d=e=>{let{className:t}=e;return(0,o.jsxs)("div",{className:(0,i.cn)("",t),children:[(0,o.jsxs)("svg",{width:"1920",height:"1019",viewBox:"0 0 1920 1019",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute inset-0 size-full mix-blend-color-dodge",children:[(0,o.jsx)("g",{opacity:"0.6",children:(0,o.jsx)("path",{d:"M561 549C760.375 549 922 387.599 922 188.5C922 -10.5987 760.375 -172 561 -172C361.625 -172 200 -10.5987 200 188.5C200 387.599 361.625 549 561 549Z",fill:"url(#paint0_linear_494_11593)"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint0_linear_494_11593",x1:"157",y1:"582",x2:"1276.16",y2:"-31.526",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{}),(0,o.jsx)("stop",{offset:"0.17",stopColor:"#050300"}),(0,o.jsx)("stop",{offset:"0.39",stopColor:"#150C03"}),(0,o.jsx)("stop",{offset:"0.63",stopColor:"#301B07"}),(0,o.jsx)("stop",{offset:"0.744124",stopColor:"#54300D"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#683C11"})]})})]}),(0,o.jsxs)("svg",{width:"1920",height:"1019",viewBox:"0 0 1920 1019",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute inset-0 size-full mix-blend-color-dodge",children:[(0,o.jsx)("g",{opacity:"0.6",children:(0,o.jsx)("path",{d:"M2488.79 227.789C2975.31 -258.735 2975.31 -1047.55 2488.79 -1534.07C2002.27 -2020.59 1213.45 -2020.59 726.93 -1534.07C240.406 -1047.55 240.406 -258.735 726.93 227.789C1213.45 714.313 2002.27 714.313 2488.79 227.789Z",fill:"url(#paint1_linear_494_11593)"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint1_linear_494_11593",x1:"1057.24",y1:"-1770.54",x2:"2158.5",y2:"464.551",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{}),(0,o.jsx)("stop",{offset:"0.17",stopColor:"#050300"}),(0,o.jsx)("stop",{offset:"0.39",stopColor:"#150C03"}),(0,o.jsx)("stop",{offset:"0.63",stopColor:"#301B07"}),(0,o.jsx)("stop",{offset:"0.88",stopColor:"#54300D"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#683C11"})]})})]}),(0,o.jsxs)("svg",{width:"1920",height:"1019",viewBox:"0 0 1920 1019",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute inset-0 size-full mix-blend-color-burn",children:[(0,o.jsx)("g",{opacity:"0.6",children:(0,o.jsx)("path",{d:"M1960.5 1622.5C2283.13 1299.88 2283.13 776.794 1960.5 454.167C1637.88 131.541 1114.79 131.541 792.167 454.167C469.541 776.794 469.541 1299.88 792.167 1622.5C1114.79 1945.13 1637.88 1945.13 1960.5 1622.5Z",fill:"url(#paint2_linear_494_11593)"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint2_linear_494_11593",x1:"2441.16",y1:"764.297",x2:"1363.66",y2:"1041.43",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FE3CC6"}),(0,o.jsx)("stop",{offset:"0.06",stopColor:"#FE48C9"}),(0,o.jsx)("stop",{offset:"0.52",stopColor:"#FEA9E6"}),(0,o.jsx)("stop",{offset:"0.84",stopColor:"#FEE7F8"}),(0,o.jsx)("stop",{offset:"1",stopColor:"white"})]})})]}),(0,o.jsxs)("svg",{width:"1920",height:"1019",viewBox:"0 0 1920 1019",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute inset-0 size-full mix-blend-color-dodge",children:[(0,o.jsx)("g",{opacity:"0.6",children:(0,o.jsx)("path",{d:"M394.5 1831C707.369 1831 961 1577.59 961 1265C961 952.407 707.369 699 394.5 699C81.6307 699 -172 952.407 -172 1265C-172 1577.59 81.6307 1831 394.5 1831Z",fill:"url(#paint3_linear_494_11593)"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint3_linear_494_11593",x1:"898",y1:"672",x2:"395.496",y2:"1242.44",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{}),(0,o.jsx)("stop",{offset:"0.17",stopColor:"#050300"}),(0,o.jsx)("stop",{offset:"0.39",stopColor:"#150C03"}),(0,o.jsx)("stop",{offset:"0.63",stopColor:"#301B07"}),(0,o.jsx)("stop",{offset:"0.88",stopColor:"#54300D"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#683C11"})]})})]})]})};var c=r(30758),p=r(3650),u=r(49988),m=r(71968),x=r(43351),f=r(89937),h=r(51101),b=r(51875),g=r(90233),j=r(33077),v=r(51974);let y=e=>{var t,r;let{formProps:s,className:n}=e,{formTitle:l,nameLabel:a,jobTitleLabel:d,emailLabel:y,phoneNumberLabel:w,companyNameLabel:C,companySizeLabel:_,countryLabel:N,numOfAppsLabel:F,numOfHostsLabel:A,useCasesLabel:T,numOfAppsOptions:k,numOfHostsOptions:E,useCasesOptions:R,companySizeOptions:S,submitBtnText:I,successTitle:G,successMessage:D}=s,{companyEmailValidationMessage:O}=(0,v.Hn)(),P=(0,c.useRef)(null),[q,z]=(0,c.useState)(!1),[B,L]=(0,c.useState)(!1),K=(0,p.useRouter)(),U=K.locale===h.qs.EN?"Select ...":"請選擇",H=(0,c.useRef)(),[M,V]=(0,c.useState)([]);async function $(e){e.preventDefault();let t=Object.fromEntries(new FormData(e.currentTarget));z(!0),fetch("/api/form-submit",{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({from:"request-demo",formData:{...t,selectedUseCases:M},locale:K.locale})}).then(async e=>{if(e.ok){let r=await e.json();if(r.success){var t;console.log(r),L(!0),V([]),null===(t=P.current)||void 0===t||t.reset()}else throw Error("".concat(r.error))}else throw Error("".concat(e.status,": ").concat(e.statusText))}).catch(e=>{console.log(e)}).finally(()=>{var e;z(!1),null===(e=H.current)||void 0===e||e.reset()})}return(0,o.jsxs)("form",{onSubmit:$,className:(0,i.cn)('text relative flex flex-col items-stretch justify-center gap-4 roun
1ded-[20px] border-2 border-transparent bg-white bg-clip-padding p-4 text-[#333333] shadow-[0px_10px_10px_0px] shadow-[#408BB50A] before:absolute before:inset-0 before:z-[-1] before:-m-[2px] before:rounded-[inherit] before:bg-form-border before:content-[""] lg:p-8',n),ref:P,style:{"--border-color":"#0000001F","--input":"#00000073"},children:[(0,o.jsx)("h2",{className:"text-3xl font-bold text-black",children:l}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"name",className:"block text-sm",children:a}),(0,o.jsx)("input",{id:"name",name:"name",type:"text",required:!0,autoComplete:"name",maxLength:100,className:"mt-2 w-full rounded-md border border-current p-2",enterKeyHint:"next"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"jobTitle",className:"block text-sm",children:d}),(0,o.jsx)("input",{id:"jobTitle",name:"jobTitle",type:"text",required:!0,autoComplete:"organization-title",maxLength:100,className:"mt-2 w-full rounded-md border border-current p-2",enterKeyHint:"next"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"email",className:"block text-sm",children:y}),(0,o.jsx)("input",{id:"email",name:"email",type:"email",required:!0,autoComplete:"email",maxLength:100,className:"mt-2 w-full rounded-md border border-current p-2",enterKeyHint:"next",pattern:"^[^@]+@(?!gmail\\.com$)(?!yahoo\\.com$)[^@]+$",onInput:e=>{let t=e.currentTarget;/@(gmail\.com|yahoo\.com)$/i.test(t.value)?t.setCustomValidity(O):t.setCustomValidity("")},onInvalid:e=>{let t=e.currentTarget;/@(gmail\.com|yahoo\.com)$/i.test(t.value)&&t.setCustomValidity(O)}})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"phoneNumber",className:"block text-sm",children:w}),(0,o.jsx)("input",{id:"phoneNumber",name:"phoneNumber",type:"tel",required:!0,autoComplete:"tel",maxLength:30,inputMode:"numeric",className:"mt-2 w-full rounded-md border border-current p-2",enterKeyHint:"next"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"companyName",className:"block text-sm",children:C}),(0,o.jsx)("input",{id:"companyName",name:"companyName",type:"text",required:!0,maxLength:100,autoComplete:"organization",className:"mt-2 w-full rounded-md border border-current p-2",enterKeyHint:"next"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"companySize",className:"block text-sm",children:_}),(0,o.jsxs)("select",{id:"companySize",name:"companySize",autoComplete:"off",defaultValue:"",required:!0,className:"mt-2 w-full appearance-none rounded-md border border-[#333333] bg-[url('/chevron-down.svg')] bg-[center_right_10px] bg-no-repeat p-2 pr-8",children:[(0,o.jsx)("option",{value:"",disabled:!0,children:U}),S.map(e=>{let{label:t,value:r}=e;return(0,o.jsx)("option",{value:r,children:t},r)})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"country",className:"block text-sm text-[#333333]",children:N}),(0,o.jsxs)("select",{id:"country",name:"country",autoComplete:"country",required:!0,defaultValue:null!==(t=h.u7[K.locale])&&void 0!==t?t:"",className:"mt-2 w-full appearance-none rounded-md border border-[#333333] bg-[url('/chevron-down.svg')] bg-[center_right_10px] bg-no-repeat p-2 pr-8",children:[(0,o.jsx)("option",{value:"",disabled:!0,children:U}),b.B.map(e=>{let{value:t,label:r}=e;return(0,o.jsx)("option",{value:t,children:r},t)})]})]}),A&&(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"numOfHosts",className:"block text-sm",children:A}),(0,o.jsxs)("select",{id:"numOfHosts",name:"numOfHosts",autoComplete:"off",defaultValue:"",required:!0,className:"mt-2 w-full appearance-none rounded-md border border-[#333333] bg-[url('/chevron-down.svg')] bg-[center_right_10px] bg-no-repeat p-2 pr-8",children:[(0,o.jsx)("option",{value:"",disabled:!0,children:U}),E.map(e=>{let{label:t,value:r}=e;return(0,o.jsx)("option",{value:r,children:t},r)})]})]}),F&&(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"numOfApps",className:"block text-sm",children:F}),(0,o.jsxs)("select",{id:"numOfApps",name:"numOfApps",autoComplete:"off",defaultValue:"",required:!0,className:"mt-2 w-full appearance-none rounded-md border border-[#333333] bg-[url('/chevron-down.svg')] bg-[center_right_10px] bg-no-repeat p-2 pr-8",children:[(0,o.jsx)("option",{value:"",disabled:!0,children:U}),k.map(e=>{let{label:t,value:r}=e;return(0,o.jsx)("option",{value:r,children:t},r)})]})]}),T&&(0,o.jsxs)(m.bL,{defaultOpen:!1,className:"group rounded-md border border-[#333333] p-2",children:[(0,o.jsxs)(m.l9,{className:"flex w-full items-center justify-between gap-2 data-[state=open]:border-b data-[state=open]:border-[var(--border-color)] data-[state=open]:pb-2",children:[(0,o.jsx)("span",{children:T}),(0,o.jsx)(f.A,{className:"inline-block size-6 transition-transform duration-300 group-data-[state=closed]:-rotate-90"})]}),(0,o.jsx)(m.UC,{className:"overflow-hidden data-[state=closed]:animate-callapsible-content-slideup data-[state=open]:animate-collapsible-content-slidedown",children:(0,o.jsx)(x.bL,{type:"multiple",className:"mt-2 flex flex-wrap gap-2",value:M,onValueChange:V,children:R.map(e=>{let{label:t,value:r}=e;return(0,o.jsx)(x.q7,{value:r,className:"rounded-sm border border-[var(--input)] px-6 py-1 text-base text-[var(--unselected)] hover:border-red-700 data-[state=on]:border-transparent data-[state=on]:bg-[var(--primary-bg-red)] data-[state=on]:text-white",children:t},r)})})})]}),(0,o.jsx)(u.Xs,{ref:H,siteKey:"0x4AAAAAABu0ylDKCOrNUo9Z",options:{theme:"light",size:"flexible",language:null!==(r=h.TV[K.locale])&&void 0!==r?r:"en"},onExpire:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.reset()}}),(0,o.jsxs)("button",{type:"submit",disabled:q,className:"hover group relative inline-flex items-center justify-center rounded-md bg-[var(--primary-bg-red)] py-2 text-xl font-bold text-white",children:[(0,o.jsx)(j.F.spinner,{className:"absolute inset-0 m-auto size-6 animate-spin opacity-0 transition-opacity duration-300 group-disabled:opacity-100",strokeWidth:2}),(0,o.jsx)("span",{className:"opacity-100 transition-opacity duration-300 group-disabled:opacity-0",children:I})]}),(0,o.jsx)(g.F,{open:B,onOpenChange:L,title:G,description:D})]})},w={hidden:{opacity:0,y:20},visible:{opacity:1,y:0}},C=e=>{let{bannerProps:t,formProps:r}=e,{title:i,description:c,additionalInfo:p}=t;return(0,o.jsxs)("section",{className:"relative  mt-[calc(65px_+_var(--header-margin-top))]  bg-banner-pattern text-white",children:[(0,o.jsx)(d,{className:"absolute inset-0"}),(0,o.jsxs)("div",{className:"container relative grid grid-cols-1 gap-y-12 py-20 md:grid-cols-2 md:items-center md:gap-x-8 md:py-24 lg:gap-x-12 xl:py-28",children:[(0,o.jsxs)(l.A,{inView:!0,yOffset:50,blur:"4px",children:[(0,o.jsx)("h1",{className:"section-title text-center md:text-start",children:i}),(0,o.jsx)("p",{className:"mt-4 text-base font-normal",children:c}),(0,o.jsx)(s.b,{orientation:"horizontal",className:"my-7 h-px w-full bg-white opacity-45 md:my-12"}),p&&p.length>0&&(0,o.jsx)(n.P.ul,{variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{delayChildren:.3,staggerChildren:.1}}},className:"flex list-none flex-col gap-y-8",children:p.map(e=>{let{infoTitle:t,infoDetail:r,icon:s}=e;return(0,o.jsxs)(n.P.li,{variants:w,className:"flex items-center gap-x-4",children:[(0,o.jsx)("div",{className:"flex aspect-square flex-[0_0_48px] items-center justify-center rounded-full bg-white lg:flex-[0_0_64px]",children:(0,o.jsx)(a.V,{src:s.url,alt:s.alternativeText||"",width:s.width,height:s.height,quality:100,className:"object-contain"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-xl font-bold",children:t}),(0,o.jsx)("p",{className:"mt-2 text-base font-normal",children:r})]})]},t)})})]}),(0,o.jsx)(l.A,{inView:!0,yOffset:100,delay:.2,blur:"4px",children:(0,o.jsx)(y,{formProps:r})})]})]})};var _=r(48124),N=r(70347),F=!0;function A(e){let{requestDemoPage:t}=e,{seoProps:r,bannerProps:s,formProps:n,locationsProps:l}=t;return(0,o.jsxs)("main",{children:[r&&(0,o.jsx)(N.d,{seoProps:r}),(0,o.jsx)(C,{bannerProps:s,formProps:n}),l&&(0,o.jsx)(_.L,{locationsInfoProps:l})]})}},43351:(e,t,r)=>{"use strict";r.d(t,{q7:()=>$,bL:()=>V});var o=r(30758),s=r(95530),n=r(67396),l=r(36316),a=r(45515),i=r(36884),d=r(39733),c=r(22361),p=r(96241),u=r(86070),m="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[h,b,g]=(0,a.N)(f),[j,v]=(0,s.A)(f,[g]),[y,w]=j(f),C=o.forwardRef((e,t)=>
1(0,u.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(_,{...e,ref:t})})}));C.displayName=f;var _=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:s,loop:a=!1,dir:d,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:j,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...C}=e,_=o.useRef(null),N=(0,i.s)(t,_),F=(0,p.jH)(d),[A,k]=(0,c.i)({prop:h,defaultProp:g??null,onChange:j,caller:f}),[E,R]=o.useState(!1),S=function(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}(v),I=b(r),G=o.useRef(!1),[D,O]=o.useState(0);return o.useEffect(()=>{let e=_.current;if(e)return e.addEventListener(m,S),()=>e.removeEventListener(m,S)},[S]),(0,u.jsx)(y,{scope:r,orientation:s,dir:F,loop:a,currentTabStopId:A,onItemFocus:o.useCallback(e=>k(e),[k]),onItemShiftTab:o.useCallback(()=>R(!0),[]),onFocusableItemAdd:o.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>O(e=>e-1),[]),children:(0,u.jsx)(n.sG.div,{tabIndex:E||0===D?-1:0,"data-orientation":s,...C,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,l.m)(e.onMouseDown,()=>{G.current=!0}),onFocus:(0,l.m)(e.onFocus,e=>{let t=!G.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(m,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),w)}}G.current=!1}),onBlur:(0,l.m)(e.onBlur,()=>R(!1))})})}),N="RovingFocusGroupItem",F=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:s=!0,active:a=!1,tabStopId:i,children:c,...p}=e,m=(0,d.B)(),x=i||m,f=w(N,r),g=f.currentTabStopId===x,j=b(r),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:C}=f;return o.useEffect(()=>{if(s)return v(),()=>y()},[s,v,y]),(0,u.jsx)(h.ItemSlot,{scope:r,id:x,focusable:s,active:a,children:(0,u.jsx)(n.sG.span,{tabIndex:g?0:-1,"data-orientation":f.orientation,...p,ref:t,onMouseDown:(0,l.m)(e.onMouseDown,e=>{s?f.onItemFocus(x):e.preventDefault()}),onFocus:(0,l.m)(e.onFocus,()=>f.onItemFocus(x)),onKeyDown:(0,l.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var o;let s=(o=e.key,"rtl"!==r?o:"ArrowLeft"===o?"ArrowRight":"ArrowRight"===o?"ArrowLeft":o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return A[s]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=j().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let o=r.indexOf(e.currentTarget);r=f.loop?function(e,t){return e.map((r,o)=>e[(t+o)%e.length])}(r,o+1):r.slice(o+1)}setTimeout(()=>T(r))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=C}):c})})});F.displayName=N;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}var k="Toggle",E=o.forwardRef((e,t)=>
1{let{pressed:r,defaultPressed:o,onPressedChange:s,...a}=e,[i,d]=(0,c.i)({prop:r,onChange:s,defaultProp:o??!1,caller:k});return(0,u.jsx)(n.sG.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||d(!i)})})});E.displayName=k;var R="ToggleGroup",[S,I]=(0,s.A)(R,[v]),G=v(),D=o.forwardRef((e,t)=>{let{type:r,...o}=e;if("single"===r)return(0,u.jsx)(q,{...o,ref:t});if("multiple"===r)return(0,u.jsx)(z,{...o,ref:t});throw Error(`Missing prop \`type\` expected on \`${R}\``)});D.displayName=R;var[O,P]=S(R),q=o.forwardRef((e,t)=>{let{value:r,defaultValue:s,onValueChange:n=()=>{},...l}=e,[a,i]=(0,c.i)({prop:r,defaultProp:s??"",onChange:n,caller:R});return(0,u.jsx)(O,{scope:e.__scopeToggleGroup,type:"single",value:o.useMemo(()=>a?[a]:[],[a]),onItemActivate:i,onItemDeactivate:o.useCallback(()=>i(""),[i]),children:(0,u.jsx)(K,{...l,ref:t})})}),z=o.forwardRef((e,t)=>{let{value:r,defaultValue:s,onValueChange:n=()=>{},...l}=e,[a,i]=(0,c.i)({prop:r,defaultProp:s??[],onChange:n,caller:R}),d=o.useCallback(e=>i((t=[])=>[...t,e]),[i]),p=o.useCallback(e=>i((t=[])=>t.filter(t=>t!==e)),[i]);return(0,u.jsx)(O,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:d,onItemDeactivate:p,children:(0,u.jsx)(K,{...l,ref:t})})});D.displayName=R;var[B,L]=S(R),K=o.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:o=!1,rovingFocus:s=!0,orientation:l,dir:a,loop:i=!0,...d}=e,c=G(r),m=(0,p.jH)(a),x={role:"group",dir:m,...d};return(0,u.jsx)(B,{scope:r,rovingFocus:s,disabled:o,children:s?(0,u.jsx)(C,{asChild:!0,...c,orientation:l,dir:m,loop:i,children:(0,u.jsx)(n.sG.div,{...x,ref:t})}):(0,u.jsx)(n.sG.div,{...x,ref:t})})}),U="ToggleGroupItem",H=o.forwardRef((e,t)=>{let r=P(U,e.__scopeToggleGroup),s=L(U,e.__scopeToggleGroup),n=G(e.__scopeToggleGroup),l=r.value.includes(e.value),a=s.disabled||e.disabled,i={...e,pressed:l,disabled:a},d=o.useRef(null);return s.rovingFocus?(0,u.jsx)(F,{asChild:!0,...n,focusable:!a,active:l,ref:d,children:(0,u.jsx)(M,{...i,ref:t})}):(0,u.jsx)(M,{...i,ref:t})});H.displayName=U;var M=o.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:o,...s}=e,n=P(U,r),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===n.type?l:void 0;return(0,u.jsx)(E,{...a,...s,ref:t,onPressedChange:e=>{e?n.onItemActivate(o):n.onItemDeactivate(o)}})}),V=D,$=H}},e=>{var t=t=>e(e.s=t);e.O(0,[5720,853,3424,2612,636,6593,8792],()=>t(61071)),_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.