PageSourceSearch

https://www.awaxman.com/_next/static/chunks/pages/playground/2-8d68f6463514384c.js

js awaxman.com collected 2026-10-03 23:52:44 UTC 9,714 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{2150:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return F}});var r=i(8307),n=i(2640),o=i(7294),a=i(1289),s=i(4960),c=i(8828),l=i(5487);let d={some:0,all:1};var f=i(1236),u=i(8200),m=i(9911),p=i(9493),g=i(1193),h=i(5893);function w(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?w(Object(i),!0).forEach(function(t){(0,r.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var v=function(e){var t=e.title,i=e.body,r=o.useState(!1),a=(0,n.Z)(r,2),f=a[0],u=a[1],m=(0,o.useRef)(null),p=(0,s.c)(0),g=2*Math.PI*15,w=(0,c.H)(p,[0,100],[g,0]),y=(0,o.useRef)(null),v=(0,o.useRef)(null),_=function(e,{root:t,margin:i,amount:r,once:n=!1}={}){let[a,s]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!e.current||n&&a)return;let o={root:t&&t.current||void 0,margin:i,amount:r};return function(e,t,{root:i,margin:r,amount:n="some"}={}){let o=function(e,t,i){var r;if("string"==typeof e){let n=document;t&&((0,l.k)(!!t.current,"Scope provided, but no element detected."),n=t.current),i?(null!==(r=i[e])&&void 0!==r||(i[e]=n.querySelectorAll(e)),e=i[e]):e=n.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}(e),a=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let i=a.get(e.target);if(!!i!==e.isIntersecting){if(e.isIntersecting){let i=t(e);
1"function"==typeof i?a.set(e.target,i):s.unobserve(e.target)}else i&&(i(e),a.delete(e.target))}})},{root:i,rootMargin:r,threshold:"number"==typeof n?n:d[n]});return o.forEach(e=>s.observe(e)),()=>s.disconnect()}(e.current,()=>(s(!0),n?void 0:()=>s(!1)),o)},[t,e,i,n,r]),a}(v,{amount:.4}),j=function e(){var t,i,r=(null===(t=m.current)||void 0===t?void 0:t.currentTime)/(null===(i=m.current)||void 0===i?void 0:i.duration)*100;p.set(r),y.current=requestAnimationFrame(e)};return(0,o.useEffect)(function(){_&&m.current?(m.current.currentTime=0,p.set(0),m.current.play().then(function(){u(!0),y.current=requestAnimationFrame(j)}).catch(function(e){console.error("Error playing video:",e)})):(u(!1),cancelAnimationFrame(y.current),m.current&&m.current.pause())},[_]),(0,o.useEffect)(function(){return f?y.current=requestAnimationFrame(j):cancelAnimationFrame(y.current),function(){cancelAnimationFrame(y.current)}},[f]),(0,h.jsxs)(k,{children:[(0,h.jsx)(C,{ref:v,children:(0,h.jsx)(x,{videoRef:m,onEnded:function(){u(!1),m.current.currentTime=0,p.set(0)},isVideoInView:_,setIsPlaying:u,progressValue:p,animationFrameRef:y})}),(0,h.jsxs)(P,{children:[(0,h.jsxs)(I,{children:[(0,h.jsx)(E,{children:t}),(0,h.jsx)(T,{onClick:function(){m.current.paused?(m.current.play(),u(!0)):(m.current.pause(),u(!1))},variants:{initial:{scale:1},hover:{scale:1.075,transition:{type:"spring",stiffness:300,damping:25}},clicked:{scale:.95,transition:{type:"spring",stiffness:300,damping:25}}},initial:"initial",whileHover:"hover",whileTap:"clicked",children:(0,h.jsx)(b,{isPlaying:f,progressOffset:w,circumference:g})})]}),(0,h.jsx)(O,{className:"text-base",children:i})]})]})},x=function(e){var t=e.videoRef,i=e.onEnded;return e.isVideoInView,e.setIsPlaying,e.progressValue,e.animationFrameRef,(0,h.jsx)(N,{children:(0,h.jsxs)(Z,y(y({},{initial:{opacity:0}
1,animate:{opacity:1},transition:{type:"spring",stiffness:300,damping:50}}),{},{style:{willChange:"translateY, opacity"},children:[(0,h.jsx)(A,{}),(0,h.jsx)(S,{children:(0,h.jsx)(W,{ref:t,src:"/videos/red-sox.mp4",poster:"/images/red-sox-thumbnail.png",playsInline:!0,muted:!0,onEnded:i})})]}))})},b=function(e){var t=e.isPlaying,i=e.progressOffset,r=e.circumference;return(0,h.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:[(0,h.jsx)("circle",{cx:"16",cy:"16",r:"15",fill:"none",stroke:"#d6d3d1",strokeWidth:"1"}),(0,h.jsx)(f.E.circle,{cx:"16",cy:"16",r:"15",fill:"none",stroke:"#57534e",strokeWidth:"1",strokeDasharray:r,style:{strokeDashoffset:i,rotate:"-90deg",transformOrigin:"center"}}),t?(0,h.jsx)("g",{transform:"translate(8, 8)",children:(0,h.jsx)(p.Z,{width:"16",height:"16",fill:"#292524"})}):(0,h.jsx)("g",{transform:"translate(9, 8)",children:(0,h.jsx)(g.Z,{width:"16",height:"16",fill:"#292524"})})]})},_=a.ZP.div.withConfig({displayName:"sc-2__Wrapper",componentId:"sc-96awf2-0"})(["--stone-100:#f5f5f4;--stone-200:#e7e5e4;--background:white;--item-background:var(--stone-100);--breathing-room-small:12px;--breathing-room:24px;--breathing-room-large:45px;--breathing-room-extra-large:95px;@media ","{--breathing-room-large:65px;--breathing-room-extra-large:120px;}--translate-vertical-phone-y:58px;--border-radius:12px;display:flex;flex-direction:column;width:100%;background:var(--background);"],u.v.tabletAndUp),j=a.ZP.div.withConfig({displayName:"sc-2__SectionWrapper",componentId:"sc-96awf2-1"})(["display:flex;gap:var(--breathing-room);flex-direction:column;width:100%;max-width:950px;margin:var(--breathing-room) auto;gap:var(--breathing-room-extra-large);"]),P=a.ZP.div.withConfig({displayName:"sc-2__TextWrapper",componentId:"sc-96awf2-2"})(["position:relative;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--breathing-room-small);margin-left:var(--breathing-room-large);@media ","{align-items:flex-start;}"],u.v.md),k=(0,a.ZP)(f.E.div).withConfig({displayName:"sc-2__SectionContainer",componentId:"sc-96awf2-3"})(["display:flex;flex-direction:column;width:100%;gap:0;margin:0 auto;padding-left:var(--breathing-room);padding-right:var(--breathing-room);","{margin:0;margin-top:var(--breathing-room);}@media ","{flex-direction:row;&:nth-child(even){flex-direction:row-reverse;}}@media ","{&:nth-child(even){","{margin-left:0;margin-right:var(--breathing-room-large);}}&:nth-child(odd){","{margin-left:var(--breathing-room-large);margin-right:0;}}}"],P,u.v.sm,u.v.lg,P,P),I=a.ZP.div.withConfig({displayName:"sc-2__TitleWrapper",componentId:"sc-96awf2-4"})(["display:flex;flex-direction:row-reverse;gap:var(--breathing-room-small);@media ","{flex-direction:row;}"],u.v.sm),E=a.ZP.h2.withConfig({displayName:"sc-2__Title",componentId:"sc-96awf2-5"})(["",";"],{width:"fit-content",textAlign:"center",fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(41 37 36 / var(--tw-text-opacity))","@media (min-width: 640px)":{width:"100%",textAlign:"left"},"@media (min-width: 1024px)":{fontSize:"2.25rem",lineHeight:"1.25"}}),O=a.ZP.p.withConfig({displayName:"sc-2__Body",componentId:"sc-96awf2-6"})(["",";"],{width:"80%",textAlign:"center",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"300","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))","@media (min-width: 640px)":{textAlign:"left"},"@media (min-width: 1024px)":{width:"100%",fontSize:"1.125rem",lineHeight:"1.75rem"}}),C=(0,a.ZP)(f.E.div).withConfig({displayName:"sc-2__VideoItemWrapper",componentId:"sc-96awf2-7"})(["position:relative;display:flex;align-items:flex-end;flex-grow:1;padding:0 var(--breathing-room);padding-top:var(--breathing-room);overflow:hidden;@media ","{max-width:calc(100% / 2 - var(--breathing-room-large));}border-bottom:1px solid var(--stone-200);"],u.v.sm),N=a.ZP.div.withConfig({displayName:"sc-2__VideoMargin",componentId:"sc-96awf2-8"})(["margin-bottom:-42%;@media ","{margin-bottom:-40%;}"],u.v.sm),Z=(0,a.ZP)(f.E.div).withConfig({displayName:"sc-2__VideoContent",componentId:"sc-96awf2-9"})(["display:inline-block;position:relative;overflow:hidden;"]),A=(0,a.ZP)(m.Z).withConfig({displayName:"sc-2__Phone",componentId:"sc-96awf2-10"})(["width:100%;height:auto;position:relative;display:block;z-index:3;"]),S=a.ZP.div.withConfig({displayName:"sc-2__PhoneContent",componentId:"sc-96awf2-11"})(["position:absolute;z-index:2;inset:2% 4.8%;border-radius:5%;overflow:hidden;background:black;"]),V=(0,a.ZP)(f.E.video).withConfig({displayName:"sc-2__Video",componentId:"sc-96awf2-12"})(["--controls:none;flex-grow:1;max-width:100%;width:100%;"]),W=(0,a.ZP)(V).withConfig({displayName:"sc-2__VerticalVideo",componentId:"sc-96awf2-13"})(["position:absolute;inset:0;overflow:hidden;aspect-ratio:37/80;"]),T=(0,a.ZP)(f.E.button).withConfig({displayName:"sc-2__PlayPauseButton",componentId:"sc-96awf2-14"})(["border:none;cursor:pointer;&:focus{outline:none;}&:focus-visible{outline:2px solid blue;}"]),F=function(){return(0,h.jsx)(_,{children:(0,h.jsxs)(j,{children:[(0,h.jsx)(v,{title:"Price like a genius",body:"\n              Smart Pricing uses AI and years of data to automatically track and\n              adjust your ticket prices, so your seats sell at the right price,\n              as fast as possible - without the headache."}),(0,h.jsx)(v,{title:"Price like a genius",body:"\n              Smart Pricing uses AI and years of data to automatically track and\n              adjust your ticket prices, so your seats sell at the right price,\n              as fast as possible - without the headache."}),(0,h.jsx)(v,{title:"Price like a genius",body:"\n              Smart Pricing uses AI and years of data to automatically track and\n              adjust your ticket prices, so your seats sell at the right price,\n              as fast as possible - without the headache."})]})})}},7149:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/playground/2",function(){return i(2150)}])}},function(e){e.O(0,[289,64,185,888,774,179],function(){return e(e.s=7149)}),_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.