PageSourceSearch

https://web.cdn.greenlight.com/2.1765.0/_next/static/chunks/5075.a37d8926026bcbd4.js

js greenlight.com collected 2026-10-01 10:15:18 UTC 10,926 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5075],{5448:(e,t,i)=>{i.d(t,{a:()=>d});var l=i(37876),r=i(14232);let s={spearmint:"#80D6B0",green:"#3BBFAD",ginger:"#F4BA42",blackberry:"#1D252C",cinnamint:"#D66755",sweetmint:"#035C67",branddark:"#003D38",white:"#FFFFFF",mutedNavy:"#9AB5B8",transparent:"transparent",limegreen:"#BBF174",callout:"#CDE012"};function a(e){return e?"string"==typeof e?e:e["0"]??e.min??e.mobile??e.tablet??e.desktop??e.max:void 0}function n(e,t){let i=a(e);return i?s[i]??t:t}function d({isScrolled:e,cfButtonColor:t="ginger",cfButtonHoverColor:i="green",className:o,style:c,children:h,onMouseEnter:u,onMouseLeave:p,onFocus:x,onBlur:f,...b}){var m;let g,w,[v,j]=(0,r.useState)(!1),C=(0,r.useMemo)(()=>n(t,s.ginger),[t]),k=(0,r.useMemo)(()=>n(i,C),[i,C]),y=v?k:C,F=(m=v?i:t,g=new Set(["blackberry","sweetmint","branddark"]),(w=a(m))&&g.has(w)?"#FFFFFF":"#1D252C");return(0,l.jsx)("button",{...b,className:["z-[1] flex-auto self-center inline-flex items-center justify-center whitespace-nowrap overflow-hidden rounded-[8px] min-h-[32px]",e?"w-[104px]":"w-[286px]",e?"h-10":"h-14",e?"text-[14px]":"text-[16px]","desktop:h-14 desktop:text-[16px]",e?"desktop:w-[104px]":"desktop:w-[286px]","transition-all duration-300 ease-[cubic-bezier(0,0.7,0.3,1.01)]",o||""].join(" "),style:{backgroundColor:y,color:F,WebkitTapHighlightColor:"transparent",willChange:"width, flex-grow",minWidth:"fit-content",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",WebkitPerspective:"1000",perspective:"1000",...c},onMouseEnter:e=>{j(!0),u?.(e)},onMouseLeave:e=>{j(!1),p?.(e)},onFocus:e=>{j(!0),x?.(e)},onBlur:e=>{j(!1),f?.(e)},children:h})}},25075:(e,t,i)=>{i.r(t),i.d(t,{GetStartedWidget:()=>g});var l=i(37876),r=i(14232),s=i(68827),a=i.n(s),n=i(36479),d=i(52947);let o=(0,r.forwardRef)(function({isScrolled:e,borderColor:t,handleOnChange:i,className:r,style:s,type:a="tel",value:n,onChange:o,placeholder:c,...h},u){return(0,l.jsx)("input",{...h,ref:u,type:a,value:n,onChange:e=>{let t=e.target.value,l="tel"===a?(0,d.$)(t)||"":t;i?.(l),o?.(e)},maxLength:"tel"===a?14:320,placeholder:c,className:["box-border self-center overflow-hidden opacity-100 h-14",e?"w-[224px]":"w-[286px]",e?"small:w-[174px]":"small:w-[252px]","desktop:w-[286px] rounded-[8px] text-left text-[14px] placeholder:text-[14px] desktop:placeholder:text-[18px]",e?"py-3 px-4":"p-6",e?"pr-12":"pr-16",e?"small:py-3 small:px-3 small:pr-8":"small:p-4 small:pr-12","appearance-none outline-0 border",r||""].join(" "),style:{borderColor:t||"#3BBFAD",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",transition:"flex-grow 0.3s cubic-bezier(0, 0.7, 0.3, 1.01)",...s}})});var c=i(5448),h=i(95534),u=i(33928);let p={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/mini-arrow-black.7e3f81a4.svg",height:16,width:18,blurWidth:0,blurHeight:0},x={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/mini-arrow-white.6ad55240.svg",height:16,width:18,blurWidth:0,blurHeight:0},f={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/arrow-black.50597062.svg",height:16,width:26,blurWidth:0,blurHeight:0},b={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/arrow-white.e730b37f.svg",height:16,width:26,blurWidth:0,blurHeight:0},m={[i(63126).nA.PARAGRAPH]:(e,t)=>(0,l.jsx)("p",{className:"w-fit items-center justify-center text-[10px] leading-4",children:t})};function g({autocompleteAttribute:e,buttonColor:t="ginger",buttonHoverColor:i="green",buttonText:s=h.TE,buttonContent:d,isScrolled:w=!1,label:v,privacyDisclaimerDropdown:j,errorMessage:C,errorPosition:k,showErrorBanner:y,inputProps:F}){let[B,N]=(0,r.useState)(!1),[W,_]=(0,r.useState)(""),L=(0,r.useRef)(),D=(0,r.useId)(),E=(0,r.useRef)(null);return(0,r.useEffect)(()=>{C&&B&&setTimeout(()=>{L.current&&L.current.focus()},200)},[C,B]),(0,r.useEffect)(()=>{let e=["blackberry","sweetmint"].includes(t);_(w?e?x:p:e?b:f)},[t]),B?(0,l.jsxs)("div",{id:"flex-wrapper",className:"relative mb-4 flex h-full w-fit flex-col justify-center self-center",style:{WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",WebkitOverflowScrolling:"touch",WebkitPerspective:"1000",perspective:"1000"},children:[(0,l.jsxs)("div",{className:"z-[1] flex h-full w-full items-center",children:[(0,l.jsx)(o,{...F,ref:L,tabIndex:B?0:-1,isScrolled:w,placeholder:v??"",autoComplete:e??"tel",borderColor:C?"#D31400":"#3BBFAD","aria-invalid":!!C,"aria-describedby":C?D:void 0}),(0,l.jsx)("button",{type:"submit","aria-label":"Get started","data-testid":"get-started-button",className:"absolute right-0 flex flex-col justify-center items-center h-10 max-h-10 rounded-[8px] px-2 transition-colors duration-200 hover:text-transparent focus:text-transparent active:text-transparent",style:{width:w?32:48,minWidth:48,margin:w?"auto 2%":"auto 8px"},children:(0,l.jsx)(a(),{src:W,alt:"Get started with Greenlight"})})]}),(0,l.jsx)("div",{className:"absolute left-0 top-full h-8 w-full overflow-hidden rounded-b-lg transition-all duration-300",style:{WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden"},children:(0,l.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,l.jsx)(u.A,{data:j,overrideOptions:m})})}),y&&C&&!j&&(0,l.jsx)("div",{ref:E,id:D,role:"alert","aria-live":"polite",tabIndex:-1,
1className:["bg-[#035c67] w-full min-h-[25px] text-white text-center absolute","top"===k?`rounded-t-[20px] ${w?"bottom-[30px]":"bottom-[55px]"} p-4`:`rounded-b-[20px] ${w?"top-[30px]":"top-[55px]"} p-4`].join(" "),style:{WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden"},children:C}),y&&C&&!!j&&(0,l.jsx)(n.u,{ref:E,id:D,message:C,position:k,isDisclaimerPresent:!!j,variant:"error",role:"alert","aria-live":"polite",tabIndex:-1})]}):(0,l.jsx)("div",{children:(0,l.jsx)(c.a,{type:"submit",cfButtonColor:t,cfButtonHoverColor:i,isScrolled:w,onClick:e=>(e.preventDefault(),N(!0),L?.current?.element?.focus()),"aria-label":"Get started","data-testid":"get-started-button",children:d||s})})}},36479:(e,t,i)=>{i.d(t,{u:()=>c});var l=i(37876),r=i(14232),s=i(58103),a=i.n(s);function n({className:e}){let t=(0,r.useId)();return(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,role:"img","aria-labelledby":t,children:[(0,l.jsx)("title",{id:t,children:"Error"}),(0,l.jsx)("g",{clipPath:"url(#clip0_9061_296)",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.666626 8.00001C0.666626 3.94992 3.94987 0.666672 7.99996 0.666672C12.05 0.666672 15.3333 3.94992 15.3333 8.00001C15.3333 12.0501 12.05 15.3333 7.99996 15.3333C3.94987 15.3333 0.666626 12.0501 0.666626 8.00001ZM7.99996 4.50001C8.36815 4.50001 8.66663 4.79848 8.66663 5.16667V8.50001C8.66663 8.86819 8.36815 9.16667 7.99996 9.16667C7.63177 9.16667 7.33329 8.86819 7.33329 8.50001V5.16667C7.33329 4.79848 7.63177 4.50001 7.99996 4.50001ZM8.83329 10.6667C8.83329 11.1269 8.4602 11.5 7.99996 11.5C7.53972 11.5 7.16663 11.1269 7.16663 10.6667C7.16663 10.2064 7.53972 9.83334 7.99996 9.83334C8.4602 9.83334 8.83329 10.2064 8.83329 10.6667Z",fill:"#D31400"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_9061_296",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}function d({className:e}){let t=(0,r.useId)();return(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,role:"img","aria-labelledby":t,children:[(0,l.jsx)("title",{id:t,children:"Success"}),(0,l.jsx)("g",{clipPath:"url(#clip0_9112_265)",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99996 0.666672C3.94987 0.666672 0.666626 3.94992 0.666626 8.00001C0.666626 12.0501 3.94987 15.3333 7.99996 15.3333C12.05 15.3333 15.3333 12.0501 15.3333 8.00001C15.3333 3.94992 12.05 0.666672 7.99996 0.666672ZM11.138 5.5286C11.3984 5.78895 11.3984 6.21106 11.138 6.47141L7.47136 10.1381C7.21101 10.3984 6.7889 10.3984 6.52855 10.1381L4.86189 8.47141C4.60154 8.21106 4.60154 7.78895 4.86189 7.5286C5.12224 7.26825 5.54435 7.26825 5.8047 7.5286L6.99996 8.72386L10.1952 5.5286C10.4556 5.26825 10.8777 5.26825 11.138 5.5286Z",fill:"#2CB87F"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_9112_265",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}function o({className:e}){let t=(0,r.useId)();return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",className:e,role:"img","aria-labelledby":t,children:[(0,l.jsx)("title",{id:t,children:"Error"}),(0,l.jsx)("g",{clipPath:"url(#clip0_1593_31451)",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.22183 4.21818C-0.0667774 8.50678 -0.0667771 15.4859 4.22183 19.7745C8.51043 24.0631 15.4896 24.0631 19.7782 19.7745C24.0668 15.4859 24.0668 8.50678 19.7782 4.21818C15.4896 -0.0704257 8.51043 -0.0704257 4.22183 4.21818ZM14.3335 11.9964L17.0558 9.27399L14.7224 6.94054L12 9.6629L9.27764 6.94054L6.94419 9.27399L9.66655 11.9964L6.94419 14.7187L9.27764 17.0522L12 14.3298L14.7224 17.0522L17.0558 14.7187L14.3335 11.9964Z",fill:"#FF867F"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_1593_31451",children:(0,l.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}let c=r.forwardRef(({message:e,position:t,variant:i,isDisclaimerPresent:r,id:s,role:c,"aria-live":h,tabIndex:u},p)=>(0,l.jsx)(l.Fragment,{children:r?(0,l.jsxs)("div",{"data-testid":"banner-message",ref:p,id:s,role:c,"aria-live":h,tabIndex:u,className:a()("z-1 absolute top-full -mt-1 flex h-8 w-full items-center rounded-b-md pb-[5px] pl-4 pt-[6px] text-[10px]","top"===t?"bottom-full":"top-full","error"===i&&"bg-[#FFE2DE]","success"===i&&"bg-[#CCF6E5]"),children:["error"===i&&(0,l.jsx)(o,{className:"mr-2"}),"success"===i&&(0,l.jsx)(d,{className:"mr-2"}),e]}):(0,l.jsxs)("div",{"data-testid":"banner-message",ref:p,id:s,role:c,"aria-live":h,tabIndex:u,className:a()("font-size-xs absolute z-10 mt-2 flex w-full items-center rounded-lg p-2 text-left text-xs font-normal","top"===t?"bottom-full":"top-full","error"===i&&"bg-[#fcefee] text-[#D31400]","success"===i&&"bg-[#ebfdf5] text-[#2CB87F]"),children:["error"===i&&(0,l.jsx)(n,{className:"mr-2"}),"success"===i&&(0,l.jsx)(d,{className:"mr-2"}),e]})}));c.displayName="BannerMessage"},52947:(e,t,i)=>{i.d(t,{$:()=>l});let l=e=>{if(""===e)return e;let t=e.replace(/\D/g,"").substring(0,10),i=t.substring(0,3),l=t.substring(3,6),r
1=t.substring(6,10);return t.length>6?`(${i}) ${l}-${r}`:t.length>3?`(${i}) ${l}`:t.length>0?i:void 0}}}]);

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.