1"use strict";(self.webpackChunkfolio=self.webpackChunkfolio||[]).push([[7112],{98216(t,e,n){n.d(e,{A:()=>i});var o=n(20641);const r={name:"PanelOverlayRouterView"};const i=(0,n(66262).A)(r,[["render",function(t,e,n,r,i,a){var s=(0,o.g2)("RouterView");return(0,o.uX)(),(0,o.Wv)(s,{name:"sidePanelOverlayView"},{default:(0,o.k6)(function(t){var e=t.Component;return[((0,o.uX)(),(0,o.Wv)((0,o.$y)(e)))]}),_:1})}]])},9849(t,e,n){n.d(e,{A:()=>T});var o=n(20641),r=n(90033),i={class:"ufo-sepa"};var a=n(99298),s=n(92343),l=n(53751);function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var d={class:"apply-global-spacing-content"},m={key:0},f={key:1};var h=n(5412),p=n(97073),y=n(79271),v=n(8851),g=n(55445),b=n(13124);const S={name:"apply-global-spacing-modal",components:{ModalFooter:b.A,ModalBody:g.A,ModalHeader:v.A,ModalWrapper:y.A,Cta:h.A},methods:{close:function(){this.$store.state.sidePanelSettings.activeModal=null},cancel:function(){var t=this.$store.getters.isCaseStudy?"Project editor":"Home page editor";(0,p.f0)("Cancel global spacing from warning modal",{event_category:t,event_label:"User: ".concat(this.$store.state.user._id)}),this.$emit("secondaryAction"),this.close()},save:function(){this.$store.state.sidePanelSettings.allowSave=!1,this.$store.state.sidePanelSettings.globalSpacingChanged=!1,this.$emit("primaryAction"),this.close()}}};var A=n(66262);const k=(0,A.A)(S,[["render",function(t,e,n,r,i,a){var s=(0,o.g2)("ModalHeader"),l=(0,o.g2)("ModalBody"),u=(0,o.g2)("Cta"),h=(0,o.g2)("ModalFooter"),p=(0,o.g2)("ModalWrapper");return(0,o.uX)(),(0,o.Wv)(p,{"dark-scheme":"","modal-size":"small",onClose:e[2]||(e[2]=function(t){return a.cancel()})},{"modal-header":(0,o.k6)(function(){return[(0,o.bF)(s,{"dark-scheme":"",title:"Commit to new spacing"})]}),"modal-body":(0,o.k6)(function(){return[(0,o.bF)(l,{"text-align":"center"},{default:(0,o.k6)(function(){return[(0,o.Lk)("div",d,[t.$store.getters.isCaseStudy?((0,o.uX)(),(0,o.CE)("div",m,"You are about to permanently override your current spacing settings in this case study. Do you want to proceed?")):((0,o.uX)(),(0,o.CE)("div",f,"You are about to permanently override your current spacing settings on your portfolio pages, such as home, about, and contact. Do you want to proceed?"))])]}),_:1})]}),"modal-footer":(0,o.k6)(function(){return[(0,o.bF)(h,null,{default:(0,o.k6)(function(){return[(0,o.bF)(u,{"dark-scheme":"",type:"secondary",onClick:e[0]||(e[0]=function(t){return a.cancel()})},{default:(0,o.k6)(function(){return c(e[3]||(e[3]=[(0,o.eW)("Cancel",-1)]))}),_:1}),(0,o.bF)(u,{"dark-scheme":"",onClick:e[1]||(e[1]=function(t){return a.save()})},{default:(0,o.k6)(function(){return c(e[4]||(e[4]=[(0,o.eW)("Proceed",-1)]))}),_:1})]}),_:1})]}),_:1})}]]);function P(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}const C={name:"cancel-confirm-modal",components:{ModalBody:g.A,ModalFooter:b.A,ModalWrapper:y.A,ModalHeader:v.A,Cta:h.A},methods:{close:function(){this.$store.state.sidePanelSettings.activeModal=null},cancel:function(){this.$store.commit("updateSidePanel",{allowSave:!1}),this.$emit("secondaryAction"),this.close()},save:function(){this.$emit("primaryAction"),this.close()}}},M={name:"side-panel-modal-loader",components:{ApplyGlobalSpacingModal:k,CancelConfirmModal:(0,A.A)(C,[["render",function(t,e,n,r,i,a){var s=(0,o.g2)("ModalHeader"),l=(0,o.g2)("ModalBody"),c=(0,o.g2)("Cta"),u=(0,o.g2)("ModalFooter"),d=(0,o.g2)("ModalWrapper");
1return(0,o.uX)(),(0,o.Wv)(d,{"dark-scheme":"","modal-size":"small","disable-outside-click":""},{"modal-header":(0,o.k6)(function(){return[(0,o.bF)(s,{"dark-scheme":"",title:"You have unsaved changes"})]}),"modal-body":(0,o.k6)(function(){return[(0,o.bF)(l,{"text-align":"center"},{default:(0,o.k6)(function(){return P(e[2]||(e[2]=[(0,o.Lk)("div",null,"All your unsaved changes will be lost. Would you like to save the changes you made?",-1)]))}),_:1})]}),"modal-footer":(0,o.k6)(function(){return[(0,o.bF)(u,null,{default:(0,o.k6)(function(){return[(0,o.bF)(c,{"dark-scheme":"",type:"secondary",onClick:e[0]||(e[0]=function(t){return a.cancel()})},{default:(0,o.k6)(function(){return P(e[3]||(e[3]=[(0,o.eW)("Discard",-1)]))}),_:1}),(0,o.bF)(c,{"dark-scheme":"",onClick:e[1]||(e[1]=function(t){return a.save()})},{default:(0,o.k6)(function(){return P(e[4]||(e[4]=[(0,o.eW)("Save",-1)]))}),_:1})]}),_:1})]}),_:1})}]])},emits:["primaryAction","secondaryAction"],computed:{modalName:function(){return this.$store.state.sidePanelSettings.activeModal}},methods:{primaryAction:function(){this.$emit("primaryAction"),this.$store.commit("updateSidePanel",{activeModal:null})},secondaryAction:function(){this.$emit("secondaryAction"),this.$store.commit("updateSidePanel",{activeModal:null})}}},w=(0,A.A)(M,[["render",function(t,e,n,r,i,a){return(0,o.uX)(),(0,o.Wv)(l.Transition,{name:"modal"},{default:(0,o.k6)(function(){return[((0,o.uX)(),(0,o.Wv)((0,o.$y)(a.modalName),{key:a.modalName,onPrimaryAction:e[0]||(e[0]=function(t){return a.primaryAction()}),onSecondaryAction:e[1]||(e[1]=function(t){return a.secondaryAction()})},null,32))]}),_:1})}]]);var F=n(74256);const O={name:"side-panel-frame",components:{SidePanelModalLoader:w,PanelHeader:a.A,PanelFooter:s.A},props:{showCaseStudyContext:{type:Boolean,default:!1},showPortfolioContext:{type:Boolean,default:!1}},emits:["save","cancel","multi","back","close"],mounted:function(){this.$store.commit("setChatBubblePosition",372),this.offsetSocialFabPosition(!0),this.preventPanelCloseOnClickOutside||document.addEventListener("click",this.clickOutside,!0)},beforeUnmount:function(){this.$store.commit("updateSidePanelVisibility",!1)},unmounted:function(){this.$store.commit("setChatBubblePosition",20),this.offsetSocialFabPosition(!1),document.removeEventListener("click",this.clickOutside,!0),this.$store.state.showSidePanel=!1,this.$store.commit("updateSidePanel",{panel:null,previousSettings:null,prevAccentColor:null,hideBackButton:!1,hideActionButtons:!1,allowSave:!1,portfolioPassword:null,activeModal:null,storedScrollPosition:null,showInfoAboveCtas:!1,infoAboveCtasMessage:null,infoAboveCtasLinkText:null,infoAboveCtasLinkUrl:null})},computed:{customFontTabVisible:function(){return this.$store.state.sidePanelSettings.activeTab},preventPanelCloseOnClickOutside:function(){return this.customFontTabVisible||"SetDomainModalSettingsSidebar"===this.$store.state.activeModal||"SetCvModal"===this.$store.state.activeModal||this.$store.state.sidePanelSettings.panel===F.GJ.PORTFOLIO_LOGO||this.$store.state.sidePanelSettings.panel===F.GJ.THUMBNAIL_SETTINGS&&"UploadThumbnailModal"===this.$store.state.activeModal||this.$store.state.sidePanelSettings.panel===F.GJ.FAVICON||this.$store.state.sidePanelSettings.panel===F.N6.RESUME},promptShown:function(){return!this.$store.state.onboardingFinished&&this.$store.state.userSettings.currentSubscriptionPlan&&!this.$store.getters.userIsPremium}},watch:{preventPanelCloseOnClickOutside:function(t){t?document.removeEventListener("click",this.clickOutside,!0):document.addEventListener("click",this.clickOutside,!0)}},methods:{offsetSocialFabPosition:function(t){var e=document.querySelector("#ufo--page-nav-controls-template-thirteen");e&&(t?e.classList.contains("center")?e.style.cssText+="left: 151%;":e.style.cssText+="left: 70%;":e.classList.contains("center")?e.style.cssText+="left: 130%;":e.style.cssText+="left: 56%;")},clickOutside:function(t){var e=t.target;do{var n,o;if(e===this.$refs.UfoSettingsPanel||e===document.querySelector(".design-toggler")||e===document.querySelector(".settings-toggler")||e===document.querySelector(".pages-toggler")||e===document.querySelector(".breadcrumb")||e===document.querySelector(".selected-colors .edit")||null!==(n=(o=e).closest)&&void 0!==n&&n.call(o,".settings-popover"))return;e=e.parentNode}while(e);this.close()},primaryAction:function(){this.$emit("save"),this.updateSidebar()},secondaryAction:function(){this.$emit("cancel"),this.updateSidebar()},multiAction:function(){this.$emit("multi")},back:function(){this.$emit("back")},close:function(){this.$emit("close")},updateSidebar:function(){this.$store.state.sidePanelSettings.goToPanel&&this.$store.commit("toggleSidePanel",{panelPath:this.$store.state.sidePanelSettings.goToPanel}),this.$store.commit("updateSidePanel",{goToPanel:null})}}},T=(0,A.A)(O,[["render",function(t,e,n,a,s,l){var c=(0,o.g2)("PanelHeader"),u=(0,o.g2)("PanelFooter"),d=(0,o.g2)("SidePanelMod
1alLoader");return t.$store.state.showSidePanel?((0,o.uX)(),(0,o.CE)("div",{key:0,ref:"UfoSettingsPanel",class:(0,r.C4)(["ufo-sepa--container",{"prompt-shown":l.promptShown}])},[(0,o.Lk)("div",i,[(0,o.bF)(c,{"show-case-study-context":n.showCaseStudyContext,"show-portfolio-context":n.showPortfolioContext,onBack:e[0]||(e[0]=function(t){return l.back()}),onClose:e[1]||(e[1]=function(t){return l.close()})},null,8,["show-case-study-context","show-portfolio-context"]),(0,o.RG)(t.$slots,"default"),(0,o.bF)(u,{onPrimaryAction:e[2]||(e[2]=function(t){return l.primaryAction()}),onSecondaryAction:e[3]||(e[3]=function(t){return l.secondaryAction()})})]),(0,o.bF)(d,{onPrimaryAction:e[4]||(e[4]=function(t){return l.primaryAction()}),onSecondaryAction:e[5]||(e[5]=function(t){return l.secondaryAction()}),onMultiAction:e[6]||(e[6]=function(t){return l.multiAction()})})],2)):(0,o.Q3)("v-if",!0)}]])}}]);
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.