1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="370c2e20-0f34-4605-b71b-336e61a197dd",t._sentryDebugIdIdentifier="sentry-dbid-370c2e20-0f34-4605-b71b-336e61a197dd")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17873],{17873:(t,e,n)=>{n.r(e),n.d(e,{AdPreview:()=>th});var o=n(95155),i=n(12115),a=n(55588),l=n(23954);function r(t){let e=t.replace("#","").trim();3===e.length&&(e=e.split("").map(t=>t+t).join(""));let n=parseInt(e.slice(0,6),16);return Number.isNaN(n)?[16,28,44]:[n>>16&255,n>>8&255,255&n]}function s(t){let e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function c(t){let[e,n,o]=r(t);return .2126*s(e)+.7152*s(n)+.0722*s(o)}function d(t,e){let[n,o]=[c(t),c(e)].sort((t,e)=>e-t);return(n+.05)/(o+.05)}function p(t,e){return d(t,"#FFFFFF")>=d(t,e)?"#FFFFFF":e}var h=n(69949),x=n(85701),g=n(64948),u=n(2151),f=n(60499),y=n(88729),m=n(41423),b=n(1078),j=n(36052),v=n(95546);let w={anton:x,"bebas-neue":f,oswald:n(35575),"barlow-condensed":u,"archivo-black":g,"lilita-one":b,poppins:n(32540),montserrat:j,"dm-sans":y,inter:m,nunito:v,rubik:n(25822)},k=new Map;function W(t){let e=t in w?t:"anton",n=w[e],o=k.get(e);return o||(o=n.loadFont("normal",{weights:h.gp[e].weights,subsets:["latin"]}).waitUntilDone(),k.set(e,o)),{family:n.getInfo().fontFamily,ready:o}}var F=n(48069);let S={top:270,bottom:1250,side:80},U={w:1080,h:1920},C=U.w-2*S.side,H=(0,i.createContext)(null),G=()=>{let t=(0,i.useContext)(H);if(!t)throw Error("ad context missing");return t},z=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.7,o=(0,l.UC)(),{fps:i}=(0,l.Bk)();return(0,l.oz)({frame:o-t,fps:i,config:{damping:e,mass:n}})},M=t=>{let{format:e,children:n}=t;return(0,o.jsx)(l.H1,{style:{overflow:"hidden"},children:(0,o.jsx)("div",{style:{position:"absolute",left:0,width:U.w,height:U.h,top:"45"===e?-(S.top-(1350-(S.bottom-S.top))/2):0},children:n})})},R=null;function I(t,e,n,o,i){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=1.03*function(t,e,n,o,i){if("undefined"==typeof document)return t.length*o*.5;null!=R||(R=document.createElement("canvas"));let a=R.getContext("2d");return a?(a.font="".concat(n," ").concat(o,"px ").concat(e.includes('"')||e.includes(",")?e:'"'.concat(e,'"')),a.measureText(t).width+i*t.length):t.length*o*.5}(t,e,n,o,a);return l<=i?o:Math.max(Math.round(.55*o),Math.floor(o*i/l))}let T=t=>{let{text:e,accent:n}=t,a=e.split(/(\*[^*]+\*)/g).filter(Boolean);return(0,o.jsx)(o.Fragment,{children:a.map((t,e)=>t.startsWith("*")&&t.endsWith("*")?(0,o.jsx)("span",{style:{color:n},children:t.slice(1,-1)},e):(0,o.jsx)(i.Fragment,{children:t},e))})},E={xl:240,l:185,m:125,s:58},A="0 6px 28px rgba(0,0,0,0.55)";function L(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C,o=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=e.text.replace(/\*/g,"");if("s"===e.size){let a=I(i.toUpperCase(),t.body,t.bodyWeight,E.s,n,3);return{fontFamily:t.body,fontWeight:t.bodyWeight,fontSize:a,letterSpacing:3,textTransform:"uppercase",color:"accent"===e.color?t.c.accent:t.c.text,textShadow:o?A:void 0,whiteSpace:"nowrap",lineHeight:1.1}}let a=I(t.upper?i.toUpperCase():i,t.display,t.displayWeight,E[e.size],n,1);return{fontFamily:t.display,fontWeight:t.displayWeight,fontSize:a,lineHeight:.98,letterSpacing:1,textTransform:t.upper?"uppercase":"none",color:"accent"===e.color?t.c.accent:t.c.text,textShadow:o?A:void 0,textAlign:"center",whiteSpace:"nowrap"}}let _=t=>{let{at:e,children:n,style:i,from:a=.6,y:r=30,damping:s=12}=t,c=z(e,s,.6);return(0,l.UC)()<e?(0,o.jsx)("div",{style:{...i,opacity:0},children:n}):(0,o.jsx)("div",{style:{...i,opacity:(0,l.GW)(c,[0,.4],[0,1],{extrapolateRight:"clamp"}),transform:"translateY(".concat((0,l.GW)(c,[0,1],[r,0]),"px) scale(").concat((0,l.GW)(c,[0,1],[a,1]),")")},children:n})},D=t=>{let{children:e,frames:n=7}=t,i=(0,l.UC)(),a=(0,l.GW)(i,[0,n],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),r=(0,l.GW)(i,[0,n+6],[1.05,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"});return(0,o.jsx)(l.H1,{style:{opacity:a,transform:"scale(".concat(r,")")},children:e})},N=t=>{let{src:e,dur:n,from:i=1.06,to:a=1.16,focus:r="50% 50%",panX:s=[0,0]}=t,c=(0,l.UC)(),{look:d}=G(),p=(0,l.GW)(c,[0,Math.max(1,n)],[0,1],{extrapolateRight:"clamp"});return e?(0,o.jsx)(l.H1,{style:{overflow:"hidden"},children:(0,o.jsx)(l.E9,{src:e,style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:r,transform:"translateX(".concat((0,l.GW)(p,[0,1],s),"px) scale(").concat((0,l.GW)(p,[0,1],[i,a]),")")}})}):(0,o.jsx)(l.H1,{style:{background:"linear-gradient(160deg, ".concat(d.c.bg2,", ").concat(d.c.bg,")"),alignItems:"center",justifyContent:"center"},children:(0,o.jsx)("div",{style:{opacity:.25},children:(0,o.jsx)(B,{name:"sparkles",size:200,color:d.c.text})})})},P=t=>{let{stops:e=[.75,.35,.6]}=t,{look:n}=G(),i=n.c.bgRgb;return(0,o.jsx)(l.H1,{style:{background:"linear-gradient(180deg, rgba(".concat(i,",").concat(e[0],") 0%, rgba(").concat(i,",").concat(.85*e[0],") 22%, rgba(").concat(i,",").concat(e[1],") 52%, rgba(").concat(i,",").concat(e[2],") 100%)")}})},X=t=>{let{seed:e,count:n=20,opacity:i=.45}=t,a=(0,l.UC)();return(0,o.jsx)(l.H1,{style:{overflow:"hidden",pointerEvents:"none"},children:Array.from({length:n}).map((t,n)=>{let r=18+70*(0,l.yT)("".concat(e,"r").concat(n)),s=(0,l.yT)("".concat(e,"x").concat(n))*U.w,c=.8+1.8*(0,l.yT)("".concat(e,"s").concat(n)),d=((2200*(0,l.yT)("".concat(e,"y").concat(n))-a*c*3)%2200+2200)%2200-140,p=14*Math.sin((a+20*n)/22);return(0,o.jsx)("div",{style:{position:"absolute",left:s+p-r,top:d-r,width:2*r,height:2*r,borderRadius:"50%",opacity:i*(.35+.65*(0,l.yT)("".concat(e,"o").concat(n))),background:"radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.25) 18%, rgba(190,230,250,0.18) 55%, rgba(190,230,250,0.35) 100%)",border:"2px s
1olid rgba(220,240,255,0.45)"}},n)})})},Z=t=>{let{seed:e}=t,{look:n}=G();return(0,o.jsx)(l.H1,{style:{background:"radial-gradient(ellipse 90% 55% at 50% 40%, ".concat(n.c.bg2," 0%, ").concat(n.c.bg," 70%)")},children:"bubbles"===n.brand.motif?(0,o.jsx)(X,{seed:e}):null})},q=()=>{let t=(0,l.UC)(),{look:e}=G();return(0,o.jsx)(l.H1,{style:{overflow:"hidden",opacity:.16},children:(0,o.jsx)("div",{style:{position:"absolute",left:U.w/2-1400,top:-700,width:2800,height:2800,transform:"rotate(".concat(.25*t,"deg)"),background:"repeating-conic-gradient(from 0deg at 50% 50%, ".concat(e.c.accent," 0deg 7deg, transparent 7deg 20deg)"),maskImage:"radial-gradient(circle, black 10%, transparent 55%)",WebkitMaskImage:"radial-gradient(circle, black 10%, transparent 55%)"}})})},B=t=>{var e;let{name:n,size:a,color:l,stroke:r=2.4,fill:s="none"}=t;return(0,o.jsx)("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:s,stroke:l,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",children:(null!=(e=F.Ze[n])?e:F.Ze.sparkles).map((t,e)=>{let[n,o]=t;return i.createElement(n,{key:e,...o})})})},Y=t=>{let{text:e,icon:n,tone:i="accent",size:a=40}=t,{look:l}=G(),r="accent"===i?l.c.onAccent:l.c.text,s=I(e.toUpperCase(),l.body,l.bodyWeight,a,C-2*a-(n?1.3*a:0),2);return(0,o.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:12,padding:"".concat(.32*s,"px ").concat(.8*s,"px"),borderRadius:999,background:"accent"===i?l.c.accent:"rgba(255,255,255,0.12)",border:"ghost"===i?"2px solid rgba(255,255,255,0.22)":void 0,color:r,fontFamily:l.body,fontWeight:l.bodyWeight,fontSize:s,letterSpacing:2,textTransform:"uppercase",whiteSpace:"nowrap",boxShadow:"0 10px 30px rgba(0,0,0,0.35)"},children:[n?(0,o.jsx)(B,{name:n,size:1.05*s,color:r,stroke:2.6}):null,e]})},O=t=>{let{children:e,top:n=S.top,justify:i="center",gap:a=10}=t;return(0,o.jsx)("div",{style:{position:"absolute",left:S.side,right:S.side,top:n,height:S.bottom-n,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:i,gap:a},children:e})},J=()=>(0,o.jsxs)(l.H1,{style:{pointerEvents:"none"},children:[(0,o.jsx)("div",{style:{position:"absolute",left:0,right:0,top:0,height:S.top,background:"rgba(255,0,0,0.25)"}}),(0,o.jsx)("div",{style:{position:"absolute",left:0,right:0,top:S.bottom,bottom:0,background:"rgba(255,0,0,0.25)"}}),(0,o.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:0,width:S.side,background:"rgba(255,0,0,0.15)"}}),(0,o.jsx)("div",{style:{position:"absolute",top:0,bottom:0,right:0,width:S.side,background:"rgba(255,0,0,0.15)"}})]});var K=n(11567);let Q=t=>{let{tl:e}=G();return n=>e.cueFrame(t,n)},V=t=>{let{line:e,i:n,maxWidth:i}=t,{look:a}=G(),l=Q(n);return(0,o.jsx)(_,{at:l(e.cue),from:"xl"===e.size?1.4:.6,style:L(a,e,i),children:(0,o.jsx)(T,{text:e.text,accent:a.c.accent})})},$=t=>{let{name:e,at:n}=t,{look:i}=G(),a=z(n-3,"pin"===e?8:18,"clock"===e?1.2:.6),r=a>.01,s="pin"===e?"translateY(".concat((0,l.GW)(a,[0,1],[-200,0]),"px)"):"clock"===e||"timer"===e?"rotate(".concat((0,l.GW)(a,[0,1],[-540,0]),"deg) scale(").concat((0,l.GW)(a,[0,1],[.4,1]),")"):"scale(".concat((0,l.GW)(a,[0,1],[.3,1]),")");return(0,o.jsx)("div",{style:{color:i.c.accent,opacity:+!!r,transform:s,filter:"drop-shadow(0 10px 20px rgba(0,0,0,0.55))",marginBottom:8},children:(0,o.jsx)(B,{name:e,size:140,color:i.c.accent,stroke:2.3,fill:"pin"===e?"rgba(255,255,255,0.12)":"none"})})},tt=t=>{let{s:e,i:n}=t,{tl:i,imgUrls:a}=G(),r=Q(n),s="top"===e.place;return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(N,{src:a[e.photo],dur:i.durations[n],focus:e.focus}),(0,o.jsx)(P,{stops:s?[.85,.35,.3]:[.6,.5,.6]}),(0,o.jsxs)(O,{top:s?310:S.top,justify:s?"flex-start":"center",children:[e.icon?(0,o.jsx)($,{name:e.icon.name,at:r(e.icon.cue)}):null,e.lines.map((t,e)=>(0,o.jsx)(V,{line:t,i:n},e)),e.pill?(0,o.jsx)(_,{at:r(e.pill.cue),y:20,style:{marginTop:18},children:(0,o.jsx)(Y,{text:e.pill.text,icon:e.pill.icon,tone:e.pill.tone,size:42})}):null]})]})},te=t=>{let{s:e,i:n}=t,{look:i,logoUrl:a}=G(),r=z(2,11,.8),s=6*Math.sin((0,l.UC)()/12);return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(Z,{seed:"logo-".concat(e.id)}),(0,o.jsx)(l.H1,{style:{background:"radial-gradient(circle 430px at 50% 620px, rgba(255,255,255,0.2), rgba(255,255,255,0) 70%)"}}),(0,o.jsx)("div",{style:{position:"absolute",left:(U.w-760)/2,to
1p:290+s,width:760,height:660,display:"flex",alignItems:"center",justifyContent:"center",transform:"scale(".concat((0,l.GW)(r,[0,1],[.4,1]),") rotate(").concat((0,l.GW)(r,[0,1],[-10,0]),"deg)"),opacity:(0,l.GW)(r,[0,.3],[0,1],{extrapolateRight:"clamp"})},children:a?(0,o.jsx)(l.E9,{src:a,style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",filter:"drop-shadow(0 18px 40px rgba(0,0,0,0.5))"}}):(0,o.jsx)("div",{style:L(i,{text:i.brand.name,size:"l"}),children:i.brand.name})}),(0,o.jsx)(O,{top:990,justify:"flex-start",children:e.lines.map((t,e)=>(0,o.jsx)(V,{line:t,i:n},e))})]})},tn=t=>{var e;let{s:n,i}=t,{tl:a,imgUrls:r,look:s}=G(),c=Q(i),d=(0,l.UC)(),p=c(null!=(e=n.strike.strikeCue)?e:n.strike.cue)+2,h=(0,l.GW)(d,[p,p+8],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),x=c(n.callout.cue),g=z(x+4,9,.7),u=(0,l.GW)(d,[x,x+8],[1,.55],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),f=function(t){if(t.length<=12||!t.includes(" "))return[t];let e=t.length/2,n=-1;for(let o=0;o<t.length;o++)" "===t[o]&&(n<0||Math.abs(o-e)<Math.abs(n-e))&&(n=o);return[t.slice(0,n),t.slice(n+1)]}(n.callout.text),y=C-108-130*!!n.callout.icon,m=Math.min(...f.map(t=>I(s.upper?t.toUpperCase():t,s.display,s.displayWeight,118,y,1)));return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(N,{src:r[n.photo],dur:a.durations[i],from:1.02,to:1.12,focus:n.focus,panX:[0,-40]}),(0,o.jsx)(P,{stops:[.8,.45,.45]}),(0,o.jsxs)(O,{top:330,justify:"flex-start",children:[(0,o.jsxs)("div",{style:{opacity:u,display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[n.lines.map((t,e)=>(0,o.jsx)(V,{line:t,i:i},e)),(0,o.jsxs)("div",{style:{position:"relative"},children:[(0,o.jsx)(_,{at:c(n.strike.cue),style:L(s,{text:n.strike.text,size:"l"},C-20),children:n.strike.text}),(0,o.jsx)("div",{style:{position:"absolute",left:-6,top:"46%",height:12,width:"calc(".concat(100*h,"% + 12px)"),background:"#FF5A5F",borderRadius:8,boxShadow:"0 4px 14px rgba(0,0,0,0.4)",transform:"rotate(-3deg)"}})]})]}),(0,o.jsx)("div",{style:{height:70}}),(0,o.jsx)(_,{at:x,from:.5,y:50,children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:26,padding:"26px 54px 22px",borderRadius:34,background:s.c.accent,boxShadow:"0 18px 50px rgba(0,0,0,0.45)"},children:[n.callout.icon?(0,o.jsx)("div",{style:{transform:"translateY(".concat((0,l.GW)(g,[0,1],[-260,0]),"px) rotate(").concat((0,l.GW)(g,[0,1],[-25,0]),"deg)"),opacity:+(g>.01),display:"flex"},children:(0,o.jsx)(B,{name:n.callout.icon,size:104,color:s.c.onAccent})}):null,(0,o.jsx)("div",{style:{fontFamily:s.display,fontWeight:s.displayWeight,fontSize:m,lineHeight:.98,color:s.c.onAccent,textTransform:s.upper?"uppercase":"none",whiteSpace:"nowrap"},children:f.map((t,e)=>(0,o.jsx)("div",{children:t},e))})]})})]})]})},to=t=>{var e,n;let{row:i,i:a,h:r}=t,{look:s,imgUrls:c}=G(),d=Q(a),p=d(i.cue)-5,h=z(p,13,.7),x=z(d(null!=(e=i.checkCue)?e:i.cue)+3,9,.5);if((0,l.UC)()<p)return(0,o.jsx)("div",{style:{height:r}});let g=Math.round(1.15*r),u=i.text.replace(/\*/g,""),f=I(s.upper?u.toUpperCase():u,s.display,s.displayWeight,Math.min(110,.42*r),C-g-102-100,1),y=i.photo?c[i.photo]:void 0;return(0,o.jsxs)("div",{style:{height:r,width:C,display:"flex",alignItems:"center",gap:34,borderRadius:30,background:"rgba(255,255,255,0.07)",border:"2px solid ".concat(s.c.accent,"59"),overflow:"hidden",opacity:(0,l.GW)(h,[0,.4],[0,1],{extrapolateRight:"clamp"}),transform:"translateX(".concat((0,l.GW)(h,[0,1],[220,0]),"px)")},children:[y?(0,o.jsx)(l.E9,{src:y,style:{width:g,height:r,objectFit:"cover",flexShrink:0}}):(0,o.jsx)("div",{style:{width:g,height:r,flexShrink:0,background:s.c.bg2,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(B,{name:null!=(n=i.icon)?n:"sparkles",size:.45*r,color:s.c.accent})}),(0,o.jsx)("div",{style:{fontFamily:s.display,fontWeight:s.displayWeight,fontSize:f,lineHeight:1,color:s.c.text,textTransform:s.upper?"uppercase":"none",textShadow:A,flex:1,whiteSpace:"nowrap"},children:(0,o.jsx)(T,{text:i.text,accent:s.c.accent})}),(0,o.jsx)("div",{style:{width:100,height:100,marginRight:34,borderRadius:"50%",background:s.
1c.accent,display:"flex",alignItems:"center",justifyContent:"center",transform:"scale(".concat(x,")"),boxShadow:"0 8px 24px rgba(0,0,0,0.35)",flexShrink:0},children:(0,o.jsx)(B,{name:"check",size:68,color:s.c.onAccent,stroke:4})})]})},ti=t=>{let{s:e,i:n}=t,i=Q(n),a=e.rows.length<=2?300:3===e.rows.length?262:200;return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(Z,{seed:"check-".concat(e.id)}),(0,o.jsxs)(O,{top:300,justify:"flex-start",children:[e.header?(0,o.jsx)(_,{at:Math.min(2,i(e.header.cue)),y:16,children:(0,o.jsx)(Y,{text:e.header.text,icon:e.header.icon,tone:"ghost",size:38})}):null,(0,o.jsx)("div",{style:{height:12}}),(0,o.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:26},children:e.rows.map((t,e)=>(0,o.jsx)(to,{row:t,i:n,h:a},e))})]})]})},ta=t=>{var e,n;let{s:i,i:a}=t,{look:r}=G(),s=Q(a),c=(0,l.UC)(),d=i.big[i.big.length-1],p=s(null==d?void 0:d.cue),h=i.big.length>1&&c>=p&&c<p+8?Math.sin((c-p)*2.4)*(8-(c-p))*1.6:0,x=i.big.map(t=>t.text).join(" "),g=I(r.upper?x.toUpperCase():x,r.display,r.displayWeight,250,C,1),u=i.coupon?s(i.coupon.cue):0,f=Math.max(0,u-12),y=(0,l.GW)(c,[u+10,u+30],[-40,140],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),m=i.coupon?I(i.coupon.code.toUpperCase(),r.display,r.displayWeight,124,700,6):0;return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(Z,{seed:"offer-".concat(i.id)}),(0,o.jsx)(q,{}),(0,o.jsxs)(O,{top:290,justify:"flex-start",children:[i.pill?(0,o.jsx)(_,{at:s(i.pill.cue),y:16,children:(0,o.jsx)(Y,{text:i.pill.text,icon:i.pill.icon,tone:null!=(e=i.pill.tone)?e:"ghost",size:36})}):null,i.kicker?(0,o.jsx)(V,{line:i.kicker,i:a}):null,(0,o.jsx)("div",{style:{display:"flex",gap:30,alignItems:"baseline",transform:"translateX(".concat(h,"px)")},children:i.big.map((t,e)=>(0,o.jsx)(_,{at:s(t.cue),from:e===i.big.length-1?2.2:1.6,damping:e===i.big.length-1?10:12,style:{...L(r,{text:t.text,size:"xl"}),fontSize:g},children:(0,o.jsx)(T,{text:t.text,accent:r.c.accent})},e))}),i.sub?(0,o.jsx)(V,{line:{...i.sub,color:null!=(n=i.sub.color)?n:"accent"},i:a}):null,i.coupon?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{style:{height:14}}),(0,o.jsx)(_,{at:f,from:.7,y:60,children:(0,o.jsxs)("div",{style:{position:"relative",width:800,padding:"18px 0 20px",borderRadius:28,background:"#FFFFFF",boxShadow:"0 20px 60px rgba(0,0,0,0.5)",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{position:"absolute",inset:10,borderRadius:20,border:"4px dashed ".concat(r.c.soft)}}),(0,o.jsx)("div",{style:{fontFamily:r.body,fontWeight:700,fontSize:34,color:r.c.soft,textAlign:"center",letterSpacing:3,textTransform:"uppercase"},children:i.coupon.label}),(0,o.jsx)("div",{style:{height:124,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(_,{at:u,from:1.6,style:{fontFamily:r.display,fontWeight:r.displayWeight,fontSize:m,lineHeight:1,color:r.c.bg,letterSpacing:6},children:i.coupon.code.toUpperCase()})}),(0,o.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:"".concat(y,"%"),width:90,transform:"skewX(-20deg)",background:"linear-gradient(90deg, rgba(255,255,255,0), ".concat(r.c.accent,"59, rgba(255,255,255,0))")}})]})})]}):null,i.fine?(0,o.jsx)(_,{at:(i.coupon?u:s(null==d?void 0:d.cue))+6,y:10,style:{fontFamily:r.body,fontWeight:600,fontSize:30,color:r.c.text,opacity:.85,marginTop:10,textAlign:"center"},children:i.fine}):null]})]})},tl=t=>{var e;let{s:n,i}=t,{look:a,tl:r,imgUrls:s}=G(),c=Math.max(0,Math.min(5,null!=(e=n.stars)?e:5)),d=n.quote.length;return(0,o.jsxs)(l.H1,{children:[n.photo?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N,{src:s[n.photo],dur:r.durations[i]}),(0,o.jsx)(P,{stops:[.85,.8,.85]})]}):(0,o.jsx)(Z,{seed:"quote-".concat(n.id)}),(0,o.jsxs)(O,{gap:26,children:[(0,o.jsx)("div",{style:{display:"flex",gap:14},children:Array.from({length:c}).map((t,e)=>(0,o.jsx)(_,{at:3+3*e,from:.2,children:(0,o.jsx)(B,{name:"star",size:86,color:a.c.accent,fill:a.c.accent,stroke:1.5})},e))}),(0,o.jsx)(_,{at:8,y:24,children:(0,o.jsxs)("div",{style:{fontFamily:a.body,fontWeight:700,fontSize:d<70?72:d<120?60:50,lineHeight:1.25,color:a.c.text,textAlign:"center",textShadow:A,maxWidth:C,textWrap:"balance"},children:["â",n.quote,"â"]})}),(0,o.jsx)(_,{at:14,y:10,style:{fontFamily:a.body,fontWeight:600,fontSize:38,color:a.c.accent,letterSpacing:1},children:n.by})]})]})},tr=t=>{let{s:e}=t,{graphicUrl:n}=G(),i=(0,l.UC)(),a=z(0,12,.8),r=1+.012*Math.sin(Math.max(0,i-25)/14),s=(0,l.GW)(i,[22,50],[-30,130],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),c=S.bottom-S.top;return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(Z,{seed:"graphic-".concat(e.id)}
1),(0,o.jsx)("div",{style:{position:"absolute",left:(U.w-c)/2,top:S.top,width:c,height:c,display:"flex",alignItems:"center",justifyContent:"center",transform:"scale(".concat((0,l.GW)(a,[0,1],[.82,1])*r,") rotate(").concat((0,l.GW)(a,[0,1],[-4,0]),"deg)"),opacity:(0,l.GW)(a,[0,.3],[0,1],{extrapolateRight:"clamp"})},children:n?(0,o.jsxs)("div",{style:{position:"relative",borderRadius:34,overflow:"hidden",boxShadow:"0 30px 80px rgba(0,0,0,0.6)",display:"flex"},children:[(0,o.jsx)(l.E9,{src:n,style:{maxWidth:c,maxHeight:c,display:"block"}}),(0,o.jsx)("div",{style:{position:"absolute",top:-100,bottom:-100,left:"".concat(s,"%"),width:160,transform:"skewX(-20deg)",background:"linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0))"}})]}):null})]})},ts=t=>{let{s:e,i:n}=t,{look:i,logoUrl:a}=G(),r=Q(n),s=z(2,12,.8),c=e.lines[e.lines.length-1],d=r(null==c?void 0:c.cue)+8,p=1+.03*Math.max(0,Math.sin(((0,l.UC)()-d)/8));return(0,o.jsxs)(l.H1,{children:[(0,o.jsx)(Z,{seed:"end-".concat(e.id)}),(0,o.jsxs)(O,{justify:"center",gap:14,children:[(0,o.jsx)("div",{style:{width:640,height:460,display:"flex",alignItems:"center",justifyContent:"center",transform:"scale(".concat((0,l.GW)(s,[0,1],[.5,1]),")"),opacity:(0,l.GW)(s,[0,.3],[0,1],{extrapolateRight:"clamp"})},children:a?(0,o.jsx)(l.E9,{src:a,style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",filter:"drop-shadow(0 14px 30px rgba(0,0,0,0.5))"}}):null}),e.lines.map((t,e)=>(0,o.jsx)(V,{line:t,i:n},e)),e.button?(0,o.jsx)(_,{at:d,y:20,style:{marginTop:16},children:(0,o.jsx)("div",{style:{padding:"22px 64px",borderRadius:26,background:i.c.main,color:i.c.onMain,fontFamily:i.body,fontWeight:i.bodyWeight,fontSize:I(e.button,i.body,i.bodyWeight,56,C-128),boxShadow:"0 16px 40px rgba(0,0,0,0.45)",transform:"scale(".concat(p,")"),whiteSpace:"nowrap"},children:e.button})}):null,e.fine?(0,o.jsx)(_,{at:d+6,y:10,style:{fontFamily:i.body,fontWeight:600,fontSize:30,color:i.c.text,opacity:.8,marginTop:8},children:e.fine}):null]})]})},tc=t=>{let{s:e,i:n}=t;switch(e.type){case"photo":return(0,o.jsx)(tt,{s:e,i:n});case"logo":return(0,o.jsx)(te,{s:e,i:n});case"strike":return(0,o.jsx)(tn,{s:e,i:n});case"checklist":return(0,o.jsx)(ti,{s:e,i:n});case"offer":return(0,o.jsx)(ta,{s:e,i:n});case"quote":return(0,o.jsx)(tl,{s:e,i:n});case"graphic":return(0,o.jsx)(tr,{s:e,i:n});case"end":return(0,o.jsx)(ts,{s:e,i:n})}},td=t=>"#"+r(t).map(t=>t.toString(16).padStart(2,"0")).join("").toUpperCase(),tp=t=>{let{spec:e,brand:n,format:a,imgUrls:s,logoUrl:c,graphicUrl:x,voUrl:g,words:u,musicUrl:f,showSafeZone:y}=t,m=(0,i.useMemo)(()=>(0,K.IO)(e,u),[e,u]),b=W(n.fonts.display),j=W(n.fonts.body),v="".concat(b.family,"|").concat(j.family),[w,k]=(0,i.useState)(null),[F]=(0,i.useState)(()=>(0,l.IH)("Loading the ad fonts"));(0,i.useEffect)(()=>{let t=!0,e=null===w?F:(0,l.IH)("Loading the ad fonts");return Promise.all([b.ready,j.ready]).catch(()=>void 0).then(()=>{t&&k(v),(0,l._8)(e)}),()=>{t=!1}},[v]);let S=(0,i.useMemo)(()=>(function(t,e,n){var o,i,a,l,s,c,x;let g=td(t.colors.bg),u=td((x=td(t.colors.accent),d(x,g)>=2.2?x:p(g,g))),f=td(t.colors.main);return{brand:t,display:e,body:n,displayWeight:null!=(l=null==(o=h.gp[t.fonts.display])?void 0:o.weight)?l:400,bodyWeight:null!=(s=null==(i=h.gp[t.fonts.body])?void 0:i.weight)?s:800,upper:null==(c=null==(a=h.gp[t.fonts.display])?void 0:a.upper)||c,c:{bg:g,bg2:td(t.colors.bg2),bgRgb:r(g).join(","),text:p(g,"#111111"),accent:u,onAccent:p(u,g),main:f,onMain:p(f,g),soft:td(t.colors.soft)}}})(n,b.family,j.family),[n,b.family,j.family]);return w!==v?(0,o.jsx)(l.H1,{style:{background:S.c.bg}}):(0,o.jsx)(H.Provider,{value:{look:S,tl:m,format:a,imgUrls:null!=s?s:{},logoUrl:c,graphicUrl:x},children:(0,o.jsxs)(l.H1,{style:{background:S.c.bg},children:[(0,o.jsxs)(M,{format:a,children:[e.scenes.map((t,e)=>{var n;let i=m.starts[e],a=null!=(n=m.starts[e+1])?n:m.total;return(0,o.jsx)(l.gd,{from:i,durationInFrames:Math.max(1,a-i+(a<m.total?K.N_:0)),name:t.id,children:0===e?(0,o.jsx)(tc,{s:t,i:e}):(0,o.jsx)(D,{children:(0,o.jsx)(tc,{s:t,i:e})})},"".concat(t.id,"-").concat(e))}),y&&"916"===a?(0,o.jsx)(J,{}):null]}),g?(0,o.jsx)(l.gd,{from:K.Wg,children:(0,o.jsx)(l.fP,{src:g})}):null,f?(0,o.jsx)(l.fP,{src:f,volume:t=>{let e=(0,l.GW)(t,[m.voEnd+4,m.voEnd+16],[.22,.5],{extrapolateLeft:"clamp",extrapolateRight:"clamp"});return e*(0,l.GW)(t,[m.total-30,m.total-1],[1,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp"})*(0,l.GW)(t,[0,6],[.4,1],{extrapolateRight:"clamp"})}}):null]})})};function th(t){let e=(0,i.useMemo)(()=>(0,K.IO)(t.spec,t.words).total,[t.spec,t.words]),n=(0,i.useMemo)(()=>({spec:t.spec,brand:t.brand,format:t.format,imgUrls:t.imgUrls,logoUrl:t.logoUrl,graphicUrl:t.graphicUrl,voUrl:t.voUrl,words:t.words,musicUrl:t.musicUrl,showSafeZone:!!t.safeZone}),[t.spec,t.brand,t.format,t.imgUrls,t.logoUrl,t.graphicUrl,t.voUrl,t.words,t.musicUrl,t.safeZone]);return t.spec.scenes.length?(0,o.jsx)(a.ai,{component:tp,compositionWidth:1080,compositionHeight:"45"===t.format?1350:1920,fps:30,durationInFrames:e,inputProps:n,controls:!0,initialFrame:Math.min(45,e-1),style:{width:"100%",borderRadius:10,overflow:"hidden",background:"#000"}},"".concat(t.format,"-").concat(e)):(0,o.jsx)("p",{className:"text-xs text-text-muted",children:"Add a sce
1ne to preview."})}}}]);
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.