1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8117],{48117:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var s=n(62115),l=n(57091),i=n(67048),o=n(73669),a=n(75366);let r=e=>{let{content:t,ctas:n,onCta:r,onCopyCoupon:x,titleId:d,descriptionId:c}=e,[p,u]=(0,l.useState)(!1),m=(0,l.useRef)(void 0);(0,l.useEffect)(()=>()=>window.clearTimeout(m.current),[]);let f=async()=>{t.couponCode&&await x(t.couponCode)&&(u(!0),window.clearTimeout(m.current),m.current=window.setTimeout(()=>u(!1),2e3))},h=n.filter(e=>"primary"===e.variant),b=n.filter(e=>"primary"!==e.variant);return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-t-[16px] bg-[linear-gradient(180deg,#F5BD86_0%,#FBDBBC_42%,#FFFFFF_76%)] pt-[34px] pb-[30px]",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute -top-[40%] left-[4%] h-[180%] w-[42px] -rotate-[18deg] bg-white/25"}),(0,s.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute -top-[40%] left-[13%] h-[180%] w-[18px] -rotate-[18deg] bg-white/20"}),(0,s.jsx)("div",{className:"relative flex justify-center",children:(0,s.jsx)(i.A,{src:o.z.logo,alt:"Whizlabs",width:292,height:56,priority:!0,className:"h-auto w-[236px] md:w-[292px]"})})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center px-5 pb-[34px] text-center md:px-8",children:[(0,s.jsx)("h2",{id:d,className:"mt-[10px] text-[24px] font-bold leading-[1.16] tracking-[-0.01em] text-neutral-black md:text-[30px]",children:t.title}),t.description?(0,s.jsx)("p",{id:c,className:"mt-[14px] text-[15px] leading-[1.45] text-[#6B6B6B] md:mt-[18px] md:text-[18px]",children:t.description}):null,t.couponCode?(0,s.jsxs)("div",{className:"mt-[26px] flex min-h-[62px] w-full max-w-[424px] items-stretch overflow-hidden rounded-[10px] border border-[#EFB88C] md:mt-[34px] md:min-h-[70px]",children:[(0,s.jsx)("div",{className:"flex flex-1 items-center justify-center bg-[#FCEEE1] px-4",children:(0,s.jsxs)("span",{className:"flex items-baseline gap-1.5",children:[(0,s.jsx)("span",{className:"text-[28px] font-bold leading-none text-[#DE6A26] md:text-[34px]",children:t.badgePercent}),(0,s.jsx)("span",{className:"text-[15px] font-bold leading-none text-[#DE6A26] md:text-[17px]",children:t.badgeLabel})]})}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-[3px] border-l border-[#EFB88C] bg-white px-3",children:[(0,s.jsx)("span",{className:"text-[13px] leading-tight text-[#8C8C8C] md:text-[15px]",children:t.couponLabel}),(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-[21px] font-semibold leading-tight tracking-[0.01em] text-[#DE6A26] md:text-[25px]",children:t.couponCode}),t.showCopyIcon?(0,s.jsx)("button",{type:"button",onClick:f,"aria-label":p?"Coupon code copied":"Copy coupon code ".concat(t.couponCode),className:"cursor-pointer rounded p-1 text-[#DE6A26] transition-colors hover:bg-[#FCEEE1] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#DE6A26]",children:p?(0,s.jsx)(a.g9_,{size:18}):(0,s.jsx)(a.kn0,{size:17})}):null]})]})]}):null,(null==h?void 0:h.length)?h.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>r(e),className:"mt-[26px] w-full max-w-[320px] cursor-pointer rounded-full bg-[linear-gradient(90deg,#DE6A26_0%,#E68A45_100%)] px-8 py-[15px] text-[17px] font-bold text-white shadow-[0_4px_14px_rgba(222,106,38,0.28)] transition-transform hover:brightness-[1.04] active:scale-[0.985] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#DE6A26] focus-visible:ring-offset-2 md:text-[19px]",children:e.label},e.id)):null,(null==b?void 0:b.length)?(0,s.jsx)("div",{className:"mt-3 flex items-center gap-4",children:b.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>r(e),className:"text-[14px] font-medium text-[#7A7A7A] underline-offset-2 hover:text-[#4A4A4A] hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[#DE6A26]",children:e.label},e.id))}):null]})]})}}}]);
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.