1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4487,7889],{34487:(e,r,t)=>{t.r(r),t.d(r,{GET_DEMO_EMBED_BASE_URL:()=>c,GET_DEMO_EMBED_DESKTOP_MEDIA_QUERY:()=>u,GET_DEMO_EMBED_DESKTOP_MIN_WIDTH_PX:()=>d,GetDemoEmbed:()=>E,buildGetDemoIframeSrc:()=>f,isGetDemoDesktopViewport:()=>m,resolveGetDemoId:()=>h});var a=t(95155),s=t(12115),l=t(41854),n=t(32144),i=t(26865),o=t(77889);let c="https://app.getdemo.com.br/d",d=1024,u="(min-width: ".concat(d,"px)");var b=t(73579);let m=()=>window.innerWidth>=d,f=(e,r,t)=>{let a="".concat(c,"/").concat(e),s=new URL((0,b.kN)(a));if(s.searchParams.set("ajs_aid",r),t)for(let[e,r]of Object.entries(t))s.searchParams.set(e,r);return s.toString()},h=e=>{let{demoIds:r,isDesktop:t,showOnlyOnDesktop:a}=e,{desktop:s,mobile:l}=r;return a?t?s:null:t?s:null!=l?l:s},E=e=>{let{demoIds:r,title:t,className:c,showOnlyOnDesktop:d=!0,searchParams:b,...E}=e,[p,v]=(0,s.useState)(!1),[_,w]=(0,s.useState)(!1),g=(0,s.useRef)(null),D=(0,l.U)(u),x=(0,n.O)(),y=(0,s.useMemo)(()=>h({demoIds:r,isDesktop:D,showOnlyOnDesktop:d}),[r,D,d]),M=(0,s.useMemo)(()=>y&&x?f(y,x,b):null,[y,x,b]);return((0,s.useEffect)(()=>{w(!1),v(!1)},[y]),(0,s.useEffect)(()=>{if(!y)return;let e=new IntersectionObserver(r=>{for(let t of r)t.isIntersecting&&(!d||m())&&(w(!0),e.unobserve(t.target))}),r=g.current;return r&&e.observe(r),()=>{e.disconnect()}},[y,d]),y)?(0,a.jsxs)("div",{ref:g,className:(0,i.cn)("relative w-full overflow-hidden rounded-[6px] border-[4px] border-white lg:rounded-[20px]",c),...E,children:[_&&M?(0,a.jsx)("iframe",{src:M,title:t,loading:"lazy",allow:"autoplay; fullscreen",onLoad:()=>{v(!0)},className:(0,i.cn)("aspect-video w-full border-0 transition-opacity duration-300",p?"opacity-100":"opacity-0")}):null,!p&&(0,a.jsx)("div",{className:"bg-grayscale-semi-light absolute inset-0 flex aspect-video items-center justify-center","aria-hidden":!0,children:(0,a.jsx)(o.y,{size:"lg",color:"blue"})})]}):null}},41854:(e,r,t)=>{t.d(r,{U:()=>s});var a=t(12115);let s=e=>{let[r,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let r=globalThis.window.matchMedia(e);t(r.matches);let a=e=>{t(e.matches)};return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),r}},77889:(e,r,t)=>{t.d(r,{y:()=>n});var a=t(95155),s=t(26865);let l=(0,t(83101).F)("inline-block animate-spin rounded-full border-2 !border-b-transparent",{variants:{color:{current:"border-current",blue:"border-blue-ca","blue-darker":"border-blue-ca-darker"},size:{xs:"h-4 w-4",sm:"h-6 w-6 border-[3px]",md:"h-8 w-8 border-4",lg:"h-10 w-10 border-4"}},defaultVariants:{size:"sm",color:"current"}}),n=e=>{let{className:r,spinnerClassName:t,color:n,size:i,...o}=e;return(0,a.jsx)("div",{className:(0,s.cn)("inline-flex items-center justify-center",r),"aria-busy":!0,"aria-live":"polite",...o,children:(0,a.jsx)("span",{"aria-label":"Loading",className:(0,s.cn)(l({size:i,color:n,className:t}))})})}}}]);
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.