1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9045],{65050:function(e,o,t){"use strict";var n=t(41408).ZP.div.withConfig({componentId:"sc-2vbw0x-0"})(["width:100dvw;height:100dvh;display:flex;justify-content:center;align-items:center;overflow:hidden;"]);o.Z=n},87703:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return k}});var n=t(90849),a=t(11246),r=t(31099),c=t(27378),l=t(86677),i=t(62557),u=t(21318),s=t(50813),d=t(65050),g=t(71250),p=t(51746),v=t(3514),f=t(34051),m=t(97247),h=(0,f.fromJS)({}),w=function(e,o){return e.set("composerPageData",(0,f.fromJS)(o.data))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,o=arguments.length>1?arguments[1]:void 0;return o.type===m.Um?w(e,o):e},y=t(31007),P=t(24246);function C(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?C(Object(t),!0).forEach((function(o){(0,n.Z)(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))}))}return e}var k=(0,i.Z)((function(e){var o=e.country,t=e.language,n=e.threediumSiteUrl,i=e.pageQuery,p=e.saveComposerEventAction,f=e.pageData,m=e.globalData,h=(0,c.useRef)(null),w=(0,l.useRouter)(),b=null===i||void 0===i?void 0:i.get("page"),y=null===i||void 0===i?void 0:i.get("slug"),C=null===i||void 0===i?void 0:i.get("composition"),k=null===i||void 0===i?void 0:i.get("tid"),D=null===i||void 0===i?void 0:i.get("ttiid"),I=null===i||void 0===i?void 0:i.get("origin"),j=null===i||void 0===i?void 0:i.get("name"),S="productselection"===(null===b||void 0===b?void 0:b.toLowerCase())?"/product":"",E="productselection"===(null===b||void 0===b?void 0:b.toLowerCase())?"productselection":null,L=function(){if(h.current){var e=window.location.href;h.current.contentWindow.postMessage({eventName:"CurrentNavigationUrl",source:"site",url:{parentUrl:e}},"*")}};(0,c.useEffect)((function(){return w.events.on("routeChangeComplete",L),function(){w.events.off("routeChangeComplete",L)}}),[w]),(0,c.useEffect)((function(){var e=function(e){var n=e.data,a=n.page,r=n.productPath,c=n.target,l=n.eventName,i=n.composition,s=n.source,d=n.compositionDrafts,v=n.data,f=i||{id:null,tid:null,ttiid:null,name:null},m=f.id,P={beoId:null,event:l,productPath:r||null,page:a||null,source:s,target:c,status:null,tId:f.tid,ttiId:f.ttiid,compositionDrafts:d||null,compositionId:m||null,name:f.name||null},O=(0,g.Pc)();switch(a){case"Landing":w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase(),"/composer"),void 0,{shallow:!0}),p(P);break;case"BeoHome":w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase()),void 0,{shallow:!0}),p(P);break;case"ProductSelection":w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase(),"/composer?page=productselection"),void 0,{shallow:!0}),p(P);break;case"ProductOverview":w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase(),"/composer/product/").concat(r),void 0,{shallow:!0}),p(P);break;case"ViewProductPage":window.open("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase()).concat(r),c),p(P);break;default:console.log("Unhandled page event :".concat(a))}switch(l){case"MyAccount":O?(w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase(),"/my-account/my-compositions")),p(P)):((0,g.t_)("fromComposer","true"),w.push("/".concat(t,"/").concat(null===o||void 0===o?void 0:o.toLowerCase(),"/login")),p(P));break;case"SaveComposition":case"Share":case"Download":p(P);break;case"BookAStoreVisit":w.push("/".concat(t,"/checkout?step=postcode&flow=composerbookademo")),p(P);break;case"GTM":(0,u.q8)(v);break;case"IframeLoaded":!function(){if(h.current){var e={eventName:"IframeAttributes",source:"site",locale:t,country:o,productSlug:y||null,page:b||null,origin:I||null,composition:{id:C||null,
1name:j||null,tid:k||null,ttiid:D||null}};h.current.contentWindow.postMessage(e,"*")}}();break;default:console.log("Unhandled event :".concat(l))}};window.addEventListener("message",e);var n=(0,u.v8)({pageType:s.c3X,pageName:s.c3X});return(0,u.q8)(n),function(){window.removeEventListener("message",e)}}),[]);return(0,P.jsxs)(P.Fragment,{children:[function(){var e=f&&f.get("seo"),o=(0,g.Kc)(e,w),t=null===e||void 0===e?void 0:e.toJS(),n=null===e||void 0===e?void 0:e.getIn(["page","title"]),c=null===e||void 0===e?void 0:e.get("page"),l=(null===c||void 0===c?void 0:c.toJS())||{},i=(0,r.Z)({},l),u=(t||{}).includeNoIndexMetaTag;if(o){var s=(0,a.Z)(o,2),d=s[0],p=s[1],h=(0,g.L5)({localizedSlugs:null,localizedKeys:null,currentPath:w.asPath,globalData:m}),b=O(O({},d),{},{alternate:h});return(0,P.jsx)(v.Z,O(O(O({},b),i),{},{schemas:p.schemaInfo,includeNoIndexMetaTag:u,title:n}))}return null}(),(0,P.jsx)("div",{className:"active",children:(0,P.jsx)(d.Z,{children:(0,P.jsx)("iframe",{ref:h,src:"".concat(n).concat(S,"?locale=").concat(t,"&country=").concat(o),style:{width:"100%",height:"100%",border:"none"},title:"Composer",allow:"fullscreen; clipboard-read; clipboard-write","data-page":E,"data-locale":t,"data-country":o})})})]})}),{key:"ComposerPage",mapStateToProps:function(e){return{country:e.getIn(["global","globalData","country"]),language:e.getIn(["global","globalData","userlanguage"]),pageQuery:e.getIn(["global","globalData","pageQuery"]),globalData:e.getIn(["global","globalData"]),threediumSiteUrl:e.getIn(["global","header","loginAPI","threediumSiteUrl"]),pageData:e.getIn(["ComposerPage","composerPageData"])}},mapDispatchToProps:function(e){return{saveComposerEventAction:function(o){return e((0,p.E4)(o))}}},initialActions:p.ZP,useQuery:!0,reducer:b,saga:y.Z})},15889:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[language]/[country]/composer",function(){return t(87703)}])}},function(e){e.O(0,[9774,2888,179],(function(){return o=15889,e(e.s=o);var o}));var o=e.O();_N_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.