1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9206],{49206:(e,a,t)=>{t.r(a),t.d(a,{Iframe:()=>f});var r=t(37876),n=t(14232),i=t(5646),l=t(3874);let s=i.Ay.iframe.withConfig({componentId:"sc-4d330d61-0"})(["",""],e=>"responsive"===e.$iframeType?`width:100%;max-width:${e.$iframeWidth}; height:${e.$iframeHeight}`:`width:${e.$iframeWidth}; height:${e.$iframeHeight}`),d=l.A.div` 2 w-full 3 flex 4 mt-11 5 ${e=>"left"===e.$alignment?"justify-start":"justify-center"} 6`;var c=t(68783);let o="Adventcalendar",m="AdventCalendar_Participation",h=({templateProps:{iframeWidth:e,iframeHeight:a,iframeUrl:t,iframeType:i,alignment:l}})=>{let[h,f]=(0,n.useState)(void 0),u=(0,n.useRef)(null),$=t.split("?"),g=h&&Number(h)>0&&25>Number(h)?`&door=${h}`:"",p=new URLSearchParams(new URL(t).search),w=p.get("country")||"",v=p.get("brand")||"",x=$.at(0)?.replace(o,m)||t;(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("door");f(e?encodeURI(`${x}?country=${w}&brand=${v}${g}`):t);let a=a=>{a.data.iframeScrollTop&&!e&&_(),a.data.quizPage&&c.b.trackEvent({event:"advent_calendar_quiz_page"}),a.data.successPage&&(c.b.trackEvent({event:"advent_calendar_success_page"}),_())};return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}},[h]);let _=()=>{let e=u.current;e&&e.scrollIntoView({behavior:"auto"})};return(0,r.jsxs)(d,{$alignment:l??"center",ref:u,children:[(0,r.jsx)("span",{className:"hidden",children:"IframeAdventCalendar"}),(0,r.jsx)(s,{$iframeType:i,$iframeWidth:e||"100vw",$iframeHeight:a||"2500px",src:h,title:"fullPage",allow:"geolocation",allowFullScreen:!0})]})},f=({templateProps:e})=>{let{alignment:a,iframeHeight:t,iframeType:n,iframeUrl:i,iframeWidth:l}=e;return i.includes(o||m)?(0,r.jsx)(h,{templateProps:e}):(0,r.jsxs)(d,{$alignment:a??"center",children:[(0,r.jsx)("span",{className:"hidden",children:"IFrame"}),(0,r.jsx)(s,{$iframeType:n,$iframeWidth:l||"100%",$iframeHeight:t||"2500px",src:i,title:"fullPage",allow:"geolocation",allowFullScreen:!0})]})}}}]); 7//# sourceMappingURL=9206.f8c73363509f97be.js.map
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.