(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da72da74"],{"02d3":function(e,t,a){"use strict";a("5994")},"073a":function(e,t,a){"use strict";a("5eaa")},1530:function(e,t,a){},5e3:function(e,t,a){},"51e8":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ZyroButton",{staticClass:"logo",attrs:{theme:"header",color:"white",title:e.user?e.$t("common.mySites"):e.$t("common.templates")},on:{click:e.headerLogoRedirect}},[a("ZyroSvg",{staticClass:"logo__img",attrs:{"data-qa":"builder-header-img-zyrologo",name:"logo"}}),a("ZyroSvg",{staticClass:"logo__back",attrs:{name:"chevron",direction:"left"}})],1)},s=[],i=a("5530"),o=a("2f62"),d=a("d363"),c={setup(){const{headerLogoRedirect:e}=Object(d["a"])();return{headerLogoRedirect:e}},computed:Object(i["a"])({},Object(o["f"])("user",["user"]))},l=c,n=(a("02d3"),a("2877")),u=Object(n["a"])(l,r,s,!1,null,"39722439",null);t["a"]=u.exports},"57fe":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BuilderHeaderPrimary",{staticClass:"page-layout__header page-layout__header--sticky"}),a("BuilderHeatmapHeader",{staticClass:"page-layout__header-heatmap"}),a("BuilderRoot",{staticClass:"page-layout"})],1)},s=[],i=a("5530"),o=a("2f62"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"header",staticClass:"heatmap-header",style:e.headerStyle},[a("div",{staticClass:"heatmap-header__controls"},[a("ZyroButton",{directives:[{name:"qa",rawName:"v-qa",value:"builder-heatmap-close",expression:"'builder-heatmap-close'"}],staticClass:"heatmap-header__close",attrs:{theme:"primary",size:"xs",color:"blue",icon:"close-sm","icon-dimesnions":"16px"},on:{click:e.closeHeatmap}}),a("div",{staticClass:"heatmap-header__label z-subheading"},[e._v(" "+e._s(e.$t("builder.AIHeatmapLabel"))+" ")])],1),a("div",{staticClass:"heatmap-header__text z-body-small"},[a("ZyroSvg",{staticClass:"heatmap-header__more-icon",attrs:{name:"info-circle"}}),e._v(" "+e._s(e.$t("builder.AIHeatmapText"))+" "),a("a",{attrs:{href:e.moreHref,target:"_blank"}},[e._v(" "+e._s(e.$t("builder.AIHeatmapMore"))+" ")])],1)])},c=[],l=a("5fb0"),n=a("0a84"),u=a("d363");const h=48,{AI_HEATMAP:b}=l["j"];var m={setup(){const{getRedirectToWWWUrl:e}=Object(u["a"])(),t=e({path:b});return{moreHref:t}},data(){return{headerHeight:null}},computed:Object(i["a"])(Object(i["a"])({},Object(n["s"])(["isHeatmapOpen"])),{},{headerStyle:({headerTop:e,isHeatmapOpen:t})=>({top:"".concat(e,"px"),height:t?"".concat(h,"px"):0})}),mounted(){const{top:e}=this.$refs.header.getBoundingClientRect();this.headerTop=e},methods:Object(n["r"])({closeHeatmap:n["e"]})},p=m,g=(a("694a"),a("2877")),_=Object(g["a"])(p,d,c,!1,null,"1ca7f850",null),f=_.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"builderHeader",staticClass:"builder-header"},[a("div",{staticClass:"builder-header__item"},[a("ZyroLogo")],1),a("div",{staticClass:"builder-header__item"},[a("div",{staticClass:"builder-header__controls"},[a("div",{staticClass:"builder-header__separator"}),a("BuilderHeaderScreenToggleButton"),a("div",{staticClass:"builder-header__separator"}),a("ZyroButton",{attrs:{disabled:e.isUndoDisabled,"data-qa":"builderheader-menuitem-undo",theme:"header",color:"white",icon:"arrow-back",title:e.$t("common.undo")},on:{click:e.undoWebsite}}),a("div",{staticClass:"builder-header__separator"}),a("ZyroButton",{attrs:{disabled:e.isRedoDisabled,"data-qa":"builderheader-menuitem-redo",theme:"header",color:"white",icon:"arrow-forward",title:e.$t("common.redo")},on:{click:e.redoWebsite}}),a("div",{staticClass:"builder-header__separator"}),a("BuilderHeaderSaveButton")],1),a("div",{staticClass:"builder-header__separator"}),a("ZyroButton",{attrs:{"data-qa":"builder-header-btn-preview",theme:"header",color:"white"},on:{click:function(t){return e.$router.push({name:e.PREVIEW_ROUTE})}}},[e._v(" "+e._s(e.$t("common.preview"))+" ")]),a("BuilderHeaderPublishButton",{attrs:{"data-qa":"builder-header-btn-publishsite"}})],1)])},O=[],j=a("9daa"),B=a("51e8"),H=a("a060"),y=a("b8f5"),R=a("644c"),C={name:"BuilderHeaderPrimary",components:{BuilderHeaderSaveButton:y["a"],BuilderHeaderScreenToggleButton:R["a"],BuilderHeaderPublishButton:j["a"],ZyroLogo:B["a"]},setup(){return{PREVIEW_ROUTE:H["j"]}},computed:Object(i["a"])({},Object(o["d"])("undoRedo",["isUndoDisabled","isRedoDisabled"])),mounted(){this.updateHeaderHeight(this.$refs.builderHeader.clientHeight)},methods:Object(i["a"])(Object(i["a"])({},Object(n["r"])({updateHeaderHeight:n["o"]})),Object(o["e"])("undoRedo",["undoWebsite","redoWebsite"]))},P=C,w=(a("073a"),Object(g["a"])(P,v,O,!1,null,"d45f4942",null)),E=w.exports,S=a("d2c4"),$={name:"Builder",components:{BuilderRoot:S["a"],BuilderHeaderPrimary:E,BuilderHeatmapHeader:f},beforeRouteEnter(e,t,a){a(e=>{e.mostRecentBuilderPageId&&(e.changePage({pageId:e.mostRecentBuilderPageId}),e.setMostRecentBuilderPage({pageId:""}))})},beforeRouteLeave(e,t,a){this.setElementEditMode(!1),this.setMostRecentBuilderPage({pageId:this.currentPageId}),a()},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(n["s"])(["isSidebarOpen","isMobileScreen"])),Object(o["f"])("pages",["mostRecentBuilderPageId","currentPageId"])),Object(o["d"])("pages",["currentPage"])),beforeMount(){"default"!==this.currentPage.type&&this.changePage()},created(){this.isMobileScreen&&this.isSidebarOpen&&this.closeSidebar()},methods:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(n["r"])({closeSidebar:n["g"]})),Object(o["c"])("gui",["setElementEditMode"])),Object(o["c"])("pages",["changePage","setMostRecentBuilderPage"]))},I=$,k=(a("f83a"),Object(g["a"])(I,r,s,!1,null,"0a465ed4",null));t["default"]=k.exports},5994:function(e,t,a){},"5eaa":function(e,t,a){},"694a":function(e,t,a){"use strict";a("5000")},f83a:function(e,t,a){"use strict";a("1530")}}]); //# sourceMappingURL=chunk-da72da74.0345e059.js.map