1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7705],{19334:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(39876),l=t(9631),s=t(95368),a=t(41890);function i(e){let{children:r,asChild:t=!1,hidden:i=!1,className:o}=e,{backend:c,titleId:u}=(0,a.B)(),d=i?"sr-only":o;return"vaul"===c?(0,n.jsx)(l._s.Title,{asChild:t,className:d,children:r}):t&&(0,s.isValidElement)(r)?(0,s.cloneElement)(r,{id:u,className:[r.props.className,d].filter(Boolean).join(" ")||void 0}):(0,n.jsx)("h2",{id:u,className:d,children:r})}},57215:(e,r,t)=>{t.d(r,{V:()=>d});var n=t(39876),l=t(95368),s=t(78819),a=t(78262),i=t(59944),o=t(19334);function c(){return(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,"aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}function u(){return(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,"aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function d(e){let{title:r,actions:t,hideBack:d=!1,hideClose:h=!1,className:p}=e,{pop:x,closeAll:f,guards:m}=(0,a.f)(),{instanceId:g,index:v}=(0,i.f5)(),j=!h&&!m[g],b=(0,l.useRef)(null),[k,N]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{var e;let r=null==(e=b.current)?void 0:e.nextElementSibling;if(!(r instanceof HTMLElement))return;let t=()=>N(r.scrollTop>0);return t(),r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[]),(0,n.jsxs)("header",{ref:b,className:"flex flex-shrink-0 items-center gap-3 border-b px-6 pb-3 pt-6 transition-colors ".concat(k?"border-gray-100":"border-transparent"," ").concat(null!=p?p:""),children:[!d&&v>0&&(0,n.jsx)(s.$,{variant:"chrome",size:"icon-lg",onClick:x,"aria-label":"Back",children:(0,n.jsx)(c,{})}),(0,n.jsx)(o.A,{asChild:!0,children:(0,n.jsx)("h2",{className:"min-w-0 flex-1 truncate font-display text-2xl font-normal uppercase tracking-[-0.005em] text-gray-950",children:r})}),t,j&&(0,n.jsx)(s.$,{variant:"chrome",size:"icon-lg",onClick:f,"aria-label":"Close",children:(0,n.jsx)(u,{})})]})}},67705:(e,r,t)=>{t.r(r),t.d(r,{CustomAmountSurface:()=>o});var n=t(39876),l=t(95368),s=t(78262),a=t(57215),i=t(78819);function o(e){let{props:r}=e,{title:t,initialValueCents:o,allowCents:c,maxCents:u,helperText:d,applyLabel:h,onApply:p}=r,x=(0,s.f)(),f=(0,l.useRef)(null),[m,g]=(0,l.useState)(()=>{if(o<=0)return"";let e=o/100;return c?e.toString():Math.round(e).toString()});(0,l.useEffect)(()=>{let e=setTimeout(()=>{var e;return null==(e=f.current)?void 0:e.focus()},250);return()=>clearTimeout(e)},[]);let v=parseFloat(m),j=Number.isFinite(v)&&v>0&&Math.round(100*v)<=u;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.V,{title:t}),(0,n.jsxs)("div",{className:"px-6 pb-8",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("span",{className:"pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-base font-medium text-gray-600",children:"$"}),(0,n.jsx)("input",{ref:f,type:"text",inputMode:c?"decimal":"numeric",value:m,onChange:function(e){let r=e.target.value.replace(c?/[^\d.]/g:/\D/g,""),t=r.split("."),n=t.length>2?t[0]+"."+t.slice(1).join(""):r,l=parseFloat(n);(!n||Number.isFinite(l)&&Math.round(100*l)<=u)&&g(n)},placeholder:c?"0.00":"0","aria-label":"Amount in dollars",className:"w-full rounded-xl border-0 bg-gray-100 py-3 pl-8 pr-4 text-base text-gray-900 placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-brand-accent"})]}),d&&(0,n.jsx)("p",{className:"mt-3 text-xs text-gray-600",children:d}),(0,n.jsx)(i.$,{variant:"primary",size:"lg",fullWidth:!0,onClick:function(){j&&(p(Math.round(100*v)),x.pop())},disabled:!j,className:"mt-4",children:null!=h?h:"Apply"})]})]})}}}]);
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.