1/*! For license information please see editor-pages.4497655f630c24aa6cbb.js.LICENSE.txt */ 2(self.webpackChunkfolio=self.webpackChunkfolio||[]).push([[8239],{93908(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>s});var n=o(31601),r=o.n(n),i=o(76314),a=o.n(i)()(r());a.push([t.id,"\n.express-checkout-container {\n&[data-v-7c6b2b06] {\n margin: 20px 0;\n}\n& > div {\n&[data-v-7c6b2b06] {\n width: 100%;\n}\nbutton[data-v-7c6b2b06] {\n width: 100%;\n min-height: 48px;\n border-radius: 4px;\n}\n}\n}\n.skeleton-loader[data-v-7c6b2b06] {\n height: 48px;\n border-radius: 4px;\n background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);\n background-size: 400% 100%;\n animation: shimmer-7c6b2b06 1.2s ease-in-out infinite;\n}\n@keyframes shimmer-7c6b2b06 {\n0% { background-position: 100% 0;\n}\n100% { background-position: -100% 0;\n}\n}\n",""]);const s=a},81799(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>L});var n=o(20641),r=o(90033),i=o(7673);const a=o.p+"src/assets/images/notifications-empty-state-light.1fa73b15.svg";function s(t){return function(t){if(Array.isArray(t))return l(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 l(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var c={key:0,class:"notifications"},u={class:"notification-list"},d=["onClick"],p={key:0,class:"unreadping"},f={class:"uf-notif--image"},h={key:0,src:i},m=["src"],v={class:"uf-notif--text"},g={class:"message-container"},y=["innerHTML"],b=["innerHTML"],k={class:"uf-notif--timestamp"},S={key:1,class:"no-notifications"};var P=o(46641),w=o(5412),C=o(76408),O=o(45),A=o(62820),$=o(81156);function T(t){return function(t){if(Array.isArray(t))return E(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 E(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?E(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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}const I={name:"notifications-view",components:{UserImagePlaceholder:A.A,NonEditorPageFrame:C.A,Cta:w.A},data:function(){return{notifications:[],page:1,perPage:10,lastPage:null}},beforeMount:function(){this.getNotifications()},mounted:function(){this.$parent.showUserMenu=!1,this.$actions.trackPageView("/home".concat(this.$route.fullPath),"Notifications"),document.addEventListener("scroll",this.handleScroll)},methods:{emojifyText:$.l,getNotifications:function(){var t=this;P.A.getPaginatedNotification(this.$store.state.user._id,this.page,this.perPage).then(function(e){t.page++,t.lastPage=e.data.last_page,t.notifications=[].concat(T(t.notifications),T(e.data.data))}).catch(function(t){})},handleScroll:function(){window.scrollHeight-window.scrollTop<=window.clientHeight+5&&this.page<=this.lastPage&&this.getNotifications()},isNotClickable:function(t){return!(null!=t&&t.navigation)||"NotificationsPage"===t.navigation},goBack:function(){this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))}},computed:{PortfolioActions:function(){return O.A},unreadNotifications:function(){var t=this,e=[];return this.$store.state.notifications&&this.$store.state.notifications.map(function(o){"System"===o.type?t.$store.state.user.seenSystemNotifications.includes(o.id)||e.push(o.id):o.seenByUserIds.includes(t.$store.state.user._id)||e.push(o.id)}),e}}};const L=(0,o(66262).A)(I,[["render",function(t,e,o,i,l,P){var w=(0,n.g2)("Cta"),C=(0,n.g2)("UserImagePlaceholder"),O=(0,n.g2)("NonEditorPageFrame");return(0,n.uX)(),(0,n.Wv)(O,{"page-title":"Notifications","page-sub-title":"Manage your UXfolio notifications",onGoBack:e[0]||(e[0]=function(t){return P.goBack()})},(0,n.eX)({default:(0,n.k6)(function(){return[l.notifications.length?((0,n.uX)(),(0,n.CE)("div",c,[(0,n.Lk)("div",u,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.notifications,function(e){return(0,n.uX)(),(0,n.CE)("div",{key:e.id,onClick:function(o){return!P.isNotClickable(e)&&t.$actions.clickNotification(e)},class:(0,r.C4)(["uf-notif",[e.seenByUserIds.indexOf(t.$store.state.user._id)>-1?"readed":"unreaded",{"is-not-clickable":P.isNotClickable(e)}]])},[P.unreadNotifications.includes(e.id)?((0,n.uX)(),(0,n.CE)("div",p)):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",f,["Admin"===e.type||"System"===e.type||"Plan"===e.type?((0,n.uX)(),(0,n.CE)("img",h)):e.additionalInfo.userImage?((0,n.uX)(),(0,n.CE)("img",{key:1,src:e.additionalInfo.userImage},null,8,m)):((0,n.uX)(),(0,n.Wv)(C,{key:2,name:e.additionalInfo.userName,size:"medium"},null,8,["name"]))]),(0,n.Lk)("div",v,[(0,n.Lk)("div",g,[(0,n.Lk)("span",{class:"message",innerHTML:P.emojifyText(e.message)},null,8,y),e.description?((0,n.uX)(),(0,n.CE)("span",{key:0,class:"description",innerHTML:P.emojifyText(e.description)},null,8,b)):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("span",k,(0,r.v_)(t.DateTimeHelper.getMoment(e.createdAt)),1)])],10,d)}),128))])])):((0,n.uX)(),(0,n.CE)("div",S,s(e[2]||(e[2]=[(0,n.Lk)("img",{alt:"empty-notifications",rel:"preload",src:a},null,-1),(0,n.Lk)("div",{class:"text-wrapper"},[(0,n.Lk)("h3",null,"You donât have any new notifications"),(0,n.Lk)("p",null,"You will find new notifications here if thereâs any activity in your account.")],-1)]))))]}),_:2},[P.unreadNotifications.length?{name:"headerCta",fn:(0,n.k6)(function(){return[(0,n.bF)(w,{onClick:t.$actions.setAllNotificationSeen},{default:(0,n.k6)(function(){return s(e[1]||(e[1]=[(0,n.eW)("Mark all as read",-1)]))}),_:1},8,["onClick"])]}),key:"0"}:void 0]),1024)}],["__scopeId","data-v-564977c8"]])},22626(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>Bt});var n=o(20641),r=o(53751),i=o(90033);function a(t){return function(t){if(Array.isArray(t))return s(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 s(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?s(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}var l={class:"pricing-page-content"},c={class:"switch-container"},u={class:"pricing-table"},d={class:"plan-container"},p={class:"plan"},f={class:"plan-head"},h={class:"plan-tag"},m={class:"feature-list"},v={class:"feature b2"},g={class:"feature b2"},y={class:"feature b2"},b={class:"feature b2"},k={class:"feature b2"},S={class:"feature b2"},P={class:"feature b2"},w={class:"feature b2"},C={class:"feature b2"},O={class:"plan-container"},A={key:0,class:"badge"},$={class:"plan"},T={class:"plan-head"},E={class:"plan-tag"},I={class:"price"},L={class:"subheader"},F={class:"s2"},_={class:"b1 details"},j={class:"feature-list"},D={class:"feature b2 strong"},x={class:"feature b2 strong"},M={class:"feature b2"},N={class:"feature b2"},U={class:"feature b2"},B={class:"feature b2"},X={class:"feature b2"},H={class:"feature b2"},W={class:"pricing-details"},R={class:"more-btn"},Q={ref:"comparison-table",class:"comparison-table"},G={class:"row"},z={class:"cell feature"},V={class:"cell plan"},K={key:1},Y={class:"cell plan"},q={key:1},J={class:"row footer"},Z={class:"cell"},tt={class:"cell"};var et=o(61556),ot=o(84822),nt=o(85077),rt=o(53482),it=o(2336),at=o(15071),st=o(88947),lt=o(5412);const ct=o.p+"src/assets/images/domain-ad.7781f6a0.png";function ut(t){return function(t){if(Array.isArray(t))return dt(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 dt(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?dt(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 dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var pt={class:"ad-content"},ft={class:"ad-text"},ht={class:"feature-list"},mt={class:"feature-list-item"},vt={class:"feature-title"},gt={class:"feature-description"},yt={class:"btn-container"};var bt=o(34528),kt=o(14711);const St={name:"FullWidthAd",components:{CheckMark:rt.A,InlineSvg:bt.A,CtaButton:kt.A},emits:["button-click"],props:{variant:{type:String,required:!0}},data:function(){return{features:[{title:"Professional Look:",description:"Stand out with a branded domain, making your portfolio look polished and credible."},{title:"Seamless Setup: ",description:"No need for third-party providersâwe handle the entire purchase and configuration process."},{title:"Improved Visibility: ",description:"Boost your online presence and make it easier for potential employers to find you."}]}},methods:{handleClick:function(){this.$emit("button-click")}}};var Pt=o(66262);const wt=(0,Pt.A)(St,[["render",function(t,e,o,r,a,s){var l=(0,n.g2)("CheckMark"),c=(0,n.g2)("CtaButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,i.C4)(["full-width-ad",o.variant])},[e[2]||(e[2]=(0,n.Lk)("img",{class:"ad-illustration",src:ct,alt:"","aria-hidden":"true",role:"presentation"},null,-1)),(0,n.Lk)("div",pt,[(0,n.Lk)("div",ft,[e[1]||(e[1]=(0,n.Lk)("div",null,[(0,n.Lk)("div",{class:"ad-title"},"Custom domains"),(0,n.Lk)("div",{class:"ad-description"},"Upgrade to connect or buy your custom domain.")],-1)),(0,n.Lk)("div",ht,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(this.features,function(t){return(0,n.uX)(),(0,n.CE)("div",mt,[(0,n.bF)(l),(0,n.Lk)("div",null,[(0,n.Lk)("div",vt,(0,i.v_)(t.title),1),(0,n.Lk)("div",gt,(0,i.v_)(t.description),1)])])}),256))]),(0,n.Lk)("div",yt,[(0,n.bF)(c,{type:"tertiary",onClick:s.handleClick},{default:(0,n.k6)(function(){return ut(e[0]||(e[0]=[(0,n.eW)("Get your domain",-1)]))}),_:1},8,["onClick"])])])])],2)}],["__scopeId","data-v-f6c76b26"]]);var Ct=o(28304),Ot=o(65498),At=o(3361),$t=o(76408),Tt=o(89119),Et=o(33639),It=o(35166);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Ft(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _t(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?Ft(Object(o),!0).forEach(function(e){jt(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ft(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function jt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Lt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Dt(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return xt(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(xt(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,xt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,xt(d,"constructor",c),xt(c,"constructor",l),l.displayName="GeneratorFunction",xt(c,r,"GeneratorFunction"),xt(d),xt(d,r,"Generator"),xt(d,n,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(Dt=function(){return{w:i,m:p}})()}function xt(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}xt=function(t,e,o,n){function i(e,o){xt(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},xt(t,e,o,n)}function Mt(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Nt(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Mt(i,n,r,a,s,"next",t)}function s(t){Mt(i,n,r,a,s,"throw",t)}a(void 0)})}}const Ut={name:"prices",components:{Faq:Tt.A,NonEditorPageFrame:$t.A,ToggleSwitch:Ct.A,ArrowLargeIcon:At.A,FullWidthAd:wt,CtaButton:lt.A,GridSectionBackground:st.A,CloseTopicIcon:at.A,IconButton:it.A,CheckMark:rt.A,SubscriptionPlanIcons:nt.A,GridSectionContentBox:ot.A,NavBarPill:et.A},data:function(){return{billingCycleYearly:!0,prices:null,features:[{id:0,name:"Live portfolios",tooltip:"Instantly publish and showcase your portfolio online.",trial:"-",fullAccess:"Unlimited"},{id:1,name:"Live case studies",tooltip:"Display case studies online for quick referencing.",trial:"-",fullAccess:"Unlimited"},{id:2,name:"Portfolio pages",tooltip:"Create dedicated pages for your contact info or introduction.",trial:"Unlimited draft",fullAccess:"Unlimited public"},{id:3,name:"Case study pages",tooltip:"Build individual pages for each case study to tell a story.",trial:"Unlimited draft",fullAccess:"Unlimited public"},{id:4,name:"AI powered case studies",tooltip:"Generate case study drafts with the power of AI.",trial:"2 attempts",fullAccess:"Unlimited attempts"},{id:5,name:"Job fit checker",tooltip:"Tailor your portfolio to job descriptions of your choice.",trial:"2 attempts",fullAccess:"Unlimited attempts"},{id:6,name:"Font customisation",tooltip:"Personalize fonts to match your style and brand.",trial:"check",fullAccess:"check"},{id:7,name:"Color customisation",tooltip:"Adjust colors across your portfolio for a unique look.",trial:"check",fullAccess:"check"},{id:8,name:"Pre-built portfolio sections",tooltip:"Add ready-made sections to your portfolio fast.",trial:"check",fullAccess:"check"},{id:9,name:"Pre-built case study sections",tooltip:"Add sections tailored to UXers to your case studies fast.",trial:"check",fullAccess:"check"},{id:10,name:"High-quality device mockups",tooltip:"Display your designs on high-quality device mockups.",trial:"check",fullAccess:"check"},{id:11,name:"Interactive prototype embedding",tooltip:"Embed clickable prototypes right in y
2our case study.",trial:"check",fullAccess:"check"},{id:12,name:"Media embedding",tooltip:"Add images, videos, and interactive elements to enrich your portfolio.",trial:"check",fullAccess:"check"},{id:13,name:"Animations",tooltip:"Use animations to make your portfolio more dynamic.",trial:"check",fullAccess:"check"},{id:14,name:"Thumbnail designer",tooltip:"Design custom thumbnails for your portfolio projects effortlessly.",trial:"check",fullAccess:"check"},{id:15,name:"Storage usage",tooltip:"Unlimited megabytes for your unlimited ideas.",trial:"500 MB",fullAccess:"Unlimited"},{id:16,name:"Feedback collection",tooltip:"Gather portfolio reviews from mentors and friends in one place.",trial:"-",fullAccess:"check"},{id:17,name:"Domain support",tooltip:"Buy or connect your own domain for the most professional impression.",trial:"-",fullAccess:"check"},{id:18,name:"Personal branding",tooltip:"Add your logo, favicon, and colors to build your brand identity.",trial:"check",fullAccess:"check"},{id:19,name:"Support via email",tooltip:"Reach out to us anytime if you have any questions.",trial:"check",fullAccess:"check"},{id:20,name:"Google Analytics 4",tooltip:"Track visitor data to see your portfolio's performance.",trial:"-",fullAccess:"check"},{id:21,name:"SSL certificate",tooltip:"Protect your site with secure SSL encryption.",trial:"check",fullAccess:"check"},{id:22,name:"Responsive site",tooltip:"Your portfolio looks great on any device, big or small.",trial:"check",fullAccess:"check"},{id:23,name:"Customizable templates",tooltip:"Start with beautiful templates designed by experts.",trial:"check",fullAccess:"check"},{id:24,name:"Social integration",tooltip:"Link to your social accounts to boost your visibility.",trial:"check",fullAccess:"check"},{id:25,name:"Publish to uxfol.io",tooltip:"Your portfolio is hosted on UXfolio by default.",trial:"-",fullAccess:"check"},{id:26,name:"Publish to custom domain",tooltip:"Showcase your portfolio on your own domain, like yourname.com.",trial:"-",fullAccess:"check"},{id:27,name:"Contact form",tooltip:"Let clients and employers reach you easily via your portfolio.",trial:"check",fullAccess:"check"},{id:28,name:"Password protection",tooltip:"Add a password to keep certain pages private.",trial:"-",fullAccess:"check"},{id:29,name:"Site sharing",tooltip:"Share your entire portfolio effortlessly with a single link.",trial:"-",fullAccess:"check"}],faqEntries:[{question:"What's included in the UXfolio subscription?",answer:"<div>By subscribing to UXfolio, youâll unlock the following features:</div>\n <ul>\n <li>Unlimited public portfolios,</li>\n <li>Case study & portfolio password protection,</li>\n <li>Easy portfolio feedback collection,</li>\n <li>Own domain options,</li>\n <li>Google Analytics connection,</li>\n <li>Custom favicon, and</li>\n <li>No UXfolio branding.</li>\n </ul>\n <div>You will continue to have access to all editing features you had in the free version.</div>"},{question:"What's the difference between the plans?",answer:"<div>If you subscribe to the Yearly plan, your card will be charged US$108 on a yearly basis. This way, the Yearly plan will save you 60% (US$72) per year as compared to being charged US$15 every month for 12 months, which would total US$180. If you choose the Monthly plan, your card will be charged US$15 on a monthly basis.</div>"},{question:"How can I upgrade to a paid plan?",answer:'<div>Upgrading is easy! Simply go to your account settings and select "Plan and Payment". Then click the âUpgradeâ button. Youâll be able to choose between our Monthly and Yearly plans. Once you select a plan, youâll have immediate access to all features.</div>'},{question:"Can I switch between the Monthly and the Yearly plan?",answer:"<div>Yes, you can switch between monthly and annual billing at any time. To switch from Monthly to Yearly, head to your account settings and choose your preferred billing cycle. The change will take effect at the start of your next billing period. To switch from Yearly to Monthly, please get in touch with our support at [email protected]</div>"},{question:"What happens if I cancel my UXfolio subscription?",answer:"<
2div>If you cancel your UXfolio subscription, youâll retain access to all the features until the end of your current billing period. After that, your account will switch to view-only mode, and you wonât be able to make edits or share your portfolio(s). Your existing content will remain available, but editing features will be disabled until you resubscribe.</div>"}]}},beforeRouteEnter:function(t,e,o){return Nt(Dt().m(function t(){return Dt().w(function(t){for(;;)switch(t.n){case 0:o(function(t){t.hydratePricesFromStore(),t.loadPricingData()});case 1:return t.a(2)}},t)}))()},beforeMount:function(){this.hydratePricesFromStore(),Et.A.track("PRICING_PAGE_VIEWED",_t(_t({},Et.A.getUrls()),{},{event_group:Et.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Editor - Pricing"})),this.$store.state.userSettings.showTrialStartedAlert&&(this.$store.state.userSettings.showTrialStartedAlert=!1),this.$store.state.activeModal=null},methods:{loadPricingData:function(){var t=this;return Nt(Dt().m(function e(){var o,n;return Dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Ot.A.get("/data/pricing");case 1:o=e.v,t.setData(o.status,o.data),e.n=3;break;case 2:e.p=2,n=e.v,console.log("failed to load pricing data",n);case 3:return e.a(2)}},e,null,[[0,2]])}))()},hydratePricesFromStore:function(){It.z.hasPaymentPlanInfo()&&(this.prices={monthlyPrice:Number(this.$store.state.userSettings.stripePrices.monthlyPrice.price),yearlyPrice:Number(this.$store.state.userSettings.stripePrices.yearlyPrice.price)})},setData:function(t,e){var o,n;null!=e&&null!==(o=e.stripePrices)&&void 0!==o&&o.monthlyPrice&&null!=e&&null!==(n=e.stripePrices)&&void 0!==n&&n.yearlyPrice&&(this.$store.state.userSettings=_t(_t({},this.$store.state.userSettings),{},{stripePrices:e.stripePrices}),this.prices={monthlyPrice:Number(e.stripePrices.monthlyPrice.price),yearlyPrice:Number(e.stripePrices.yearlyPrice.price)})},scrollToElement:function(){var t=this.$refs["comparison-table"];if(t){var e=t.offsetTop;window.scrollTo({top:e-48,behavior:"smooth"})}},upgrade:function(){Et.A.track("PRICING_UPGRADE_CTA_CLICKED",_t(_t({},Et.A.getUrls()),{},{event_group:Et.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Pricing page",context:"Editor",to:"Payment"})),this.$router.push({path:"/home/payment",state:{billingCycle:this.billingCycleYearly?"yearly":"monthly"}})}},computed:{currentSubscription:function(){return this.$store.state.userSettings.currentSubscription},daysLeft:function(){var t;if(null!==(t=this.currentSubscription)&&void 0!==t&&t.nextBillingDate){var e=new Date(this.currentSubscription.nextBillingDate).getTime()-(new Date).getTime();return Math.floor(e/864e5)}return 0},trialBtnText:function(){var t;return"trialing"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)?this.daysLeft>0?"".concat(this.daysLeft+1," days remaining"):0===this.daysLeft?"Free trial ends today":"Free trial has ended":"Free trial has ended"},pricesLoaded:function(){return this.prices&&!Number.isNaN(Number(this.prices.monthlyPrice))&&!Number.isNaN(Number(this.prices.yearlyPrice))},yearlyPricePerMonth:function(){return this.prices.yearlyPrice/12},yearlySavings:function(){return 12*this.prices.monthlyPrice-this.prices.yearlyPrice}}},Bt=(0,Pt.A)(Ut,[["render",function(t,e,o,s,et,ot){var nt=(0,n.g2)("ToggleSwitch"),rt=(0,n.g2)("SubscriptionPlanIcons"),it=(0,n.g2)("CheckMark"),at=(0,n.g2)("CtaButton"),st=(0,n.g2)("IconButton"),lt=(0,n.g2)("FullWidthAd"),ct=(0,n.g2)("Faq"),ut=(0,n.g2)("NonEditorPageFrame");return(0,n.uX)(),(0,n.Wv)(ut,{"page-title":"Unlock your full potential with UXfolio","page-sub-title":"Upgrade to create a standout portfolio and get full access to publishing, domains, and more.",onGoBack:e[3]||(e[3]=function(e){return t.$router.back()}),class:"align-center"},{default:(0,n.k6)(function(){return[(0,n.bF)(r.Transition,{name:"fade-up"},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",l,[(0,n.Lk)("div",c,[(0,n.Lk)("span",{onClick:e[0]||(e[0]=function(t){return et.billingCycleYearly=!0})},"Pay yearly"),(0,n.bF)(nt,{value:!et.billingCycleYearly,onChange:e[1]||(e[1]=function(t){return et.billingCycleYearly=!et.billingCycleYearly}),"model-value":!et.billingCycleYearly,variant:"monochrome"},null,8,["value","model-value"]),(0,n.Lk)("span",{onClick:e[2]||(e[2]=function(t){return et.billingCycleYearly=!1})},"Pay monthly")]),(0,n.Lk)("section",u,[(0,n.Lk)("div",d,[(0,n.Lk)("div",p,[(0,n.Lk)("div",f,[(0,n.Lk)("div",h,[(0,n.bF)(rt,{plan:"free"}),e[4]||(e[4]=(0,n.Lk)("div",null,"Free trial",-1))]),e[5]||(e[5]=(0,n.Lk)("div",{class:"price"},[(0,n.Lk)("div",{class:"subheader"},"$0"),(0,n.Lk)("div",{class:"b1 details"},"7-day free trial")],-1))]),(0,n.Lk)("div",m,[(0,n.Lk)("div",v,[(0,n.bF)(it),e[6]||(e[6]=(0,n.eW)("Unlimited draft portfolios",-1))]),(0,n.Lk)("div",g,[(0,n.bF)(it),e[7]||(e[7]=(0,n.eW)("Unlimited draft case studies",-1))]),(0,n.Lk)("div",y,[(0,n.bF)(it),e[8]||(e[8]=(0,n.eW)("4 AI actions",-1))]),(0,n.Lk)("div",b,[(0,n.bF)(it),e[9]||(e[9]=(0,n.eW)("Fast, no-code customization",-1))]),(0,n.Lk)("div",k,[(0,n.bF)(it),e[10
2]||(e[10]=(0,n.eW)("Easy-to-use case study sections",-1))]),(0,n.Lk)("div",S,[(0,n.bF)(it),e[11]||(e[11]=(0,n.eW)("High-quality device mockups",-1))]),(0,n.Lk)("div",P,[(0,n.bF)(it),e[12]||(e[12]=(0,n.eW)("Interactive prototype embedding ",-1))]),(0,n.Lk)("div",w,[(0,n.bF)(it),e[13]||(e[13]=(0,n.eW)("Animations",-1))]),(0,n.Lk)("div",C,[(0,n.bF)(it),e[14]||(e[14]=(0,n.eW)("Thumbnail designer",-1))])]),(0,n.bF)(at,{disabled:"",type:"primary"},{default:(0,n.k6)(function(){return[(0,n.eW)((0,i.v_)(ot.trialBtnText),1)]}),_:1})])]),(0,n.Lk)("div",O,[et.billingCycleYearly?((0,n.uX)(),(0,n.CE)("div",A,"Best value - save $72")):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",$,[(0,n.Lk)("div",T,[(0,n.Lk)("div",E,[(0,n.bF)(rt,{plan:"yearly"}),e[15]||(e[15]=(0,n.Lk)("div",null,"Full access",-1))]),(0,n.Lk)("div",I,[ot.pricesLoaded?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",null,[(0,n.Lk)("span",L," $"+(0,i.v_)(et.billingCycleYearly?ot.yearlyPricePerMonth:et.prices.monthlyPrice),1),(0,n.Lk)("span",F,(0,i.v_)(et.billingCycleYearly?"/ per month":"/ monthly"),1)]),(0,n.Lk)("div",_,(0,i.v_)(et.billingCycleYearly?"billed $".concat(et.prices.yearlyPrice," yearly"):"save $".concat(ot.yearlySavings," when paid yearly")),1)],64)):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[e[16]||(e[16]=(0,n.Lk)("div",{class:"price-skeleton price-skeleton-main"},null,-1)),e[17]||(e[17]=(0,n.Lk)("div",{class:"price-skeleton price-skeleton-detail"},null,-1))],64))])]),(0,n.Lk)("div",j,[e[26]||(e[26]=(0,n.Lk)("div",{class:"feature b2 strong"},[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},[(0,n.Lk)("rect",{x:"4",y:"4.84375",width:"16",height:"16",fill:"#DCFA37"}),(0,n.Lk)("path",{d:"M12.112 11.4982V6.91635H12.3283V11.4982H12.112ZM10.8731 12.7371V12.9534H6.29135V12.7371H10.8731ZM13.5672 12.7371H18.1489V12.9534H13.5672V12.7371ZM12.112 18.7742V14.1923H12.3283V18.7742H12.112Z",fill:"#0F0F0F",stroke:"#0F0F0F","stroke-width":"1.23894"})]),(0,n.eW)(" Everything in trial plus: ")],-1)),(0,n.Lk)("div",D,[(0,n.bF)(it,{strong:!0}),e[18]||(e[18]=(0,n.eW)("Unlimited public portfolios",-1))]),(0,n.Lk)("div",x,[(0,n.bF)(it,{strong:!0}),e[19]||(e[19]=(0,n.eW)("Unlimited public case studies",-1))]),(0,n.Lk)("div",M,[(0,n.bF)(it),e[20]||(e[20]=(0,n.eW)("Unlimited AI actions",-1))]),(0,n.Lk)("div",N,[(0,n.bF)(it),e[21]||(e[21]=(0,n.eW)("Easy portfolio feedback collection",-1))]),(0,n.Lk)("div",U,[(0,n.bF)(it),e[22]||(e[22]=(0,n.eW)("Domain support",-1))]),(0,n.Lk)("div",B,[(0,n.bF)(it),e[23]||(e[23]=(0,n.eW)("Password protection",-1))]),(0,n.Lk)("div",X,[(0,n.bF)(it),e[24]||(e[24]=(0,n.eW)("Google Analytics 4 support",-1))]),(0,n.Lk)("div",H,[(0,n.bF)(it),e[25]||(e[25]=(0,n.eW)("No UXfolio branding",-1))])]),(0,n.bF)(at,{type:"upgrade",disabled:!ot.pricesLoaded,onClick:ot.upgrade},{default:(0,n.k6)(function(){return a(e[27]||(e[27]=[(0,n.eW)("Upgrade now",-1)]))}),_:1},8,["disabled","onClick"])])])]),(0,n.Lk)("section",W,[(0,n.Lk)("div",R,[(0,n.bF)(at,{type:"link",onClick:ot.scrollToElement},{default:(0,n.k6)(function(){return a(e[28]||(e[28]=[(0,n.Lk)("div",{class:"content"},[(0,n.eW)(" View more details "),(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 23 23",fill:"none"},[(0,n.Lk)("path",{d:"M6.0554 13.157L7.37127 11.8865L10.5929 15.1081V4.08203H12.4079V15.1081L15.6294 11.8865L16.9453 13.157L11.5004 18.6019L6.0554 13.157Z",fill:"currentColor"})])],-1)]))}),_:1},8,["onClick"])]),(0,n.Lk)("div",Q,[e[31]||(e[31]=(0,n.Lk)("div",{class:"row header"},[(0,n.Lk)("div",{class:"feature"},"Features"),(0,n.Lk)("div",{class:"plan"},"Free trial"),(0,n.Lk)("div",{class:"plan"},"Full access")],-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(et.features,function(t){return(0,n.uX)(),(0,n.CE)("div",G,[(0,n.Lk)("div",z,[(0,n.eW)((0,i.v_)(t.name)+" ",1),(0,n.bF)(st,{tooltip:t.tooltip,icon:"info","tooltip-position":"top-right"},null,8,["tooltip"])]),(0,n.Lk)("div",V,["check"===t.trial?((0,n.uX)(),(0,n.Wv)(it,{key:0})):((0,n.uX)(),(0,n.CE)("span",K,(0,i.v_)(t.trial),1))]),(0,n.Lk)("div",Y,["check"===t.fullAccess?((0,n.uX)(),(0,n.Wv)(it,{key:0})):((0,n.uX)(),(0,n.CE)("span",q,(0,i.v_)(t.fullAccess),1))])])}),256)),(0,n.Lk)("div",J,[e[30]||(e[30]=(0,n.Lk)("div",null,null,-1)),(0,n.Lk)("div",Z,[(0,n.bF)(at,{type:"primary",disabled:!ot.pricesLoaded,onClick:ot.upgrade},{default:(0,n.k6)(function(){return[(0,n.eW)((0,i.v_)(ot.trialBtnText),1)]}),_:1},8,["disabled","onClick"])]),(0,n.Lk)("div",tt,[(0,n.bF)(at,{type:"upgrade",disabled:!ot.pricesLoaded,onClick:ot.upgrade},{default:(0,n.k6)(function(){return a(e[29]||(e[29]=[(0,n.eW)("Upgrade now",-1)]))}),_:1},8,["disabled","onClick"])])])],512),e[32]||(e[32]=(0,n.Lk)("div",{class:"statement"},[(0,n.eW)(" All prices are listed in USD. UXfolio is a subscription-based service. You can easily cancel your subscription any time. By subscribing, you agree to our "),(0,n.Lk)("a",{href:"/terms-and-conditions"},"Terms of Service"),(0,n.eW)(" and "),(0,n.Lk)("a",{href:"/privacy-policy"},"Privacy Policy.")],-1))]),(0,n.bF)(lt,{variant:"dark",onButtonClick:ot.upgrade},null,8,["onButtonClick"]),(0,n.bF)(ct,{"faq-entries":et.faqEntries},null,8,["faq-entries"])])]}),_:1})]}),_:1})}],["__scopeId","data-v-554ced5a"]])},60456(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>_});var n=o(20641);function r(t){return function(t){if(Array.isArray(t))return i(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 i(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}var a={class:"account-settings"},s={class:"account-settings-sidebar"},l={class:"account-settings-content"};var c=o(76408),u={class:"sidebar-elements"};var d=o(90033),p={class:"side-navigation-name"},f={key:0,class:"alert blink"};const h={name:"NavigationButton",components:{Icon:o(46335).A},props:["element","active"],computed:{showAlert:function(){var t,e,o;return["canceled","past_due"].includes(null===(t=this.userSettings)||void 0===t||null===(t=t.currentSubscription)||void 0===t?void 0:t.status)||"active"===(null===(e=this.userSettings)||void 0===e||null===(e=e.currentSubscription)||void 0===e?void 0:e.status)&&!(null!==(o=this.userSettings)&&void 0!==o&&null!==(o=o.currentSubscription)&&void 0!==o&&o.neverExpires)},userSettings:function(){return this.$store.state.userSettings}}};var m=o(66262);const v={name:"AccountNavigationContainer",props:["navigationElements"],components:{SideNavigationButton:(0,m.A)(h,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("Icon"),l=(0,n.g2)("RouterLink");return(0,n.uX)(),(0,n.Wv)(l,{class:(0,d.C4)(["side-navigation-button",{active:o.active}]),to:"/home/settings/"+o.element.id},{default:(0,n.k6)(function(){return[(0,n.bF)(s,{"icon-name":o.element.iconName,width:24,height:24},null,8,["icon-name"]),(0,n.Lk)("p",p,(0,d.v_)(o.element.name),1),"plan-and-payment"===o.element.id&&a.showAlert?((0,n.uX)(),(0,n.CE)("div",f)):(0,n.Q3)("v-if",!0)]}),_:1},8,["class","to"])}],["__scopeId","data-v-4ddc6157"]])},methods:{active:function(t){return this.$route.path.includes(t)}}},g=(0,m.A)(v,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("SideNavigationButton");return(0,n.uX)(),(0,n.CE)("div",u,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.navigationElements,function(t){return(0,n.uX)(),(0,n.Wv)(s,{active:a.active(t.id),key:t.id,element:t},null,8,["active","element"])}),128))])}],["__scopeId","data-v-e590a906"]]);const y={name:"HeaderLabel",props:{text:{type:String},type:{type:String,default:"default"}}},b=(0,m.A)(y,[["render",function(t,e,o,r,i,a){return(0,n.uX)(),(0,n.CE)("div",{class:(0,d.C4)(["header-label",o.type])},[(0,n.Lk)("p",null,(0,d.v_)(o.text),1)],2)}],["__scopeId","data-v-62f9b28b"]]);var k=o(5412),S=o(33639),P=o(35166),w=o(69682);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function O(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function A(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?O(Object(o),!0).forEach(function(e){$(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function $(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=C(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var T="account-settings",E="plan-and-payment",I="domains",L="portfolio-settings";const F={name:"AccountSettingsPage",components:{NewCancelSubscriptionModal:w.A,NonEditorPageFrame:c.A,HeaderLabel:b,SideNavigationContainer:g,Cta:k.A},data:function(){return{show:!1}},beforeRouteUpdate:function(t,e,o){window.scrollTo({top:0,left:0,behavior:"smooth"}),o()},mounted:function(){P.z.getUserSettings()},methods:{goBack:function(){this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))},openUpgrade:function(){S.A.track("UPGRADE_CTA_CLICKED",A(A({},S.A.getUrls()),{},{event_group:S.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Account Settings Header",context:"Account Pages",to:"Payment"})),this.$router.push({path:"/home/prices"})}},computed:{MixpanelService:function(){return S.A},user:function(){return this.$store.state.user},userSettings:function(){return this.$store.state.userSettings},pageTitle:function(){return this.$store.state.user.name+"'s account"},pageSubtitle:function(){return"Manage your UXfolio account"},isUserInFreeOrTrialPlan:function(){return this.$store.getters.userIsFreeOrTrial},isUserVIP:function(){return this.$store.getters.userIsVIP},navigationElements:function(){return[{id:T,iconName:"profile",name:"Account settings"},{id:E,iconName:"payment",name:"Plan & payment"},{id:I,iconName:"web",name:"Domains"},{id:L,iconName:"settings",name:"Portfolio settings"}]},getLabelData:function(){var t,e,o;switch(this.userSettings.currentSubscriptionPlan){case"Free":default:return{text:"Free",type:"default"};case"VIP":return{text:"VIP",type:"volt"};case"Standard":case"Premium":var n,r,i;return"active"===(null===(t=this.userSettings.currentSubscription)||void 0===t?void 0:t.status)?null!==(n=this.userSettings.currentSubscription)&&void 0!==n&&n.neverExpires?null!==(r=this.userSettings.currentSubscription)&&void 0!==r&&r.yearlyBilling?{text:"Yearly",type:"volt"}:{text:"Monthly",type:"volt"}:{text:"Cancels on ".concat(new Date(null===(i=this.userSettings.currentSubscription)||void 0===i?void 0:i.nextBillingDate).toLocaleDateString()),type:"alert"}:"past_due"===(null===(e=this.userSettings.currentSubscription)||void 0===e?void 0:e.status)?{text:"Past due",type:"alert"}:{text:"Canceled",type:"alert"};case"Trial":return this.userSettings.currentSubscription&&"trialing"!==(null===(o=this.userSettings.currentSubscription)||void 0===o?void 0:o.status)?{text:"Trial ended",type:"default"}:{text:"Trial",type:"default"}}}}},_=(0,m.A)(F,[["render",function(t,e,o,i,c,u){var d,p=(0,n.g2)("HeaderLabel"),f=(0,n.g2)("Cta"),h=(0,n.g2)("SideNavigationContainer"),m=(0,n.g2)("RouterView"),v=(0,n.g2)("NonEditorPageFrame");return(0,n.uX)(),(0,n.Wv)(v,{"page-title":u.pageTitle,"page-sub-title":u.pageSubtitle,onGoBack:e[1]||(e[1]=function(t){return u.goBack()})},(0,n.eX)({headerLabel:(0,n.k6)(function(){return[(0,n.bF)(p,{text:u.getLabelData.text,type:u.getLabelData.type},null,8,["text","type"])]}),default:(0,n.k6)(function(){return[(0,n.Lk)("div",a,[(0,n.Lk)("div",s,[(0,n.bF)(h,{"navigation-elements":u.navigationElements},null,8,["navigation-elements"])]),(0,n.Lk)("div",l,[(0,n.bF)(m,{name:"accountSettingsSubVie
2w"},{default:(0,n.k6)(function(t){var e=t.Component;return[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e)))]}),_:1})])])]}),_:2},[u.isUserVIP||!u.isUserInFreeOrTrialPlan&&"canceled"!==(null===(d=this.userSettings.currentSubscription)||void 0===d?void 0:d.status)?void 0:{name:"headerCta",fn:(0,n.k6)(function(){return[(0,n.bF)(f,{type:"upgrade",onClick:e[0]||(e[0]=function(t){return u.openUpgrade()})},{default:(0,n.k6)(function(){return r(e[2]||(e[2]=[(0,n.eW)("Upgrade",-1)]))}),_:1})]}),key:"0"}]),1032,["page-title","page-sub-title"])}],["__scopeId","data-v-b96c8396"]])},76408(t,e,o){"use strict";o.d(e,{A:()=>b});var n=o(20641),r=o(90033),i=o(53751),a=o(47233);function s(t){return function(t){if(Array.isArray(t))return l(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 l(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var c={class:"non-editor-page-header"},u={class:"back"},d={class:"logo-container"},p={class:"flex-container"},f={class:"titles"},h={class:"page-title"},m={class:"page-subtitle"},v={class:"cta"},g={key:0,class:"non-editor-page-content"};const y={name:"NonEditorPageFrame",components:{NavBarPill:o(61556).A},props:{pageTitle:{type:String,required:!0},pageSubTitle:{type:String,required:!1},alignHorizontal:{type:Boolean,default:!1},isOnboardingFlow:{type:Boolean,default:!1}},data:function(){return{loaded:!1}},mounted:function(){this.loaded=!0,this.resetPageBackgroundColor()},unmounted:function(){this.loaded=!1,document.querySelector("body").style.removeProperty("--background-fill-color")},activated:function(){this.loaded=!0,this.resetPageBackgroundColor()},deactivated:function(){this.loaded=!1},methods:{resetPageBackgroundColor:function(){document.querySelector("body").style.setProperty("--background-fill-color","#FFFFFF")},goBack:function(){this.$emit("goBack")},goToHome:function(){this.$router.push("/home")}}};const b=(0,o(66262).A)(y,[["render",function(t,e,o,l,y,b){var k=(0,n.g2)("NavBarPill");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["non-editor-page",{"align-horizontal":o.alignHorizontal}])},[(0,n.Lk)("div",c,[(0,n.Lk)("div",u,[(0,n.Lk)("div",d,[t.$slots.logoSlot?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(o.isOnboardingFlow?"logo":"clickable-logo"),onClick:e[0]||(e[0]=function(t){return o.isOnboardingFlow?null:b.goToHome()})},s(e[2]||(e[2]=[(0,n.Lk)("img",{src:a,alt:"Logo"},null,-1)])),2))]),t.$slots.logoSlot?(0,n.RG)(t.$slots,"logoSlot",{key:0},void 0,!0):o.isOnboardingFlow?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(k,{key:1,label:"Back","icon-name":"back",onButtonClicked:e[1]||(e[1]=function(t){return b.goBack()})}))]),(0,n.Lk)("div",p,[(0,n.Lk)("div",f,[(0,n.Lk)("div",h,[(0,n.Lk)("h1",null,(0,r.v_)(o.pageTitle),1),(0,n.RG)(t.$slots,"headerLabel",{},void 0,!0)]),(0,n.Lk)("p",m,(0,r.v_)(o.pageSubTitle),1)]),(0,n.Lk)("div",v,[(0,n.RG)(t.$slots,"headerCta",{},void 0,!0)])])]),(0,n.bF)(i.Transition,{name:"fade-up"},{default:(0,n.k6)(function(){return[y.loaded?((0,n.uX)(),(0,n.CE)("div",g,[(0,n.RG)(t.$slots,"default",{},void 0,!0)])):(0,n.Q3)("v-if",!0)]}),_:3})],2)}],["__scopeId","data-v-682a3a3b"]])},77689(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>de});var n=o(20641),r=o(90033),i={class:"payment-container"},a={class:"payment-details-container"},s={class:"payment-col-summary"},l={class:"content-container"},c={class:"content-title"},u={key:0},d={key:1},p={key:0,class:"plan-switch-container"},f={class:"plan-price-container"},h={class:"plan-price"},m={class:"plan-details"},v={class:"plan-name-container"},g={key:0,class:"discount-tag"},y={class:"plan-price-container"},b={class:"plan-price"}
2,k={class:"plan-details"},S={key:1,class:"content-box"},P={class:"domain-plan-container"},w={class:"plan-detail-container"},C={class:"plan-name"},O={class:"plan-details"},A={class:"plan-details"},$={class:"content-container ufo-payment--form-elements"},T={class:"payment-list"},E={class:"payment-col-confirm"},I={class:"content-container"},L={class:"content-box"},F={class:"summary-extra-infos"},_={class:"summary-extra-info"},j={class:"summary-extra-info"},D={class:"summary-extra-info"};var x=o(76408),M=o(5076),N=o(89119),U=o(52002),B=o(51739),X=o(5412),H=o(76647),W=o(13510),R=o(46335),Q=o(42276),G=o(53751),z={class:"express-checkout-container"},V={key:0,class:"skeleton-loader"},K={ref:"expressCheckoutElement"};function Y(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return q(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(q(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,q(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,q(d,"constructor",c),q(c,"constructor",l),l.displayName="GeneratorFunction",q(c,r,"GeneratorFunction"),q(d),q(d,r,"Generator"),q(d,n,function(){return this}),q(d,"toString",function(){return"[object Generator]"}),(Y=function(){return{w:i,m:p}})()}function q(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}q=function(t,e,o,n){function i(e,o){q(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},q(t,e,o,n)}function J(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Z(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){J(i,n,r,a,s,"next",t)}function s(t){J(i,n,r,a,s,"throw",t)}a(void 0)})}}const tt={name:"ExpressPaymentButton",props:{totalAmount:{type:Number,required:!0},currency:{type:String,default:"usd"},email:{type:String,default:""}},data:function(){return{elements:null,expressCheckout:null,showPaymentButton:!1,clientSecret:null,isLoading:!0}},watch:{totalAmount:function(t,e){t!==e&&this.clientSecret&&this.reinitializeElements()}},mounted:function(){var t=this;return Z(Y().m(function e(){return Y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.initializePayment();case 1:return e.a(2)}},e)}))()},beforeDestroy:function(){this.expressCheckout&&this.expressCheckout.destroy()},methods:{initializePayment:function(){var t=this;return Z(Y().m(function e(){var o,n,r;return Y().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,M.A.createSetupIntent();case 1:return o=e.v,n=o.data,t.clientSecret=n.clientSecret,e.n=2,t.reinitializeElements();case 2:e.n=4;break;case 3:e.p=3,r=e.v,console.error("Express Checkout initialization error:",r),t.$emit("paymentError",r);case 4:return e.a(2)}},e,null,[[0,3]])}
2))()},reinitializeElements:function(){var t=this;return Z(Y().m(function e(){var o,n;return Y().w(function(e){for(;;)switch(e.n){case 0:return t.isLoading=!0,t.expressCheckout&&(t.expressCheckout.destroy(),t.expressCheckout=null),t.elements=W._4.elements({mode:"subscription",amount:100*t.totalAmount,currency:t.currency.toLowerCase(),setupFutureUsage:"on_session"}),o=W._4.paymentRequest({country:"US",currency:t.currency.toLowerCase(),total:{label:"Subscription",amount:100*t.totalAmount},requestPayerName:!0,requestPayerEmail:!0}),e.n=1,o.canMakePayment();case 1:if(!(n=e.v)||!n.applePay&&!n.googlePay){e.n=3;break}return t.showPaymentButton=!0,e.n=2,t.$nextTick(function(){t.expressCheckout=t.elements.create("expressCheckout",{paymentMethods:{applePay:"auto",googlePay:"auto",link:"auto"},buttonHeight:48}),t.expressCheckout.mount(t.$refs.expressCheckoutElement),t.expressCheckout.on("ready",function(){t.isLoading=!1}),t.expressCheckout.on("confirm",Z(Y().m(function e(){var o,n;return Y().w(function(e){for(;;)switch(e.p=e.n){case 0:return t.$
2store.state.pageIsLoading=!0,e.p=1,e.n=2,W._4.confirmSetup({elements:t.elements,clientSecret:t.clientSecret,confirmParams:{return_url:window.location.origin+"/payment-complete"},redirect:"if_required"});case 2:(o=e.v).error?(t.$store.state.pageIsLoading=!1,t.$emit("paymentError",o.error)):t.$emit("paymentConfirmed",{paymentMethodId:o.setupIntent.payment_method}),e.n=4;break;case 3:e.p=3,n=e.v,console.error("Express Checkout error:",n),t.showPaymentButton=!1;case 4:return e.a(2)}},e,null,[[1,3]])})))});case 2:e.n=4;break;case 3:t.showPaymentButton=!1,t.isLoading=!1,console.log("No supported wallets available.");case 4:return e.a(2)}},e)}))()}}};o(84435);var et=o(66262);const ot=(0,et.A)(tt,[["render",function(t,e,o,r,i,a){return(0,n.uX)(),(0,n.CE)("div",z,[i.isLoading?((0,n.uX)(),(0,n.CE)("div",V)):(0,n.Q3)("v-if",!0),(0,n.bo)((0,n.Lk)("div",K,null,512),[[G.vShow,i.showPaymentButton]])])}],["__scopeId","data-v-7c6b2b06"]]);function nt(t){return function(t){if(Array.isArray(t))return rt(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 rt(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?rt(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 rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var it={key:0,class:"promo-input"},at={class:"input"},st={key:0,class:"alert"},lt={key:1,class:"promo-input-text"};var ct=o(16485),ut=o(8187);function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function pt(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ft(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(ft(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,ft(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,ft(d,"constructor",c),ft(c,"constructor",l),l.displayName="GeneratorFunction",ft(c,r,"GeneratorFunction"),ft(d),ft(d,r,"Generator"),ft(d,n,function(){return this}),ft(d,"toString",function(){return"[object Generator]"}),(pt=function(){return{w:i,m:p}})()}function ft(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}ft=function(t,e,o,n){function i(e,o){ft(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},ft(t,e,o,n)}function ht(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function mt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?ht(Object(o),!0).forEach(function(e){vt(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ht(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function vt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=dt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function gt(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}const yt={name:"PromoCode",components:{Icon:R.A,Fab:ut.A,InputField:ct.A,Cta:X.A},data:function(){return{errorMessage:"",promoCode:"",hasActiveSub:!1,hasZeroAmountInvoice:!1,showInput:!1,isValid:!1}},mounted:function(){this.$parent.showUserMenu=!1,this.$store.state.user.customerId&&this.findZeroAmountInvoice(),this.$store.state.userSettings.currentSubscription&&(this.$store.getters.userIsPremium||this.$store.getters.userIsPastDue)&&(this.hasActiveSub=!0)},methods:{toggleShowInput:function(){this.showInput=!this.showInput},resetPromoCode:function(){this.promoCode="",this.isValid=!1,this.errorMessage="",this.$emit("promo-code-applied",{subscriptionData:{billingCycle:"yearly"},promoCodeData:null})},checkPromoCode:function(){var t,e=this;return(t=pt().m(function t(){var o;return pt().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,e.errorMessage="",t.n=1,M.A.get("promo/"+e.promoCode);case 1:o=t.v,e.$emit("promo-code-applied",{subscriptionData:{billingCycle:"yearly"},promoCodeData:mt(mt({},o.data),{},{discountText:e.discountText(o.data),promoCode:e.promoCode})}),e.isValid=!0,t.n=3;break;case 2:t.p=2,t.v,e.errorMessage="INVALID_PROMO_CODE",e.isValid=!1;case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){gt(i,n,r,a,s,"next",t)}function s(t){gt(i,n,r,a,s,"throw",t)}a(void 0)})})()},discountText:function(t){return t.amountOff?"$"+(t.amountOff/100).toString()+" off":t.percentOff?t.percentOff.toString()+"% off":void 0},findZeroAmountInvoice:function(){0!==this.$store.state.userSettings.invoices.length&&(this.hasZeroAmountInvoice=!!this.$store.state.userSettings.invoices.find(function(t){return 0===t.amount}))}},computed:{infoText:function(){return this.hasActiveSub?"You canât redeem partnership codes with an active UXfolio Premium subscription.":this.hasZeroAmountInvoice||this.alreadyUsedCoupon?"You've already redeemed a partnership code before. Each account is limited to one partnership offer.":"Paste the partnership code below to activate your discount."},alreadyUsedCoupon:function(){return 0!==this.$store.state.userSettings.invoices.length&&!!this.$store.state.userSettings.invoices.find(function(t){return"CouponCode"===t.discountType})}}},bt=(0,et.A)(yt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon"),c=(0,n.g2)("InputField"),u=(0,n.g2)("Cta"),d=(0,n.g2)("Fab");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["promo-code-container",{active:a.showInput}])},[(0,n.Lk)("div",{class:"promo-code-header",onClick:e[0]||(e[0]=function(){return s.toggleShowInput&&s.toggleShowInput.apply(s,arguments)})},[(0,n.bF)(l,{"icon-name":"discount"}),e[5]||(e[5]=(0,n.Lk)("div",{class:"promo-code-label"},"Redeem partnership code",-1))]),a.showInput?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"promo-code-content",onClick:e[4]||(e[4]=(0,G.withModifiers)(function(){},["stop"]))},[a.hasActiveSub||a.hasZeroAmountInvoice||s.alreadyUsedCoupon?((0,n.uX)(),(0,n.CE)("div",lt,[(0,n.eW)((0,r.v_)(s.infoText)+" ",1),a.hasActiveSub||a.hasZeroAmountInvoice||s.alreadyUsedCoupon?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[e[8]||(e[8]=(0,n.eW)("If you have any questions contact us at ",-1)),(0,n.bF)(u,{type:"link",onClick:e[3]||(e[3]=function(e){return t.$store.commit("openLink","mailto:[email protected]")}),style:{"font-size":"16px"}}
2,{default:(0,n.k6)(function(){return nt(e[7]||(e[7]=[(0,n.eW)("[email protected]",-1)]))}),_:1}),e[9]||(e[9]=(0,n.eW)(".",-1))],64)):(0,n.Q3)("v-if",!0)])):((0,n.uX)(),(0,n.CE)("div",it,[(0,n.Lk)("div",at,[(0,n.bF)(c,{label:"Enter code",value:a.promoCode,modelValue:a.promoCode,"onUpdate:modelValue":e[1]||(e[1]=function(t){return a.promoCode=t}),"has-error":!!a.errorMessage,onClick:e[2]||(e[2]=(0,G.withModifiers)(function(){},["stop"]))},{alert:(0,n.k6)(function(){return["INVALID_PROMO_CODE"===a.errorMessage?((0,n.uX)(),(0,n.CE)("span",st,"Invalid promo code")):(0,n.Q3)("v-if",!0)]}),_:1},8,["value","modelValue","has-error"])]),a.isValid?((0,n.uX)(),(0,n.Wv)(d,{key:1,alert:!0,customClass:"dark",icon:"delete",onClick:s.resetPromoCode},null,8,["onClick"])):((0,n.uX)(),(0,n.Wv)(u,{key:0,type:"secondary","dark-scheme":!1,onClick:s.checkPromoCode,disabled:!a.promoCode.length},{default:(0,n.k6)(function(){return nt(e[6]||(e[6]=[(0,n.eW)("Redeem",-1)]))}),_:1},8,["onClick","disabled"]))]))])):(0,n.Q3)("v-if",!0)],2)}],["__scopeId","data-v-5c0d8c12"]]),kt=bt;var St={class:"payment-banner"},Pt={class:"features"},wt={class:"feature-list"},Ct={class:"feature-list-item"};const Ot={name:"PaymentBanner",components:{Cta:X.A,Icon:R.A},props:{darkScheme:{type:Boolean,default:!1}},data:function(){return{features:["Publish your portfolios","Use a custom domain","Send your portfolio for review"]}}},At=(0,et.A)(Ot,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",St,[e[1]||(e[1]=(0,n.Lk)("div",{class:"ad-illustration"},null,-1)),(0,n.Lk)("div",Pt,[e[0]||(e[0]=(0,n.Lk)("div",{class:"features-title"},"Enjoy all features",-1)),(0,n.Lk)("div",wt,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(this.features,function(t){return(0,n.uX)(),(0,n.CE)("div",Ct,[(0,n.bF)(l,{width:20,height:20,"icon-name":"check"}),(0,n.eW)(" "+(0,r.v_)(t),1)])}),256))])])])}],["__scopeId","data-v-e53fd904"]]);var $t={class:"card-details-container"};var Tt={class:"available-payment-methods"};var Et=o(74885),It={class:"payment-method-option-header"},Lt={class:"payment-method-option-label"},Ft={class:"icon-container"},_t={key:0,class:"icon"},jt={class:"icon"},Dt={key:0,class:"payment-method-option-content"};const xt={name:"PaymentMethodOption",components:{RadioButton:Et.A,Icon:R.A},props:{type:{required:!0,type:String,default:"paymentMethod"},paymentMethod:{required:!1,type:Object,default:null},selected:{required:!1,type:Boolean,default:!1},label:{required:!1,type:String}},computed:{optionLabel:function(){var t;return this.paymentMethod?"**** ".concat(null===(t=this.paymentMethod)||void 0===t?void 0:t.last4CardNumbers,", ").concat(this.cardExpiryText):this.label},cardExpiryText:function(){return this.isExpired?'<span class="expired">Expired</span>':this.paymentMethod.expMonth+"/"+String(this.paymentMethod.expYear).slice(-2)},iconClass:function(){return"paymentMethod"===this.type?"card-"+this.paymentMethod.cardBrand:"card-"+this.type},walletIcon:function(){var t;if(null!==(t=this.paymentMethod)&&void 0!==t&&t.source)switch(this.paymentMethod.source){case"apple_pay":return"card-apple";case"google_pay":return"card-google";default:return""}},isExpired:function(){return!!this.paymentMethod&&this.isCardExpired(this.paymentMethod)}},methods:{isCardExpired:function(t){var e,o;return e=new Date,(o=new Date).setFullYear(t.expYear,t.expMonth-1,1),o<e}}},Mt=(0,et.A)(xt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("RadioButton");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Lk)("div",{class:(0,r.C4)(["payment-method-option",{"selected-method":o.selected,expired:s.isExpired}])},[(0,n.Lk)("div",It,[(0,n.Lk)("div",Lt,[(0,n.bF)(l,{label:s.optionLabel,"model-value":"checked",value:o.selected?"checked":""},null,8,["label","value"])]),(0,n.Lk)("div",Ft,[s.walletIcon?((0,n.uX)(),(0,n.CE)("div",_t,[(0,n.Lk)("i",{class:(0,r.C4)(s.walletIcon)},null,2)])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",jt,[(0,n.Lk)("i",{class:(0,r.C4)(s.iconClass)},null,2)])])]),t.$slots.default&&o.selected?((0,n.uX)(),(0,n.CE)("div",Dt,[(0,n.RG)(t.$slots,"default",{},void 0,!0)])):(0,n.Q3)("v-if",!0)],2)])}],["__scopeId","data-v-bf6ddd5c"]]);var Nt=o(3546);function Ut(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Bt(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Bt(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Bt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Bt(d,"constructor",c),Bt(c,"constructor",l),l.displayName="GeneratorFunction",Bt(c,r,"GeneratorFunction"),Bt(d),Bt(d,r,"Generator"),Bt(d,n,function(){return this}),Bt(d,"toString",function(){return"[object Generator]"}),(Ut=function(){return{w:i,m:p}})()}function Bt(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Bt=function(t,e,o,n){function i(e,o){Bt(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Bt(t,e,o,n)}function Xt(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Ht(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Xt(i,n,r,a,s,"next",t)}function s(t){Xt(i,n,r,a,s,"throw",t)}a(void 0)})}}var Wt=null;const Rt={name:"PaymentMethodList",components:{PaymentCardForm:Nt.A,PaymentMethodOption:Mt,RadioButton:Et.A,Icon:R.A},emits:["update:selectedPaymentType"],props:["paymentType","updateDefaultCard","selectedPaymentType"],data:function(){return{PaymentPageTypeEnum:B.B,selectedPaymentMethodId:null,applePayAvailable:!1,googlePayAvailable:!1}},beforeMount:function(){Wt=W._4.elements()},watch:{selectedPaymentType:function(t){this.emitSelectedPaymentType(t)},"userDetails.paymentMethods":{handler:function(t){Array.isArray(t)&&t.length>0?this.selectedPaymentMethodId=t[0].paymentMethodId:this.selectedPaymentMethodId=null},immediate:!0}},mounted:function(){var t;null!==(t=this.userDetails.paymentMethods)&&void 0!==t&&t.length&&(this.selectedPaymentMethodId=this.userDetails.paymentMethods[0].paymentMethodId),this.updateExpressAvailability()},computed:{userDetails:function(){return{name:this.$store.state.user.name,paymentMethods:this.$store.state.user.paymentMethods,email:this.$store.state.user.email,selectedPaymentMethod:this.$store.state.user.paymentMethods&&this.$store.state.user.paymentMethods.length?0:null,isPastDue:!1}}},methods:{emitSelectedPaymentType:function(t){this.$emit("update:selectedPaymentType",t)},updateExpressAvailability:function(){var t=this;return Ht(Ut().m(function e(){var o,n;return Ut().w(function(e){for(;;)switch(e.n){case 0:return o=W._4.paymentRequest({country:"US",currency:"usd",total:{label:"Subscription",amount:100},requestPayerName:!0,requestPayerEmail:!0}),e.n=1,o.canMakePayment();case 1:n=e.v,t.applePayAvailable=(null==n?void 0:n.applePay)||!1,t.googlePayAvailable=(null==n?void 0:n.googlePay)||!1;case 2:return e.a(2)}},e)}))()},handleCardClick:function(t){this.isCardExpired(t)||(this.handlePaymentTypeClick("card"),t.paymentMethodId!==this.selectedPaymentMethodId&&this.updateDefaultCard(t.paymentMethodId))},handlePaymentTypeClick:function(t){this.emitSelectedPaymentType(t)},isCardExpired:function(t){var e,o;return e=new Date,(o=new Date).setFullYear(t.expYear,t.expMonth-1,1),o<e},createPaymentMethod:function(){var t=this;return Ht(Ut().m(function e(){return Ut().w(function(e){for(;;
2)switch(e.n){case 0:if(t.cardDataFilled()){e.n=1;break}return e.a(2,{error:"Missing or invalid card details."});case 1:return e.n=2,W._4.createPaymentMethod("card",t.cardNumber,{billing_details:{email:t.userDetails.email,name:t.userDetails.name}});case 2:return e.a(2,e.v)}},e)}))()},cardDataFilled:function(){var t=document.getElementById("invoiceName"),e=document.getElementById("card-number-element"),o=document.getElementById("card-expiry-element"),n=document.getElementById("card-cvc-element"),r=!0;return t&&t.value?(document.getElementById("card-name-errors").textContent="",null==t||t.classList.remove("StripeElement--invalid")):(document.getElementById("card-name-errors").textContent="Please fill out your name.",null==t||t.classList.add("StripeElement--invalid"),r=!1),null!=e&&e.classList.contains("StripeElement--empty")?(document.getElementById("card-number-errors").textContent="Invalid card number.",null==e||e.classList.add("StripeElement--invalid"),r=!1):(document.getElementById("card-number-errors").textContent="",null==e||e.classList.remove("StripeElement--invalid")),null!=o&&o.classList.contains("StripeElement--empty")?(document.getElementById("card-expiry-errors").textContent="Card expiry is required.",null==o||o.classList.add("StripeElement--invalid"),r=!1):(document.getElementById("card-expiry-errors").textContent="",null==o||o.classList.remove("StripeElement--invalid")),null!=n&&n.classList.contains("StripeElement--empty")?(document.getElementById("card-cvc-errors").textContent="CVC is required.",null==n||n.classList.add("StripeElement--invalid"),r=!1):(document.getElementById("card-cvc-errors").textContent="",null==n||n.classList.remove("StripeElement--invalid")),r},destroyCardDetails:function(){this.cardNumber&&this.cardExpiry&&this.cardCvc&&(this.cardNumber.destroy(),this.cardExpiry.destroy(),this.cardCvc.destroy())},createCardFormElements:function(){var t=this;if(Wt){var e={base:{"::placeholder":{fontStyle:"normal",color:"#ADADAD",fontWeight:"400",fontSize:"14px",lineHeight:"24px"}},invalid:{color:"#EF4444",iconColor:"#EF4444"}};this.cardNumber=Wt.create("cardNumber",{style:e}),this.cardNumber.mount("#card-number-element"),this.cardExpiry=Wt.create("cardExpiry",{style:e}),this.cardExpiry.mount("#card-expiry-element"),this.cardCvc=Wt.create("cardCvc",{style:e}),this.cardCvc.mount("#card-cvc-element"),this.cardNumber.on("change",function(e){t.bindError(e,"card-number-errors"),e.brand&&t.setBrandIcon(e.brand)}),this.cardExpiry.on("change",function(e){t.bindError(e,"card-expiry-errors")}),this.cardCvc.on("change",function(e){t.bindError(e,"card-cvc-errors")}),this.cardNumber.on("focus",function(e){t.cardNumber.classList&&t.cardNumber.classList.add("focus")}),this.cardNumber.on("blur",function(e){t.cardNumber.classList&&t.cardExpiry.classList.remove("focus")}),this.cardformIsVisible=!0}else console.error("Stripe elements not initialized")},bindError:function(t,e){var o=document.getElementById(e);t.error?o.textContent=t.error.message:o.textContent=""},setBrandIcon:function(t){for(var e=document.getElementById("card-brand-icon"),o=e.classList.length-1;o>=0;o--)e.classList.remove(e.classList[o]);e.classList.add("card-"+t)}}};function Qt(t){return function(t){if(Array.isArray(t))return Gt(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 Gt(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Gt(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 Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}function zt(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Vt(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Vt(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Vt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Vt(d,"constructor",c),Vt(c,"constructor",l),l.displayName="GeneratorFunction",Vt(c,r,"GeneratorFunction"),Vt(d),Vt(d,r,"Generator"),Vt(d,n,function(){return this}),Vt(d,"toString",function(){return"[object Generator]"}),(zt=function(){return{w:i,m:p}})()}function Vt(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Vt=function(t,e,o,n){function i(e,o){Vt(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Vt(t,e,o,n)}function Kt(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Yt(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Kt(i,n,r,a,s,"next",t)}function s(t){Kt(i,n,r,a,s,"throw",t)}a(void 0)})}}const qt={name:"PaymentPageCardDetails",emits:["update:selectedCard","update:selectedPaymentType"],props:{userDetails:Object,selectedCard:Object,selectedPaymentType:{type:String,default:"card"}},components:{PaymentMethodList:(0,et.A)(Rt,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("PaymentMethodOption"),l=(0,n.g2)("PaymentCardForm");return(0,n.uX)(),(0,n.CE)("div",Tt,[i.googlePayAvailable?((0,n.uX)(),(0,n.Wv)(s,{key:0,type:"google",label:"Pay with Google pay",selected:"google"===o.selectedPaymentType,onClick:e[0]||(e[0]=function(t){return a.handlePaymentTypeClick("google")})},null,8,["selected"])):(0,n.Q3)("v-if",!0),i.applePayAvailable?((0,n.uX)(),(0,n.Wv)(s,{key:1,type:"apple",label:"Pay with Apple pay",selected:"apple"===o.selectedPaymentType,onClick:e[1]||(e[1]=function(t){return a.handlePaymentTypeClick("apple")})},null,8,["selected"])):(0,n.Q3)("v-if",!0),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.userDetails.paymentMethods,function(t){return(0,n.uX)(),(0,n.Wv)(s,{key:t.paymentMethodId,type:"paymentMethod",selected:"card"===o.selectedPaymentType&&i.selectedPaymentMethodId===t.paymentMethodId,"payment-method":t,onClick:function(e){return a.handleCardClick(t)}},null,8,["selected","payment-method","onClick"])}),128)),(0,n.bF)(s,{type:"default",label:"Pay with bank card",selected:"new"===o.selectedPaymentType,onClick:e[2]||(e[2]=function(t){return a.handlePaymentTypeClick("new")})},{default:(0,n.k6)(function(){return[(0,n.bF)(l,{"destroy-card-details":a.destroyCardDetails,"mount-card-details":a.createCardFormElements,"user-details":a.userDetails},null,8,["destroy-card-details","mount-card-details","user-details"])]}),_:1},8,["selected"])])}],["__scopeId","data-v-a1a8be46"]])},data:function(){return{showConfirmDeleteModal:!1,stripeError:null}},watch:{"userDetails.paymentMethods":{immediate:!0,handler:function(t){if(Array.isArray(t)&&t.length>0){var e=t[this.userDetails.selectedPaymentMethod]||null;e&&this.$emit("update:selectedCard",e)}}}},methods:{createAndReturnNewCard:function(){var t=this;return Yt(zt().m(function e(){var o,n,r,i,a,s,l,c;return zt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.$refs.paymentMethodsRef){e.n=1;break}return e.a(2,{error:"Payment form is not ready."});
2case 1:return t.$store.state.pageIsLoading=!0,e.n=2,t.$refs.paymentMethodsRef.createPaymentMethod();case 2:if(!(o=e.v).error&&o.paymentMethod){e.n=3;break}return t.$store.state.pageIsLoading=!1,e.a(2,{error:(null===(n=o.error)||void 0===n?void 0:n.message)||"Could not create card"});case 3:return r={userEmail:t.userDetails.email,paymentMethod:o.paymentMethod.id,invoiceName:t.userDetails.name},e.p=4,e.n=5,M.A.post("card",r);case 5:return i={paymentMethodId:o.paymentMethod.id,last4CardNumbers:o.paymentMethod.card.last4,cardBrand:o.paymentMethod.card.brand,expYear:o.paymentMethod.card.exp_year,expMonth:o.paymentMethod.card.exp_month},t.$store.state.user.paymentMethods.splice(0,0,i),t.userDetails.paymentMethods=t.$store.state.user.paymentMethods,t.$store.state.user.selectedPaymentMethod=0,t.userDetails.selectedPaymentMethod=0,t.$emit("update:selectedCard",i),t.$store.state.pageIsLoading=!1,e.a(2,{paymentMethod:o.paymentMethod});case 6:return e.p=6,c=e.v,console.log(null==c||null===(a=c.response)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.message),t.$store.state.pageIsLoading=!1,e.a(2,{error:null!==(s=null==c||null===(l=c.response)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.message)&&void 0!==s?s:"Saving the card failed. Try again."})}},e,null,[[4,6]])}))()},updateDefaultCard:function(t){var e=this;return Yt(zt().m(function o(){var n,r,i,a,s;return zt().w(function(o){for(;;)switch(o.p=o.n){case 0:return e.$store.state.pageIsLoading=!0,n={userEmail:e.userDetails.email,paymentMethod:t,invoiceName:e.userDetails.name,retryCharge:!!e.userDetails.isPastDue},o.p=1,o.n=2,M.A.post("card",n);case 2:r=e.$store.state.user.paymentMethods,i=r.find(function(e){return e.paymentMethodId===t}),a=r.filter(function(e){return e.paymentMethodId!==t}),s=[i].concat(Qt(a)),e.userDetails.paymentMethods=s,e.userDetails.selectedPaymentMethod=0,e.$store.commit("updateUserPaymentMethods",s),e.$store.commit("updateUserSelectedPaymentMethods",0),e.$emit("update:selectedCard",e.userDetails.paymentMethods[0]),e.$store.commit("showAlertMessage",{type:"payment",message:"A new default card was set!"}),o.n=4;break;case 3:o.p=3,o.v,e.$store.state.alertMessage={show:!0,type:"alert",message:"Failed to update your default card. Try again later."};case 4:return o.p=4,e.$store.state.pageIsLoading=!1,o.f(4);case 5:return o.a(2)}},o,null,[[1,3,4,5]])}))()}}},Jt=(0,et.A)(qt,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("PaymentMethodList");return(0,n.uX)(),(0,n.CE)("div",$t,[(0,n.bF)(s,{ref:"paymentMethodsRef","update-default-card":function(t){return a.updateDefaultCard(t)},"selected-payment-type":o.selectedPaymentType,"onUpdate:selectedPaymentType":e[0]||(e[0]=function(e){return t.$emit("update:selectedPaymentType",e)})},null,8,["update-default-card","selected-payment-type"])])}],["__scopeId","data-v-33b1b246"]]);var Zt=o(14831),te=o(35166);function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function oe(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function ne(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(o),!0).forEach(function(e){re(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):oe(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function re(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=ee(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ee(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ie(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ae(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(ae(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,ae(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,ae(d,"constructor",c),ae(c,"constructor",l),l.displayName="GeneratorFunction",ae(c,r,"GeneratorFunction"),ae(d),ae(d,r,"Generator"),ae(d,n,function(){return this}),ae(d,"toString",function(){return"[object Generator]"}),(ie=function(){return{w:i,m:p}})()}function ae(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}ae=function(t,e,o,n){function i(e,o){ae(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},ae(t,e,o,n)}function se(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function le(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){se(i,n,r,a,s,"next",t)}function s(t){se(i,n,r,a,s,"throw",t)}a(void 0)})}}const ce={name:"payment-center",components:{PaymentPageCardDetails:Jt,PaymentBanner:At,PromoCode:kt,ExpressPaymentButton:ot,CardDetails:Q.A,NonEditorPageFrame:x.A,PaymentSummary:U.A,Faq:N.A,Cta:X.A,Icon:R.A},data:function(){return{paymentType:B.B.SUBSCRIPTION,buttonLabel:"",billingCycle:"yearly",PaymentPageTypeEnum:B.B,promo:null,userDetails:{name:"",paymentMethods:[],email:"",selectedPaymentMethod:null,isPastDue:!1},selectedCard:null,selectedPaymentType:"card",subscriptionPlan:"Premium",currentSubscriptionPlan:{id:"",currency:"",price:0,type:"",yearlyBilling:!0},faqEntries:[],domainName:"",domainSubtitle:"",renewalDate:"",paymentButtonDisabled:!1,promoCodeData:null,promoCodeApplied:!1,isUpgradeSnapshot:!1}},mounted:function(){var t=this;return le(ie().m(function e(){var o;return ie().w(function(e){for(;;)switch(e.n){case 0:if(window.scrollY&&window.scroll(0,0),W._4.elements(),t.$store.state.pageIsLoading=!0,!history.state.domainData){e.n=1;break}t.paymentType=B.B.DOMAIN,e.n=5;break;case 1:if(!history.state.subscriptionData){e.n=2;break}t.billingCycle=history.state.subscriptionData.billingCycle,t.paymentType=B.B.SUBSCRIPTION,e.n=5;break;case 2:if(!t.$route.query.billing){e.n=3;break}t.billingCycle=t.$route.query.billing,t.paymentType=B.B.SUBSCRIPTION,e.n=5;break;case 3:if(!history.state.billingCycle){e.n=4;break}t.billingCycle=history.state.billingCycle,t.paymentType=B.B.SUBSCRIPTION,e.n=5;break;case 4:return t.$store.state.pageIsLoading=!1,t.$router.back(),e.a(2);case 5:return t.paymentType===B.B.DOMAIN&&t.domainData&&(t.domainName=t.domainData.domain,t.domainSubtitle=".".concat(t.domainData.domain.split(".")[1]," domain"),o=new Date((new Date).setFullYear((new Date).getFullYear()+1)),t.renewalDate="".concat(o.getDate()," ").concat(o.toLocaleString("default",{month:"long"})," ").concat(o.getFullYear())),e.n=6,t.ensurePaymentPlanInfo();case 6:return e.n=7,t.getPaymentData();case 7:t.setFaqData(),t.$parent.showUserMenu=!1;case 8:return e.a(2)}},e)}))()},methods:{ensurePaymentPlanInfo:function(){var t=this;return le(ie().m(function e(){var o;return ie().w(function(e){for(;;)switch(e.n){case 0:if(!te.z.hasPaymentPlanInfo()&&null!==(o=t.$store.state.user)&&void 0!==o&&o._id){e.n=1;break}return e.a(2);case 1:return e.n=2,te.z.prefetchPaymentPlanInfo();case 2:return e.a(2)}},e)}))()},handlePromoCodeApplied:function(t){this.promoCodeData=t.promoCodeData,this.promoCodeData&&(this.promoCodeApplied=!0,t.promoCodeData.promoCode.includes("YEARLY")?(this.billingCycle="yearly",this.promo="yearly"):(this.billingCycle="monthly",this.promo="monthly"),this.getPaymentData())},getPaymentData:function(){var t=this;return le(ie().m(function e(){var o,n,r,i,a;return ie().w(function(e){for(;;
2)switch(e.p=e.n){case 0:return t.$store.state.pageIsLoading=!0,e.p=1,e.n=2,M.A.getUserDetailsForSubscription("yearly");case 2:n=e.v,r={name:n.data.user.name,paymentMethods:n.data.payMentMethods,email:n.data.user.email,selectedPaymentMethod:n.data.payMentMethods.length?0:null,isPastDue:n.data.pastDue},t.currentSubscriptionPlan=n.data.currentSubscriptionPlan,null!==(o=t.currentSubscriptionPlan)&&void 0!==o&&null!==(o=o.id)&&void 0!==o&&o.length&&(t.billingCycle=t.currentSubscriptionPlan.id.toLowerCase().includes("monthly")?"yearly":"monthly"),t.promoCodeData&&(t.billingCycle=t.promoCodeData.promoCode.includes("YEARLY")?"yearly":"monthly",t.promo=t.billingCycle),t.userDetails=r,r.paymentMethods&&0!==r.paymentMethods.length?(t.selectedPaymentType="card",t.selectedCard=r.paymentMethods[null!==(i=r.selectedPaymentMethod)&&void 0!==i?i:0]):t.selectedPaymentType="new",t.isUpgradeSnapshot=t.isUpgrade,t.setPageSubmitButton(),e.n=4;break;case 3:e.p=3,a=e.v,t.$store.state.pageIsLoading=!1,console.error("Failed to load payment data:",a),t.$store.commit("showAlertMessage",{message:"Could not load payment info.",type:"alert"});case 4:t.$store.state.pageIsLoading=!1;case 5:return e.a(2)}},e,null,[[1,3]])}))()},setFaqData:function(){this.paymentType===B.B.DOMAIN?this.faqEntries=[{question:"Can I get a refund for my domain?",answer:"<div>We cannot refund domains, as they're registered for a year upon purchase, which is standard with any domain registrar. However, you can transfer your domain to a free Godaddy account anytime.</div>\n <div>Follow these steps to transfer a domain on UXfolio:</div>\n <ul>\n <li>Open the Portfolio editor.</li>\n <li>Click Settings in the menu bar.</li>\n <li>Choose Own domain & URL from the sidebar.</li>\n <li>Open the page and click transfer domain.</li>\n <li>Fill out the domain name and email address.</li>\n <li>Click transfer.</li>\n </ul>"},{question:"Do I have to pay to renew my domain?",answer:"<div>Yes, you will be charged every year for the renewal of your domain. Weâll notify you a week before the renewal date, which you can also check on your Account page under the Domains section. Please, add [email protected] to your safe senders' list to ensure you receive our notifications.</div>"},{question:"When do I get billed for the domain I have purchased?",answer:"<div>You get billed right after purchasing your domain. After that, you'll get billed yearly for the renewal of your domain registration. You can check your domainâs renewal date on your Account page under the Domains section. A week before your renewal date weâll send you a notification. Make sure to add [email protected] to your safe sender list, so you don't miss the notification.</div>"}]:this.faqEntries=[{question:"What's the difference between the plans?",answer:"<div>If you subscribe to the Yearly plan, your card will be charged US$108 on a yearly basis. This way, the Yearly plan will save you 60% (US$72) per year as compared to being charged US$15 every month for 12 months, which would total US$180. If you choose the Monthly plan, your card will be charged US$15 on a monthly basis.</div>"},{question:"What's included in the UXfolio subscription?",answer:"<div>By subscribing to the Monthly or Yearly plan, youâll unlock the following features:</div>\n <ul>\n <li>Unlimited public portfolios,</li>\n <li>Case study & portfolio password protection,</li>\n <li>Easy portfolio feedback collection,</li>\n <li>Own domain options,</li>\n <li>Google Analytics connection,</li>\n <li>Custom favicon, and</li>\n <li>No UXfolio branding.</li>\n </ul>\n <div>
2You will continue to have access to all features you had during the free trial.</div>"},{question:"My payment failed. What can I do?",answer:'<div>If your payment failed, you have three options: </div>\n <ul>\n <li>Try again in a few minutes.</li>\n <li>Follow the on-screen instructions, such as "choose a different payment method" or "contact your card issuer for more information." In such cases, the issue is on your bank\'s end.</li>\n <li>Contact us at [email protected] and include the following details in your email: </li>\n <ul>\n <li>the error message you\'ve received,</li>\n <li>and a screenshot of the error screen. </li>\n </ul>\n </ul>\n <div>Please understand that we have limited access to payment details due to strict safety and encryption protocols.</div>'}]},selectBillingCycle:function(t){this.isUpgrade||this.promo||(this.billingCycle=t)},deleteItem:function(){var t=this;this.$store.state.pageIsLoading=!0,this.$store.commit("showAlertMessage",{message:"Domain removed from cart."}),setTimeout(function(){t.$store.state.pageIsLoading=!1,t.$router.push("/home/domain/search")},2e3)},getPrice:function(t){return this.paymentDataReady?"yearly"===t?this.yearlyPrice:this.monthlyPrice:0},handleSubmit:function(){var t=this;return le(ie().m(function e(){var o,n;return ie().w(function(e){for(;;)switch(e.n){case 0:if(t.paymentButtonDisabled=!0,"new"!==t.selectedPaymentType||null===(o=t.$refs.cardDetailsRef)||void 0===o||!o.createAndReturnNewCard){e.n=4;break}return e.n=1,t.$refs.cardDetailsRef.createAndReturnNewCard();case 1:if(!(n=e.v).error){e.n=2;break}return t.$store.commit("showAlertMessage",{message:n.error,type:"alert"}),t.paymentButtonDisabled=!1,e.a(2);case 2:return t.selectedCard=n.paymentMethod?{paymentMethodId:n.paymentMethod.id,last4CardNumbers:n.paymentMethod.card.last4,cardBrand:n.paymentMethod.card.brand,expYear:n.paymentMethod.card.exp_year,expMonth:n.paymentMethod.card.exp_month}:null,e.n=3,t.submitPayment(n);case 3:return e.a(2);case 4:if(!t.selectedCard){e.n=6;break}return e.n=5,t.submitPayment();case 5:e.n=7;break;case 6:t.$store.commit("showAlertMessage",{message:"Please select or add a payment method.",type:"alert"}),t.paymentButtonDisabled=!1;case 7:return e.a(2)}},e)}))()},submitPayment:function(t){var e=this;return le(ie().m(function o(){var n,r,i,a,s,l,c,u,d;return ie().w(function(o){for(;;)switch(o.p=o.n){case 0:if(r=Math.abs(e.$store.state.userSettings.creditBalance),e.isUpgradeSnapshot=e.isUpgrade,!t||!t.error){o.n=2;break}return o.n=1,e.$router.replace({name:"Failure",state:{failureDetails:t.error,paymentType:e.paymentType,billingCycle:e.billingCycle}});case 1:case 14:return o.a(2);case 2:if(e.$store.state.pageIsLoading=!0,i=document.getElementById("invoiceName"),a={userEmail:e.userDetails.email,paymentMethod:t&&t.paymentMethod?t.paymentMethod.id:null===(n=e.selectedCard)||void 0===n?void 0:n.paymentMethodId,invoiceName:i&&i.value?i.value:e.userDetails.name,creditUsed:r,isUpgrade:e.isUpgradeSnapshot},e.paymentType===B.B.SUBSCRIPTION?(a.yearlyBilling="yearly"===e.billingCycle,a.productKey="yearly"===e.billingCycle?e.$store.state.userSettings.stripePrices.yearlyPrice.id:e.$store.state.userSettings.stripePrices.monthlyPrice.id,e.promoCodeData&&(a.promoCode=e.promoCodeData.promoCode)):(a.domain=history.state.domainData.domain,a.portfolioId=history.state.domainData.id,a.domainPrice=history.state.domainData.price.toString()),e.paymentType!==B.B.SUBSCRIPTION){o.n=10;break}return o.p=3,o.n=4,M.A.createNewSubscription(a,"Premium");case 4:if(!(s=o.v).data.paymentIntentStatus){o.n=6;break}return e.$store.state.pageIsLoading=!1,o.n=5,e.$router.replace({path:"/home/payment/auth",state:{subscriptionPlan:e.subscriptionPlan,paymentIntentStatus:s.data.paymentIntentStatus,clientSecret:s.data.clientSecret,billingCycle:e.billingCycle}});case 5:return e.paymentButtonDisabled=!1,o.a(2);case 6:return t&&t.paymentMethod&&(l={paymentMethodId:t.paymentMethod.id,last4CardNumbers:t.paymentMethod.card.last4,cardBrand:t.paymentMethod.card.brand,expYear:t.paymentMethod.card.exp_year,expMonth:t.paymentMethod.card.exp_month},e.userDetails.paymentMethods.push(l),e.userDetails.selectedPaymentMethod=e.userDetails.paymentMethods.length-1),o.n=7,e.getUser();case 7:e.$store.state.pageIsLoading=!1,e.paymentButtonDisabled=!1,localStorage.setItem("paymentSuccessDetail
2s",JSON.stringify({successDetails:ne(ne({},s.data),{},{previousSubscription:{type:e.currentSubscriptionPlan.type},paymentType:e.paymentType,billingCycle:e.billingCycle,creditUsed:r,isUpgrade:e.isUpgradeSnapshot}),promoCodeData:e.promoCodeData})),e.$router.replace("/home/payment/success"),o.n=9;break;case 8:return o.p=8,u=o.v,e.$store.state.pageIsLoading=!1,e.paymentButtonDisabled=!1,o.n=9,e.$router.replace({path:"/home/payment/failure",state:{failureDetails:ne({},u.response.data),paymentType:e.paymentType,billingCycle:e.billingCycle}});case 9:o.n=14;break;case 10:return o.p=10,o.n=11,M.A.post("domain",a);case 11:return c=o.v,o.n=12,e.getUser();case 12:e.$store.state.pageIsLoading=!1,e.paymentButtonDisabled=!1,e.$store.state.portfolio.ownDomainAddress=e.domainName,e.$store.state.alertMessage={show:!0,type:"payment",message:"Your domain will automatically connect, but can take up to 72 hours."},localStorage.setItem("paymentSuccessDetails",JSON.stringify({successDetails:ne(ne({},c.data),{},{domain:a.domain,domainData:history.state.domainData,paymentType:e.paymentType,creditUsed:r})})),e.$router.replace("/home/payment/success"),o.n=14;break;case 13:return o.p=13,d=o.v,e.$store.state.pageIsLoading=!1,o.n=14,e.$router.replace({path:"/home/payment/failure",state:{failureDetails:ne({},d.response.data),paymentType:e.paymentType,domainData:history.state.domainData}})}},o,null,[[10,13],[3,8]])}))()},getUser:function(){var t=this;return le(ie().m(function e(){var o;return ie().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,H.A.getMyUser();case 1:return o=e.v,t.$store.state.user=ne(ne({},o.data.user),{},{paymentMethods:o.data.userPaymentMethods}),e.n=2,t.getUserSettings();case 2:return e.a(2)}},e)}))()},getUserSettings:function(){var t=this;return le(ie().m(function e(){var o;return ie().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,H.A.getUserSettings(t.$store.state.user._id);case 1:o=e.v,t.$store.state.userSettings=o.data,t.$store.state.currentSubscriptionPlan=o.data.currentSubscriptionPlan;case 2:return e.a(2)}},e)}))()},userWasfree:function(){return this.currentSubscriptionPlan&&"Free"===this.currentSubscriptionPlan.type},setPageSubmitButton:function(){history.state.domainData?this.buttonLabel="Buy domain":this.currentSubscriptionPlan&&"Free"!==this.currentSubscriptionPlan.type&&"Trial"!==this.currentSubscriptionPlan.type?this.buttonLabel="Switch plan":this.buttonLabel="Upgrade and pay"},handleExpressCheckoutPayment:function(t){var e=this;return le(ie().m(function o(){var n,r,i,a,s;return ie().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.paymentMethodId,e.$store.state.pageIsLoading=!0,o.p=1,r=Math.abs(e.$store.state.userSettings.creditBalance),e.isUpgradeSnapshot=e.isUpgrade,e.paymentType!==B.B.SUBSCRIPTION){o.n=3;break}return o.n=2,M.A.createNewSubscription({userEmail:e.userDetails.email,paymentMethod:n,invoiceName:e.userDetails.name,creditUsed:r,isUpgrade:e.isUpgradeSnapshot,yearlyBilling:"yearly"===e.billingCycle,productKey:"yearly"===e.billingCycle?e.$store.state.userSettings.stripePrices.yearlyPrice.id:e.$store.state.userSettings.stripePrices.monthlyPrice.id,promoCode:null===(a=e.promoCodeData)||void 0===a?void 0:a.promoCode},"Premium");case 2:i=o.v,o.n=5;break;case 3:return o.n=4,M.A.post("domain",{userEmail:e.userDetails.email,paymentMethod:n,invoiceName:e.userDetails.name,creditUsed:r,domain:e.domainData.domain,portfolioId:e.domainData.id,domainPrice:e.domainData.price.toString()});case 4:i=o.v,e.$store.state.portfolio.ownDomainAddress=e.domainName,e.$store.state.alertMessage={show:!0,type:"payment",message:"Your domain will automatically connect, but can take up to 72 hours."};case 5:return o.n=6,e.getUser();case 6:localStorage.setItem("paymentSuccessDetails",JSON.stringify({successDetails:ne(ne({},i.data),e.paymentType===B.B.SUBSCRIPTION?{previousSubscription:{type:e.currentSubscriptionPlan.type},paymentType:e.paymentType,billingCycle:e.billingCycle,creditUsed:r,isUpgrade:e.isUpgradeSnapshot}:{domain:e.domainData.domain,domainData:e.domainData,paymentType:e.paymentType,creditUsed:r}),promoCodeData:e.promoCodeData})),e.$router.replace("/home/payment/success"),o.n=8;break;case 7:o.p=7,s=o.v,e.handlePaymentError(s);case 8:return o.p=8,e.$store.state.pageIsLoading=!1,o.f(8);case 9:return o.a(2)}},o,null,[[1,7,8,9]])}))()},handlePaymentError:function(t){console.error("Stripe payment error:",t),this.$store.commit("showAlertMessage",{message:t.message||"Payment failed",type:"alert"})}},computed:{setPageTitles:function(){return this.paymentType===B.B.SUBSCRIPTION?{title:"Upgrade for full access",
2subTitle:"Add a payment method to enjoy all features in UXfolio."}:{title:"Purchase a domain",subTitle:"Add a payment method to purchase a domain"}},isUpgrade:function(){var t;return this.$store.state.userSettings&&this.$store.state.userSettings.currentSubscription&&this.paymentType===B.B.SUBSCRIPTION&&"Free"!==this.$store.state.userSettings.currentSubscriptionPlan&&this.$store.state.userSettings.currentSubscriptionPlan!==this.billingCycle&&!["canceled","trialing"].includes(null===(t=this.$store.state.userSettings.currentSubscription)||void 0===t?void 0:t.status)},yearlyPrice:function(){return this.$store.state.userSettings.stripePrices.yearlyPrice.price},monthlyPrice:function(){return this.$store.state.userSettings.stripePrices.monthlyPrice.price},domainData:function(){return history.state.domainData},yearlyPricePerMonth:function(){return this.yearlyPrice/12},checkDisabled:function(){return this.paymentButtonDisabled||!this.paymentDataReady},paymentPricesLoaded:function(){return this.paymentType!==B.B.SUBSCRIPTION||te.z.hasPaymentPlanInfo()},paymentDataReady:function(){return this.paymentType===B.B.DOMAIN||this.paymentPricesLoaded},getExpressPrice:function(){var t,e=null===(t=this.getPrice)||void 0===t?void 0:t.call(this,this.billingCycle);return(0,Zt.W)({price:e,monthlyPrice:this.monthlyPrice,isUpgrade:this.isUpgradeSnapshot,promoCodeData:this.promoCodeData})}}},ue=(0,et.A)(ce,[["render",function(t,e,o,x,M,N){var U=this,B=(0,n.g2)("Icon"),X=(0,n.g2)("PaymentPageCardDetails"),H=(0,n.g2)("PromoCode"),W=(0,n.g2)("PaymentSummary"),R=(0,n.g2)("Cta"),Q=(0,n.g2)("ExpressPaymentButton"),G=(0,n.g2)("PaymentBanner"),z=(0,n.g2)("Faq"),V=(0,n.g2)("NonEditorPageFrame");return(0,n.uX)(),(0,n.Wv)(V,{"page-title":N.setPageTitles.title,"page-sub-title":N.setPageTitles.subTitle,onGoBack:e[5]||(e[5]=function(e){return t.$router.back()})},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",i,[(0,n.Lk)("div",a,[(0,n.Lk)("div",s,[(0,n.Lk)("div",l,[(0,n.Lk)("div",c,[M.paymentType===M.PaymentPageTypeEnum.SUBSCRIPTION?((0,n.uX)(),(0,n.CE)("p",u,"Your subscription")):((0,n.uX)(),(0,n.CE)("p",d,"Your domain"))]),M.paymentType===M.PaymentPageTypeEnum.SUBSCRIPTION&&N.paymentPricesLoaded?((0,n.uX)(),(0,n.CE)("div",p,[(0,n.Lk)("div",{class:(0,r.C4)(["content-box plan-card",{selected:"monthly"===U.billingCycle,disabled:N.isUpgrade||"yearly"===U.promo}]),onClick:e[0]||(e[0]=function(t){return N.selectBillingCycle("monthly")})},[e[7]||(e[7]=(0,n.Lk)("div",{class:"plan-name-container"},[(0,n.Lk)("div",{class:"plan-name"},"Monthly")],-1)),(0,n.Lk)("div",f,[(0,n.Lk)("span",h,"$"+(0,r.v_)(N.monthlyPrice),1),e[6]||(e[6]=(0,n.eW)(" / month ",-1))]),(0,n.Lk)("div",m,"US$"+(0,r.v_)(N.monthlyPrice)+" paid monthly",1)],2),(0,n.Lk)("div",{class:(0,r.C4)(["content-box plan-card",{selected:"yearly"===U.billingCycle,disabled:"monthly"===U.promo}]),onClick:e[1]||(e[1]=function(t){return N.selectBillingCycle("yearly")})},[(0,n.Lk)("div",v,[e[8]||(e[8]=(0,n.Lk)("div",{class:"plan-name"},"Yearly",-1)),"monthly"!==M.promo?((0,n.uX)(),(0,n.CE)("div",g,"5 months free")):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",y,[(0,n.Lk)("span",b,"$"+(0,r.v_)(N.yearlyPricePerMonth),1),e[9]||(e[9]=(0,n.eW)(" / month ",-1))]),(0,n.Lk)("div",k,"US$"+(0,r.v_)(N.yearlyPrice)+" paid yearly",1)],2)])):M.paymentType===M.PaymentPageTypeEnum.DOMAIN?((0,n.uX)(),(0,n.CE)("div",S,[(0,n.Lk)("div",P,[(0,n.Lk)("div",w,[(0,n.Lk)("div",C,(0,r.v_)(M.domainName),1),(0,n.Lk)("div",O,(0,r.v_)(M.domainSubtitle),1),(0,n.Lk)("div",A,"Renewal date: "+(0,r.v_)(M.renewalDate),1)]),(0,n.Lk)("div",null,[((0,n.uX)(),(0,n.CE)("button",{onClick:e[2]||(e[2]=function(){return N.deleteItem&&N.deleteItem.apply(N,arguments)}),key:"delete","tooltip-position":"left",tooltip:"Delete",class:"delete has-tooltip"},[(0,n.bF)(B,{"icon-name":"delete"})]))])])])):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",$,[e[10]||(e[10]=(0,n.Lk)("div",{class:"content-title"},[(0,n.Lk)("p",null,"Payment methods")],-1)),(0,n.Lk)("div",T,[(0,n.bF)(X,{ref:"cardDetailsRef","user-details":M.userDetails,selectedCard:M.selectedCard,"onUpdate:selectedCard":e[3]||(e[3]=function(t){return M.selectedCard=t}),selectedPaymentType:M.selectedPaymentType,"onUpdate:selectedPaymentType":e[4]||(e[4]=function(t){return M.selectedPaymentType=t})},null,8,["user-details","selectedCard","selectedPaymentType"]),(0,n.bF)(H,{onPromoCodeApplied:N.handlePromoCodeApplied},null,8,["onPromoCodeApplied"])])])]),(0,n.Lk)("div",E,[(0,n.Lk)("div",I,[e[11]||(e[11]=(0,n.Lk)("div",{class:"content-title"},[(0,n.Lk)("p",null,"Summary")],-1)),(0,n.Lk)("div",L,[N.paymentDataReady?((0,n.uX)(),(0,n.Wv)(W,{key:0,"selected-plan-data":{billingCycle:M.billingCycle,price:N.getPrice(M.billingCycle),domainData:N.domainData,promoCodeData:M.promoCodeData,type:M.paymentType,isUpgrade:U.isUpgradeSnapshot,userWasfree:N.userWasfree}},null,8,["selected-plan-data"])):(0,n.Q3)("v-if",!0)]),e[12]||(e[12]=(0,n.Lk)("div",{class:"payment-info"}," By clicking âPayâ you agree to our Terms of Service and Privacy Policy. Your subscription will renew automatically unless cancelled. ",-1))]),(0,n.Lk)("div",null,[["card","new"].includes(M.selectedPaymentType)?((0,n.uX)(),(0,n.Wv)(R,{key:0,t
2ype:"primary",disabled:N.checkDisabled,onClick:N.handleSubmit,id:"submit"},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(M.buttonLabel),1)]}),_:1},8,["disabled","onClick"])):(0,n.Q3)("v-if",!0),N.paymentDataReady&&["apple","google"].includes(M.selectedPaymentType)?((0,n.uX)(),(0,n.Wv)(Q,{key:N.getExpressPrice,"total-amount":N.getExpressPrice,currency:M.currentSubscriptionPlan.currency||"usd",email:M.userDetails.email,onPaymentConfirmed:N.handleExpressCheckoutPayment,onPaymentError:N.handlePaymentError},null,8,["total-amount","currency","email","onPaymentConfirmed","onPaymentError"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",F,[(0,n.Lk)("div",_,[(0,n.bF)(B,{"icon-name":"close"}),e[13]||(e[13]=(0,n.eW)("Cancel anytime ",-1))]),(0,n.Lk)("div",j,[(0,n.bF)(B,{"icon-name":"check"}),e[14]||(e[14]=(0,n.eW)("VAT included ",-1))]),(0,n.Lk)("div",D,[(0,n.bF)(B,{"icon-name":"lock"}),e[15]||(e[15]=(0,n.eW)("Stripe SSL encrypted payment ",-1))])])]),(0,n.bF)(G)])]),(0,n.bF)(z,{"faq-entries":M.faqEntries},null,8,["faq-entries"])])]}),_:1},8,["page-title","page-sub-title"])}],["__scopeId","data-v-fef6e818"]]),de=ue},52002(t,e,o){"use strict";o.d(e,{A:()=>$});var n=o(20641),r=o(90033),i={class:"summary"},a={class:"price-summary"},s={class:"price-value"},l={class:"plan-details"},c={class:"plan-details"},u={key:0,class:"after-first-period"},d={class:"after-label"},p={class:"after-amount"},f={key:0,class:"discount"},h={class:"discount-description"},m={class:"discount-amount"},v={key:1,class:"discount"},g={class:"discount-description"},y={class:"discount-amount"},b={class:"total"},k={class:"total-label"},S={class:"total-price-value"};var P=o(51739),w=o(5412),C=o(46335),O=o(14831);const A={name:"PaymentSummary",components:{Icon:C.A,CtaButton:w.A},props:{selectedPlanData:{type:Object,default:{type:P.B,billingCycle:String,price:Number,promoCodeData:{type:[Object,void 0,null],default:{},required:!1},domainData:{type:[Object,void 0,null],default:{},required:!1},isUpgrade:{type:Boolean,value:!1},userWasfree:Boolean,creditUsed:Number}},isResult:{type:Boolean,default:!1}},data:function(){return{planName:"",billingCycleFrequency:"",price:"",PaymentPageTypeEnum:P.B}},mounted:function(){this.selectedPlanData&&this.setPageInfo()},watch:{selectedPlanData:{handler:function(){this.setPageInfo()}}},methods:{setPageInfo:function(){this.selectedPlanData.type===P.B.SUBSCRIPTION?(this.planName="".concat(this.selectedPlanData.billingCycle," subscription"),"yearly"===this.selectedPlanData.billingCycle?this.billingCycleFrequency="paid yearly":this.billingCycleFrequency="paid monthly",this.price="includes VAT"):this.productIsDomain&&this.selectedPlanData.domainData&&(this.planName=".".concat(this.selectedPlanData.domainData.domain.split(".")[1]," domain"),this.billingCycleFrequency="1 year subscription",this.price="costs $".concat(this.unitPrice," / year"))}},computed:{unitPrice:function(){return this.productIsDomain?(this.selectedPlanData.domainData.price/100).toString().replace(/\D/g,""):this.selectedPlanData.price},monthlyPrice:function(){return this.$store.state.userSettings.stripePrices.monthlyPrice.price},finalPrice:function(){return(0,O.W)({price:this.unitPrice,monthlyPrice:this.monthlyPrice,isUpgrade:this.selectedPlanData.isUpgrade,promoCodeData:this.selectedPlanData.promoCodeData})},discount:function(){return this.selectedPlanData.promoCodeData.amountOff?this.selectedPlanData.promoCodeData.amountOff/100:this.selectedPlanData.promoCodeData.percentOff?(this.unitPrice/100*this.selectedPlanData.promoCodeData.percentOff).toFixed(1):void 0},credit:function(){return this.userIsInvited?10:this.maxCredit},maxCredit:function(){var t=this.selectedPlanData.creditUsed?this.selectedPlanData.creditUsed:Math.abs(this.$store.state.userSettings.creditBalance),e=this.unitPrice;return this.selectedPlanData.type===P.B.SUBSCRIPTION&&(e=this.selectedPlanData.isUpgrade?this.selectedPlanData.price-this.monthlyPrice:this.selectedPlanData.price),t>e?e:t},nextBillingDateText:function(){var t=new Date;return"yearly"===this.selectedPlanData.billingCycle?t.setFullYear(t.getFullYear()+1):t.setMonth(t.getMonth()+1),t.toLocaleDateString()},showPromoBlock:function(){return!(this.selectedPlanData.isUpgrade||this.selectedPlanData.promoCodeData||this.credit||this.productIsDomain||this.isResult)},productIsDomain:function(){return this.selectedPlanData.type===P.B.DOMAIN}}};const $=(0,o(66262).A)(A,[["render",function(t,e,o,P,w,C){var O,A=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Lk)("div",i,[(0,n.Lk)("div",a,[(0,n.Lk)("div",{class:(0,r.C4)(["price-label",{domain:C.productIsDomain}])},(0,r.v_)(w.planName),3),(0,n.Lk)("div",s,"$"+(0,r.v_)(C.unitPrice),1)]),(0,n.Lk)("div",l,(0,r.v_)(w.billingCycleFrequency),1),(0,n.Lk)("div",c,(0,r.v_)("Renews on "+C.nextBillingDateText),1),o.selectedPlanData.isUpgrade||o.selectedPlanData&&o.selectedPlanData.promoCodeData?((0,n.uX)(),(0,n.CE)("div",u,[(0,n.Lk)("div",d,(0,r.v_)("After first ".concat("yearly"===(null===(O=o.selectedPlanData)||void 0===O?void 0:O.billingCycle)?"year":"month")),1
2),(0,n.Lk)("div",p,"$"+(0,r.v_)(C.unitPrice),1)])):(0,n.Q3)("v-if",!0)]),o.selectedPlanData.isUpgrade?((0,n.uX)(),(0,n.CE)("div",f,[(0,n.Lk)("div",h,[(0,n.bF)(A,{"icon-name":"discount"}),e[0]||(e[0]=(0,n.eW)(" For your ongoing monthly subscription ",-1))]),(0,n.Lk)("div",m,"- $"+(0,r.v_)(C.monthlyPrice),1)])):(0,n.Q3)("v-if",!0),o.selectedPlanData&&o.selectedPlanData.promoCodeData?((0,n.uX)(),(0,n.CE)("div",v,[(0,n.Lk)("div",g,[(0,n.bF)(A,{"icon-name":"discount"}),(0,n.eW)(" "+(0,r.v_)(o.selectedPlanData.promoCodeData.promoCode),1)]),(0,n.Lk)("div",y,"- $"+(0,r.v_)(C.discount),1)])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",b,[(0,n.Lk)("div",k,(0,r.v_)(o.isResult?"Total":"You'll pay now"),1),(0,n.Lk)("div",S,"$"+(0,r.v_)(C.finalPrice),1)])])}],["__scopeId","data-v-1224b804"]])},54380(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>Ba});var n=o(20641),r=o(90033),i=o(53751),a={class:"banner-content-container"},s={class:"banner-text-container"},l={class:"info-icon"},c={class:"message"};var u={class:"left"},d={class:"mid"},p={class:"right"};var f=o(34528),h=o(47233),m=o(61556),v={class:"user-dropdown-menu"},g=["src"],y={class:"dropdown--user-info"},b=["src"],k={class:"text-container"},S={class:"title-text"},P={class:"description-text"},w={key:0,class:"divi"},C={class:"dd-select-items"},O={class:"portfolio-switcher"},A={class:"portfolio-actions"},$={class:"main-container"},T={class:"footer-container"};var E=o(5412),I={class:"portfolio-selector__content"},L={class:"portfolio-selector__mark"},F=["src"],_={class:"portfolio-selector__copy"},j={class:"portfolio-selector__name"},D={class:"portfolio-selector__status"},x={key:0,ref:"scrollable",class:"portfolio-selector__options"},M=["onClick"],N={class:"portfolio-selector__content"},U={class:"portfolio-selector__mark"},B=["src"],X={class:"portfolio-selector__copy"},H={class:"portfolio-selector__name"},W={class:"portfolio-selector__status"};var R=o(46335),Q=o(49205),G=null;const z={name:"portfolio-selector",components:{Icon:R.A},props:{portfolios:{type:Array,default:function(){return[]}},activePortfolio:{type:Object,required:!0},selectedPortfolioShortId:{type:String,default:null},accountFaviconUrl:{type:String,default:null}},data:function(){return{showOptions:!1}},computed:{selectedPortfolio:function(){return this.activePortfolio},displayPortfolios:function(){var t=this;return this.portfolios.map(function(e){return e.shortId===t.selectedPortfolioShortId?t.activePortfolio:e})}},watch:{showOptions:function(t){var e=this;t?this.$nextTick(function(){var t=e.$refs.scrollable;G=new Q.A(t,{wheelPropagation:!1});var o=t.querySelector(".selected");t.scrollTop=o.offsetTop-o.clientHeight/2}):G.destroy(this.$refs.scrollable)}},methods:{toggleDropDown:function(){this.showOptions=!this.showOptions},selectPortfolio:function(t){this.showOptions=!1,this.$emit("select",t)},faviconUrl:function(t){return t.settings.favicon.url?t.settings.favicon.url:this.accountFaviconUrl||"/favicon/favicon.ico"},portfolioTitle:function(t){var e;return(null===(e=t.settings.socialInfo)||void 0===e?void 0:e.title)||t.name}}};var V=o(66262);const K=(0,V.A)(z,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",{class:"portfolio-selector",tabindex:"1",onBlur:e[1]||(e[1]=function(t){return s.showOptions=!1})},[(0,n.Lk)("div",{class:(0,r.C4)(["portfolio-selector__trigger",{open:s.showOptions}]),onClick:e[0]||(e[0]=function(){return l.toggleDropDown&&l.toggleDropDown.apply(l,arguments)})},[(0,n.Lk)("span",I,[(0,n.Lk)("span",L,[l.selectedPortfolio.draft?((0,n.uX)(),(0,n.Wv)(c,{key:0,class:"portfolio-selector__hidden-icon","icon-name":"hidden"})):((0,n.uX)(),(0,n.CE)("img",{key:1,src:l.faviconUrl(l.selectedPortfolio),alt:""},null,8,F))]),(0,n.Lk)("span",_,[(0,n.Lk)("span",j,(0,r.v_)(l.portfolioTitle(l.selectedPortfolio)),1),(0,n.Lk)("span",D,(0,r.v_)(l.selectedPortfolio.draft?"Unpublished":"Published"),1)])]),(0,n.bF)(c,{class:"portfolio-selector__chevron","icon-name":"dropdown-select"})],2),(0,n.bF)(i.Transition,{name:"drop-down"},{default:(0,n.k6)(function(){return[s.showOptions?((0,n.uX)(),(0,n.CE)("div",x,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.displayPortfolios,function(t){return(0,n.uX)(),(0,n.CE)("div",{key:t.shortId,class:(0,r.C4)(["portfolio-selector__option",{selected:t.shortId===o.selectedPortfolioShortId}]),onClick:function(e){return l.selectPortfolio(t.shortId)}},[(0,n.Lk)("span",N,[(0,n.Lk)("span",U,[t.draft?((0,n.uX)(),(0,n.Wv)(c,{key:0,class:"portfolio-selector__hidden-icon","icon-name":"hidden"})):((0,n.uX)(),(0,n.CE)("img",{key:1,src:l.faviconUrl(t),alt:""},null,8,B))]),(0,n.Lk)("span",X,[(0,n.Lk)("span",H,(0,r.v_)(l.portfolioTitle(t)),1),(0,n.Lk)("span",W,(0,r.v_)(t.draft?"Unpublished":"Published"),1)])]),t.shortId===o.selectedPortfolioShortId?((0,n.uX)(),(0,n.Wv)(c,{key:0,"icon-name":"checkmark"})):(0,n.Q3)("v-if",!0)],10,M)}),128))],512)):(0,n.Q3)("v-if",!0)]}),_:1})],32)}],["__scopeId","data-v-635de566"]]),Y=K,q=o.p+"src/assets/images/karma-counter.9212084d.svg",J=o.p+"src/assets/images/icon-info.7e763fea.svg",Z=o.p+"src/assets/images/icon-bell.5cc3404f.svg";var tt=o(59171);const et=o.p+"src/assets/images/icon-manage-portfolios.6983474f.svg",ot=o.p+"src/assets/images/icon-logout.af9a43ee.svg";var nt=o(84629),rt=o(76634),it=o(63067),at=o(58743);const st=o.p+"src/assets/images/upgrade-arrow-up-icon.c8b0a2ca.svg";var lt=o(28352),ct=o(94946),ut=o(65498),dt=o(33639),pt=o(67208),ft=o(45);function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function mt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function vt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?mt(Object(o),!0).forEach(function(e){gt(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):mt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function gt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ht(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function yt(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return bt(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(bt(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,bt(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,bt(d,"constructor",c),bt(c,"constructor",l),l.displayName="GeneratorFunction",bt(c,r,"GeneratorFunction"),bt(d),bt(d,r,"Generator"),bt(d,n,function(){return this}),bt(d,"toString",function(){return"[object Generator]"}),(yt=function(){return{w:i,m:p}})()}function bt(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}bt=function(t,e,o,n){function i(e,o){bt(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},bt(t,e,o,n)}function kt(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function St(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){kt(i,n,r,a,s,"next",t)}function s(t){kt(i,n,r,a,s,"throw",t)}a(void 0)})}}const Pt={name:"user-dropdown",components:{Cta:E.A,InlineSvg:f.A,PortfolioSelector:Y},props:{isSmallScreen:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!0},openNavigationDropdown:{type:Function},userDropdown:{type:Boolean,default:!1}},data:function(){return{showUserMenu:!1,karmaCounter:q,iconInfo:J,iconNotification:Z,iconAccountSettings:tt,iconManagePortfolios:et,iconReferral:at,iconUpgrade:st,iconLogOut:ot,iconPreview:nt,iconManage:et,iconUser:rt,iconUserLight:it,iconUnlock:lt,iconAdd:ct}},watch:{userDropdown:function(){this.handleEventListener(),this.userDropdown&&ft.A.getUserPortfolios().catch(function(t){console.log("Error while loading portfolios for the account menu",t)})}},methods:{handleLogout:function(){return St(yt().m(function t(){var e;return yt().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,ut.A.post("/api/auth/logout");case 1:t.n=3;break;case 2:t.p=2,e=t.v,console.error(e);case 3:return t.a(2,(0,pt.ri)(window.location.origin))}},t,null,[[0,2]])}))()},handleClickOutside:function(t){this.userDropdown&&this.$refs.userdropdown&&!this.$refs.userdropdown.contains(t.target)&&this.openNavigationDropdown("user")},handleEventListener:function(){this.userDropdown?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside)},goToUtilityPage:function(t){this.openNavigationDropdown("user"),this.$router.push("/home/".concat(t))},createNewPortfolio:function(){this.openNavigationDropdown("user"),this.$store.state.previewAndCreatePortfolioDetails.activeView=1,this.$store.state.creatingNewPortfolio=!0,this.$router.push("/home/portfolios/create-new-portfolio")},switchPortfolio:function(t){var e=this;return St(yt().m(function o(){return yt().w(function(o){for(;;)switch(o.p=o.n){case 0:if(t!==e.selectedPortfolioShortId){o.n=1;break}return o.a(2);case 1:return e.$store.state.pageIsLoading=!0,o.p=2,o.n=3,ft.A.loadPortfolioForSwitch(t);case 3:return o.n=4,e.$router.push("/home/portfolios/".concat(t));case 4:e.openNavigationDropdown("user"),o.n=6;break;case 5:o.p=5,o.v,e.$store.commit("showAlertMessage",{message:"We could not switch portfolios. Please try again.",type:"alert"});case 6:return o.p=6,e.$store.state.pageIsLoading=!1,o.f(6);case 7:return o.a(2)}},o,null,[[2,5,6,7]])}))()},openPlanAndPayment:function(){this.$router.push("/home/settings/plan-and-payment#card-detail
2s")},goToPaymentPage:function(){dt.A.track("UPGRADE_CTA_CLICKED",vt(vt({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Account dropdown",context:"Nav bar - ".concat(this.$store.getters.isCaseStudy?"Case study":"Portfolio"),to:"Payment"})),this.$router.push({path:"/home/prices"})},clickNavIcon:function(t){t.stopPropagation(),this.openNavigationDropdown("user")}},computed:{isUserInFreeOrTrialPlan:function(){return this.$store.getters.userIsFreeOrTrial},selectedPortfolioShortId:function(){return this.$store.state.portfolio.shortId}}},wt=(0,V.A)(Pt,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("InlineSvg"),u=(0,n.g2)("PortfolioSelector"),d=(0,n.g2)("Cta");return(0,n.uX)(),(0,n.CE)("div",v,[(0,n.Lk)("div",{class:(0,r.C4)(["profile-picture",{dark:o.darkScheme}]),onClick:e[0]||(e[0]=function(t){return l.clickNavIcon(t)})},[t.$store.state.user&&t.$store.state.user.image&&t.$store.state.user.image.url?((0,n.uX)(),(0,n.CE)("img",{key:0,src:t.$store.state.user.image.url,width:"36"},null,8,g)):((0,n.uX)(),(0,n.Wv)(c,{key:1,src:o.darkScheme?s.iconUser:s.iconUserLight,width:"36",height:"36"},null,8,["src"]))],2),(0,n.bF)(i.Transition,{name:"drop-down"},{default:(0,n.k6)(function(){var a,p;return[t.$store.state.user&&o.userDropdown?((0,n.uX)(),(0,n.CE)("div",{key:0,ref:"userdropdown",class:(0,r.C4)(["user-menu","dropdown",{dark:o.darkScheme}])},[(0,n.Lk)("div",y,[t.$store.state.user&&t.$store.state.user.image&&t.$store.state.user.image.url?((0,n.uX)(),(0,n.CE)("img",{key:0,src:t.$store.state.user.image.url,width:"36"},null,8,b)):((0,n.uX)(),(0,n.Wv)(c,{key:1,src:o.darkScheme?s.iconUser:s.iconUserLight,width:"36",height:"36"},null,8,["src"])),(0,n.Lk)("div",k,[(0,n.Lk)("div",S,(0,r.v_)(t.$store.state.user.name),1),(0,n.Lk)("div",P,(0,r.v_)(t.$store.state.user.email),1)])]),e[15]||(e[15]=(0,n.Lk)("div",{class:"divi"},null,-1)),o.isSmallScreen?((0,n.uX)(),(0,n.CE)("div",w)):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",C,[(0,n.Lk)("div",O,[e[6]||(e[6]=(0,n.Lk)("div",{class:"portfolio-switcher-label"},"My portfolios",-1)),null!==(a=t.$store.state.userPortfolios)&&void 0!==a&&a.length?((0,n.uX)(),(0,n.Wv)(u,{key:0,portfolios:t.$store.state.userPortfolios,"active-portfolio":t.$store.state.portfolio,"selected-portfolio-short-id":l.selectedPortfolioShortId,"account-favicon-url":t.$store.state.user.accountSettings.faviconUrl,onSelect:l.switchPortfolio},null,8,["portfolios","active-portfolio","selected-portfolio-short-id","account-favicon-url","onSelect"])):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",A,[(0,n.bF)(d,{"dark-scheme":"",size:"small",class:"new-portfolio-button",onClick:l.createNewPortfolio},{default:(0,n.k6)(function(){return[(0,n.bF)(c,{src:s.iconAdd,width:"18",height:"18"},null,8,["src"]),e[7]||(e[7]=(0,n.eW)(" New portfolio ",-1))]}),_:1},8,["onClick"])]),e[13]||(e[13]=(0,n.Lk)("div",{class:"divi"},null,-1)),(0,n.Lk)("div",$,[(0,n.Lk)("a",{class:"dd-select-item",onClick:e[1]||(e[1]=function(t){return l.goToUtilityPage("portfolios")})},[(0,n.bF)(c,{src:s.iconManagePortfolios,width:"20",height:"20"},null,8,["src"]),e[8]||(e[8]=(0,n.eW)(" Manage my portfolios ",-1))]),(0,n.Lk)("a",{class:"dd-select-item",onClick:e[2]||(e[2]=function(t){return l.goToUtilityPage("settings")})},[(0,n.bF)(c,{src:s.iconAccountSettings,width:"20",height:"20"},null,8,["src"]),e[9]||(e[9]=(0,n.eW)(" Account settings ",-1))]),l.isUserInFreeOrTrialPlan&&"past_due"!==(null===(p=t.$store.state.userSettings)||void 0===p||null===(p=p.currentSubscription)||void 0===p?void 0:p.status)||t.$store.getters.userIsCanceledPremium?((0,n.uX)(),(0,n.CE)("a",{key:0,class:"dd-select-item upgrade",onClick:e[3]||(e[3]=function(t){return l.goToPaymentPage()})},[(0,n.bF)(c,{src:s.iconUnlock,width:"20",height:"20"},null,8,["src"]),e[10]||(e[10]=(0,n.eW)(" Upgrade for full access ",-1))])):(0,n.Q3)("v-if",!0),t.$store.getters.userIsPastDue?((0,n.uX)(),(0,n.CE)("a",{key:1,class:"dd-select-item upgrade",onClick:e[4]||(e[4]=function(t){return l.openPlanAndPayment()})},[(0,n.bF)(c,{src:s.iconUnlock,width:"20",height:"20"},null,8,["src"]),e[11]||(e[11]=(0,n.eW)(" Update payment method ",-1))])):(0,n.Q3)("v-if",!0)]),e[14]||(e[14]=(0,n.Lk)("div",{class:"divi"},null,-1)),(0,n.Lk)("div",T,[(0,n.Lk)("a",{class:"dd-select-item",onClick:e[5]||(e[5]=(0,i.withModifiers)(function(t){return l.handleLogout()},["prevent"]))},[(0,n.bF)(c,{src:s.iconLogOut,width:"20",height:"20"},null,8,["src"]),e[12]||(e[12]=(0,n.eW)(" Log out ",-1))])])])],2)):(0,n.Q3)("v-if",!0)]}),_:1})])}],["__scopeId","data-v-43f0a63a"]]),Ct=o.p+"src/assets/images/notifications-empty-state.0263d673.svg";var Ot=o(7673);function At(t){return function(t){if(Array.isArray(t))return $t(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(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?$t(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(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}var Tt={key:0,ref:"notipopup",class:"notifications-nav-expanded"},Et={class:"header-row"},It={class:"title"},Lt={class:"body-row"},Ft={key:0,class:"empty-state"},_t={key:1,class:"new-notifications"},jt={class:"notifications"},Dt=["onClick"],xt={class:"notif"},Mt={class:"image"},Nt={key:0,src:Ot},Ut=["src"],Bt={class:"text-wrapper"},Xt=["innerHTML"],Ht={class:"timestamp"};function Wt(t,e){var o=null==e?void 0:e._id;return!(!t||!o)&&(!(!Array.isArray(t.seenByUserIds)||!t.seenByUserIds.includes(o))||"System"===t.type&&function(t){return Array.isArray(null==t?void 0:t.seenSystemNotifications)?t.seenSystemNotifications:[]}(e).includes(t.id))}const Rt={name:"NotificationsNavContainer",components:{UserImagePlaceholder:o(62820).A,CtaButton:E.A,NavBarPill:m.A,Icon:R.A},props:["isLight","openNavigationDropdown","notificationDropdown"],data:function(){return{isSmallScreen:!1,notifications:[],iconUser:rt,isBlinking:!1}},mounted:function(){this.setScreenSize()},watch:{notificationDropdown:function(){this.handleEventListener(),this.notificationDropdown&&this.$actions.getLatestNotifications()}},methods:{handleClickOutside:function(t){this.notificationDropdown&&this.$refs.notipopup&&!this.$refs.notipopup.contains(t.target)&&this.openNavigationDropdown("notification")},handleEventListener:function(){this.notificationDropdown?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside)},setScreenSize:function(){this.isSmallScreen=window.innerWidth<1024},openView:function(t){t.stopPropagation(),this.openNavigationDropdown("notification")},viewAll:function(){dt.A.track("NOTIFICATION_DROPDOWN_VIEW_ALL_CLICKED"),this.openNavigationDropdown("notification"),this.$router.push("/home/notifications")},startBlinkCycle:function(){var t=this;this.isBlinking=!0,setTimeout(function(){t.isBlinking=!1},15e3)},clickNotification:function(t){dt.A.track("NOTIFICATION_DROPDOWN_ITEM_CLICKED",{notification_id:t.id,notification_type:t.type,navigation:t.navigation||null,source:"navbar_dropdown",notification_title:t.message}),this.openNavigationDropdown("notification"),this.$actions.clickNotification(t)}},computed:{displayNotifications:function(){var t=function(t,e){return Array.isArray(t)?t.filter(function(t){return!Wt(t,e)}):[]}(this.$store.state.notifications,this.$store.state.user);return t.length&&this.startBlinkCycle(),t}}},Qt=(0,V.A)(Rt,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("NavBarPill"),u=(0,n.g2)("Icon"),d=(0,n.g2)("UserImagePlaceholder"),p=(0,n.g2)("CtaButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["notifications-nav-container",{dark:!o.isLight}])},[(0,n.Lk)("div",{class:(0,r.C4)(["notifications-icon",{active:o.notificationDropdown}])},[(0,n.Lk)("div",{onClick:e[0]||(e[0]=function(t){return l.openView(t)})},[s.isSmallScreen?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(c,{key:0,"icon-name":"notification","dark-scheme":!o.isLight},null,8,["dark-scheme"]))]),l.displayNotifications.length?((0,n.uX)(),(0,n.CE)("p",{key:0,class:(0,r.C4)(["noti-num",{blink:s.isBlinking}])},[(0,n.Lk)("span",null,(0,r.v_)(l.displayNotifications.length),1)],2)):(0,n.Q3)("v-if",!0)],2),(0,n.bF)(i.Transition,{name:"drop-down-from-toolbar"},{default:(0,n.k6)(function(){return[o.notificationDropdown?((0,n.uX)(),(0,n.CE)("div",Tt,[(0,n.Lk)("div",Et,[(0,n.Lk)("div",It,[e[4]||(e[4]=(0,n.Lk)("p",null,"Notifications",-1)),(0,n.bF)(u,{onClick:e[1]||(e[1]=function(t){return l.openView(t)}),iconName:"close"})])]),(0,n.Lk)("div",Lt,[l.displayNotifications.length?((0,n.uX)(),(0,n.CE)("div",_t,[(0,n.Lk)("div",jt,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.displayNotifications,function(e){return(0,n.uX)(),(0,n.CE)("div",{key:e,onClick:function(t){return l.clickNotification(e)}},[(0,n.Lk)("div",xt,[(0,n.Lk)("div",Mt,["Admin"===e.type||"System"===e.type||"Plan"===e.type?((0,n.uX)(),(0,n.CE)("img",Nt)):e.additionalInfo.userImage?((0,n.uX)(),(0,n.CE)("img",{key:1,src:e.additionalInfo.userImage,width:"36",height:"36"},null,8,Ut)):((0,n.uX)(),(0,n.Wv)(d,{key:2,name:e.additionalInfo.userName,size:"small"},null,8,["name"]))]),(0,n.Lk)("div",Bt,[(0,n.Lk)("p",{innerHTML:e.message},null,8,Xt),(0,n.Lk)("div",Ht,(0,r.v_)(t.DateTimeHelper.getMoment(e.createdAt)),1)])])],8,Dt)}),128))])])):((0,n.uX)(),(0,n.CE)("div",Ft,At(e[5]||(e[5]=[(0,n.Lk)("img",{alt:"empty-notifications",rel:"prefetch",src:Ct},null,-1),(0,n.Lk)("div",{class:"text-wrapper"},[(0,n.Lk)("h3",null,"You donât have any new notifications"),(0,n.Lk)("p",null,"You will find new notifications here if thereâs any activity in your account.")],-1)]))))]),(0,n.Lk)("div",{class:(0,r.C4)(["footer-row",{empty:!l.displayNotifications.length}])},[l.displayNotifications.length?((0,n.uX)(),(0,n.Wv)(p,{key:0,size:"small",onClick:e[2]||(e[2]=function(e){return t.$actions.setAllNotificationSeen()}),type:"link","dark-scheme":!o.isLight},{default:(0,n.k6)(function(){return At(e[6]||(e[6]=[(0,n.eW)("Mark all as read",-1)]))}),_:1},8,["dark-scheme"])):(0,n.Q3)("v-if",!0),(0,n.bF)(p,{size:"small",onClick:e[3]||(e[3]=function(){return l.viewAll()}),type:"secondary","dark-scheme":!o.isLight},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(l.displayNotifications.length?"View all":"View all notifications"),1)]}),_:1},8,["dark-scheme"])],2)],512)):(0,n.Q3)("v-if",!0)]}),_:1})],2)}],["__scopeId","data-v-6867f0dc"]]);var Gt=o(74256),zt={class:"nav-tools-share"},Vt={key:0,ref:"toolspopup",class:"tools-container"},Kt=["onClick"],Yt={class:"title-text"},qt={class:"description-text"};function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Zt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function te(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?Zt(Object(o),!0).forEach(function(e){ee(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Zt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function ee(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Jt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const oe={name:"ToolsDropdown",props:["openNavigationDropdown","toolsDropdown"],components:{NavBarPill:m.A,Icon:R.A},data:function(){return{menuItems:[{title:"Reviews",icon:"reviews-lg",description:"Get feedback directly on your portfolio",value:"review"},{title:"Job fit checker",icon:"job-fit-checker",description:"Tailor your portfolio to a job description",value:"job-fit-checker"}]}},watch:{toolsDropdown:function(t){this.handleEventListener(),t&&dt.A.track("TOOLS_CTA_DROPDOWN_VIEWED",te(te({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.FAKE_DOOR,source:"Navigation Bar"}))}},methods:{handleMenuItemClick:function(t){switch(t){case"review":this.openReviews();break;case"job-fit-checker":this.openJobFitChecker()}},handleClickOutside:function(t){this.toolsDropdown&&this.$refs.toolspopup&&!this.$refs.toolspopup.contains(t.target)&&this.openNavigationDropdown("tools")},handleEventListener:function(){this.toolsDropdown?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside)},openReviews:function(){var t=window.location.origin+"/myreviews/"+this.$store.state.portfolio.shortId;window.open(t,"_blank").focus()},openJobFitChecker:function(){dt.A.track("JFC_NAV_DROPDOWN_CLICKED",te(te({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Main Nav Dropdown"}));var t=window.location.origin+"/jobfitchecker/"+this.$store.state.portfolio.shortId;window.open(t,"_blank").focus()},openView:function(t){t.stopPropagation(),this.openNavigationDropdown("tools")}}},ne=(0,V.A)(oe,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("NavBarPill"),u=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",zt,[(0,n.Lk)("div",{onClick:e[0]||(e[0]=function(t){return l.openView(t)})},[(0,n.bF)(c,{label:"Tools","icon-name":"tools",active:o.toolsDropdown,"dark-scheme":""},null,8,["active"])]),(0,n.bF)(i.Transition,{name:"drop-down-from-toolbar"},{default:(0,n.k6)(function(){return[o.toolsDropdown?((0,n.uX)(),(0,n.CE)("div",Vt,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.menuItems,function(t){return(0,n.uX)(),(0,n.CE)("div",{class:"drop-down-item",onClick:function(e){return l.handleMenuItemClick(t.value)}},[(0,n.bF)(u,{height:30,width:30,"icon-name":t.icon},null,8,["icon-name"]),(0,n.Lk)("div",null,[(0,n.Lk)("div",Yt,(0,r.v_)(t.title),1),(0,n.Lk)("div",qt,(0,r.v_)(t.description),1)])],8,Kt)}),256))],512)):(0,n.Q3)("v-if",!0)]}),_:1})])}],["__scopeId","data-v-3d47eb01"]]);var re={class:"nav-portfolio-share"},ie={key:0,ref:"portfoliopopup",class:"portfolio-share-container"},ae={class:"body-container"},se={class:"title-text"},le={key:1,class:"share-container"},ce={class:"card"},ue={class:"url-wrapper"},de=["src"],pe={key:0,class:"card preview-card"},fe=["src"],he={key:1,class:"image-empty-state"},me={class:"preview-text"},ve={class:"social-title"},ge={class:"social-desc"},ye={key:1},be={class:"dd-container"},ke={class:"dd-select-items"};var Se=o(43852),Pe=o(33346),we=o(97073),Ce=o(76107);function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Ae(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function $e(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?Ae(Object(o),!0).forEach(function(e){Te(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ae(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Te(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Oe(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Oe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Ee={name:"SharePortfolioNavContainer",props:["openNavigationDropdown","shareDropdownOpen"],components:{TertiaryButton:o(1868).A,CtaButton:E.A,MessageHighlight:Pe.A,Tag:Se.A,NavBarPill:m.A,Icon:R.A},data:function(){return{copied:!1}},watch:{shareDropdownOpen:function(){this.handleEventListener()}},methods:{handleClickOutside:function(t){this.shareDropdownOpen&&this.$refs.portfoliopopup&&!this.$refs.portfoliopopup.contains(t.target)&&this.openNavigationDropdown("share")},handleEventListener:function(){this.shareDropdownOpen?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside)},openURLEdit:function(){this.blocked||(this.$store.commit("openSidePanel",{panelPath:"settings/domain-and-url"}),this.openNavigationDropdown("share"))},openEditLinkPreview:function(){this.blocked||(this.$store.commit("openSidePanel",{panelPath:"settings/share"}),this.openNavigationDropdown("share"))},openUploadFavicon:function(){this.$store.commit("openSidePanel",{panelPath:"settings/favicon"}),this.openNavigationDropdown("share")},openPrices:function(){dt.A.track("UPGRADE_CTA_CLICKED",$e($e({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Share ".concat(this.pageIsCaseStudy?"Case study":"Portfolio"," modal"),context:"Editor - ".concat(this.pageIsCaseStudy?"Case study":"Portfolio"),to:"Prices"})),this.$router.push("/home/prices")},copyUrl:function(){var t=this;navigator.clipboard.writeText(this.portfolioURL),this.copied=!0,setTimeout(function(){t.copied=!1},3e3),(0,we.f0)("Copy portfolio share link",{event_category:"Portfolio editor",event_label:"User: ".concat(this.$store.state.user._id,", ").concat(this.portfolioURL)})},openView:function(t){t.stopPropagation(),this.openNavigationDropdown("share")}},computed:{portfolio:function(){return this.$store.state.portfolio},portfolioURL:function(){return this.$store.getters.pageViewURL.replace(/^https?:\/\//,"")},pageIsCaseStudy:function(){return this.$store.getters.isCaseStudy},blocked:function(){var t;return!(0,Ce.w3)(Gt.O5.SHARE_LINK,this.$store.state.userSettings.currentSubscriptionPlan,null===(t=this.$store.state.userSettings.currentSubscription)||void 0===t?void 0:t.status)},notPublished:function(){return this.pageIsCaseStudy?!!this.portfolio.draft||this.$store.state.project.draft:this.portfolio.draft},faviconUrl:function(){return this.$store.state.portfolio.settings.favicon.url?this.$store.state.portfolio.settings.favicon.url:this.$store.state.user.accountSettings.faviconUrl?this.$store.state.user.accountSettings.faviconUrl:"/favicon/favicon.ico"},settings:function(){return this.$store.getters.isCaseStudy?this.project.settings:this.portfolio.settings},project:function(){return this.$store.state.project},mainHeaderSection:function(){return this.project.sections.find(function(t){return"MainHeader"===t.type})},hasShareSettings:function(){return this.settings.socialInfo&&this.settings.socialInfo.image&&this.settings.socialInfo.title&&this.settings.socialInfo.subtitle}}},Ie=(0,V.A)(Ee,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("NavBarPill"),u=(0,n.g2)("MessageHighlight"),d=(0,n.g2)("Icon"),p=(0,n.g2)("CtaButton"),f=(0,n.g2)("TertiaryButton"),h=(0,n.g2)("Tag");return(0,n.uX)(),(0,n.CE)("div",re,[(0,n.Lk)("div",{onClick:e[0]||(e[0]=function(t){return l.openView(t)})},[(0,n.bF)(c,{label:"Share","icon-name":"share",active:o.shareDropdownOpen,"dark-scheme":""},null,8,["active"])]),(0,n.bF)(i.Transition,{name:"drop-down-from-toolbar"},{default:(0,n.k6)(function(){return[o.shareDropdownOpen?((0,n.uX)(),(0,n.CE)("div",ie,[(0,n.Lk)("div",ae,[(0,n.Lk)("p",se,(0,r.v_)("Share ".concat(l.pageIsCaseStudy?"case study":"portfolio")),1),l.notPublished?((0,n.uX)(),(0,n.Wv)(u,{key:0,"dark-scheme":"",type:"info",message:"Publish your ".concat(l.pageIsCaseStudy&&!l.portfolio.draft?"case study":"portfolio"," to get a shareable link.")},null,8,["message"])):((0,n.uX)(),(0,n.CE)("div",le,[(0,n.Lk)("div",ce,[(0,n.Lk)("div",ue,[(0,n.Lk)("img",{class:"favicon-preview",alt:"favicon",src:l.faviconUrl},null,8,de),(0,n.Lk)("span",null,(0,r.v_)(s.copied?"Link copied!":l.portfolioURL),1
2)]),(0,n.bF)(p,{"dark-scheme":"",size:"tiny",type:"icon subtle",onClick:l.copyUrl},{default:(0,n.k6)(function(){return[(0,n.bF)(d,{"icon-name":"copy"})]}),_:1},8,["onClick"])]),l.hasShareSettings?((0,n.uX)(),(0,n.CE)("div",pe,[l.settings.socialInfo.image.url?((0,n.uX)(),(0,n.CE)("img",{key:0,alt:"user-social-image",class:"user-social-image",src:l.settings.socialInfo.image.url},null,8,fe)):((0,n.uX)(),(0,n.CE)("div",he,[(0,n.bF)(f,{onClick:l.openEditLinkPreview,"dark-scheme":"",size:"small",text:"Set preview image",icon:"add-media"},null,8,["onClick"])])),(0,n.Lk)("div",me,[(0,n.Lk)("div",ve,(0,r.v_)(l.settings.socialInfo.title),1),(0,n.Lk)("div",ge,(0,r.v_)(l.settings.socialInfo.subtitle),1)])])):((0,n.uX)(),(0,n.CE)("div",ye,[(0,n.bF)(u,{"dark-scheme":"",message:"Edit your link preview to control how it appears."})]))]))]),(0,n.Lk)("div",be,[(0,n.Lk)("div",ke,[(0,n.Lk)("a",{class:(0,r.C4)(["dd-select-item"]),onClick:e[1]||(e[1]=function(){return l.openEditLinkPreview&&l.openEditLinkPreview.apply(l,arguments)})},[(0,n.bF)(d,{height:24,width:24,"icon-name":"share"}),e[4]||(e[4]=(0,n.eW)(" Edit link preview ",-1))]),(0,n.Lk)("a",{class:(0,r.C4)(["dd-select-item",{blocked:l.blocked}]),onClick:e[2]||(e[2]=function(){return l.openURLEdit&&l.openURLEdit.apply(l,arguments)})},[(0,n.bF)(d,{height:24,width:24,"icon-name":"web"}),e[5]||(e[5]=(0,n.eW)(" Get a custom domain ",-1)),l.blocked?((0,n.uX)(),(0,n.Wv)(h,{key:0,"icon-name":"lock",text:"Upgrade to unlock","dark-scheme":"",onClick:(0,i.withModifiers)(l.openPrices,["stop"])},null,8,["onClick"])):(0,n.Q3)("v-if",!0)],2),(0,n.Lk)("a",{class:(0,r.C4)(["dd-select-item"]),onClick:e[3]||(e[3]=function(){return l.openUploadFavicon&&l.openUploadFavicon.apply(l,arguments)})},[(0,n.bF)(d,{height:24,width:24,"icon-name":"upload"}),e[6]||(e[6]=(0,n.eW)(" Upload browser icon ",-1))])])])],512)):(0,n.Q3)("v-if",!0)]}),_:1})])}],["__scopeId","data-v-dcc988d8"]]),Le=Ie;var Fe=o(3439),_e={class:"origin-wrapper"},je={key:0,class:"case-study-title"};var De=o(68438),xe={key:0,class:"text-wrapper"};var Me=Object.freeze({STATUS:"STATUS",PASSWORD:"PASSWORD"}),Ne=Object.freeze({SMALL:"SMALL",DEFAULT:"DEFAULT"});const Ue={name:"CaseStudyStatusLabel",components:{Icon:R.A},props:{type:{type:String,default:Me.STATUS},size:{type:String,default:Ne.DEFAULT},project:{type:Object,default:null}},computed:{isSmall:function(){return this.size===Ne.SMALL},isHidden:function(){return this.project?this.project.draft:this.$store.state.project.draft},isPwProtected:function(){return this.project?this.project.password:this.$store.state.project.password},sizeClass:function(){return this.isSmall?"small":""},iconName:function(){return this.type===Me.PASSWORD?this.isPwProtected?"lock":"unlock":this.isHidden?"hidden":"visible"},labelText:function(){return this.type===Me.PASSWORD?this.isPwProtected?"Password-protected":"Public":this.isHidden?"Hidden":"Visible"}}},Be={name:"BreadCrumb",components:{CaseStudyStatusLabel:(0,V.A)(Ue,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["hidden-case-study-tag-container",[s.sizeClass,{hidden:s.isHidden}]])},[(0,n.bF)(l,{"icon-name":s.iconName},null,8,["icon-name"]),s.isSmall?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",xe,(0,r.v_)(s.labelText),1))],2)}],["__scopeId","data-v-b9cc5262"]]),Icon:R.A},data:function(){return{CASE_STUDY_STATUS_LABEL_SIZE:Ne}},methods:{homeClickHandler:function(){this.$store.getters.isCaseStudy&&this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))},getCaseStudyTitle:function(t){var e;if("string"==typeof(null==t?void 0:t.name)&&t.name.trim().length>0)return t.name;var o=t.sections.find(function(t){return(null==t?void 0:t.type)===Gt.iK.MAIN_HEADER}),n=null==o||null===(e=o.title)||void 0===e?void 0:e.text;return"string"==typeof n&&n.trim().length>0?(0,De.sZ)(n):"Untitled case study"}}},Xe=(0,V.A)(Be,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon"),c=(0,n.g2)("CaseStudyStatusLabel");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["breadcrumb",{"case-study":t.$store.getters.isCaseStudy}])},[(0,n.Lk)("div",_e,[(0,n.Lk)("div",{onClick:e[0]||(e[0]=function(t){return s.homeClickHandler()}),class:(0,r.C4)(["base",{inactive:t.$store.getters.isCaseStudy}])},(0,r.v_)(t.$store.getters.isCaseStudy?"Home":t.$store.state.project.name),3),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.Wv)(l,{key:0,"icon-name":"chevron-right",class:"separator"})):(0,n.Q3)("v-if",!0)]),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.CE)("div",je,(0,r.v_)(s.getCaseStudyTitle(t.$store.state.project)),1)):(0,n.Q3)("v-if",!0),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.Wv)(c,{key:1,size:a.CASE_STUDY_STATUS_LABEL_SIZE.SMALL},null,8,["size"])):(0,n.Q3)("v-if",!0)],2)}
2],["__scopeId","data-v-0d6f775a"]]);var He=o(46097),We={class:"save-indicator"};const Re={name:"save-indicator",computed:{setSavingStatusText:function(){return this.$store.state.savingProject?"Saving...":"Saved"}}},Qe=(0,V.A)(Re,[["render",function(t,e,o,i,a,s){return(0,n.uX)(),(0,n.CE)("div",We,(0,r.v_)(s.setSavingStatusText),1)}],["__scopeId","data-v-c282f4a2"]]);function Ge(t){return function(t){if(Array.isArray(t))return ze(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 ze(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ze(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 ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var Ve={class:"publish-template-portfolio"},Ke={key:0,class:"warning-banner"},Ye={class:"template-input-fields"},qe={class:"input-container"},Je={class:"input-group"},Ze={class:"input-sub-group"},to={class:"info-helper-container"},eo={class:"info-box"},oo={class:"input-container"},no={class:"input-group"},ro={class:"input-container"},io={class:"input-group"},ao={class:"input-wrapper"},so=["disabled"],lo=["value"],co={class:"item-label"},uo=["onClick"],po={key:0,class:"assist-text"},fo={class:"input-container"},ho={class:"input-group"},mo={class:"input-wrapper"},vo=["disabled"],go=["value"],yo={class:"item-label"},bo=["onClick"],ko={key:0,class:"assist-text"},So={class:"input-container template-case-study"},Po={class:"input-group"},wo={class:"input-wrapper"},Co=["disabled"],Oo=["value"],Ao={class:"input-container"},$o={class:"slider-input"},To={class:"label"};var Eo=o(79271),Io=o(8851),Lo=o(55445),Fo=o(13124),_o=o(16485),jo=o(28304),Do=o(99210),xo=o(432),Mo=o.n(xo),No=o(5729);function Uo(t){return Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(t)}function Bo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Xo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Bo(Object(o),!0).forEach(function(e){Ho(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bo(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Ho(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Uo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Uo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Wo(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Ro(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");
2if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Ro(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Ro(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Ro(d,"constructor",c),Ro(c,"constructor",l),l.displayName="GeneratorFunction",Ro(c,r,"GeneratorFunction"),Ro(d),Ro(d,r,"Generator"),Ro(d,n,function(){return this}),Ro(d,"toString",function(){return"[object Generator]"}),(Wo=function(){return{w:i,m:p}})()}function Ro(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Ro=function(t,e,o,n){function i(e,o){Ro(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Ro(t,e,o,n)}function Qo(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Go(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Qo(i,n,r,a,s,"next",t)}function s(t){Qo(i,n,r,a,s,"throw",t)}a(void 0)})}}var zo=function(){return{portfolioShortId:null,templateId:null,templateCaseStudyProjectId:null,status:Gt.np.DRAFT,name:"",isNew:!1,defaults:{persona:"",availableFontPairs:[],availableColorPalettes:[]}}};const Vo={name:"PublishTemplatePortfolio",components:{Cta:E.A,ModalWrapper:Eo.A,ModalHeader:Io.A,ModalBody:Lo.A,ModalFooter:Fo.A,InputField:_o.A,ToggleSwitch:jo.A,Icon:R.A,draggable:Mo()},data:function(){return{templatePortfolio:zo(),publishLoading:!1,showTemplateDetailsModal:!1,isPublishModal:!1,showErrors:!1,selectedColorPalette:"",selectedFontPair:"",allColorPalettes:[],allCaseStudiesLoaded:!1,modalErrorMessage:"",currentDefaultPaletteId:null}},mounted:function(){var t=this;return Go(Wo().m(function e(){return Wo().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.loadPalettes();case 1:return e.n=2,t.loadCaseStudies();case 2:t.isTemplatePortfolio&&t.getTemplateData();case 3:return e.a(2)}},e)}))()},beforeUnmount:function(){this.$store.commit("setBlockedEditor",!1)},computed:{portfolio:function(){return this.$store.state.portfolio},isTemplatePortfolio:function(){return this.portfolio.isTemplatePortfolio},isTemplatePublished:function(){return this.templatePortfolio.status===Gt.np.PUBLISHED},fontPairs:function(){return this.$store.state.design.fontPairs},availableCaseStudies:function(){return(this.$store.state.allCaseStudyPages||[]).filter(function(t){return!t.deletedAt&&"caseStudy"===t.type})},isFormValid:function(){var t=this.templatePortfolio,e=t.name,o=t.templateId,n=t.defaults;return!!e&&""!==e.trim()&&!!o&&""!==o.trim()&&!!n.persona&&""!==n.persona.trim()&&4===n.availableColorPalettes.length&&4===n.availableFontPairs.length}},methods:{openTemplateDetailsModal:function(){var t=this;this.isPublishModal=!1,this.showTemplateDetailsModal=!0,this.showErrors=!1,this.$nextTick(function(){t.initializeDefaultsFromPortfolio()})},openPublishModal:function(){this.isPublishModal=!0,this.showTemplateDetailsModal=!0,this.showErrors=!1},closeTemplateDetailsModal:function(){this.showTemplateDetailsModal=!1,this.isPublishModal=!1,this.showErrors=!1},togglePublish:function(){this.isTemplatePublished?this.changeTemplateStatus():this.openPublishModal(),this.modalErrorMessage=""},getTemplateData:function(){var t=this;return Go(Wo().m(function e(){var o,n,r;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,ut.A.get("/api/portfolio-template/".concat(t.portfolio.shortId));case 1:o=e.v,n=o.data,t.setTemplateData(n),t.changeEditorState(),e.n=3;break;case 2:e.p=2,r=e.v,t.notifyFailure("Failed to get template data.",r);case 3:return e.a(2)}},e,null,[[0,2]])}))()},loadPalettes:function(){var t=this;return Go(Wo().m(function e(){var o;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,Do.KN)();case 1:t.allColorPalettes=e.v,e.n=3;break;case 2:e.p=2,o=e.v,console.error("Failed to fetch color palettes",o),t.allColorPalettes=[];case 3:return e.a(2)}},e,null,[[0,2]])}))()},loadCaseStudies:function(){var t=this;return Go(Wo().m(function e(){var o,n;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null===(o=t.$store.state.allCaseStudyPages)||void 0===o||!o.length){e.n=1;break}return t.allCaseStudiesLoaded=!0,e.a(2);case 1:return e.p=1,e.n=2,ft.A.getAllCaseStudyPages(t.$store.state.user._id);case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("Failed to fetch case studies",n);case 4:return e.p=4,t.allCaseStudiesLoaded=!0,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}))()},setTemplateData:function(t){var e,o,n=this.$store.state.portfolio.designSettings;this.currentDefaultPaletteId=(null==n||null===(e=n.colorPalette)||void 0===e?void 0:e.id)||null;var r=(null==n?void 0:n.fontPairId)||null;null!=t&&null!==(o=t.defaults)&&void 0!==o&&null!==(o=o.availableFontPairs)&&void 0!==o&&o.length&&(t.defaults.availableFontPairs=t.defaults.availableFontPairs.map(function(t){return Xo(Xo({},t),{},{isDefault:t._id===r})})),this.templatePortfolio=t},removePortfolioAsTemplate:function(){var t=this;return Go(Wo().m(function e(){var o;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,ut.A.delete("/api/portfolio-template/".concat(t.portfolio.shortId));case 1:t.$store.commit("removePortfolioTemplate",t.templatePortfolio),t.templatePortfolio=zo(),t.$store.state.portfolio.isTemplatePortfolio=!1,t.closeTemplateDetailsModal(),t.notifySuccess("Successfully removed portfolio as template."),e.n=3;break;case 2:e.p=2,o=e.v,t.notifyFailure("Failed to remove portfolio as template.",o);case 3:return e.a(2)}},e,null,[[0,2]])}))()},saveTemplate:function(){var t=this;return Go(Wo().m(function e(){var o,n,r,i,a,s;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.isFormValid){e.n=1;break}return t.showErrors=!0,t.notifyFailure("Please fill in all required fields."),e.a(2);case 1:return o=Xo(Xo({},t.templatePortfolio),{},{portfolioShortId:t.portfolio.shortId,title:t.templatePortfolio.name,defaults:t.templatePortfolio.defaults}),n=t.isTemplatePortfolio,r=n?"put":"post",e.p=2,e.n=3,ut.A[r]("/api/portfolio-template",o);case 3:i=e.v,a=i.data,t.$store.state.portfolio.isTemplatePortfolio=!0,t.$store.state.portfolio.templateSettings.templateId=t.templatePortfolio.templateId,t.setTemplateData(a),t.$store.commit("updatePortfolioTemplates",a),t.closeTemplateDetailsModal(),t.notifySuccess(n?"Successfully updated template.":"Successfully set portfolio as template."),e.n=5;break;case 4:e.p=4,s=e.v,t.notifyFailure(n?"Failed to update template.":"Failed to set portfolio as template.",s);case 5:return e.a(2)}},e,null,[[2,4]])}))()},changeTemplateStatus:function(){var t=this;return Go(Wo().m(function e(){var o,n,r,i,a,s;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!(o=!t.isTemplatePublished)||t.isFormValid){e.n=1;break}return t.showErrors=!0,t.notifyFailure("Please fill in all required fields before publishing."),e.a(2);case 1:return t.publishLoading=!0,n=o?Gt.np.PUBLISHED:Gt.np.DRAFT,e.p=2,e.n=3,ut.A.post("/api/portfolio-template/publish/".concat(t.templatePortfolio.templateId),{status:n});
2case 3:if(r=e.v,i=r.data,!o||!i.jobId){e.n=5;break}return e.n=4,(0,No.r)(i.jobId,{maxAttempts:120,failureMessage:"Template publish failed.",timeoutMessage:"Template publish timed out."});case 4:return a=e.v,t.$store.commit("setPortfolioPublishedState",!1),t.setTemplateData(a),t.$store.commit("updatePortfolioTemplates",a),t.notifySuccess("Template successfully published as live."),t.closeTemplateDetailsModal(),t.changeEditorState(),e.a(2);case 5:t.$store.commit("setPortfolioPublishedState",n!==Gt.np.PUBLISHED),t.setTemplateData(i),t.$store.commit("updatePortfolioTemplates",i),t.notifySuccess(o?"Template successfully published as live.":"Template successfully unpublished and returned to draft."),t.closeTemplateDetailsModal(),t.changeEditorState(),e.n=7;break;case 6:e.p=6,s=e.v,t.modalErrorMessage=o?"Template publish failed. Please try again.":"Failed to update template status.",t.notifyFailure(t.modalErrorMessage,s);case 7:return e.p=7,t.publishLoading=!1,e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}))()},setTemplateIsNewTag:function(){var t=this;return Go(Wo().m(function e(){var o;return Wo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.templatePortfolio.status===Gt.np.DRAFT){e.n=4;break}return e.p=1,e.n=2,ut.A.patch("/api/portfolio-template/".concat(t.templatePortfolio.portfolioShortId,"/is-new"),{isNew:t.templatePortfolio.isNew});case 2:t.notifySuccess('Successfully updated template "isNew" tag'),e.n=4;break;case 3:e.p=3,o=e.v,t.notifyFailure('Failed to update "isNew" tag',o);case 4:return e.a(2)}},e,null,[[1,3]])}))()},addColorPalette:function(){var t=this.selectedColorPalette;t&&(!this.templatePortfolio.defaults.availableColorPalettes.includes(t)&&this.templatePortfolio.defaults.availableColorPalettes.length<4&&(this.templatePortfolio.defaults.availableColorPalettes.push(t),this.selectedColorPalette=""))},removeColorPalette:function(t){var e=this.templatePortfolio.defaults.availableColorPalettes[t];e&&e===this.currentDefaultPaletteId||this.templatePortfolio.defaults.availableColorPalettes.splice(t,1)},addFontPair:function(){var t=this.selectedFontPair;t&&(!this.templatePortfolio.defaults.availableFontPairs.find(function(e){return e._id===t._id})&&this.templatePortfolio.defaults.availableFontPairs.length<4&&(this.templatePortfolio.defaults.availableFontPairs.push(JSON.parse(JSON.stringify(t))),this.selectedFontPair=""))},removeFontPair:function(t){var e=this.templatePortfolio.defaults.availableFontPairs[t];e&&e.isDefault||this.templatePortfolio.defaults.availableFontPairs.splice(t,1)},initializeDefaultsFromPortfolio:function(){var t,e,o=(null===(t=this.$store.state.portfolio.designSettings)||void 0===t||null===(t=t.colorPalette)||void 0===t?void 0:t.id)||null,n=(null===(e=this.$store.state.portfolio.designSettings)||void 0===e?void 0:e.fontPairId)||null,r=[];if(o||r.push("Color Palette"),n||r.push("Font Pair"),r.length>0?this.modalErrorMessage="Portfolio doesn't have assigned ".concat(r.join(" and "),"."):this.modalErrorMessage="",!this.templatePortfolio.defaults.availableColorPalettes.includes(o)&&o&&this.templatePortfolio.defaults.availableColorPalettes.push(o),!this.templatePortfolio.defaults.availableFontPairs.some(function(t){return t.isDefault})&&n){var i=this.fontPairs.find(function(t){return t._id===n});i&&this.templatePortfolio.defaults.availableFontPairs.push(Xo(Xo({},JSON.parse(JSON.stringify(i))),{},{isDefault:!0}))}},notifySuccess:function(t){this.$store.commit("showAlertMessage",{message:t,type:"success"})},notifyFailure:function(t,e){console.error(t,e||""),this.$store.commit("showAlertMessage",{message:t,type:"failure"})},paletteNameById:function(t){var e;return(null===(e=this.allColorPalettes.find(function(e){return e.id===t}))||void 0===e?void 0:e.name)||t},paletteItemKey:function(t){return t},caseStudyLabel:function(t){var e,o=t.name||(0,De.sZ)(null===(e=t.sections.find(function(t){return t.type===Gt.iK.MAIN_HEADER}))||void 0===e||null===(e=e.title)||void 0===e?void 0:e.text)||t.shortId||t._id;return t.portfolioShortId?"".concat(o," (").concat(t.portfolioShortId," / ").concat(t.shortId,")"):o},changeEditorState:function(){this.isTemplatePublished?this.$store.commit("setBlockedEditor",!0):this.$store.commit("setBlockedEditor",!1)}}},Ko=(0,V.A)(Vo,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("Cta"),u=(0,n.g2)("ModalHeader"),d=(0,n.g2)("InputField"),p=(0,n.g2)("Icon"),f=(0,n.g2)("draggable"),h=(0,n.g2)("ToggleSwitch"),m=(0,n.g2)("ModalBody"),v=(0,n.g2)("ModalFooter"),g=(0,n.g2)("ModalWrapper");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",Ve,[(0,n.bF)(c,{type:l.isTemplatePortfolio?"secondary":"primary","dark-scheme":"",size:"small",onClick:(0,i.withModifiers)(l.openTemplateDetailsModal,["stop"])},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(l.isTemplatePortfolio?"Edit details":"Save as draft template"),1)]}),_:1},8,["type","onClick"]),l.isTemplatePortfolio?((0,n.uX)(),(0,n.Wv)(c,{key:0,t
2ype:"primary","dark-scheme":"",size:"small",onClick:(0,i.withModifiers)(l.togglePublish,["stop"])},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(l.isTemplatePublished?"Unpublish template":"Publish as live template"),1)]}),_:1},8,["onClick"])):(0,n.Q3)("v-if",!0)]),(0,n.bF)(g,{class:"publish-template-modal",show:s.showTemplateDetailsModal,"dark-scheme":"",onClose:l.closeTemplateDetailsModal},{"modal-header":(0,n.k6)(function(){return[(0,n.bF)(u,{"dark-scheme":"",title:s.isPublishModal?"Check details before publishing":"Template details"},null,8,["title"])]}),"modal-body":(0,n.k6)(function(){return[(0,n.bF)(m,{"text-align":"center"},{default:(0,n.k6)(function(){return[s.modalErrorMessage?((0,n.uX)(),(0,n.CE)("div",Ke,(0,r.v_)(s.modalErrorMessage),1)):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",Ye,[(0,n.Lk)("div",qe,[e[11]||(e[11]=(0,n.Lk)("div",{class:"input-group-title"},"Key details",-1)),(0,n.Lk)("div",Je,[(0,n.bF)(d,{"dark-scheme":"",label:"Template name",placeholder:"Template name",modelValue:s.templatePortfolio.name,"onUpdate:modelValue":e[0]||(e[0]=function(t){return s.templatePortfolio.name=t}),disabled:s.isPublishModal,"display-alert":s.showErrors&&!s.templatePortfolio.name.trim()},{alert:(0,n.k6)(function(){return Ge(e[9]||(e[9]=[(0,n.Lk)("div",{class:"assist-text"},"Required field.",-1)]))}),_:1},8,["modelValue","disabled","display-alert"]),(0,n.Lk)("div",Ze,[(0,n.bF)(d,{"dark-scheme":"",label:"Template ID",placeholder:"Template ID",modelValue:s.templatePortfolio.templateId,"onUpdate:modelValue":e[1]||(e[1]=function(t){return s.templatePortfolio.templateId=t}),disabled:s.isPublishModal,"display-alert":s.showErrors&&!s.templatePortfolio.templateId.trim()},{alert:(0,n.k6)(function(){return Ge(e[10]||(e[10]=[(0,n.Lk)("div",{class:"assist-text"},"Required field.",-1)]))}),_:1},8,["modelValue","disabled","display-alert"]),(0,n.Lk)("div",to,[(0,n.bF)(p,{class:"info-icon","icon-name":"info"}),(0,n.Lk)("div",eo,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.$store.state.portfolioTemplates,function(t){return(0,n.uX)(),(0,n.CE)("div",{key:t._id},(0,r.v_)(t.name)+" - "+(0,r.v_)(t.templateId),1)}),128))])])])])]),(0,n.Lk)("div",oo,[e[14]||(e[14]=(0,n.Lk)("div",{class:"input-group-title"},"Additional details",-1)),(0,n.Lk)("div",no,[(0,n.bF)(d,{"dark-scheme":"",label:"Persona",placeholder:"Persona",modelValue:s.templatePortfolio.defaults.persona,"onUpdate:modelValue":e[2]||(e[2]=function(t){return s.templatePortfolio.defaults.persona=t}),disabled:s.isPublishModal,"display-alert":s.showErrors&&!s.templatePortfolio.defaults.persona.trim()},{assist:(0,n.k6)(function(){return Ge(e[12]||(e[12]=[(0,n.Lk)("div",{class:"assist-text"}," Persona's name. Example: John Doe. Use the same as in hero. ",-1)]))}),alert:(0,n.k6)(function(){return Ge(e[13]||(e[13]=[(0,n.Lk)("div",{class:"assist-text"},"Required field.",-1)]))}),_:1},8,["modelValue","disabled","display-alert"])])]),(0,n.Lk)("div",ro,[e[17]||(e[17]=(0,n.Lk)("div",{class:"input-group-title"},"Color Palettes (4 required)",-1)),(0,n.Lk)("div",io,[(0,n.Lk)("div",ao,[(0,n.bo)((0,n.Lk)("select",{"onUpdate:modelValue":e[3]||(e[3]=function(t){return s.selectedColorPalette=t}),disabled:s.isPublishModal},[e[15]||(e[15]=(0,n.Lk)("option",{disabled:"",value:""},"Select a color palette",-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.allColorPalettes,function(t){return(0,n.uX)(),(0,n.CE)("option",{key:t.id,value:t.id},(0,r.v_)(t.name),9,lo)}),128))],8,so),[[i.vModelSelect,s.selectedColorPalette]]),(0,n.bF)(c,{type:"primary",size:"small",onClick:l.addColorPalette,disabled:!s.selectedColorPalette},{default:(0,n.k6)(function(){return Ge(e[16]||(e[16]=[(0,n.eW)("Add",-1)]))}),_:1},8,["onClick","disabled"])]),(0,n.bF)(f,{modelValue:s.templatePortfolio.defaults.availableColorPalettes,"onUpdate:modelValue":e[4]||(e[4]=function(t){return s.templatePortfolio.defaults.availableColorPalettes=t}),class:"selected-list","item-key":l.paletteItemKey,handle:".drag-handler",disabled:s.isPublishModal,tag:"ul"},{item:(0,n.k6)(function(t){var e=t.element,o=t.index;return[(0,n.Lk)("li",null,[(0,n.bF)(p,{"icon-name":"drag",class:"drag-handler"}),(0,n.Lk)("span",co,(0,r.v_)(l.paletteNameById(e)),1),e!==s.currentDefaultPaletteId?((0,n.uX)(),(0,n.CE)("button",{key:0,onClick:function(t){return l.removeColorPalette
2(o)},type:"button"},"Remove",8,uo)):(0,n.Q3)("v-if",!0)])]}),_:1},8,["modelValue","item-key","disabled"]),s.showErrors&&4!==s.templatePortfolio.defaults.availableColorPalettes.length?((0,n.uX)(),(0,n.CE)("div",po," You must select exactly 4 color palettes. ")):(0,n.Q3)("v-if",!0)])]),(0,n.Lk)("div",fo,[e[20]||(e[20]=(0,n.Lk)("div",{class:"input-group-title"},"Font Pairs (4 required)",-1)),(0,n.Lk)("div",ho,[(0,n.Lk)("div",mo,[(0,n.bo)((0,n.Lk)("select",{"onUpdate:modelValue":e[5]||(e[5]=function(t){return s.selectedFontPair=t}),disabled:s.isPublishModal},[e[18]||(e[18]=(0,n.Lk)("option",{disabled:"",value:""},"Select a font pair",-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.fontPairs,function(t){return(0,n.uX)(),(0,n.CE)("option",{key:t._id,value:t},(0,r.v_)(t.headline)+" / "+(0,r.v_)(t.text),9,go)}),128))],8,vo),[[i.vModelSelect,s.selectedFontPair]]),(0,n.bF)(c,{type:"primary",size:"small",onClick:l.addFontPair,disabled:!s.selectedFontPair},{default:(0,n.k6)(function(){return Ge(e[19]||(e[19]=[(0,n.eW)("Add",-1)]))}),_:1},8,["onClick","disabled"])]),(0,n.bF)(f,{modelValue:s.templatePortfolio.defaults.availableFontPairs,"onUpdate:modelValue":e[6]||(e[6]=function(t){return s.templatePortfolio.defaults.availableFontPairs=t}),class:"selected-list","item-key":"_id",handle:".drag-handler",disabled:s.isPublishModal,tag:"ul"},{item:(0,n.k6)(function(t){var e=t.element,o=t.index;return[(0,n.Lk)("li",null,[(0,n.bF)(p,{"icon-name":"drag",class:"drag-handler"}),(0,n.Lk)("span",yo,(0,r.v_)(e.headline)+" / "+(0,r.v_)(e.text),1),e.isDefault?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("button",{key:0,onClick:function(t){return l.removeFontPair(o)},type:"button"},"Remove",8,bo))])]}),_:1},8,["modelValue","disabled"]),s.showErrors&&3!==s.templatePortfolio.defaults.availableFontPairs.length?((0,n.uX)(),(0,n.CE)("div",ko," You must select exactly 3 font pairs. ")):(0,n.Q3)("v-if",!0)])]),(0,n.Lk)("div",So,[e[23]||(e[23]=(0,n.Lk)("label",{class:"input-group-title",for:"template-case-study"},"Template case study",-1)),(0,n.Lk)("div",Po,[(0,n.Lk)("div",wo,[(0,n.bo)((0,n.Lk)("select",{id:"template-case-study","onUpdate:modelValue":e[7]||(e[7]=function(t){return s.templatePortfolio.templateCaseStudyProjectId=t}),disabled:s.isPublishModal},[e[21]||(e[21]=(0,n.Lk)("option",{value:null},"No case study attached",-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.availableCaseStudies,function(t){return(0,n.uX)(),(0,n.CE)("option",{key:t._id,value:t._id},(0,r.v_)(l.caseStudyLabel(t)),9,Oo)}),128))],8,Co),[[i.vModelSelect,s.templatePortfolio.templateCaseStudyProjectId]]),e[22]||(e[22]=(0,n.Lk)("div",{class:"assist"},[(0,n.Lk)("div",{class:"assist-text"}," This case study will be duplicated into new portfolios created from this template. ")],-1))])])]),(0,n.Lk)("div",Ao,[(0,n.Lk)("div",$o,[(0,n.Lk)("div",To,[e[24]||(e[24]=(0,n.eW)(' "New" tag enabled ',-1)),(0,n.bF)(h,{"dark-scheme":"",modelValue:s.templatePortfolio.isNew,"onUpdate:modelValue":e[8]||(e[8]=function(t){return s.templatePortfolio.isNew=t}),onChange:l.setTemplateIsNewTag},null,8,["modelValue","onChange"])]),e[25]||(e[25]=(0,n.Lk)("div",{class:"params"},"Display NEW tag inside the design sidebar",-1))])])])]}),_:1})]}),"modal-footer":(0,n.k6)(function(){return[s.isPublishModal?((0,n.uX)(),(0,n.Wv)(v,{key:1},{default:(0,n.k6)(function(){return[(0,n.bF)(c,{type:"secondary","dark-scheme":"",onClick:l.closeTemplateDetailsModal},{default:(0,n.k6)(function(){return Ge(e[27]||(e[27]=[(0,n.eW)("Cancel",-1)]))}),_:1},8,["onClick"]),(0,n.bF)(c,{type:"primary","dark-scheme":"",loading:s.publishLoading,disabled:s.publishLoading||!l.isFormValid,onClick:l.changeTemplateStatus},{default:(0,n.k6)(function(){return Ge(e[28]||(e[28]=[(0,n.eW)(" Publish as live template ",-1)]))}),_:1},8,["loading","disabled","onClick"])]}),_:1})):((0,n.uX)(),(0,n.Wv)(v,{key:0},{default:(0,n.k6)(function(){return[(0,n.bF)(c,{type:"alert","dark-scheme":"",disabled:l.isTemplatePublished||!l.isTemplatePortfolio,onClick:l.removePortfolioAsTemplate},{default:(0,n.k6)(function(){return Ge(e[26]||(e[26]=[(0,n.eW)(" Delete template ",-1)]))}),_:1},8,["disabled","onClick"]),(0,n.bF)(c,{type:"primary","dark-scheme":"",disabled:l.isTemplatePublished||!l.isFormValid,onClick:l.saveTemplate},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(l.isTemplatePortfolio?"Update":"Save as draft")+" template ",1)]}),_:1},8,["disabled","onClick"])]}),_:1}))]}),_:1},8,["show","onClose"])],64)}],["__scopeId","data-v-ff464944"]]);function Yo(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return qo(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(qo(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,qo(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,qo(d,"constructor",c),qo(c,"constructor",l),l.displayName="GeneratorFunction",qo(c,r,"GeneratorFunction"),qo(d),qo(d,r,"Generator"),qo(d,n,function(){return this}),qo(d,"toString",function(){return"[object Generator]"}),(Yo=function(){return{w:i,m:p}})()}function qo(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}qo=function(t,e,o,n){function i(e,o){qo(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},qo(t,e,o,n)}function Jo(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}const Zo={name:"editor-nav-bar",components:{Cta:E.A,ToolsDropdown:ne,PublishTemplatePortfolio:Ko,SaveIndicator:Qe,UpgradeToUnlockNavContainer:He.A,BreadCrumb:Xe,ChecklistTooltip:Fe.A,SharePortfolioNavContainer:Le,NotificationsNavContainer:Qt,InlineSvg:f.A,UserDropdown:wt,NavBarPill:m.A},data:function(){return{isSmallScreen:!1,logo:h,userDropdown:!1,notificationDropdown:!1,toolsDropdown:!1,shareDropdown:!1,upgradeDropdown:!1,dropdowns:["user","notification","tools","share","upgrade"]}},beforeMount:function(){this.setScreenSize()},watch:{isSidePanelOpen:function(t){t&&this.blockedEditor&&this.toggleSidePanel()},isChecklistOpen:function(t){var e=this;t&&this.dropdowns.forEach(function(t){e["".concat(t,"Dropdown")]=!1})}},mounted:function(){var t=this;window.addEventListener("resize",this.setScreenSize,!0),this.emitter.on("open-navigation-popover-tools",function(){t.openNavigationDropdown("tools")})},unmounted:function(){window.removeEventListener("resize",this.setScreenSize,!0)},methods:{goHome:function(){this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))},goBack:function(){var t,e=this;return(t=Yo().m(function t(){return Yo().w(function(t){for(;;)switch(t.n){case 0:if(!e.isHomePage){t.n=3;break}if(!e.$route.fullPath.includes("/create-new-portfolio/template-preview")){t.n=1;break}return t.a(2,e.$router.push("/home/portfolios/create-new-portfolio"));case 1:if(!e.$route.fullPath.includes("/portfolios/create-new-portfolio")){t.n=2;break}return t.a(2,e.$router.push("/home/portfolios"));case 2:e.$router.push("/home/portfolios/".concat(e.$store.state.portfolio.shortId)),t.n=7;break;case 3:if(!e.$route.fullPath.includes("/url/edit")){t.n=5;break}return t.n=4,e.navigateTo("/home/portfolios/".concat(e.$store.state.portfolio.shortId,"/p/").concat(e.$store.state.project.shortId));case 4:t.n=7;break;case 5:return t.n=6,e.navigateTo("/home/portfolios/".concat(e.$store.state.portfolio.shortId));case 6:e.scrollToThumbnailChecklistTarget();case 7:return t.a(2)}},t)}),function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Jo(i,n,r,a,s,"next",t)}function s(t){Jo(i,n,r,a,s,"throw",t)}a(void 0)})})()}
2,navigateTo:function(t){return this.$router.push(t).catch(function(){})},scrollToThumbnailChecklistTarget:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.$store.state.checklist.activeInteraction===Gt.QT.THUMBNAIL&&this.$nextTick(function(){setTimeout(function(){var o=document.getElementById("project-grid-home-first-project")||document.getElementById("project-grid-home");o?o.scrollIntoView({behavior:"smooth",block:"center"}):e<5&&t.scrollToThumbnailChecklistTarget(e+1)},200)})},toggleSidePanel:function(t){this.$store.commit("toggleSidePanel",{panelPath:t})},openView:function(){if(!this.isViewDisabled){this.$store.commit("setTriggerAnimation",!0);var t=this.isHomePage?"/".concat(this.$store.state.portfolio.shortId):"/p/".concat(this.$store.state.portfolio.shortId,"/").concat(this.$store.state.project.shortId);(0,pt.T8)(t),this.$router.push(t)}},userName:function(){return this.$store.state.user?this.$store.state.user.name:""},setScreenSize:function(){this.isSmallScreen=window.innerWidth<1024},openNavigationDropdown:function(t){var e=this;this.isChecklistOpen&&this.$store.commit("updateActivationPopupState",!0),this.dropdowns.forEach(function(o){e["".concat(o,"Dropdown")]=o===t&&!e["".concat(o,"Dropdown")]})},publishCaseStudy:function(){this.$actions.switchProjectDraft(this.$store.state.project)}},computed:{isChecklistOpen:function(){var t;return!(null!==(t=this.$store.state)&&void 0!==t&&null!==(t=t.checklist)&&void 0!==t&&t.popUpClosed)},showBackButton:function(){return!!this.$route.params.projectShortId||this.$store.getters.isCaseStudy},isLight:function(){return this.$route.fullPath.startsWith("/reviews")},isCaseStudy:function(){return!!this.$store.state.project&&this.$store.getters.isCaseStudy},isHomePage:function(){return this.$store.getters.isHomePage},isDesignOpen:function(){return this.$route.fullPath.includes("/style")&&Object.values(Gt.jF).includes(this.$store.state.sidePanelSettings.panel)},isSettingsOpen:function(){return this.$route.fullPath.includes("/settings")&&Object.values(Gt.GJ).includes(this.$store.state.sidePanelSettings.panel)},isPagesOpen:function(){return this.$route.fullPath.includes("/pages")&&Object.values(Gt.GJ).includes(this.$store.state.sidePanelSettings.panel)},isSidePanelOpen:function(){return this.isDesignOpen||this.isSettingsOpen||this.isPagesOpen},blockedEditor:function(){return this.$store.getters.isEditorBlocked},showViewButton:function(){return!this.isSmallScreen&&(!this.blockedEditor||this.$store.state.user.isTemplateCreator)},isSaving:function(){return this.$store.state.savingProject},isTextEditorActive:function(){return this.$store.getters.isTextEditorActive},isViewDisabled:function(){return this.isSaving||this.isTextEditorActive||this.$store.state.sidePanelSettings.allowSave},isTemplatePortfolio:function(){return this.$store.state.portfolio.isTemplatePortfolio}}},tn=(0,V.A)(Zo,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("InlineSvg"),f=(0,n.g2)("NavBarPill"),h=(0,n.g2)("ChecklistTooltip"),m=(0,n.g2)("BreadCrumb"),v=(0,n.g2)("SaveIndicator"),g=(0,n.g2)("SharePortfolioNavContainer"),y=(0,n.g2)("ToolsDropdown"),b=(0,n.g2)("NotificationsNavContainer"),k=(0,n.g2)("PublishTemplatePortfolio"),S=(0,n.g2)("UpgradeToUnlockNavContainer"),P=(0,n.g2)("Cta"),w=(0,n.g2)("UserDropdown");return t.$store.state.project?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--nav-bar",{dark:!l.isLight}])},[(0,n.Lk)("div",u,[(0,n.Lk)("div",{onClick:e[0]||(e[0]=(0,i.withModifiers)(function(){return l.goHome&&l.goHome.apply(l,arguments)},["stop"])),class:"logo"},[(0,n.bF)(c,{src:s.logo,class:(0,r.C4)({dark:!l.isLight})},null,8,["src","class"])]),(0,n.Lk)("div",null,[(0,n.bo)((0,n.bF)(f,{label:"Back","icon-name":"back",onButtonClicked:e[1]||(e[1]=function(t){return l.goBack()}),"dark-scheme":!l.isLight},null,8,["dark-scheme"]),[[i.vShow,l.showBackButton]]),!t.$store.getters.isHomePage&&t.$store.state.checklist.activeInteraction?((0,n.uX)(),(0,n.Wv)(h,{key:0})):(0,n.Q3)("v-if",!0)]),l.blockedEditor?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.bF)(f,{label:"Design",class:"design-toggler","icon-name":"design",onButtonClicked:e[2]||(e[2]=function(t){return l.toggleSidePanel("style")}),active:l.isDesignOpen,"dark-scheme":!l.isLight,"data-demo-target":"design"},null,8,["active","dark-scheme"]),(0,n.bF)(f,{label:"Settings",class:"settings-toggler","icon-name":"settings",onButtonClicked:e[3]||(e[3]=function(t){return l.toggleSidePanel("settings")}),active:l.isSettingsOpen,"dark-scheme":!l.isLight,"data-demo-target":"settings"},null,8,["active","dark-scheme"]),(0,n.bF)(f,{label:"Pages",class:"pages-toggler","icon-name":"pages",onButtonClicked:e[4]||(e[4]=function(t){return l.toggleSidePanel("pages")}),active:l.isPagesOpen,"dark-scheme":!l.isLight,"data-demo-target":"pages"},null,8,["active","dark-scheme"])],64))]),(0,n.Lk)("div",d,[(0,n.bF)(m),s.isSmallScreen?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(v,{key:0}))]),(0,n.Lk)("div",p,[l.showViewButton?((0,n.uX)(),(0,n.Wv)(f,{key:0,label:"View","icon-name":"preview",onButtonClicked:l.openView,"dark-scheme":!l.isLight,disabled:l.isViewDisabled},null,8,["onButtonClicked","dark-scheme","disabled"])):(0,n.Q3)("v-if",!0),l.blockedEditor?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(g,{key:1,"share-dropdown-open":s.shareDropdown,openNavigationDropdown:l.openNavigationDropdown},null,8,["share-dropdown-open","openNavigationDropdown"])),l.isCaseStudy||l.blockedEditor?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(y,{key:2,"tools-dropdown":s.toolsDropdown,openNavigationDropdown:l.openNavigationDropdown},null,8,["tools-dropdown","openNavigationDropdown"])),(0,n.bF)(b,{notificationDropdown:s.notificationDropdown,openNavigationDropdown:l.openNavigationDropdown,isLight:l.isLight},null,8,["notificationDropdown","openNavigationDropdown","isLight"]),t.$store.state.user.isTemplateCreator?((0,n.uX)(),(0,n.Wv)(k,{key:3})):(0,n.Q3)("v-if",!0),l.blockedEditor||t.$store.state.user.isTemplateCreator||l.isCaseStudy?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(S,{key:4,"is-view-mode":!1,"upgrade-dropdown-open":s.upgradeDropdown,openNavigationDropdown:l.openNavigationDropdown},null,8,["upgrade-dropdown-open","openNavigationDropdown"])),l.isCaseStudy?((0,n.uX)(),(0,n.Wv)(P,{key:5,type:t.$store.state.project.draft?"primary":"primary subtle","dark-scheme":!l.isLight,size:"small",onClick:l.publishCaseStudy},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(t.$store.state.project.draft?"Show case study":"Hide case study"),1)]}),_:1},8,["type","dark-scheme","onClick"])):(0,n.Q3)("v-if",!0),(0,n.bF)(w,{userDropdown:s.userDropdown,openNavigationDropdown:l.openNavigationDropdown,"is-small-screen":s.isSmallScreen,"dark-scheme":!l.isLight,"data-demo-target":"account-settings"},null,8,["userDropdown","openNavigationDropdown","is-small-screen","dark-scheme"])])],2)):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-a16a3048"]]),en=tn;var on=o(36193);function nn(t){return function(t){if(Array.isArray(t))return rn(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 rn(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?rn(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 rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}var an={class:"box emos"},sn={class:"emotions"},ln=["onClick"],cn={class:"labels"},un={key:0,class:"box"},dn={class:"title"},pn={key:0},fn={class:"topics"},hn={key:1,class:"box"},mn={key:0,class:"title"},vn={class:"comment"},gn={key:0,class:"box success"},yn={class:"icon"},bn={key:1,class:"box book"},kn={key:2,class:"box book"},Sn={class:"text"},Pn={key:0,class:"footer"};var wn=o(35166),Cn=o(31415),On=o(98800),An=o(92584);const $n=o.p+"src/assets/images/icon-mid-close.c56232a1.svg",Tn=o.p+"src/assets/images/icon-check-large.5cd1d00c.svg";var En=o(38610),In=o(31745),Ln=o(96208),Fn=o(62095),_n=o(18366),jn={key:0,class:"header-container"},Dn={class:"title-wrapper"},xn={class:"title"};const Mn={name:"FeedbackPopupWrapper",components:{Icon:R.A},props:["showHeader","showFooter","modalTitle","modalSubtitle","showCloseIcon","show","close"],computed:{bottomOffset:function(){return this.$store.state.portfolioSetupComplete&&!this.$route.meta.nonEditorPage&&!this.$store.state.onboardingFinished&&this.$store.state.userSettings.currentSubscriptionPlan&&!this.$store.getters.userIsVIP&&(this.$store.getters.userIsTrial||!this.$store.getters.userIsPremium)?40:0}}},Nn=(0,V.A)(Mn,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.Wv)(i.Transition,{name:"pop-up"},{default:(0,n.k6)(function(){return[o.show?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"feedback-popup-wrapper",style:(0,r.Tr)({bottom:"".concat(l.bottomOffset+24,"px")})},[o.showHeader?((0,n.uX)(),(0,n.CE)("div",jn,[(0,n.Lk)("div",Dn,[(0,n.Lk)("h3",null,(0,r.v_)(o.modalTitle),1),o.showCloseIcon?((0,n.uX)(),(0,n.Wv)(c,{key:0,"icon-name":"close",onClick:o.close},null,8,["onClick"])):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",xn,[(0,n.Lk)("p",null,(0,r.v_)(o.modalSubtitle),1)])])):(0,n.Q3)("v-if",!0),(0,n.RG)(t.$slots,"body"),o.showFooter?(0,n.RG)(t.$slots,"footer",{key:1}):(0,n.Q3)("v-if",!0)],4)):(0,n.Q3)("v-if",!0)]}),_:3})}]]);var Un;const Bn={name:"support-survey",components:{FeedbackPopupWrapper:Nn,InlineSvg:f.A,TextArea:An.A,Cta:E.A,CheckBox:On.A},data:function(){return{popUpSurvey:!1,closeIcon:$n,checkIcon:Tn,modalTitle:"Share your experience",modalSubtitle:"How satisfied are you with UXfolio today?",emotions:[{val:1,label:"Not satisfied",icon:En},{val:2,label:null,icon:In},{val:3,label:null,icon:Ln},{val:4,label:null,icon:Fn},{val:5,label:"Very satisfied",icon:_n}],topics:["Account settings & info","UXfolio domain & URLs","Own domain & URLs","Payment & subscriptions","Customisation & editing","Other & feature requests "],survey:{emotion:null,topics:[],comment:null},commentTitles:null,sending:!1,sent:!1,bookACall:!1,showCommentTitles:!1,showReviewOption:!1,reInit:!1,showCloseState:!1}},mounted:function(){var t=this.$store.state.userSettings.supportSurveyModalSettings.waitingTime;Un=setInterval(this.initPopUp,6e4*(t||15))},methods:{initPopUp:function(){this.popUpSurvey=!0,this.$store.state.checklist.popUpClosed=!0,clearInterval(Un),this.$actions.trackEditEvent("Support modal appeared"),wn.z.updateUserInDrip("review_prompt_appeared")},reInitPopUp:function(){this.showReviewOption=!0,this.reInit=!0,this.popUpSurvey=!0,clearInterval(Un)},selectEmotion:function(t){this.survey.emotion=t.val,t.val<=3?this.commentTitles={t:"Is there anything we can help you with?",s:"You can leave a comment below."}:this.commentTitles={t:"Great to hear!",s:"Would you like to leave a comment for our team?"},t.val>2&&(this.survey.topics=[])},saveSurveyResponse:function(){var t=this;if(this.survey.emotion){this.sending=!0;var e={userId:this.$store.state.user._id,userName:this.$store.state.user.name,userCreatedAt:this.$store.state.user.createdAt,email:this.$store.state.user.email,emotion:this.survey.emotion,comment:this.survey.comment,topics:this.survey.topics};Cn.A.saveSurveyResponse(e).then(function(e){if(t.sent=!0,t.$store.state.userSettings.supportSurveyModalSettings.bookACallOption)return t.bookACall=!!t.survey.emotion&&t.survey.emotion<3;t.survey.emotion&&t.survey.emotion>3?(t.showReviewOption=!0,t.modalTitle="Share your UXfolio experience and receive a $25 Amazon gift card!"):setTimeout(function(){t.close()},3e3),t.$actions.trackEditEvent("Support modal - response sent")}).catch(function(t){console.log(t)}).finally(function(){t.sending=!1})}},openCalendar:function(){this.$store.state.activeModal="CalendlyEmbedModal",this.$actions.trackEditEvent("Support modal - Book a call modal opened"),this.close()},remindLater:function(){var t=this;this.reInit?(this.close(),wn.z.updateUserInDrip("review_prompt_dism
2issed")):(this.showReviewOption=!1,wn.z.updateUserInDrip("review_prompt_postponed"),setTimeout(function(){t.popUpSurvey=!1,Un=setInterval(t.reInitPopUp,54e5)},3e3))},goToG2:function(){window.open("https://sourceforge.net/software/product/UXfolio/reviews/new","_blank"),wn.z.updateUserInDrip("review_clicked_write_review"),this.showCloseState=!0,this.modalTitle="Thank you!"},closeAndCancel:function(){this.$store.state.user.surveyClosed=!0,this.$store.commit("updateUserInDb","Cancel and close survey modal"),this.$actions.trackEditEvent("Support modal - closed with no response"),this.close()},close:function(){var t=this;this.showCloseState=!1,this.popUpSurvey=!1,this.$nextTick(function(){return t.$store.state.userSettings.showSupportSurvey=!1}),this.$store.state.user.surveyClosed=!0,this.$store.commit("updateUserInDb","Close survey modal"),this.$actions.trackEditEvent("Support modal - dismiss forever")}},computed:{filteredTopics:function(){var t=this;return this.survey.topics[0]?this.topics.filter(function(e){return e===t.survey.topics[0]}):this.topics},showCommentBox:function(){return!!this.survey.emotion&&this.survey.emotion<=3},showTopics:function(){return!!this.$store.state.userSettings.supportSurveyModalSettings.bookACallOption&&(!!this.survey.emotion&&this.survey.emotion<3)}}},Xn=(0,V.A)(Bn,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("InlineSvg"),c=(0,n.g2)("CheckBox"),u=(0,n.g2)("TextArea"),d=(0,n.g2)("Cta"),p=(0,n.g2)("FeedbackPopupWrapper");return(0,n.uX)(),(0,n.Wv)(p,{show:a.popUpSurvey,"modal-title":a.modalTitle,"modal-subtitle":a.modalSubtitle,"show-footer":!a.sent||a.bookACall||a.showReviewOption,"show-close-icon":!1,"show-header":!a.sent||a.bookACall||a.showReviewOption},{body:(0,n.k6)(function(){return[a.sent?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[a.bookACall||a.showReviewOption?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",gn,[(0,n.Lk)("div",yn,[(0,n.bF)(l,{src:a.checkIcon,with:24,height:"24"},null,8,["src"])]),e[9]||(e[9]=(0,n.Lk)("div",{class:"title"},[(0,n.Lk)("h3",null,"Thank you!"),(0,n.Lk)("p",null,"Your feedback has been submitted.")],-1))])),a.bookACall?((0,n.uX)(),(0,n.CE)("div",bn,nn(e[10]||(e[10]=[(0,n.Lk)("div",{class:"title"},[(0,n.Lk)("h3",null,"Would you like to book a call with us?")],-1),(0,n.Lk)("div",{class:"title"},[(0,n.Lk)("h3",null,"Share your UXfolio experience with our designer in a 15-min call, and receive a $15 Amazon gift card for your participation!")],-1)])))):(0,n.Q3)("v-if",!0),a.showReviewOption?((0,n.uX)(),(0,n.CE)("div",kn,[(0,n.Lk)("div",Sn,[(0,n.Lk)("p",null,"Hereâs "+(0,r.v_)(a.showCloseState?"a quick recap:":"how it works:"),1),e[11]||(e[11]=(0,n.Lk)("ul",null,[(0,n.Lk)("li",null,[(0,n.Lk)("p",null,"Write an honest review about UXfolio on G2,")]),(0,n.Lk)("li",null,[(0,n.Lk)("p",null,"Send us a screenshot of your review to [email protected],")]),(0,n.Lk)("li",null,[(0,n.Lk)("p",null,"Weâll send you a $25 Amazon gift card.")])],-1))])])):(0,n.Q3)("v-if",!0)],64)):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",an,[(0,n.Lk)("div",sn,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.emotions,function(t){return(0,n.uX)(),(0,n.CE)("div",{key:t.index,class:"emotion",onClick:function(e){return s.selectEmotion(t)}},[(0,n.Lk)("div",{class:(0,r.C4)(["emo",{selected:a.survey.emotion===t.val}])},[(0,n.bF)(l,{src:t.icon},null,8,["src"])],2)],8,ln)}),128))]),(0,n.Lk)("div",cn,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.emotions.filter(function(t){return t.label}),function(t){return(0,n.uX)(),(0,n.CE)("label",{key:t.index},(0,r.v_)(t.label),1)}),128))])]),s.showTopics?((0,n.uX)(),(0,n.CE)("div",un,[(0,n.Lk)("div",dn,[e[8]||(e[8]=(0,n.Lk)("h2",null,"What can we help you with?",-1)),0===a.survey.topics.length?((0,n.uX)(),(0,n.CE)("p",pn,"Select an option below")):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",fn,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.filteredTopics,function(t,o){return(0,n.uX)(),(0,n.CE)("div",{key:o,class:"topic"},[(0,n.bF)(c,{label:t,value:t,modelValue:a.survey.topics,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.survey.topics=t})},null,8,["label","value","modelValue"])])}),128))])])):(0,n.Q3)("v-if",!0),s.showCommentBox?((0,n.uX)(),(0,n.CE)("div",hn,[0===a.survey.topics.length&&a.showCommentTitles?((0,n.uX)(),(0,n.CE)("div",mn,[(0,n.Lk)("h2",null,(0,r.v_)(a.commentTitles.t),1),(0,n.Lk)("p",null,(0,r.v_)(a.commentTitles.s),1)])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",vn,[(0,n.bF)(u,{label:"Comments",placeholder:"Write your thoughts and feedback here","dark-scheme":!0,modelValue:a.survey.comment,"onUpdate:modelValue":e[1]||(e[1]=function(t){return a.survey.comment=t}),colors:{label:""}}
2,null,8,["modelValue"])])])):(0,n.Q3)("v-if",!0)],64))]}),footer:(0,n.k6)(function(){return[!a.sent||a.bookACall||a.showReviewOption?((0,n.uX)(),(0,n.CE)("div",Pn,[a.bookACall||a.showReviewOption?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(d,{key:0,"dark-scheme":"",loading:a.sending,disabled:a.sending,onClick:e[2]||(e[2]=function(t){return s.saveSurveyResponse()})},{default:(0,n.k6)(function(){return nn(e[12]||(e[12]=[(0,n.eW)("Submit",-1)]))}),_:1},8,["loading","disabled"])),a.bookACall?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.bF)(d,{"dark-scheme":"",type:"secondary",onClick:e[3]||(e[3]=function(t){return s.close()})},{default:(0,n.k6)(function(){return nn(e[13]||(e[13]=[(0,n.eW)("Cancel",-1)]))}),_:1}),(0,n.bF)(d,{"dark-scheme":"",onClick:e[4]||(e[4]=function(t){return s.openCalendar()})},{default:(0,n.k6)(function(){return nn(e[14]||(e[14]=[(0,n.eW)("Book a call",-1)]))}),_:1})],64)):(0,n.Q3)("v-if",!0),a.showReviewOption&&a.showCloseState?((0,n.uX)(),(0,n.Wv)(d,{key:2,"dark-scheme":"",onClick:e[5]||(e[5]=function(t){return s.close()})},{default:(0,n.k6)(function(){return nn(e[15]||(e[15]=[(0,n.eW)("Close",-1)]))}),_:1})):a.showReviewOption?((0,n.uX)(),(0,n.CE)(n.FK,{key:3},[(0,n.bF)(d,{"dark-scheme":"",type:"secondary",onClick:e[6]||(e[6]=function(t){return s.remindLater()})},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(a.reInit?"Dismiss forever":"Remind me later"),1)]}),_:1}),(0,n.bF)(d,{"dark-scheme":"",onClick:e[7]||(e[7]=function(t){return s.goToG2()})},{default:(0,n.k6)(function(){return nn(e[16]||(e[16]=[(0,n.eW)("Review UXfolio",-1)]))}),_:1})],64)):(0,n.Q3)("v-if",!0)])):(0,n.Q3)("v-if",!0)]}),_:1}
2,8,["show","modal-title","modal-subtitle","show-footer","show-header"])}],["__scopeId","data-v-473c86aa"]]);var Hn=o(12033);function Wn(t){return function(t){if(Array.isArray(t))return Rn(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 Rn(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Rn(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 Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var Qn={class:"options-container"},Gn=["onClick"],zn={class:"box"},Vn={class:"comment"},Kn={key:0,class:"footer"};var Yn=o(94402);function qn(t){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(t)}function Jn(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Zn(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(o),!0).forEach(function(e){tr(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Jn(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function tr(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=qn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var er=Object.freeze({USEFUL:"USEFUL",NOT_USEFUL:"NOT_USEFUL"});const or={name:"ai-feedback-modal",components:{NavigationCard:Yn.A,FeedbackPopupWrapper:Nn,Icon:R.A,TextArea:An.A,CtaButton:E.A},data:function(){return{popupOpen:!1,sent:!1,comment:"",feedback:null,feedbackOptions:[{name:"Not useful",icon:"thumbs-down",value:er.NOT_USEFUL},{name:"Useful",icon:"thumbs-up",value:er.USEFUL}],popupTimeout:null,featureConfig:tr(tr({},Gt._s.CASE_STUDY_GENERATOR,{subtitle:"How did you find the AI-generated content?",timeoutSeconds:30}),Gt._s.JOB_FIT_CHECKER,{subtitle:"Was the Job fit checker useful?",timeoutSeconds:5})}},mounted:function(){var t=this;this.popupTimeout=setTimeout(function(){t.initPopUp()},this.timeoutMs)},watch:{$route:function(t,e){(this.popupOpen&&!this.popupTimeout||!t.path.includes("/p/"))&&this.close()}},methods:{initPopUp:function(){this.popupOpen=!0,this.$store.state.checklist.popUpClosed=!0,clearTimeout(this.popupTimeout),this.popupTimeout=null},close:function(){this.popupOpen=!1,this.$store.commit("hideAiFeedbackModal")},sendFeedback:function(){var t=this;dt.A.track("FEEDBACK_SUBMITTED",Zn(Zn({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.AI_FEATURES,feature:this.feature,value:this.feedback,description:this.comment})),dt.A.track("JFC_CHECKLIST_SUBMITTED",Zn(Zn({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Survey Modal"})),this.sent=!0,setTimeout(function(){t.close()},3e3)},openJobFitChecker:function(){dt.A.track("ANALYSE_AGAIN_CLICKED",Zn(Zn({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Survey Modal"}));var t=window.location.origin+"/jobfitchecker/"+this.$store.state.portfolio.shortId;window.open(t,"_blank").focus()}},computed:{AiFeatures:function(){return Gt._s},feature:function(){return this.$store.state.aiFeedbackModalType},config:function(){return this.featureConfig[this.feature]||{}},modalSubtitle:function(){return this.config.subtitle||""},timeoutMs:function(){return 1e3*(this.config.timeoutSeconds||30)}}},nr=(0,V.A)(or,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon"),c=(0,n.g2)("TextArea"),u=(0,n.g2)("NavigationCard"),d=(0,n.g2)("CtaButton"),p=(0,n.g2)("FeedbackPopupWrapper");return(0,n.uX)(),(0,n.Wv)(p,{show:a.popupOpen,"show-close-icon":!0,"modal-subtitle":s.modalSubtitle,"modal-title":"Share your experience","show-footer":!a.sent,"show-
2header":!a.sent,class:"ai-feedback-popup",close:s.close},{body:(0,n.k6)(function(){return[a.sent?((0,n.uX)(),(0,n.CE)("div",{key:1,class:(0,r.C4)(["box success",{jfc:s.feature===s.AiFeatures.JOB_FIT_CHECKER}])},[(0,n.bF)(l,{"icon-name":"confetti"}),e[1]||(e[1]=(0,n.Lk)("div",{class:"title"},[(0,n.Lk)("h3",null,"Thank you!"),(0,n.Lk)("p",null,"Your feedback has been submitted.")],-1)),s.feature===s.AiFeatures.JOB_FIT_CHECKER?((0,n.uX)(),(0,n.Wv)(u,{key:0,title:"Analyze your portfolio again",subtitle:"Check your portfolioâs fit",navigate:s.openJobFitChecker},null,8,["navigate"])):(0,n.Q3)("v-if",!0)],2)):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",Qn,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.feedbackOptions,function(t){return(0,n.uX)(),(0,n.CE)("div",{key:t.value,class:(0,r.C4)(["option",{selected:a.feedback===t.value}]),onClick:function(){return a.feedback=t.value}},[(0,n.bF)(l,{"icon-name":t.icon},null,8,["icon-name"]),(0,n.Lk)("p",null,(0,r.v_)(t.name),1)],10,Gn)}),128))]),(0,n.Lk)("div",zn,[(0,n.Lk)("div",Vn,[(0,n.bF)(c,{placeholder:"Tell us more","dark-scheme":"",modelValue:a.comment,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.comment=t})},null,8,["modelValue"])])])],64))]}),footer:(0,n.k6)(function(){return[a.sent?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",Kn,[(0,n.bF)(d,{"dark-scheme":"",disabled:!a.feedback,onClick:s.sendFeedback},{default:(0,n.k6)(function(){return Wn(e[2]||(e[2]=[(0,n.eW)("Submit",-1)]))}),_:1},8,["disabled","onClick"])]))]}),_:1},8,["show","modal-subtitle","show-footer","show-header","close"])}],["__scopeId","data-v-e24819ec"]]);function rr(t){return function(t){if(Array.isArray(t))return ir(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 ir(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ir(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 ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var ar={class:"grid-overlay"},sr={class:"header-row"},lr={class:"body-row"},cr={class:"timeline"},ur={class:"info"},dr={class:"today-info"},pr={class:"list-items"},fr={class:"list-item"},hr={class:"list-item"},mr={class:"list-item"},vr={class:"footer-row"};var gr=o(82913);const yr={name:"WelcomeModal",components:{GridBackground:gr.A,Icon:R.A,ModalWrapper:Eo.A,Cta:E.A,ModalBody:Lo.A},mounted:function(){this.trackFirstLoginEvent()},methods:{closeModal:function(){this.$store.state.activeModal=null,this.$store.state.userSettings.showTrialStartedAlert=!1,dt.A.track("WELCOME_MODAL_BEGIN_BUTTON_CLICKED",{event_group:dt.A.MixpanelEventGroups.ONBOARDING,source:"Portfolio editor"}),this.$store.state.onboardingFinished=!1,this.$store.dispatch("showChatBubble")},trackFirstLoginEvent:function(){dt.A.track("WELCOME_MODAL_VIEW",{event_group:dt.A.MixpanelEventGroups.ONBOARDING,source:"Portfolio editor"})}}},br=(0,V.A)(yr,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("GridBackground"),l=(0,n.g2)("Icon"),c=(0,n.g2)("Cta"),u=(0,n.g2)("ModalBody"),d=(0,n.g2)("ModalWrapper");return(0,n.uX)(),(0,n.Wv)(d,{class:"welcome-modal","dark-scheme":"","modal-size":"small","disable-outside-click":""},{"modal-body":(0,n.k6)(function(){return[(0,n.bF)(u,{"text-align":"center"},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",ar,[(0,n.bF)(s,{gridSize:36}),e[0]||(e[0]=(0,n.Lk)("div",{class:"shadow-overlay"},null,-1))]),(0,n.Lk)("div",sr,[(0,n.bF)(l,{"icon-name":"volt-circle-logo"}),e[1]||(e[1]=(0,n.Lk)("div",{class:"text-wrapper"},[(0,n.Lk)("div",{class:"title-row"},"Welcome to UXfolio"),(0,n.Lk)("div",{class:"subtitle-row"},"Your 7-day free trial starts today")],-1))]),(0,n.Lk)("div",lr,[(0,n.Lk)("div",cr,[(0,n.bF)(l,{"icon-name":"timeline-start"}),(0,n.bF)(l,{"icon-name":"timeline-end"}),e[2]||(e[2]=(0,n.Lk)("div",{class:"overlay"},null,-1))]),(0,n.Lk)("div",ur,[(0,n.Lk)("div",dr,[e[6]||(e[6]=(0,n.Lk)("div",{class:"title-text"},"Today",-1)),(0,n.Lk)("div",pr,[(0,n.Lk)("div",fr,[(0,n.bF)(l,{"icon-name":"check"}
2),e[3]||(e[3]=(0,n.eW)("Customize the design",-1))]),(0,n.Lk)("div",hr,[(0,n.bF)(l,{"icon-name":"check"}),e[4]||(e[4]=(0,n.eW)("Add unlimited case studies",-1))]),(0,n.Lk)("div",mr,[(0,n.bF)(l,{"icon-name":"check"}),e[5]||(e[5]=(0,n.eW)("Work faster with UX-specific AI features",-1))])])]),e[7]||(e[7]=(0,n.Lk)("div",{class:"end-info"},[(0,n.Lk)("div",{class:"title-text"},"Day 7"),(0,n.Lk)("div",{class:"info-text"},"Your trial ends, but your work stays safe. Upgrade to keep editing and publish.")],-1))])]),(0,n.Lk)("div",vr,[(0,n.bF)(c,{darkScheme:"",onClick:a.closeModal},{default:(0,n.k6)(function(){return rr(e[8]||(e[8]=[(0,n.eW)("Start building",-1)]))}),_:1},8,["onClick"])])]}),_:1})]}),_:1})}],["__scopeId","data-v-6fd5b909"]]);function kr(t){return function(t){if(Array.isArray(t))return Sr(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 Sr(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Sr(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 Sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var Pr={class:"grid-overlay"},wr={class:"header-row"},Cr={class:"body-row"},Or={class:"timeline"},Ar={class:"info"},$r={class:"today-info"},Tr={class:"list-items"},Er={class:"list-item"},Ir={class:"list-item"},Lr={class:"list-item"},Fr={class:"footer-row"};const _r={name:"TrialRestartedModal",components:{GridBackground:gr.A,Icon:R.A,ModalWrapper:Eo.A,Cta:E.A,ModalBody:Lo.A},methods:{closeModal:function(){this.$store.state.userSettings.showTrialRestartedAlert=!1}}},jr=(0,V.A)(_r,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("GridBackground"),l=(0,n.g2)("Icon"),c=(0,n.g2)("Cta"),u=(0,n.g2)("ModalBody"),d=(0,n.g2)("ModalWrapper");return(0,n.uX)(),(0,n.Wv)(d,{class:"trial-restarted-modal","dark-scheme":"","modal-size":"small","disable-outside-click":""},{"modal-body":(0,n.k6)(function(){return[(0,n.bF)(u,{"text-align":"center"},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",Pr,[(0,n.bF)(s,{gridSize:36}),e[0]||(e[0]=(0,n.Lk)("div",{class:"shadow-overlay"},null,-1))]),(0,n.Lk)("div",wr,[(0,n.bF)(l,{"icon-name":"gift",width:54,height:54}),e[1]||(e[1]=(0,n.Lk)("div",{class:"text-wrapper"},[(0,n.Lk)("div",{class:"title-row"},"Your free trial continues"),(0,n.Lk)("div",{class:"subtitle-row"},"7 extra days to build the portfolio that lands you your next role")],-1))]),(0,n.Lk)("div",Cr,[(0,n.Lk)("div",Or,[(0,n.bF)(l,{"icon-name":"timeline-start"}),(0,n.bF)(l,{"icon-name":"timeline-end"}),e[2]||(e[2]=(0,n.Lk)("div",{class:"overlay"},null,-1))]),(0,n.Lk)("div",Ar,[(0,n.Lk)("div",$r,[e[6]||(e[6]=(0,n.Lk)("div",{class:"title-text"},"Today: Trial starts",-1)),(0,n.Lk)("div",Tr,[(0,n.Lk)("div",Er,[(0,n.bF)(l,{"icon-name":"check"}),e[3]||(e[3]=(0,n.eW)("Customize the design",-1))]),(0,n.Lk)("div",Ir,[(0,n.bF)(l,{"icon-name":"check"}),e[4]||(e[4]=(0,n.eW)("Add unlimited case studies",-1))]),(0,n.Lk)("div",Lr,[(0,n.bF)(l,{"icon-name":"check"}),e[5]||(e[5]=(0,n.eW)("Design thumbnails, add device mock-ups, embed prototypes, and more",-1))])])]),e[7]||(e[7]=(0,n.Lk)("div",{class:"end-info"},[(0,n.Lk)("div",{class:"title-text"},"Day 7: Trial ends"),(0,n.Lk)("div",{class:"info-text"},"Your trial ends, but your work stays safe. Upgrade to keep editing and publish.")],-1))])]),(0,n.Lk)("div",Fr,[(0,n.bF)(c,{darkScheme:"",onClick:a.closeModal},{default:(0,n.k6)(function(){return kr(e[8]||(e[8]=[(0,n.eW)("Keep building",-1)]))}),_:1},8,["onClick"])])]}),_:1})]}),_:1})}],["__scopeId","data-v-3d2fea0f"]]);var Dr=o(31248),xr=o(31173);var Mr=o(10162),Nr=o.n(Mr),Ur=o(7237),Br=o(18080);function Xr(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Hr(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Hr(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Hr(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Hr(d,"constructor",c),Hr(c,"constructor",l),l.displayName="GeneratorFunction",Hr(c,r,"GeneratorFunction"),Hr(d),Hr(d,r,"Generator"),Hr(d,n,function(){return this}),Hr(d,"toString",function(){return"[object Generator]"}),(Xr=function(){return{w:i,m:p}})()}function Hr(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Hr=function(t,e,o,n){function i(e,o){Hr(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Hr(t,e,o,n)}function Wr(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Rr(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){Wr(i,n,r,a,s,"next",t)}function s(t){Wr(i,n,r,a,s,"throw",t)}a(void 0)})}}const Qr={name:"WebsocketClient",data:function(){return{stompClient:null,migratedNotificationsPollingInterval:null,isReconnecting:!1,isConnecting:!1}},created:function(){this.stompClient||(this.initStompClient(),this.connect()),window.addEventListener("beforeunload",this.beforeUnloadHandler)},watch:{"$store.state.user":{handler:function(t){t?(this.subscribeForSpecific(),this.startMigratedNotificationsPolling()):this.stopMigratedNotificationsPolling()},immediate:!0}},beforeUnmount:function(){if(this.stompClient){var t=this.stompClient;this.stompClient=null,t.deactivate().catch(function(){})}this.stopMigratedNotificationsPolling()},unmounted:function(){window.removeEventListener("beforeunload",this.beforeUnloadHandler)},methods:{initStompClient:function(){var t,e=this;this.stompClient=new Ur.Client({webSocketFactory:function(){return new(Nr())("".concat(window.location.origin,"/ws"))},reconnectDelay:1e4,heartbeatIncoming:1e4,heartbeatOutgoing:1e4,beforeConnect:(t=Rr(Xr().m(function t(){return Xr().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.setConnectHeaders();case 1:return t.a(2)}},t)})),function(){return t.apply(this,arguments)}),onDisconnect:function(){console.log("Client disconnected")},onStompError:function(t){console.error("Broker error",t)},onWebSocketError:function(t){e.isReconnecting=!0,console.log("WebSocket connection error",t)},onWebSocketClose:function(){e.isReconnecting=!0,console.log("WebSocket closed, attempting to reconnect...")},onConnect:function(t){console.log("Websocket connected."),e.isReconnecting=!1,e.stompClient.subscribe("/user/queue/notification",function(t){e.updateNotifications(t.body)}),e.stompClient.subscribe("/topic/notification",function(t){e.updateNotifications(t.body)}),e.stompClient.subscribe("/user/queue/refresh",function(t){wn.z.getUser()})}})},connect:function(){var t=this;!this.stompClient||this.stompClient.active||this.isConnecting||(this.isConnecting=!0,this.setConnectHeaders().then(function(e){e&&t.stompClient&&!t.stompClient.active&&t.stompClient.activate()}).finally(function(){t.isConnecting=!1}))},setConnectHeaders:function(){var t=this;return Rr(Xr().m(function e(){var o;return Xr().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,pt.iD)();case 1:if(o=e.v,t.stompClient){e.n=2;break}return e.a(2,!1);case 2:return t.stompClient.connectHeaders=o?{Authorization:"Bearer ".concat(o)}:{},e.a(2,Boolean(o))}},e)}))()},subscribeForSpecific:function(){var t=this;if(this.stompClient){var e=this.$store.state.user.customerId&&!this.userIsTrial?"/topic/notification/premium":"/topic/notification/free",o=function(){t.stompClient.subscribe(e,function(e){var o=e.body;t.updateNotifications(o)})};if(this.stompClient.connected)o();else{var n=this.stompClient.onConnect;this.stompClient.onConnect=function(e){null==n||n(e),o(),t.stompClient.onConnect=n}}}},startMigratedNotificationsPolling:function(){var t=this;!this.migratedNotificationsPollingInterval&&(0,Br.xW)("/api/notifications/all")&&(this.migratedNotificationsPollingInterval=window.setInterval(function(){t.$store.state.user&&ft.A.getLatestNotifications()},6e4))},stopMigratedNotificationsPolling:function(){this.migratedNotificationsPollingInterval&&(window.clearInterval(this.migratedNotificationsPollingInterval),this.migratedNotificationsPollingInterval=null)},updateNotifications:function(t){this.$store.state.notifications.unshift(JSON.parse(t))},beforeUnloadHandler:function(){this.stompClient&&this.stompClient.active&&this.stompClient.deactivate().catch(function(){}),this.stopMigratedNotificationsPolling()}},computed:{userIsTrial:function(){return this.$store.getters.userIsTrial}}},Gr=(0,V.A)(Qr,[["render",function(t,e,o,n,r,i){return null}]]);var zr={class:"activation-checklist-container"},Vr={key:1,class:"checklist-state"},Kr={class:"progress-text"},Yr={key:2,class:"step-counter"};var qr={class:"checklist-items"},Jr={class:"header-container"},Zr={class:"progress"},ti={class:"progress-text"},ei={class:"body-container"};var oi={class:"check-mark"},ni={class:(0,r.C4)(["indicator"])},ri={key:1,class:"lottie-container",ref:"lottieContainer"},ii={class:"text-container"};var ai=o(49891),si=o.n(ai);const li={name:"ChecklistItem",props:["step","text","highlighted","finished","deleted","loadAnimation"],components:{IconButton:o(2336).A,Icon:R.A},data:function(){return{animationLoaded:!1}},mounted:function(){this.finished&&(this.loadAnimation?this.loadLottieAnimation():this.animationLoaded=!0)},watch:{finished:function(t){t&&this.loadLottieAnimation()}},methods:{handleToggleDone:function(t){t.stopPropagation(),(this.highlighted||this.text)&&this.$emit("toggleDone",t)},handleDelete:function(t){t.stopPropagation(),this.$emit("delete",t)},loadLottieAnimation:function(){var t=this,e=this.$refs.lottieContainer;if(e){var o=si().loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!0,path:"/lotti-animations/checkmark.json",rendererSettings:{preserveAspectRatio:"xMidYMid meet"}});o.addEventListener("complete",function(){t.animationLoaded=!0}),o.addEventListener("error",function(t){console.error("Animation error:",t)})}else console.error("Animation container not found")}}},ci=(0,V.A)(li,[["render",function(t,e,o,i,a,s){var l,c=(0,n.g2)("Icon"),u=(0,n.g2)("IconButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["checklist-item",[{highlighted:this.highlighted,finished:this.finished&&this.animationLoaded,crossed:this.deleted}]]),onClick:e[0]||(e[0]=function(){return s.handleToggleDone&&s.handleToggleDone.apply(s,arguments)})},[(0,n.Lk)("div",oi,[(0,n.Lk)("div",ni,[o.finished&&a.animationLoaded?((0,n.uX)(),(0,n.Wv)(c,{key:0,iconName:"
2check-lotti"})):((0,n.uX)(),(0,n.CE)("div",ri,null,512))])]),(0,n.Lk)("div",ii,(0,r.v_)(o.text||o.step.text),1),null!==(l=o.step)&&void 0!==l&&l.text&&!o.finished&&o.highlighted?((0,n.uX)(),(0,n.Wv)(c,{key:0,class:"arrow","icon-name":"arrow-right"})):(0,n.Q3)("v-if",!0),o.text&&!o.deleted?((0,n.uX)(),(0,n.Wv)(u,{key:1,"dark-scheme":"",size:"small",icon:"close",importance:"high",onClick:s.handleDelete},null,8,["onClick"])):(0,n.Q3)("v-if",!0)],2)}],["__scopeId","data-v-61c62354"]]),ui=ci;var di={class:"stat-circle",width:"20",viewBox:"0 0 20 20"},pi={class:"progress",cx:"10",cy:"10",r:"8",ref:"progressCircle",transform:"rotate(-90 10 10)","stroke-dasharray":"50.26548245743669 50.26548245743669","stroke-dashoffset":"50.26548245743669"};var fi=o(85880);const hi={name:"CircleProgressBar",props:["percentage"],mounted:function(){var t=this;this.$nextTick(function(){t.animateCircle(t.percentage,!0)})},watch:{percentage:function(t){this.animateCircle(t,!1)}},methods:{computeCircumference:function(){return 2*Math.PI*8},animateCircle:function(t,e){var o=this.computeCircumference(),n=o-o*t/100;e&&fi.Ay.set(this.$refs.progressCircle,{strokeDashoffset:o}),fi.Ay.to(this.$refs.progressCircle,{duration:.6,strokeDashoffset:n,ease:"power1.out"})}}},mi=(0,V.A)(hi,[["render",function(t,e,o,r,i,a){return(0,n.uX)(),(0,n.CE)(n.FK,null,[((0,n.uX)(),(0,n.CE)("svg",di,[e[0]||(e[0]=(0,n.Lk)("circle",{class:"bg",cx:"10",cy:"10",r:"8"},null,-1)),(0,n.Lk)("circle",pi,null,512)])),(0,n.RG)(t.$slots,"default",{},void 0,!0)],64)}],["__scopeId","data-v-4a63e2fc"]]);var vi=o(82124);function gi(t){return gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(t)}function yi(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return bi(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?bi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw i}}}}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}function ki(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Si(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(o),!0).forEach(function(e){Pi(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ki(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Pi(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=gi(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gi(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const wi={name:"ChecklistPopover",props:["show","closePopover","loadAnimation","animationsLoaded"],components:{CircleProgressBar:mi,ChecklistItem:ui},data:function(){return{checkListItems:[{text:"Select a template",key:Gt.QT.TEMPLATE},{text:"Customize the design",key:Gt.QT.CUSTOMIZE},{text:"Make your headline stand out",key:Gt.QT.HEADLINE},{text:"Add your first case study",key:Gt.QT.CASE_STUDY},{text:"Set a case study thumbnail",key:Gt.QT.THUMBNAIL},{text:"Go live! ð",key:Gt.QT.PUBLISH}],scrollTimeout:null,percentage:0}},mounted:function(){var t=this;this.$nextTick(function(){t.$store.state.user.checklistStatus.steps[0]||t.$store.commit("updateChecklistItem",Gt.QT.TEMPLATE),setTimeout(function(){t.animationsLoaded()},2e3)})},methods:{isFinished:function(t){return!0===this.steps[t]},isHighlighted:function(t){return this.firstIncompleteKey===t},clickChecklistItem:function(t,e){var o=this;if(!this.blockedEditor){if(this.$store.state.checklist.activeInteraction=e,this.sendGAEvent(e),t.stopPropagation(),!this.isHomePage)return this.$store.state.checklist.subpage=!0,void this.closePopover();switch(e){case Gt.QT.CASE_STUDY:this.scrollToElement(["project-grid-home-empty-add-card","project-grid-home-empty"]);break;case Gt.QT.HEADLINE:window.scrollTo({top:0,left:0,behavior:"auto"}),setTimeout(function(){o.emitter.emit("checklist-focus-header")},200);break;case Gt.QT.THUMBNAIL:case Gt.QT.LAYOUT:this.scrollToElement([e===Gt.QT.THUMBNAIL?"project-grid-home-first-project":"project-grid-home","project-grid-home","project-grid-home-empty-add-card"]),e===Gt.QT.LAYOUT&&setTimeout(function(){o.emitter.emit("toggle-popover",Gt.O_.CASE_STUDY_GRID)},200);break;case Gt.QT.RESUME:this.$store.commit("openSidePanel",{panelPath:"pages/add-new-page"});break;case Gt.QT.DOMAIN:this.$store.commit("openSidePanel",{panelPath:"settings/domain-and-url"});break;case Gt.QT.CUSTOMIZE:this.$store.commit("openSidePanel",{panelPath:"style"});case Gt.QT.PUBLISH:}this.closePopover()}},sendGAEvent:function(t){var e="Clicked: "+t;(0,we.f0)(e,{event_category:"Activation checklist",event_label:"User: ".concat(this.$store.state.user._id)})},setPercentage:function(){var t=this;setTimeout(function(){t.percentage=t.counter.finished/t.counter.total*100},1200)},scrollToElement:function(t){this.$nextTick(function(){setTimeout(function(){var e=t.filter(Boolean).map(function(t){return document.getElementById(t)}).find(Boolean);e&&e.scrollIntoView({behavior:"smooth",block:"center"})})})}},computed:Si(Si({},(0,vi.L8)(["activeChecklistStepsStatus"])),{},{steps:function(){return this.activeChecklistStepsStatus},orderedChecklistItems:function(){var t=new Set(Object.keys(this.steps));return this.checkListItems.filter(function(e){return t.has(e.key)})},firstIncompleteKey:function(){var t,e=yi(this.orderedChecklistItems);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(!this.steps[o.key])return o.key}}catch(t){e.e(t)}finally{e.f()}return null},counter:function(){var t=Object.values(this.steps).length,e=Object.values(this.steps).filter(function(t){return!0===t}).length;return this.setPercentage(),{finished:e,total:t}},isHomePage:function(){return this.$store.getters.isHomePage},blockedEditor:function(){return this.$store.getters.isEditorBlocked}})},Ci=(0,V.A)(wi,[["render",function(t,e,o,i,a,s){var l=this,c=(0,n.g2)("CircleProgressBar"),u=(0,n.g2)("ChecklistItem");return(0,n.uX)(),(0,n.CE)("div",qr,[(0,n.Lk)("div",Jr,[e[0]||(e[0]=(0,n.Lk)("div",{class:"text-wrapper"},[(0,n.Lk)("div",{class:"header"},"Recruiter-ready checklist"),(0,n.Lk)("div",{class:"subtitle"},"Set up your portfolio for success!")],-1)),(0,n.Lk)("div",Zr,[(0,n.bF)(c,{percentage:a.percentage},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",ti,(0,r.v_)(s.counter.finished)+"/"+(0,r.v_)(s.counter.total),1)]}),_:1},8,["percentage"])])]),(0,n.Lk)("div",ei,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.checkListItems,function(t){return(0,n.uX)(),(0,n.Wv)(u,{key:t.text,highlighted:!s.blockedEditor&&s.isHighlighted(t.key),finished:s.isFinished(t.key),step:t,onToggleDone:function(e){return l.clickChecklistItem(e,t.ke
2y)},"load-animation":o.loadAnimation.includes(t.key)},null,8,["highlighted","finished","step","onToggleDone","load-animation"])}),128))])])}],["__scopeId","data-v-1e31d1e7"]]);var Oi=o(80411),Ai={class:"lottie-container",ref:"lottieContainer"},$i={class:"header-container"},Ti={class:"text-wrapper"},Ei={class:"subtitle"},Ii={class:"progress"},Li={class:"progress-text"},Fi={class:"body-container"};var _i={class:"accordion"},ji={class:"page-data"},Di={class:"page-name"},xi={class:"progress"},Mi={key:1,class:"accordion-body"};function Ni(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,a,s=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ui(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ui(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ui(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}const Bi={name:"JobFitCheckAccordion",components:{Icon:R.A},props:{title:String,progress:String},data:function(){return{isOpen:!1,isHidden:!1}},mounted:function(){this.isHidden=this.isEmpty},watch:{isComplete:function(t){var e=this;t&&setTimeout(function(){e.isOpen=!1},2e3)},isEmpty:function(t){var e=this;t&&setTimeout(function(){e.isOpen=!1,e.isHidden=!0},2e3)}},methods:{toggleOpen:function(){this.isOpen=!this.isEmpty&&!this.isOpen}},computed:{isComplete:function(){var t=Ni(this.progress.split("/").map(Number),2),e=t[0],o=t[1];return o>0&&e===o},isEmpty:function(){var t=Ni(this.progress.split("/").map(Number),2),e=t[0],o=t[1];return 0===e&&0===o}}},Xi=(0,V.A)(Bi,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",_i,[a.isHidden?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["accordion-title",{open:a.isOpen,empty:s.isEmpty}]),onClick:e[0]||(e[0]=function(){return s.toggleOpen&&s.toggleOpen.apply(s,arguments)})},[(0,n.Lk)("div",ji,[(0,n.Lk)("div",Di,(0,r.v_)(o.title),1),(0,n.Lk)("div",xi,(0,r.v_)(" (".concat(o.progress,")")),1),s.isComplete?((0,n.uX)(),(0,n.Wv)(l,{key:0,height:20,width:20,"icon-name":"check"})):(0,n.Q3)("v-if",!0)]),s.isEmpty?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(l,{key:0,height:24,width:24,"icon-name":a.isOpen?"chevron-up":"chevron-down"},null,8,["icon-name"]))],2)),a.isOpen?((0,n.uX)(),(0,n.CE)("div",Mi,[(0,n.RG)(t.$slots,"default",{},void 0,!0)])):(0,n.Q3)("v-if",!0)])}],["__scopeId","data-v-6625253e"]]),Hi=Xi;var Wi=o(18957);function Ri(t){return Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(t)}function Qi(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Gi(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");
2if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Gi(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Gi(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Gi(d,"constructor",c),Gi(c,"constructor",l),l.displayName="GeneratorFunction",Gi(c,r,"GeneratorFunction"),Gi(d),Gi(d,r,"Generator"),Gi(d,n,function(){return this}),Gi(d,"toString",function(){return"[object Generator]"}),(Qi=function(){return{w:i,m:p}})()}function Gi(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Gi=function(t,e,o,n){function i(e,o){Gi(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Gi(t,e,o,n)}function zi(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Vi(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){zi(i,n,r,a,s,"next",t)}function s(t){zi(i,n,r,a,s,"throw",t)}a(void 0)})}}function Ki(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Yi(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ki(Object(o),!0).forEach(function(e){qi(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ki(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function qi(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Ri(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ri(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ji(t){return function(t){if(Array.isArray(t))return Zi(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 Zi(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zi(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 Zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}const ta={name:"JobFitChecklistPopover",props:["loadAnimation","animationsLoaded","activeJFCResult","style"],inject:["evaluateChecklistType"],components:{JobFitCheckAccordion:Hi,CircleProgressBar:mi,ChecklistItem:ui},data:function(){return{percentage:0,hiddenItems:{},hasFiredCompletionEffects:!1,alreadyCompleted:!1}},mounted:function(){var t=this;this.$nextTick(function(){var e,o=null===(e=t.activeJFCResult)||void 0===e?void 0:e.portfolioBreakdown;o&&[].concat(Ji(o.pages||[]),Ji(o.caseStudies||[])).forEach(function(e){var o;null===(o=e.gaps)||void 0===o||o.forEach(function(o,n){o.deleted&&(t.hiddenItems["".concat(e.projectShortId,"_").concat(n)]=!0)})});setTimeout(function(){t.animationsLoaded()},2e3)})},watch:{"activeJFCResult.id":{immediate:!0,handler:function(){this.hasFiredCompletionEffects=!1,this.alreadyCompleted=!0===this.checklistCompleted}},checklistCompleted:function(t,e){var o=this;this.alreadyCompleted||!0!==t||this.hasFiredCompletionEffects||(this.loadLottieAnimation(),this.$store.commit("showAiFeedbackModal",{type:Gt._s.JOB_FIT_CHECKER}),setTimeout(function(){Wi.A.unlinkJobFitCheckFromPortfolio(o.activeJFCResult.portfolioShortId,o.activeJFCResult.ownerId).then(function(t){o.$store.commit("jfc/clearActiveJFCResult"),o.$store.commit("setPortfolioCurrentJobFitCheckId",null),o.evaluateChecklistType()})},5e3),dt.A.track("JFC_CHECKLIST_COMPLETED",Yi(Yi({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:this.isCaseStudy?"Case study":"Portfolio"})))}},methods:{loadLottieAnimation:function(){var t=this,e=this.$refs.lottieContainer;if(e){var o=si().loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!0,path:"/lotti-animations/confetti-v2.json"});o.addEventListener("complete",function(){t.animationLoaded=!0}),o.addEventListener("error",function(t){console.log("animation had an error")})}},isHidden:function(t,e){return!0===this.hiddenItems["".concat(t,"_").concat(e)
2]},getCompletedGaps:function(t){return t.gaps&&Array.isArray(t.gaps)?t.gaps.filter(function(t){return t.done&&!t.deleted}).length:0},getDeletedGaps:function(t){return t.gaps&&Array.isArray(t.gaps)?t.gaps.filter(function(t){return t.deleted}).length:0},setPercentage:function(){var t=this;setTimeout(function(){t.percentage=t.counter.finished/t.counter.total*100},1200)},handleItemClick:function(t,e,o,n){var r=this;return Vi(Qi().m(function i(){var a;return Qi().w(function(i){for(;;)switch(i.p=i.n){case 0:return t.stopPropagation(),i.p=1,r.$store.commit("jfc/updateChecklistItemStatus",{projectShortId:e,gapIndex:o,done:!n}),i.n=2,Wi.A.updateJobFitCheck(r.$store.state.jfc.activeJFCResult);case 2:i.n=4;break;case 3:i.p=3,a=i.v,console.error("Failed to update checklist item",a);case 4:return i.a(2)}},i,null,[[1,3]])}))()},handleDelete:function(t,e,o){var n=this;return Vi(Qi().m(function r(){var i,a;return Qi().w(function(r){for(;;)switch(r.p=r.n){case 0:return t.stopPropagation(),i="".concat(e,"_").concat(o),r.p=1,n.$store.commit("jfc/updateChecklistItemStatus",{projectShortId:e,gapIndex:o,deleted:!0}),setTimeout(function(){n.hiddenItems[i]=!0},1e3),r.n=2,Wi.A.updateJobFitCheck(n.$store.state.jfc.activeJFCResult);case 2:r.n=4;break;case 3:r.p=3,a=r.v,console.error("Failed to delete checklist item",a);case 4:return r.a(2)}},r,null,[[1,3]])}))()}},computed:{counter:function(){var t,e=null===(t=this.activeJFCResult)||void 0===t?void 0:t.portfolioBreakdown;if(!e)return{finished:0,total:0};var o=[].concat(Ji(e.pages||[]),Ji(e.caseStudies||[])).flatMap(function(t){return t.gaps||[]}),n=o.filter(function(t){return!t.deleted}).length,r=o.filter(function(t){return!0===t.done&&!t.deleted}).length;return this.setPercentage(),{finished:r,total:n}},checklistCompleted:function(){return this.counter.finished===this.counter.total},allBreakdownItems:function(){var t,e;return[].concat(Ji((null===(t=this.activeJFCResult)||void 0===t||null===(t=t.portfolioBreakdown)||void 0===t?void 0:t.pages)||[]),Ji((null===(e=this.activeJFCResult)||void 0===e||null===(e=e.portfolioBreakdown)||void 0===e?void 0:e.caseStudies)||[]))},isCaseStudy:function(){return!!this.$store.state.project&&this.$store.getters.isCaseStudy}}},ea=(0,V.A)(ta,[["render",function(t,e,o,a,s,l){var c,u=(0,n.g2)("CircleProgressBar"),d=(0,n.g2)("ChecklistItem"),p=(0,n.g2)("JobFitCheckAccordion");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",Ai,null,512),(0,n.Lk)("div",{class:"checklist-items",style:(0,r.Tr)(o.style)},[(0,n.Lk)("div",$i,[(0,n.Lk)("div",Ti,[e[0]||(e[0]=(0,n.Lk)("div",{class:"header"},"Job Fit Checklist",-1)),(0,n.Lk)("div",Ei,(0,r.v_)("to ".concat(null===(c=o.activeJFCResult)||void 0===c?void 0:c.jobCompany,"'s job")),1)]),(0,n.Lk)("div",Ii,[(0,n.bF)(u,{percentage:s.percentage},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",Li,(0,r.v_)(l.counter.finished)+"/"+(0,r.v_)(l.counter.total),1)]}),_:1},8,["percentage"])])]),(0,n.Lk)("div",Fi,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.allBreakdownItems,function(t){return(0,n.uX)(),(0,n.Wv)(p,{key:t.projectShortId,title:t.name,progress:"".concat(l.getCompletedGaps(t),"/").concat(((null==t?void 0:t.gaps)||[]).length-l.getDeletedGaps(t))},{default:(0,n.k6)(function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.gaps,function(e,o){return(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",{key:e.label+o,class:(0,r.C4)({"fade-out"
2:l.isHidden(t.projectShortId,o)})},[(0,n.bF)(d,{text:e.label,finished:e.done,deleted:e.deleted,onToggleDone:function(n){return l.handleItemClick(n,t.projectShortId,o,e.done)},onDelete:function(e){return l.handleDelete(e,t.projectShortId,o)}},null,8,["text","finished","deleted","onToggleDone","onDelete"])],2)),[[i.vShow,!e.deleted||!l.isHidden(t.projectShortId,o)]])}),128))]}),_:2},1032,["title","progress"])}),128))])],4)],64)}],["__scopeId","data-v-4a1094ec"]]);function oa(t){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(t)}function na(t){return function(t){if(Array.isArray(t))return ra(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 ra(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ra(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 ra(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}function ia(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function aa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(o),!0).forEach(function(e){sa(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ia(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function sa(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=oa(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oa(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const la={name:"ChecklistComponent",components:{CircleProgressBar:mi,JobFitChecklistPopover:ea,ClickOutsideObserver:Oi.A,ChecklistPopover:Ci,Icon:R.A},props:{bottomOffset:{type:Number},checklistType:{type:String}},data:function(){return{runModalOnHome:!1,loadAnimation:[],oldSteps:{},percentage:0}},mounted:function(){"activation"===this.checklistType?this.checkFinished():this.openChecklist()},watch:{"activeJFCResult.id":{immediate:!1,handler:function(t,e){this.isJobFitChecklist&&t&&t!==e&&(this.openChecklist(),this.loadAnimation=[])}},steps:{handler:function(t,e){t&&(this.closed&&this.checkChangedValue(t,e),!this.loadAnimation.length&&this.closed||(this.shakeSpaceship(),this.checkFinished()),this.oldSteps=JSON.parse(JSON.stringify(t)))},deep:!0,immediate:!0},isEditorPage:{handler:function(t,e){var o=this;!0===t&&this.runModalOnHome&&!this.$store.state.checklist.finished&&setTimeout(function(){o.finishChecklist()},1e3)}}},methods:{openChecklist:function(t){t&&t.stopPropagation();try{var e=!this.$store.state.checklist.popUpClosed;this.$store.commit("updateActivationPopupState",e)}catch(t){console.log("e",t)}},shakeSpaceship:function(){if(this.closed){var t=this.$refs.spaceship;if(t){var e=t.$el;fi.os.killTweensOf(e),fi.os.set(e,{rotation:0,x:0}),fi.os.to(e,{duration:.12,rotation:-15,yoyo:!0,repeat:7,ease:"power1.inOut",transformOrigin:"center center"})}}},checkFinished:function(){var t=this;Object.values(this.steps).filter(function(t){return!0===t}).length===Object.values(this.steps).length&&!this.$store.state.user.checklistStatus.finished&&(this.isEditorPage?setTimeout(function(){t.finishChecklist()},500):this.runModalOnHome=!0)},finishChecklist:function(){var t=!!this.$store.state.activeModal;t||(this.$store.state.activeModal="ChecklistFinishedModal"),this.$store.state.user.checklistStatus.finished=!0,this.$store.commit("updateUserInDb"),this.$store.state.checklist.finished=!t},checkChangedValue:function(t,e){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&!1===this.oldSteps[o]&&!0===t[o]&&this.loadAnimation.push(o)},handleOutsideClick:function(){this.$store.state.checklist.popUpClosed=!0},setPercentage:function(){var t=this;setTimeout(function(){t.percentage=t.counter.finished/t.counter.total*100},1200)},hideJFCChecklist:function(){var t,e,o=this;Wi.A.unlinkJobFitCheckFromPortfolio(null===(t=this.activeJFCResult)||void 0===t?void 0:t.portfolioShortId,null===(e=this.activeJFCResult)||void 0===e?void 0:e.ownerId).then(function(t){o.$store.commit("jfc/clearActiveJFCResult"),o.$store.commit("setPortfolioCurrentJobFitCheckId",null)})}}
2,computed:aa(aa(aa({jobFitChecklistPopover:function(){return ea}},(0,vi.L8)("jfc",["activeJFCResult"])),(0,vi.L8)(["activeChecklistStepsStatus"])),{},{steps:function(){return this.activeChecklistStepsStatus},jobFitCounter:function(){var t,e=null===(t=this.activeJFCResult)||void 0===t?void 0:t.portfolioBreakdown;if(!e)return{finished:0,total:0};var o=[].concat(na(e.pages||[]),na(e.caseStudies||[])).flatMap(function(t){return t.gaps||[]}),n=o.filter(function(t){return!t.deleted}).length;return{finished:o.filter(function(t){return t.done&&!t.deleted}).length,total:n}},counter:function(){return this.setPercentage(),this.isJobFitChecklist?this.jobFitCounter:{finished:Object.values(this.steps).filter(function(t){return!0===t}).length,total:Object.values(this.steps).length}},isEditorPage:function(){return this.$route.fullPath.includes("/home/portfolios")&&!this.$route.fullPath.includes("/home/portfolios/create-new-portfolio")&&"/home/portfolios"!==this.$route.fullPath},closed:function(){return this.$store.state.checklist.popUpClosed},isJobFitChecklist:function(){return"jobFit"===this.checklistType}})},ca=(0,V.A)(la,[["render",function(t,e,o,a,s,l){var c=this,u=(0,n.g2)("JobFitChecklistPopover"),d=(0,n.g2)("ChecklistPopover"),p=(0,n.g2)("Icon"),f=(0,n.g2)("CircleProgressBar"),h=(0,n.g2)("ClickOutsideObserver");return(0,n.uX)(),(0,n.Wv)(h,{"is-active":!l.closed,onClickOutside:l.handleOutsideClick},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",zr,[(0,n.bF)(i.Transition,{name:"drop-down-from-toolbar-reverse"},{default:(0,n.k6)(function(){return[l.closed?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[l.isJobFitChecklist&&t.activeJFCResult?((0,n.uX)(),(0,n.Wv)(u,{key:0,activeJFCResult:t.activeJFCResult,"load-animation":s.loadAnimation,"animations-loaded":function(){c.loadAnimation=[]},style:(0,r.Tr)(o.bottomOffset?{bottom:"".concat(o.bottomOffset+66,"px")}:{})},null,8,["activeJFCResult","load-animation","animations-loaded","style"])):((0,n.uX)(),(0,n.Wv)(d,{key:1,closePopover:function(t){return l.openChecklist(t)},"load-animation":s.loadAnimation,"animations-loaded":function(){c.loadAnimation=[]},style:(0,r.Tr)(o.bottomOffset?{bottom:"".concat(o.bottomOffset+66,"px")}:{})},null,8,["closePopover","load-animation","animations-loaded","style"]))],64))]}),_:1}),(0,n.Lk)("div",{class:(0,r.C4)(["checklist-button",{open:!l.closed}]),onClick:e[0]||(e[0]=function(t){return l.openChecklist(t)}),style:(0,r.Tr)(o.bottomOffset?{bottom:"".concat(o.bottomOffset,"px")}:{})},[l.closed?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[l.isJobFitChecklist?((0,n.uX)(),(0,n.Wv)(p,{key:0,ref:"spaceship","icon-name":"job-fit-checker-volt"},null,512)):((0,n.uX)(),(0,n.CE)("div",Vr,[(0,n.bF)(f,{percentage:s.percentage},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",Kr,[(0,n.bF)(p,{"icon-name":"check"})])]}),_:1},8,["percentage"])]))],64)):((0,n.uX)(),(0,n.Wv)(p,{key:0,class:"closed-icon","icon-name":"close"})),l.closed?((0,n.uX)(),(0,n.CE)("div",Yr,[(0,n.Lk)("div",null,(0,r.v_)(l.counter.finished)+"/"+(0,r.v_)(l.counter.total)+" steps",1)])):(0,n.Q3)("v-if",!0),l.closed&l.isJobFitChecklist?((0,n.uX)(),(0,n.Wv)(p,{key:3,class:"hide-icon","icon-name":"close",onClick:(0,i.withModifiers)(l.hideJFCChecklist,["stop"])},null,8,["onClick"])):(0,n.Q3)("v-if",!0)],6)])]}),_:1},8,["is-active","onClickOutside"])}],["__scopeId","data-v-38f128de"]]);var ua={class:"prompt-icon"},da={class:"prompt-text"},pa=["innerHTML"];function fa(t){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(t)}function ha(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function ma(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(o),!0).forEach(function(e){va(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ha(Object(o)).forEac
2h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function va(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=fa(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fa(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const ga={name:"prompt",components:{Cta:E.A,Icon:R.A},data:function(){return{daysLeft:0,formattedTimeLeft:"00:00:00",intervalId:null}},watch:{currentSubscription:{handler:function(t){"Trial"===this.currentSubscriptionPlan&&"trialing"===(null==t?void 0:t.status)&&this.resumeTrialCountdown()},deep:!0}},mounted:function(){this.updateCountdown(),this.intervalId=setInterval(this.updateCountdown,1e3)},beforeDestroy:function(){clearInterval(this.intervalId)},computed:{currentSubscription:function(){return this.$store.state.userSettings.currentSubscription},currentSubscriptionPlan:function(){return this.$store.state.userSettings.currentSubscriptionPlan},trialEndTimestamp:function(){var t,e=null!==(t=this.currentSubscription)&&void 0!==t&&t.nextBillingDate?new Date(this.currentSubscription.nextBillingDate).getTime():NaN;return Number.isFinite(e)?e:null},buttonText:function(){var t;return"past_due"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)?"Unlock":"Upgrade"},message:function(){var t;return"Trial"===this.currentSubscriptionPlan?this.trialEndTimestamp?this.daysLeft>=1?"Your free trial <b>ends in ".concat(this.daysLeft+1," days</b>. Upgrade now to unlock publishing, domains, and more!"):"00:00:00"!==this.formattedTimeLeft?"Your free trial <b>ends in: ".concat(this.formattedTimeLeft,"</b>. Upgrade now to unlock publishing, domains, and more!"):"Your free trial has <b>ended</b>. Upgrade to unlock editing, publishing, domains, and more!":"Your free trial <b>ends in 7 days</b>. Upgrade now to unlock publishing, domains, and more!":"past_due"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)?"Update your payment method to <b>unlock editing!</b>":"Your subscription has <b>ended</b>. Upgrade to unlock editing, publishing, domains, and more!"},variant:function(){var t,e,o;return"trialing"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)&&0===this.daysLeft||"past_due"===(null===(e=this.currentSubscription)||void 0===e?void 0:e.status)||"canceled"===(null===(o=this.currentSubscription)||void 0===o?void 0:o.status)?"alert":"neutral"},sidePanelOpen:function(){return this.$store.state.showSidePanel},primaryAction:function(){var t;return"past_due"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)?this.openPlanAndPayment:this.openPrices}},methods:{openPlanAndPayment:function(){this.$router.push("/home/settings/plan-and-payment#card-details")},updateCountdown:function(){var t,e;if("Trial"!==this.currentSubscriptionPlan&&("past_due"===(null===(t=this.currentSubscription)||void 0===t?void 0:t.status)||"canceled"===(null===(e=this.currentSubscription)||void 0===e?void 0:e.status)))return clearInterval(this.intervalId),this.daysLeft=0,void(this.formattedTimeLeft="00:00:00");var o=this.trialEndTimestamp;if(!o)return this.daysLeft=0,void(this.formattedTimeLeft="00:00:00");var n=o-(new Date).getTime();this.daysLeft=Math.floor(n/864e5);var r=Math.floor(n%864e5/36e5).toString().padStart(2,"0"),i=Math.floor(n%36e5/6e4).toString().padStart(2,"0"),a=Math.floor(n%6e4/1e3).toString().padStart(2,"0");this.formattedTimeLeft="".concat(r,":").concat(i,":").concat(a),n<=0&&(clearInterval(this.intervalId),this.daysLeft=0,this.formattedTimeLeft="00:00:00")},resumeTrialCountdown:function(){clearInterval(this.intervalId),this.updateCountdown(),this.intervalId=setInterval(this.updateCountdown,1e3)},openPrices:function(){dt.A.track("UPGRADE_CTA_CLICKED",ma(ma({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Bottom banner CTA",context:"Editor - ".concat(this.$store.getters.isCaseStudy?"Case study":"Portfolio"),to:"Prices"})),dt.A.track("BANNER_CTA_CLICKED",ma(ma({},dt.A.getUrls()),{},{event_group:dt.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Bottom banner CTA",context:"Editor - ".concat(this.$store.getters.isCaseStudy?"Case study":"Portfolio"),state:this.$store.getters.subscriptionBannerState})),this.$router.push("/home/prices")}}},ya=(0,V.A)(ga,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon"),c=(0,n.g2)("Cta");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["prompt-container",s.variant,{"side-panel-open":s.sidePanelOpen}])},[(0,n.Lk)("div",ua,[(0,n.bF)(l,{"icon-name":"lock"})]),(0,n.Lk)("div",da,[(0,n.Lk)("span",{innerHTML:s.message},null,8,pa)]),(0,n.bF)(c,{type:"link","dark-scheme":"",onClick:e[0]||(e[0]=function(t){return s.primaryAction()})},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(s.buttonText),1)]}),_:1})],2)}],["__scopeId","data-v-8e6d60dc"]]);
2var ba={class:"info-details"};function ka(t){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(t)}function Sa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Pa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Sa(Object(o),!0).forEach(function(e){wa(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sa(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function wa(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=ka(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ka(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Ca={name:"AdminInfoBanner",components:{Icon:R.A},computed:Pa(Pa({},(0,vi.aH)({isAdmin:function(t){return t.user.isAdmin},isTemplateCreator:function(t){return t.user.isTemplateCreator},portfolio:function(t){return t.portfolio}})),{},{isPublishedTemplatePortfolio:function(){return this.portfolio.isTemplatePortfolio&&!this.portfolio.draft},infoText:function(){return this.isTemplateCreator?this.isPublishedTemplatePortfolio&&this.isEditorPage?"All changes will be visible on the live template.":"You are using UXFolio as a Template-creator.":""},showBanner:function(){return this.isTemplateCreator},isEditorPage:function(){return this.$route.fullPath.includes("/home/portfolios")&&!this.$route.fullPath.includes("/home/portfolios/create-new-portfolio")&&"/home/portfolios"!==this.$route.fullPath}})},Oa=(0,V.A)(Ca,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Icon");return s.showBanner?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["admin-info-banner",{danger:this.isPublishedTemplatePortfolio}])},[(0,n.Lk)("div",ba,[(0,n.bF)(l,{"icon-name":"info"}),(0,n.Lk)("div",null,(0,r.v_)(s.infoText),1)])],2)):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-1357a979"]]);var Aa=o(69682),$a=o(15907),Ta=o(60447),Ea=o(51164);function Ia(t){return Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(t)}function La(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Fa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?La(Object(o),!0).forEach(function(e){_a(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):La(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _a(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Ia(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ia(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ja(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Da(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");
2if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(Da(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Da(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,Da(d,"constructor",c),Da(c,"constructor",l),l.displayName="GeneratorFunction",Da(c,r,"GeneratorFunction"),Da(d),Da(d,r,"Generator"),Da(d,n,function(){return this}),Da(d,"toString",function(){return"[object Generator]"}),(ja=function(){return{w:i,m:p}})()}function Da(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Da=function(t,e,o,n){function i(e,o){Da(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},Da(t,e,o,n)}function xa(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function Ma(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){xa(i,n,r,a,s,"next",t)}function s(t){xa(i,n,r,a,s,"throw",t)}a(void 0)})}}const Na={name:"portfolioEditorApp",components:{NewCancelSubscriptionModal:Aa.A,OnboardingTemplateListSkeleton:Ea.A,Cursor:Ta.default,WelcomeModal:br,TrialRestartedModal:jr,AdminInfoBanner:Oa,AiFeedbackModal:nr,Checklist:ca,WebsocketClient:Gr,Icon:R.A,FullScreenLoader:Dr.A,ModalLoader:Hn.A,AlertMessage:on.A,SupportSurvey:Xn,EditorNavBar:en,Prompt:ya},data:function(){return{portfolioDropDownVisible:!1,projectEditToolsVisible:!1,showUserMenu:!1,alertMessage:{show:!1,type:null,message:null},onboardingBootstrapLoading:!1}},updated:function(){this.setHeightOfTextareas()},mounted:function(){var t=this;return Ma(ja().m(function e(){var o;return ja().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.$store.state.navigatedFromPreview){e.n=8;break}if(o=t.isOnboardingPage,t.onboardingBootstrapLoading=o,t.$store.state.pageIsLoading=!o,e.p=1,!t.isOnboardingPage){e.n=4;break}return e.n=2,wn.z.refreshOnboardingData();case 2:if(t.$store.state.showOnBoardingScreen){e.n=3;break}return e.n=3,wn.z.refreshData();case 3:e.n=7;break;case 4:if(!t.shouldUseEditorRefresh){e.n=6;break}return e.n=5,wn.z.refreshEditorData();case 5:e.n=7;break;case 6:return e.n=7,wn.z.refreshData();case 7:return e.p=7,t.onboardingBootstrapLoading=!1,t.$store.state.pageIsLoading=!1,e.f(7);case 8:if(t.$store.commit("view/clearViewMode"),t.isNonEditorPage||t.$store.state.fontPairs.length){e.n=9;break}return e.n=9,t.getFontPairs();case 9:if(t.isNonEditorPage||t.handleJobFitCheck(),(0,we.JR)({page_path:"/home",page_title:"Profile editor",page_location:window.location.href}),t.isNonEditorPage){e.n=11;break}return t.isMobileDevice(),e.n=10,t.$store.dispatch("showChatBubble");case 10:t.$nextTick(function(){t.$store.commit("setChatBubblePosition",t.$store.state.sidePanelSettings.panel?372:20)});case 11:return e.a(2)}},e,null,[[1,,7,8]])}))()},watch:{blockedEditor:function(t){var e,o;t&&this.$store.commit("setCurrentSubscription",Fa(Fa({},this.currentSubscription),{},{status:"canceled"!==(null===(e=this.currentSubscription)||void 0===e?void 0:e.status)&&null!==(o=this.currentSubscription)&&void 0!==o&&o.neverExpires?"past_due":"canceled"}))},isEditorPage:function(t,e){t&&!e&&this.checkWelcomeToPremiumModalStatus()},"portfolio.currentJobFitCheckId":{immediate:!0,handler:function(t,e){this.isNonEditorPage||(t&&t!==e?this.$store.dispatch("jfc/fetchActiveJFCResult",t):null==t&&this.$store.commit("jfc/clearActiveJFCResult"))}}},computed:{user:function(){return this.$store.state.user},userSettings:function(){return this.$store.state.userSettings},portfolioSetupComplete:function(){return this.$store.state.portfolioSetupComplete},portfolio:function(){return this.$store.state.portfolio},isNonEditorPage:function(){return!!this.$route.meta.nonEditorPage},isOnboardingPage:function(){return this.$route.fullPath.includes("/home/onboarding")},shouldUseEditorRefresh:function(){return!this.isOnboardingPage&&!this.isNonEditorPage},showOnboardingSkeleton:function(){return this.onboardingBootstrapLoading&&this.isOnboardingPage},isEditorPage:function(){return this.$route.fullPath.includes("/home/portfolios")&&!this.$route.fullPath.includes("/home/portfolios/create-new-portfolio")&&"/home/portfolios"!==this.$route.fullPath},showPrompt:function(){return this.portfolioSetupComplete&&!this.$route.meta.nonEditorPage&&!this.$store.state.onboardingFinished&&this.$store.state.userSettings.currentSubscriptionPlan&&!this.$store.getters.userIsVIP&&(this.$store.getters.userIsTrial||!this.$store.getters.userIsPremium)},showAdminInfoBanner:function(){return!!this.user&&!!this.portfolio&&!!this.user.isTemplateCreator},editorFrameStyle:function(){return{"--portfolioEditorBottomBannerOffset":this.showPrompt||this.showAdminInfoBanner?"48px":"0px"}},currentSubscription:function(){return this.$store.state.userSettings.currentSubscription},blockedEditor:function(){return this.$store.getters.isEditorBlocked},showChecklist:function(){return!(this.$route.meta.nonEditorPage||null===this.checklistType||this.$store.state.onboardingFinished||this.$route.fullPath.includes("onboarding")||this.$route.fullPath.includes("create-new-portfolio")||this.$store.getters.isEditorBlocked)},checklistType:function(){var t,e;return null!==(t=this.portfolio)&&void 0!==t&&t.currentJobFitCheckId?"jobFit":null!==(e=this.user)&&void 0!==e&&e.checklistStatus&&this.portfolio&&!this.$store.state.checklist.finished?"activation":null}},methods:Fa(Fa({},(0,vi.i0)("design",["setFontPairs"])),{},{isMobileDevice:function(){(void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")||window.innerWidth<640)&&!localStorage.getItem("uxfolioMobileNotificationProfile")&&(this.$store.state.alertModalMessage={type:"mobile-device",title:"Please, switch to a desktop device",message:"The editor is o
2ptimized for desktop use."},this.$store.state.activeModal="AlertModal")},setHeightOfTextareas:function(){(0,xr.A)(document.querySelectorAll("textarea")),this.$nextTick(function(){return xr.A.update(document.querySelectorAll("textarea"))})},openEmergencyAlertModal:function(){this.$store.state.activeModal="EmergencyAlertModal"},checkWelcomeToPremiumModalStatus:function(){"true"===localStorage.getItem("show-welcome-to-premium")&&(this.$store.state.activeModal="WelcomeToPremiumModal")},handleJobFitCheck:function(){var t;null!==(t=this.portfolio)&&void 0!==t&&t.currentJobFitCheckId&&this.$store.dispatch("jfc/fetchActiveJFCResult",this.portfolio.currentJobFitCheckId)},getFontPairs:function(){var t=this;return Ma(ja().m(function e(){var o,n;return ja().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,$a.A.getFontPairs("?search=");case 1:o=e.v,t.$store.commit("design/setFontPairs",o.data),e.n=3;break;case 2:e.p=2,n=e.v,console.log("Error: ",n);case 3:return e.a(2)}},e,null,[[0,2]])}))()}})},Ua=(0,V.A)(Na,[["render",function(t,e,o,u,d,p){var f=(0,n.g2)("WebsocketClient"),h=(0,n.g2)("EditorNavBar"),m=(0,n.g2)("Icon"),v=(0,n.g2)("OnboardingTemplateListSkeleton"),g=(0,n.g2)("RouterView"),y=(0,n.g2)("AlertMessage"),b=(0,n.g2)("ModalLoader"),k=(0,n.g2)("FullScreenLoader"),S=(0,n.g2)("Checklist"),P=(0,n.g2)("AiFeedbackModal"),w=(0,n.g2)("SupportSurvey"),C=(0,n.g2)("WelcomeModal"),O=(0,n.g2)("TrialRestartedModal"),A=(0,n.g2)("Prompt"),$=(0,n.g2)("AdminInfoBanner"),T=(0,n.g2)("Cursor");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["main-container",{"show-prompt":p.showPrompt}]),style:(0,r.Tr)(p.editorFrameStyle)},[p.isNonEditorPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(f,{key:0})),t.$route.meta.nonEditorPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(h,{key:1})),t.$store.state.emergencyModeSettings&&t.$store.state.emergencyModeSettings.emergencyMode&&t.$store.state.emergencyModeSettings.editorEmergencyBanner?((0,n.uX)(),(0,n.CE)("div",{key:2,class:"alert-banner-container",onClick:e[0]||(e[0]=function(){return p.openEmergencyAlertModal&&p.openEmergencyAlertModal.apply(p,arguments)})},[(0,n.Lk)("div",a,[(0,n.Lk)("div",s,[(0,n.Lk)("div",l,[(0,n.bF)(m,{"icon-name":"info"})]),(0,n.Lk)("div",c,[(0,n.eW)((0,r.v_)(t.$store.state.emergencyModeSettings.editorEmergencyBannerText)+" ",1),e[1]||(e[1]=(0,n.Lk)("strong",null," Click here for updates",-1))])])])])):(0,n.Q3)("v-if",!0),p.showOnboardingSkeleton?((0,n.uX)(),(0,n.Wv)(v,{key:3,"with-frame":!0})):(0,n.Q3)("v-if",!0),p.user&&p.portfolio&&!p.showOnboardingSkeleton?((0,n.uX)(),(0,n.Wv)(g,{key:4})):(0,n.Q3)("v-if",!0),p.user&&!p.showOnboardingSkeleton?((0,n.uX)(),(0,n.Wv)(g,{key:5,name:"onBoarding"})):(0,n.Q3)("v-if",!0),(0,n.bF)(i.Transition,{name:t.$store.state.alertMessage.position?"alert-".concat(t.$store.state.alertMessage.position):"alert"},{default:(0,n.k6)(function(){return[t.$store.state.alertMessage.show?((0,n.uX)(),(0,n.Wv)(y,{key:0})):(0,n.Q3)("v-if",!0)]}),_:1},8,["name"]),(0,n.bF)(b),t.$store.state.pageIsLoading&&!p.showOnboardingSkeleton?((0,n.uX)(),(0,n.Wv)(k,{key:6})):(0,n.Q3)("v-if",!0),p.user&&p.portfolio&&p.showChecklist?((0,n.uX)(),(0,n.Wv)(S,{key:7,"bottom-offset":p.showPrompt?64:void 0,"checklist-type":p.checklistType},null,8,["bottom-offset","checklist-type"])):(0,n.Q3)("v-if",!0),t.$store.state.showAiFeedbackModal?((0,n.uX)(),(0,n.Wv)(P,{key:8})):(0,n.Q3)("v-if",!0),t.$store.state.userSettings.showSupportSurvey?((0,n.uX)(),(0,n.Wv)(w,{key:9})):(0,n.Q3)("v-if",!0),(0,n.bF)(i.Transition,{name:"fade-in"},{default:(0,n.k6)(function(){return[(t.$store.state.onboardingFinished||t.$store.state.userSettings.showTrialStartedAlert)&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(C,{key:0})):(0,n.Q3)("v-if",!0)]}),_:1}),(0,n.bF)(i.Transition,{name:"fade-in"},{default:(0,n.k6)(function(){return[t.$store.state.userSettings.showTrialRestartedAlert&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(O,{key:0})):(0,n.Q3)("v-if",!0)]}),_:1}),p.showPrompt?((0,n.uX)(),(0,n.Wv)(A,{key:10})):(0,n.Q3)("v-if",!0),p.showAdminInfoBanner?((0,n.uX)(),(0,n.Wv)($,{key:11})):(0,n.Q3)("v-if",!0),t.$store.state.cursorPreviewMode?((0,n.uX)(),(0,n.Wv)(T,{key:12})):(0,n.Q3)("v-if",!0)],6)}]]),Ba=Ua},4689(t,e,o){"use strict";o.d(e,{A:()=>y});var n=o(20641),r=o(90033);var i=o(17621),a=o(76107),s=o(82124),l=o(23492),c=o(85098),u=o(74256);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t){return function(t){if(Array.isArray(t))return f(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 f(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?f(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?h(Object(o),!0).forEach(function(e){v(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function v(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const g={name:"PageContent",components:{CustomPageTitle:c.A,SectionLoader:i.A},beforeMount:function(){(0,l.f)(this.getAllCssVars)},mounted:function(){this.$store.commit("setTriggerAnimation",!1)},watch:{getAllCssVars:{handler:function(){(0,l.f)(this.getAllCssVars)}}},methods:{checkDarkMode:function(){this.$store.state.darkMode=(0,a.oW)(this.resolveColor("background")).l<.2}},computed:m(m({},(0,s.L8)("design",["resolveColor","getAllCssVars","portfolioTheme"])),{},{dynamicClasses:function(){return this.$store.getters.isCaseStudy?[{"sidebar--on":this.$store.state.showSidePanel},{"case-study":this.$store.getters.isCaseStudy}].concat(p(this.setCurrentThemeAsClass)):["profile-page","profile-editor",{home:this.$store.getters.isHomePage},{"sidebar--on":this.$store.state.showSidePanel}].concat(p(this.setCurrentThemeAsClass))},portfolioSettings:function(){return this.$store.state.portfolio.templateSettings},setCurrentThemeAsClass:function(){return[this.portfolioSettings.theme]},darkModeColors:function(){return this.checkDarkMode(),this.$store.state.darkMode?{"--fabColor":"var(--fabDarkColor)","--fabBackgroun
2dColor":"var(--fabDarkBackgroundColor)","--fabHoverBackgroundColor":"var(--fabDarkHoverBackgroundColor)","--fabDisabledColor":"var(--fabDarkDisabledColor)","--fabSelectedBackgroundColor":"var(--fabDarkSelectedBackgroundColor)","--fabSubtleColor":"var(--fabDarkSubtleColor)","--fabSubtleBackgroundColor":"var(--fabDarkSubtleBackgroundColor)","--fabSubtleHoverBackgroundColor":"var(--fabDarkSubtleHoverBackgroundColor)","--carbon30":"var(--asphalt100)","--toolbarColor":"var(--toolbarDarkColor)","--toolbarHoverColor":"var(--toolbarDarkHoverColor)","--toolHoverBackgroundColor":"var(--toolDarkHoverBackgroundColor)","--toolActiveBackgroundColor":"var(--toolDarkActiveBackgroundColor)","--toolDdOptionsShadow":"var(--toolDdDarkOptionsShadow)","--outlineColor":"var(--darkOutlineColor)","--hoverOutlineColor":"var(--darkHoverOutlineColor)","--focusOutlineColor":"var(--darkFocusOutlineColor)"}:null},pageHasHeader:function(){var t,e=null===(t=this.$store.state.portfolio)||void 0===t||null===(t=t.portfolioNavigation)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.position;return!this.$store.getters.isCaseStudy&&!this.$store.getters.isHomePage&&e===u.ze.UNDER_TEXT&&(this.portfolioTheme.includes("theme_one")||this.portfolioTheme.includes("theme_two"))}})};const y=(0,o(66262).A)(g,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("CustomPageTitle"),c=(0,n.g2)("SectionLoader");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["ufo--portfolio-page",s.dynamicClasses]),style:(0,r.Tr)(s.darkModeColors)},[s.pageHasHeader?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--about-page ufo--about-page-editor","ufo--about-page-".concat(t.portfolioTheme)])},[(0,n.bF)(l)],2)):(0,n.Q3)("v-if",!0),(0,n.bF)(c)],6)}],["__scopeId","data-v-33eee9e1"]])},53413(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(20641),r=o(53751);const i={name:"SidePanelOutlet"};const a=(0,o(66262).A)(i,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("router-view");return(0,n.uX)(),(0,n.Wv)(l,{name:"sidePanel"},{default:(0,n.k6)(function(t){var e=t.Component;return[(0,n.bF)(r.Transition,{name:"sidebar-slide"},{default:(0,n.k6)(function(){return[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e)))]}),_:2},1024)]}),_:1})}]])},85098(t,e,o){"use strict";o.d(e,{A:()=>d});var n=o(20641),r=o(53751),i={key:0,class:"ufo--about-header"},a={class:"grid"},s={class:"about-title"};var l=o(8187),c=o(45);const u={name:"custom-page-title",components:{AnimationWrapper:o(15637).A,Fab:l.A},data:function(){return{styleButtonVisible:!1}},methods:{updateAboutPage:function(){c.A.updateProjectByShortId(this.$route.params.projectShortId,this.$store.state.project.name)},openSidePanel:function(){this.$store.commit("openSidePanel",{panelPath:"style/fonts"})},goHome:function(){return this.$store.commit("setPageToEdit","home"),this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))}},computed:{template:function(){return this.$store.state.portfolio.templateSettings.theme}}};const d=(0,o(66262).A)(u,[["render",function(t,e,o,l,c,u){var d=(0,n.g2)("fab"),p=(0,n.g2)("AnimationWrapper");return t.$store.state.project?((0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",a,[(0,n.Lk)("div",s,[(0,n.Lk)("div",{class:"about-title-container",onMouseenter:e[3]||(e[3]=function(t){return c.styleButtonVisible=!0}),onMouseleave:e[4]||(e[4]=function(t){return c.styleButtonVisible=!1})},[(0,n.bF)(r.Transition,{name:"modal"},{default:(0,n.k6)(function(){return[c.styleButtonVisible?((0,n.uX)(),(0,n.Wv)(d,{key:0,icon:"style",onClick:e[0]||(e[0]=function(t){return u.openSidePanel()})})):(0,n.Q3)("v-if",!0)]}),_:1}),(0,n.bF)(p,null,{animationContent:(0,n.k6)(function(){return[(0,n.bo)((0,n.Lk)("input",{class:"title","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.$store.state.project.name=e}),onBlur:e[2]||(e[2]=function(t){return u.updateAboutPage()})},null,544),[[r.vModelText,t.$store.state.project.name]])]}),_:1})],32)]),(0,n.bF)(p,null,{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("div",{onClick:e[5]||(e[5]=function(t){return u.goHome()}),class:"back"},"âµ Back")]}),_:1})])])):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-d122cb0e"]])},9784(t,e,o){"use strict";o.d(e,{A:()=>d});var n=o(20641),r=o(90033),i=o(53751),a={key:0,class:"ufo--about-header"},s={class:"grid"},l={class:"about-title"};var c=o(8187);const u={name:"page-title",components:{AnimationWrapper:o(15637).A,Fab:c.A},data:function(){return{styleButtonVisible:!1}},methods:{updateAboutPage:function(){this.$actions.updatePortfolio()},openSidePanel:function(){this.$store.commit("openSidePanel",{panelPath:"style/fonts"})},goHome:function(){return this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))}},computed:{template:function(){return this.$store.state.portfolio.templateSettings.theme},pageHasHeader:function(){return this.template.includes("profile_")&&"profile_theme_default"!==this.template.replace("_old","")&&"profile_theme_three"!==this.template.replace("_old","")&&"profile_theme_five"!==this.template&&"profile_theme_six"!==this.template&&"profile_theme_eight"!==this.template||"theme_one"===this.template||"theme_two"===this.template},backIsVisible:function(){return"profile_theme_four"!==this.template&&"profile_theme_seven"!==this.template&&"profile_theme_nine"!==this.template}}};const d=(0,o(66262).A)(u,[["render",function(t,e,o,c,u,d){var p=(0,n.g2)("fab"),f=(0,n.g2)("AnimationWrapper");return d.pageHasHeader?((0,n.uX)(),(0,n.CE)("div",a,[(0,n.Lk)("div",s,[(0,n.Lk)("div",l,[(0,n.Lk)("div",{class:"about-title-container",style:(0,r.Tr)([t.getTitleStyle]),onMouseenter:e[3]||(e[3]=function(t){return u.styleButtonVisible=!0}),onMouseleave:e[4]||(e[4]=function(t){return u.styleButtonVisible=!1})},[(0,n.bF)(i.Transition,{name:"modal"},{default:(0,n.k6)(function(){return[u.styleButtonVisible?((0,n.uX)(),(0,n.Wv)(p,{key:0,icon:"style",onClick:e[0]||(e[0]=function(t){return d.openSidePanel()})})):(0,n.Q3)("v-if",!0)]}),_:1}),(0,n.bF)(f,null,{animationContent:(0,n.k6)(function(){return[(0,n.bo)((0,n.Lk)("input",{class:"title","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.$
2store.state.project.name=e}),onBlur:e[2]||(e[2]=function(t){return d.updateAboutPage()})},null,544),[[i.vModelText,t.$store.state.project.name]])]}),_:1})],36)]),(0,n.bF)(f,null,{animationContent:(0,n.k6)(function(){return[d.backIsVisible?((0,n.uX)(),(0,n.CE)("div",{key:0,onClick:e[5]||(e[5]=function(t){return d.goHome()})},"âµ Back")):(0,n.Q3)("v-if",!0)]}),_:1})])])):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-5f892250"]])},85099(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>K});var n=o(20641),r=o(90033),i=o(76634);const a=o.p+"src/assets/images/icon-thumbnail-light.bbfe8e2a.svg",s=o.p+"src/assets/images/icon-close-small.2a46c4a3.svg";function l(t){return function(t){if(Array.isArray(t))return c(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 c(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var u={key:0,class:"ufo--about-legacy-wrapper"},d={class:"ufo--about-legacy-controls"},p={class:"ufo--lcb"},f={class:"e-btn--floating-buttons"},h={class:"e-btn--wrapper e-btn--wrapper-section"},m={class:"grid ufo--about-content"},v={class:"about-picture editor"},g=["src"],y={key:1,src:i,class:"empty"},b={class:"about-text"};var k=o(4689),S=o(53413),P=o(8865),w=o(9784),C=o(86713);function O(t){return function(t){if(Array.isArray(t))return A(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 A(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?A(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 A(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var $={class:"upload"};var T=o(5412),E=o(79271),I=o(8851),L=o(67607),F=o(55445),_=o(73377);const j={name:"upload-about-me-picture-modal",components:{ModalBody:F.A,FileUpload:L.A,ModalHeader:I.A,ModalWrapper:E.A,Cta:T.A},props:["portfolio","show"],data:function(){return{updateButtonIsInactive:!0,currentImageUrls:[this.$store.state.portfolio.about.image.url,this.$store.state.portfolio.about.image.croppedImageUrl]}},methods:{changeImage:function(t){this.$emit("update-image",t),this.closeModal()},closeModal:function(){this.$parent.showUploadAboutMePictureModal=!1,this.updateButtonIsInactive=!0}},computed:{directUploadTarget:function(){return _.QQ.portfolio(this.$store.state.portfolio._id,"about")},getFileSize:function(){switch(this.$store.state.portfolio.templateSettings.theme){case"profile_theme_default":default:return"755 Ã 380";case"profile_theme_one":return"448 Ã 600";case"profile_theme_two":return"725 Ã 380";case"profile_theme_three":return"355 Ã 550";case"profile_theme_four":return"725 Ã 372";case"profile_theme_five":return"719 Ã 350";case"profile_theme_six":return"633 Ã 703";case"profile_theme_seven":return"468 Ã 620"}}}};var D=o(66262);const x=(0,D.A)(j,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("ModalHeader"),l=(0,n.g2)("FileUpload"),c=(0,n.g2)("ModalBody"),u=(0,n.g2)("cta"),d=(0,n.g2)("ModalWrapper");return(0,n.uX)(),(0,n.Wv)(d,{"dark-scheme":"",show:o.show,"modal-size":"large",onClose:a.closeModal},{"modal-header":(0,n.k6)(function(){return[(0,n.bF)(s,{"dark-scheme":"",title:"Update About Me picture"})]}),"modal-body":(0,n.k6)(function(){return[(0,n.bF)(c,null,{default:(0,n.k6)(function(){return[(0,n.Lk)("div",$,[(0,n.bF)(l,{url:"/api/image/portfolio/upload/".concat(t.$store.state.portfolio._id),path:"".concat(t.$store.state.user._id,"/portfolios/").concat(t.$store.state.portfolio._id,"/about"),"files-to-change":i.currentImageUrls,"ideal-size":a.getFileSize,"preview-height":400,"direct-upload-target":a.directUploadTarget,onOnSuccess:a.changeImage},null,8,["url","path","files-to-change","ideal-size","direct-upload-target","onOnSuccess"])])]}),_:1})]}),"modal-footer":(0,n.k6)(function(){return[(0,n.bF)(u,{"dark-scheme":"",type:"secondary",onClick:e[0]||(e[0]=function(t){return a.closeModal()})}
2,{default:(0,n.k6)(function(){return O(e[2]||(e[2]=[(0,n.eW)("Cancel",-1)]))}),_:1}),(0,n.bF)(u,{"dark-scheme":"",disabled:i.updateButtonIsInactive,onClick:e[1]||(e[1]=function(t){return a.changeImage()})},{default:(0,n.k6)(function(){return O(e[3]||(e[3]=[(0,n.eW)("Change image",-1)]))}),_:1},8,["disabled"])]}),_:1},8,["show","onClose"])}],["__scopeId","data-v-89e3dbde"]]);var M=o(29403),N=o(17881),U=o(17621),B=o(8187),X=o(33346),H=o(82124);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function R(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Q(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?R(Object(o),!0).forEach(function(e){G(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function G(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=W(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const z={name:"about-page",components:{PageContent:k.A,SidePanelOutlet:S.A,MessageHighlight:X.A,Fab:B.A,PageFrame:P.A,PageTitle:w.A,SectionLoader:U.A,TextEditor:C.A,UploadAboutMePictureModal:x,FlyInBubbleMessage:M.A,ConfirmationModal:N.A},data:function(){return{showUploadAboutMePictureModal:!1,showDeleteLegacyModal:!1,showLegacyBubble:!1}},beforeMount:function(){this.$actions.getPageByShortId("about")},mounted:function(){this.$actions.trackPageView("/home".concat(this.$route.fullPath),"About page edit"),window.scrollY&&window.scroll(0,0)},unmounted:function(){},watch:{project:{handler:function(){this.$store.state.portfolioPages.find(function(t){return"about"===t.type})&&this.$actions.updateProjectByShortId(this.$store.state.portfolioPages.find(function(t){return"about"===t.type}).shortId,this.$store.state.portfolioPages.find(function(t){return"about"===t.type}).name)},deep:!0}},methods:{updateText:function(t){this.$store.state.portfolio.about.description=t,this.updateAboutPage()},updateImage:function(t){this.$store.state.portfolio.about.image=Q(Q({},this.$store.state.portfolio.about.image),{},{url:t.url,width:t.width,height:t.height}),this.updateAboutPage()},removeUserAboutMePicture:function(){this.$store.dispatch("deleteProjectImage",{imageUrl:this.$store.state.portfolio.about.image.url}),this.$store.state.portfolio.about.image.url=null,this.updateAboutPage()},imageLoaded:function(){this.about.image&&!this.about.image.width&&(this.$store.state.portfolio.about.image.width=this.$refs.img.naturalWidth),this.about.image&&!this.about.image.height&&(this.$store.state.portfolio.about.image.height=this.$refs.img.naturalHeight),this.$store.commit("recalculateScrollTriggers")},updateAboutPage:function(){this.$actions.updatePortfolio()},deleteLegacySection:function(t){this.$store.state.portfolio.about.description=null,this.$store.dispatch("deleteProjectImage",{imageUrl:this.$store.state.portfolio.about.image.url}),this.$store.state.portfolio.about.image.url=null,this.updateAboutPage(),this.showDeleteLegacyModal=!1,t&&this.$actions.trackEditEvent("Delete legacy section")}},computed:Q(Q({},(0,H.L8)(["portfolioUsesRootHeaderSections"])),{},{project:function(){return this.$store.state.portfolio.about},template:function(){return this.$store.state.portfolio.templateSettings.theme},about:function(){return this.$store.state.portfolio.about},showLegacyAboutSection:function(){return!!(this.$store.state.portfolio.about&&(this.$store.state.portfolio.about.description||this.$store.state.portfolio.about.image&&this.$store.state.portfolio.about.image.url))},getAboutText:function(){return this.$store.state.portfolio.about.description},getAboutImage:function(){return this.$store.state.portfolio.about.image.url},setCurrentThemeAsClass:function(){return"ufo--about-page-".concat(this.template)},emptyPortfolio:function(){return(!this.$store.state.caseStudyPages||this.$store.state.caseStudyPages.length<=0)&&!this.isSubPage},isSubPage:function(){return this.$route.path.indexOf("/about")>0||this.$route.path.indexOf("/contact")>0||this.$route.path.indexOf("/p/")>=0}})},V=(0,D.A)(z,[["render",function(t,e,o,i,c,k){var S=(0,n.g2)("PageContent"),P=(0,n.g2)("page-title"),w=(0,n.g2)("fly-in-bubble-message"),C=(0,n.g2)("fab"),O=(0,n.g2)("text-editor"),A=(0,n.g2)("upload-about-me-picture-modal"),$=(0,n.g2)("MessageHighlight"),T=(0,n.g2)("confirmation-modal"),E=(0,n.g2)("SectionLoader"),I=(0,n.g2)("PageFrame"),L=(0,n.g2)("SidePanelOutlet");return(0,n.uX)(),(0,n.CE)(n.FK,null,[t.portfolioUsesRootHeaderSections&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(S,{key:0})):t.$store.state.project?((0,n.uX)(),(0,n.Wv)(I,{key:1},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,r.C4)(["ufo--about-page ufo--about-page-editor",[k.setCurrentThemeAsClass,{legacy:k.showLegacyAboutSection}]])},[(0,n.bF)(P),k.showLegacyAboutSection?((0,n.uX)(),(0,n.CE)("div",u,[(0,n.Lk)("div",d,[(0,n.Lk)("div",p,[(0,n.Lk)("div",{class:"badge",onClick:e[0]||(e[0]=function(t){return c.showLegacyBubble=!c.showLegacyBubble})},"âï¸ Legacy section"),(0,n.bF)(w,{show:c.showLegacyBubble,onAction:e[1]||(e[1]=function(t){return c.showLegacyBubble=!1})},{button:(0,n.k6)(function(){return l(e[8]||(e[8]=[(0,n.eW)("Okay",-1)]))}),default:(0,n.k6)(function(){return[e[9]||(e[9]=(0,n.Lk)("h4",null,"This section cannot be edited",-1)),e[10]||(e[10]=(0,n.Lk)("p",null,"This is a legacy section, so it cannot be edited or restored, and it will differ from newly added sections.",-1))]}),_:1},8,["show"])]),(0,n.Lk)("div",f,[(0,n.Lk)("div",h,[(0,n.bF)(C,{icon:"delete",onClick:e[2]||(e[2]=function(t){return c.showDeleteLegacyModal=!0}),tooltip:"Delete section"})])])]),(0,n.Lk)("div",m,[(0,n.Lk)("div",v,[k.about.image.url?((0,n.uX)(),(0,n.CE)("img",{key:0,ref:"img",src:k.getAboutImage,onLoad:e[3]||(e[3]=function(t){return k.imageLoaded()})},null,40,g)):((0,n.uX)(),(0,n.CE)("img",y)),(0,n.Lk)("label",{class:"upload-button",onClick:e[4]||(e[4]=function(t){return c.showUploadAboutMePictureModal=!0})},l(e[11]||(e[11]=[(0,n.Lk)("img",{src:a,width:"16",height:"14"},null,-1)]))),k.about.image.url?((0,n.uX)(),(0,n.CE)("div",{key:2,onClick:e[5]||(e[5]=function(){return k.removeUserAboutMePicture&&k.removeUserAboutMePicture.apply(k,arguments)}),class:"delete-image"},l(e[12]||(e[12]=[(0,n.Lk)("img",{src:s,width:"22",height:"22"},null,-1)])))):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",b,[(0,n.bF)(O,{text:k.getAboutText,"hide-editor-toolbar":!0,"update-text":k.updateText},null,8,["text","update-text"])])]),(0,n.bF)(A,{show:c.showUploadAboutMePictureModal,onUpdateImage:k.updateImage},null,8,["show","onUpdateImage"]),(0,n.bF)(T,{show:c.showDeleteLegacyModal,onAction:e[6]||(e[6]=function(t){return k.deleteLegacySection(!0)}
2),onClose:e[7]||(e[7]=function(t){return c.showDeleteLegacyModal=!1}),title:"Are you sure you want to delete this section?"},{content:(0,n.k6)(function(){return[e[13]||(e[13]=(0,n.Lk)("div",null,"Are you sure you want to delete this section?",-1)),(0,n.bF)($,{"dark-scheme":"",message:"This is a legacy section. Once itâs deleted, the exact section cannot be restored."})]}),_:1},8,["show"])])):(0,n.Q3)("v-if",!0)],2),(0,n.bF)(E)]}),_:1})):(0,n.Q3)("v-if",!0),(0,n.bF)(L)],64)}]]),K=V},48626(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>v});var n=o(20641),r=o(90033);var i=o(4689),a=o(53413),s=o(8865),l=o(9784),c=o(17621),u=o(82124);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function f(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?p(Object(o),!0).forEach(function(e){h(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function h(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const m={name:"contact-me-panel",components:{PageContent:i.A,SidePanelOutlet:a.A,PageFrame:s.A,PageTitle:l.A,SectionLoader:c.A},beforeMount:function(){this.$actions.getPageByShortId("contact")},mounted:function(){this.$actions.trackPageView("/home".concat(this.$route.fullPath),"About page edit"),window.scrollY&&window.scroll(0,0)},watch:{project:{handler:function(){this.$store.state.portfolioPages.find(function(t){return"contact"===t.type})&&this.$actions.updateProjectByShortId(this.$store.state.portfolioPages.find(function(t){return"contact"===t.type}).shortId,this.$store.state.portfolioPages.find(function(t){return"contact"===t.type}).name)},deep:!0}},computed:f(f({},(0,u.L8)(["portfolioUsesRootHeaderSections"])),{},{project:function(){return this.$store.state.portfolio.contact},template:function(){return this.$store.state.portfolio.templateSettings.theme},setCurrentThemeAsClass:function(){return"ufo--about-page-".concat(this.template)},emptyPortfolio:function(){return(!this.$store.state.caseStudyPages||this.$store.state.caseStudyPages.length<=0)&&!this.isSubPage},isSubPage:function(){return this.$route.path.indexOf("/about")>0||this.$route.path.indexOf("/contact")>0||this.$route.path.indexOf("/p/")>=0},showLegacyAboutSection:function(){return!!(this.$store.state.portfolio.about&&(this.$store.state.portfolio.about.description||this.$store.state.portfolio.about.image&&this.$store.state.portfolio.about.image.url))}})};const v=(0,o(66262).A)(m,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("PageContent"),c=(0,n.g2)("PageTitle"),u=(0,n.g2)("SectionLoader"),d=(0,n.g2)("PageFrame"),p=(0,n.g2)("SidePanelOutlet");return(0,n.uX)(),(0,n.CE)(n.FK,null,[t.portfolioUsesRootHeaderSections&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(l,{key:0})):t.$store.state.project?((0,n.uX)(),(0,n.Wv)(d,{key:1},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,r.C4)(["ufo--about-page ufo--about-page-editor",[s.setCurrentThemeAsClass,{legacy:s.showLegacyAboutSection}]]),style:(0,r.Tr)([t.$parent.getTextStyles,t.$parent.templateAccentColor])},[(0,n.bF)(c)],6),(0,n.bF)(u)]}),_:1})):(0,n.Q3)("v-if",!0),(0,n.bF)(p)],64)}],["__scopeId","data-v-44b76b3e"]])},21898(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>b});var n=o(20641),r=o(90033);var i=o(4689),a=o(53413),s=o(85098),l=o(8865),c=o(17621),u=o(82124);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function f(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?p(Object(o),!0).forEach(function(e){h(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function h(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function m(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return v(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(v(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,v(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,v(d,"constructor",c),v(c,"constructor",l),l.displayName="GeneratorFunction",v(c,r,"GeneratorFunction"),v(d),v(d,r,"Generator"),v(d,n,function(){return this}),v(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:p}})()}function v(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}v=function(t,e,o,n){function i(e,o){v(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},v(t,e,o,n)}function g(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}const y={name:"custom-page",components:{PageContent:i.A,SidePanelOutlet:a.A,CustomPageTitle:s.A,PageFrame:l.A,SectionLoader:c.A},beforeRouteUpdate:function(t,e){var o,n=this;return(o=m().m(function o(){var r,i,a,s,l,c,u;return m().w(function(o){for(;;)switch(o.n){case 0:r=t.params,i=r.projectShortId,a=r.portfolioId,s=e.params,l=s.projectShortId,c=s.portfolioId,i===l&&a===c||(u=n.$store.state.portfolioPages.some(function(t){return t.shortId===i}),n.$store.commit(u?"setPageToEdit":"setCaseStudyToEdit",i));case 1:return o.a(2)}},o)}),function(){var t=this,e=arguments;return new Promise(function(n,r){var i=o.apply(t,e);function a(t){g(i,n,r,a,s,"next",t)}function s(t){g(i,n,r,a,s,"throw",t)}a(void 0)})})()},beforeMount:function(){this.$actions.getPageByShortId(this.$route.params.projectShortId),this.$store.state.project&&this.$store.getters.isCaseStudy&&(document.title="Editor - UXfolio")},mounted:function(){this.$store.state.project&&!this.$store.getters.isCaseStudy?this.$actions.trackPageView("/home".concat(this.$route.fullPath),"Page edit"):this.$actions.trackPageView("/home".concat(this.$route.fullPath),"Edit project"),window.scrollY&&window.scroll(0,0),this.$store.state.sectionEditorSettings.sectionLimit=3},beforeUnmount:function(){this.$store.state.sectionEditorSettings.sectionLimit=null},computed:f(f({},(0,u.L8)(["portfolioUsesRootHeaderSections"])),{},{project:function(){return this.$store.state.project},template:function(){return this.$store.state.portfolio.templateSettings.theme},setCurrentThemeAsClass:function(){return"ufo--about-page-".concat(this.template)},pageHasHeader:function(){return!this.$store.getters.isCaseStudy&&(this.template.includes("theme_one")||this.template.includes("theme_two"))}})};const b=(0,o(66262).A)(y,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("PageContent"),c=(0,n.g2)("CustomPageTitle"),u=(0,n.g2)("SectionLoader"),d=(0,n.g2)("PageFrame"),p=(0,n.g2)("SidePanelOutlet");return(0,n.uX)(),(0,n.CE)(n.FK,null,[t.portfolioUsesRootHeaderSections&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(l,{key:0})):t.$store.state.project?((0,n.uX)(),(0,n.Wv)(d,{key:1},{default:(0,n.k6)(function(){return[s.pageHasHeader?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--about-page ufo--about-page-editor",[s.setCurrentThemeAsClass]])},[(0,n.bF)(c)],2)):(0,n.Q3)("v-if",!0),(0,n.bF)(u)]}),_:1})):(0,n.Q3)("v-if",!0),(0,n.bF)(p)],64)}]])},85345(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>g});var n=o(20641);var r=o(4689),i=o(53413),a=o(8865),s=o(17621),l=o(82124);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?u(Object(o),!0).forEach(function(e){p(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function p(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function f(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return h(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(h(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,h(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,h(d,"constructor",c),h(c,"constructor",l),l.displayName="GeneratorFunction",h(c,r,"GeneratorFunction"),h(d),h(d,r,"Generator"),h(d,n,function(){return this}),h(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:i,m:p}})()}function h(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}h=function(t,e,o,n){function i(e,o){h(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},h(t,e,o,n)}function m(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}const v={name:"home-page",components:{PageContent:r.A,SidePanelOutlet:i.A,PageFrame:a.A,SectionLoader:s.A},beforeMount:function(){var t,e=this;return(t=f().m(function t(){var o;return f().w(function(t){for(;;)switch(t.n){case 0:if("home"===(null===(o=e.$store.state.project)||void 0===o?void 0:o.shortId)){t.n=2;break}return t.n=1,e.$actions.getPageByShortId("home");case 1:e.$store.commit("setPageToEdit","home");case 2:return t.a(2)}},t)}),function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){m(i,n,r,a,s,"next",t)}function s(t){m(i,n,r,a,s,"throw",t)}a(void 0)})})()},mounted:function(){this.$actions.trackPageView("/home".concat(this.$route.fullPath),"Edit portfolio"),window.scrollY&&window.scroll(0,0),this.$store.state.sectionEditorSettings.sectionLimit=3},beforeUnmount:function(){this.$store.state.sectionEditorSettings.sectionLimit=null},computed:d(d({},(0,l.L8)(["portfolioUsesRootHeaderSections"])),{},{isSubPage:function(){return this.$route.path.indexOf("/about")>0||this.$route.path.indexOf("/contact")>0||this.$route.path.indexOf("/p/")>=0}})};const g=(0,o(66262).A)(v,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("PageContent"),l=(0,n.g2)("SectionLoader"),c=(0,n.g2)("PageFrame"),u=(0,n.g2)("SidePanelOutlet");return(0,n.uX)(),(0,n.CE)(n.FK,null,[t.portfolioUsesRootHeaderSections&&t.$store.state.project?((0,n.uX)(),(0,n.Wv)(s,{key:0})):t.$store.state.project?((0,n.uX)(),(0,n.Wv)(c,{key:1,class:"home"},{default:(0,n.k6)(function(){return[(0,n.bF)(l)]}),_:1})):(0,n.Q3)("v-if",!0),(0,n.bF)(u)],64)}]])},8865(t,e,o){"use strict";o.d(e,{A:()=>Ce});var n=o(20641),r=o(90033);var i={class:"profile-short-cv"};var a={key:0,class:"grid ufo--page-hero"};const s={name:"theme-frame",computed:{visible:function(){return!(this.isSubPage&&("profile_theme_one"===this.theme||"profile_theme_two"===this.theme))},theme:function(){return this.$store.state.portfolio.templateSettings.theme},showProfilePicture:function(){return this.$store.state.portfolio.templateSettings.showProfilePicture?"has-picture":"no-profile-picture"},isSubPage:function(){return this.$route.path.indexOf("/about")>0||this.$route.path.indexOf("/contact")>0||this.$route.path.indexOf("/p/")>=0}
2,getSidebarBackgroundColor:function(){return{"--sidebarBgColor":this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.sidebarSettings?this.$store.state.portfolio.templateSettings.hero.sidebarSettings.backgroundColor:null}},contentPosition:function(){return"profile_theme_nine"===this.theme?"align-content-to-".concat(this.$store.state.portfolio.templateSettings.hero.alignment.vertical):null}}};var l=o(66262);const c=(0,l.A)(s,[["render",function(t,e,o,i,s,l){return l.visible?((0,n.uX)(),(0,n.CE)("div",a,[(0,n.Lk)("div",{class:(0,r.C4)(["ufo--page-hero-content",l.theme,l.showProfilePicture,l.contentPosition,{"about-view":l.isSubPage}]),style:(0,r.Tr)([l.getSidebarBackgroundColor])},[(0,n.RG)(t.$slots,"default")],6)])):(0,n.Q3)("v-if",!0)}]]);var u=o(53751),d=["onClick"];var p=o(86713),f=o(35166),h=o(74256),m=o(10381),v=o(97006),g=o(3439),y=o(76107);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function k(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function S(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?k(Object(o),!0).forEach(function(e){P(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function P(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const w={name:"portfolio-description",components:{ClickToSelect:v.A,ChecklistTooltip:g.A,TemplateSocialLinks:m.A,TextEditor:p.A},data:function(){return{isScrollable:!1,ChecklistInteractionEnum:h.QT}},mounted:function(){var t=this;"profile_theme_nine"===this.$store.state.portfolio.templateSettings.theme&&(this.checkScroll(),window.addEventListener("resize",this.checkScroll)),this.$nextTick(function(){t.$store.state.checklist.activeInteraction===h.QT.HEADLINE&&t.$refs.tipTap&&t.$refs.tipTap.activateTipTap(),t.emitter.on("checklist-focus-header",function(){t.$refs.tipTap&&(t.$refs.tipTap.activateTipTap(),t.$nextTick(function(){t.emitter.emit("checklist-focus-ai-generation")}))})})},computed:{textAlignment:function(){return this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.textAlign?this.$store.state.portfolio.templateSettings.hero.textAlign:null},socialLinksAreInHero:function(){return this.$store.state.portfolio.templateSettings.navigation.socialLinksLocation===h.U$.INLINE_ABOVE_TEXT||this.$store.state.portfolio.templateSettings.navigation.socialLinksLocation===h.U$.INLINE_BELOW_TEXT},sidebarIsDark:function(){return"profile_theme_nine"===this.$store.state.portfolio.templateSettings.theme&&(0,y.oW)(this.$store.state.portfolio.designSettings.colorStyles.sidebarBackground.color).l<.2},shouldHighlight:function(){return this.$store.getters["design/highlightSectionModules"](this.$store.state.portfolio.templateSettings.hero)}},methods:{clickHandler:function(t){t(),this.$refs.tipTap.setFocus()},updateText:function(t){this.$store.state.portfolio.description=t,this.$store.state.user.checklistStatus&&!this.$store.state.user.checklistStatus.steps.headline&&this.$store.commit("updateChecklistItem",h.QT.HEADLINE),this.$actions.updatePortfolio("Edit portfolio description"),f.z.updateUserInDrip("short_bio_updated")},setTextAlignment:function(t){this.$store.state.portfolio.templateSettings.hero?this.$store.state.portfolio.templateSettings.hero.textAlign=t.align:this.$store.state.portfolio.templateSettings=S(S({},this.$store.state.portfolio.templateSettings),{},{hero:{textAlign:t.align}}),this.$actions.updatePortfolio()},checkScroll:function(){this.isScrollable=this.$refs.about.scrollHeight>this.$refs.about.clientHeight},scrolledDown:function(){this.isScrollable=this.$refs.about.scrollTop!==this.$refs.about.scrollHeight-this.$refs.about.offsetHeight},turnOffCts:function(){return["profile_theme_default","profile_theme_default_old","profile_theme_four","profile_theme_nine"].includes(this.$store.state.portfolio.templateSettings.theme)}}},C=(0,l.A)(w,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TextEditor"),c=(0,n.g2)("ClickToSelect"),p=(0,n.g2)("TemplateSocialLinks");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.bF)(c,{"cts-module-off":s.turnOffCts()},{default:(0,n.k6)(function(o){o.isActive;var i=o.containerClass,c=o.handleCtsClick;return[(0,n.Lk)("div",{ref:"about",class:(0,r.C4)([[i,{scrollable:a.isScrollable},{dark:s.sidebarIsDark}],"ufo--page-hero-text"]),onScrollPassive:e[0]||(e[0]=function(t){return s.scrolledDown()}),onClick:(0,u.withModifiers)(function(t){return s.clickHandler(c)},["stop"])},[(0,n.bF)(l,{ref:"tipTap","custom-class":s.shouldHighlight,"set-text-alignment":s.setTextAlignment,"show-
2hero-labels":!!t.$store.state.portfolio.description,text:t.$store.state.portfolio.description,"text-alignment":s.textAlignment,"update-text":s.updateText,"section-type":"PortfolioHero",onTextUpdated:s.checkScroll},null,8,["custom-class","set-text-alignment","show-hero-labels","text","text-alignment","update-text","onTextUpdated"])],42,d)]}),_:1},8,["cts-module-off"]),s.socialLinksAreInHero?((0,n.uX)(),(0,n.Wv)(p,{key:0})):(0,n.Q3)("v-if",!0)],64)}],["__scopeId","data-v-d554a4fc"]]);var O=o(78790),A=["onClick"],$=["src"],T={key:1,src:O,class:"empty-state"};var E=o(8187),I=o(87979),L=o(15637);const F={name:"cover-image",components:{ClickToSelect:v.A,AnimationWrapper:L.A,MediaModuleToolbar:I.A,Fab:E.A},props:["portfolio-image-url"],data:function(){return{EditedImageTypeEnum:h.i4}},computed:{sidebarIsDark:function(){return"profile_theme_nine"===this.$store.state.portfolio.templateSettings.theme&&(0,y.oW)(this.$store.state.portfolio.designSettings.colorStyles.sidebarBackground.color).l<.2}}},_=(0,l.A)(F,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("MediaModuleToolbar"),c=(0,n.g2)("ClickToSelect"),d=(0,n.g2)("AnimationWrapper");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["profile-cover profile-picture",{empty:!t.portfolioImageUrl}])},[(0,n.bF)(d,{"delay-animation":.2},{animationContent:(0,n.k6)(function(){return[(0,n.bF)(c,null,{default:(0,n.k6)(function(e){var o=e.isActive,i=e.containerClass,c=e.handleCtsClick;return[(0,n.Lk)("div",{class:(0,r.C4)([i,{dark:s.sidebarIsDark}]),onClick:(0,u.withModifiers)(c,["stop"])},[(0,n.bF)(l,{ref:"imageEditToolbar","edited-image-type":a.EditedImageTypeEnum.PORTFOLIO_HERO_MEDIA,mediaElement:t.$store.state.portfolio.image,section:t.$store.state.portfolio.templateSettings.hero,show:o},null,8,["edited-image-type","mediaElement","section","show"]),t.portfolioImageUrl?((0,n.uX)(),(0,n.CE)("img",{key:0,src:t.portfolioImageUrl},null,8,$)):((0,n.uX)(),(0,n.CE)("img",T))],10,A)]}),_:1})]}),_:1})],2)}],["__scopeId","data-v-5607a8ce"]]),j={components:{ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-default",props:["user","portfolio"],data:function(){return{showToolbar:!1}},computed:{imageLayoutIsOverflow:function(){return this.portfolio.templateSettings.hero&&this.portfolio.templateSettings.hero.sidebarSettings&&"overflow"===this.portfolio.templateSettings.hero.sidebarSettings.imageLayout}}},D=(0,l.A)(j,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("CoverImage"),u=(0,n.g2)("PortfolioDescription"),d=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[t.$parent.showPortfolioPicture&&l.imageLayoutIsOverflow?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[e[0]||(e[0]=(0,n.Lk)("div",{class:"fake-cut"},null,-1)),e[1]||(e[1]=(0,n.Lk)("div",{class:"fake-cut-line"},null,-1))],64)):(0,n.Q3)("v-if",!0),t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(c,{key:1,class:(0,r.C4)({"display-overflow":l.imageLayoutIsOverflow}),"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["class","portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",i,[(0,n.bF)(u)])]}),_:1})}]]);var x={class:"profile-short-cv"};function M(t){return function(t){if(Array.isArray(t))return N(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 N(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?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 N(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var U={key:0,class:"line"},B={key:2,class:"line"},X={key:2,ref:"controls",class:"ufo--page-nav-controls"};var H=o(11211),W=o(56360),R=["onClick"],Q=["src"];var G=o(19209),z=o(99141);function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function K(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Y(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=V(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==V(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const q={name:"template-foreground-image",components:{DragHandle:z.A,ClickToSelect:v.A,AnimationWrapper:L.A,MediaModuleToolbar:I.A},data:function(){return{imageFitButtons:[{name:"Fit with margin",type:"fit-margin"},{name:"Fit",type:"fit"},{name:"Cover",type:"cover"},{name:"Display mode off",type:null,default:!0}],EditedImageTypeEnum:h.i4,TemplateRestrictions:G.A}},methods:{openMediaModal:function(t){this.$store.commit("selectSection",this.$store.state.portfolio.templateSettings.hero),this.$store.state.activeModalData=function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?K(Object(o),!0).forEach(function(e){Y(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):K(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({key:this.editedImageType},this.setActiveModalData()),this.$store.state.activeModal=t},setActiveModalData:function(){var t=null,e=null;switch(this.section.type){case"Columns":t={key:"columns",index:this.columnIndex},e=this.$store.state.selectedSection[t.key][t.index].media;break;case"Testimonial":t={key:"testimonial",index:this.columnIndex},e=this.$store.state.selectedSection[t.key][t.index].media;break;case"LogoWall":t={key:"logos",index:this.columnIndex},e=this.$store.state.selectedSection[t.key][t.index];break;default:t=null,e=this.setImageDataBasedOnTypeEnum()}return{column:t,data:e}},setImageDataBasedOnTypeEnum:function(){switch(this.editedImageType){case h.i4.IMAGE:return this.$store.state.selectedSection.image;case h.i4.PORTFOLIO_HERO_MEDIA:return this.$store.state.portfolio.image;case h.i4.PORTFOLIO_HERO_IMAGE:return this.$store.state.portfolio.templateSettings.hero.image;default:return this.$store.state.selectedSection.media}}},computed:{imageUrl:function(){return this.$store.state.portfolio.image.croppedImageUrl?this.$store.state.portfolio.image.croppedImageUrl:this.$store.state.portfolio.image.url?this.$store.state.portfolio.image.url:o(78790)},showPortfolioPicture:function(){return this.$store.state.portfolio.templateSettings.showProfilePicture},flipped:function(){return!!this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.flipped},displayMode:function(){return this.$store.state.portfolio.image.displayMode?this.$store.state.portfolio.image.displayMode:"theme-default"},bgColor:function(){var t,e;return this.$store.state.portfolio.templateSettings.hero&&null!==(t=this.$store.state.portfolio.templateSettings.hero)&&void 0!==t&&null!==(t=t.backgroundSettings)&&void 0!==t&&t.backgroundColor?{"--background-color":"#".concat(null===(e=this.$store.state.portfolio.templateSettings.hero)||void 0===e||null===(e=e.backgroundSettings)||void 0===e?void 0:e.backgroundColor)}:null},verticalAlignment:function(){return this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.alignment?this.$store.state.portfolio.templateSettings.hero.alignment.vertical:null},animationDelay:function(){return this.$store.state.portfolio.templateSettings.hero.flipped?this.$store.state.portfolio.templateSettings.theme.includes("theme_sixteen")?.2:.4:this.$store.state.portfolio.templateSettings.theme.includes("theme_sixteen")?.4:.2},showDragHandle:function(){return this.$store.state.portfolio.templateSettings.showProfilePicture&&"theme_twelve"!==this.$store.state.portfolio.templateSettings.theme&&"theme_six"!==this.$store.state.portfolio.templateSettings.theme&&"theme_three"!==this.$store.state.portfolio.templateSettings.theme}}},J=(0,l.A)(q,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("MediaModuleToolbar"),c=(0,n.g2)("AnimationWrapper"),d=(0,n.g2)("ClickToSelect"),p=(0,n.g2)("DragHandle");return s.showPortfolioPicture?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--page-hero-image",{empty:!t.$store.state.portfolio.image.url},{flipped:s.flipped},s.displayMode,s.verticalAlignment]),style:(0,r.Tr)(s.bgColor)},[(0,n.bF)(d,null,{default:(0,n.k6)(function(o){var i=o.isActive,d=o.containerClass,p=o.handleCtsClick;return[(0,n.Lk)("div",{class:(0,r.C4)(d),onClick:(0,u.withModifiers)(p,["stop"])},[(0,n.bF)(l,{ref:"imageEditToolbar","edited-image-type":a.EditedImageTypeEnum.PORTFOLIO_HERO_MEDIA,"hide-edit-image-button":!t.$store.state.portfolio.image||!!t.$store.state.portfolio.image&&!t.$store.state.portfolio.image.url,mediaElement:t.$store.state.portfolio.image,section:t.$store.state.portfolio.templateSettings.hero,show:i,"show-size-dropdown":a.TemplateRestrictions.showImageDisplayButtons(t.$store.state.portfolio.templateSettings.theme)},null,8,["edited-image-type","hide-edit-image-button","mediaElement","section","show","show-size-dropdown"]),(0,n.bF)(c,{"delay-animation":s.animationDelay},{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("img",{src:s.imageUrl,class:(0,r.C4)(["hero-image",{"empty-state":!t.$store.state.portfolio.image.url}]),alt:"Portfolio hero image",onClick:e[0]||(e[0]=function(t){return s.openMediaModal("EditImageModal")})},null,10,Q)]}),_:1},8,["delay-animation"])],10,R)]}),_:1}),(0,n.bF)(p,{show:s.showDragHandle},null,8,["show"])],6)):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-3d3da1ad"]]);var Z=o(42333),tt=o(34747),et=o(45),ot=o(57990),nt=o(82124);function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function it(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function at(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?it(Object(o),!0).forEach(function(e){st(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):it(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function st(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=rt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const lt={name:"template-navigation",data:function(){return{navBackgroundStyles:[{name:"Transparent",value:"transparent"},{name:"Filled",value:"filled"}],navTextStyles:[{name:"Light text",value:"secondary"},{name:"Dark text",value:"primary"}],templateRestrictions:G.A}},components:{NavLogo:Z.A,TemplateForegroundImage:J,Fab:E.A,FabContainer:H.A,NavItem:W.A,TemplateSocialLinks:m.A,FabCollapsingContainer:tt.A},mounted:function(){document.querySelector(".ufo--page-nav-controls")&&document.querySelector(".ufo--page-nav-controls").style.setProperty("--wFix",(window.innerWidth-document.documentElement.clientWidth)/2+"px")},methods:{editLogo:function(){this.$store.commit("openSidePanel",{panelPath:"settings/portfolio-logo"})},changeNavStyle:function(t,e){this.$store.state.portfolio.templateSettings.navigation[t]=e,et.A.updatePortfolio()},changeNavColorStyle:function(t){this.$store.dispatch("design/updateColorStyles",{colorStyles:{navigation:{colorUsed:t}}}),this.$store.getters.isCaseStudy?ot.N.updateProjectDesignSettings():et.A.updatePortfolio()},openFontsSidebar:function(){this.$store.commit("openSidePanel",{panelPath:"style/fonts"})},showForegroundImage:function(){this.$store.state.portfolio.templateSettings.showProfilePicture=!0,this.$actions.updatePortfolio("Show profile picture")}},computed:at(at(at({},(0,nt.L8)("design",["colorStyles"])),(0,nt.L8)("view",["viewData"])),{},{theme:function(){return this.$store.state.portfolio.templateSettings.theme},backgroundStyleAvalible:function(){return this.colorStyleAvalible&&this.$store.getters.isHomePage},colorStyleAvalible:function(){var t,e=this.$store.state.portfolio.templateSettings.theme,o=null!==(null===(t=this.$store.state.portfolio.templateSettings.hero)||void 0===t||null===(t=t.backgroundSettings)||void 0===t?void 0:t.backgroundColor)||null!==this.$store.state.portfolio.templateSettings.hero.image.url;return!["theme_one","theme_two","profile_theme_four","profile_theme_default","theme_five","profile_theme_five","profile_theme_nine","theme_seventeen"].includes(e)&&o},navigationStyle:function(){return this.$store.state.portfolio.templateSettings.navigation},projectNavStyle:function(){return this.colorStyles.navigation.colorUsed},portfolioPages:function(){return this.$store.state.portfolioPages?this.$store.state.portfolioPages.filter(function(t){return!t.deletedAt}):[]},socialLinksAreInNavbar:function(){return this.$store.state.portfolio.templateSettings.navigation.socialLinksLocation===h.U$.NAVBAR&&this.$store.state.portfolio.socialLinks&&this.$store.state.portfolio.socialLinks.length>0&&""!==this.$store.state.portfolio.socialLinks[0].type},showLines:function(){return this.$store.state.portfolio.templateSettings.navigation.layout===h.wb.LINE_MIDDLE},logoIsAvailableInTheme:function(){return!["theme_one","theme_two","theme_three","theme_six","theme_seven","theme_eight","theme_eleven","theme_thirteen","theme_fourteen","theme_eighteen"].includes(this.$store.state.portfolio.templateSettings.theme)&&!this.$store.state.portfolio.templateSettings.theme.includes("profile_")},showForegroundImageInNav:function(){return"theme_three"===this.$store.state.portfolio.templateSettings.theme},collapseFabs:function(){return"theme_one"!==this.$store.state.portfolio.templateSettings.theme&&"theme_two"!==this.$store.state.portfolio.templateSettings.theme&&"theme_four"!==this.$store.state.portfolio.templateSettings.theme&&"theme_nine"!==this.$store.state.portfolio.templateSettings.theme},logoIsVisible:function(){return!!this.$store.state.portfolio.templateSettings.logo&&this.$store.state.portfolio.templateSettings.logo.visible},navBarLayout:function(){return this.$store.state.portfolio.templateSettings.navigation.layout},navBarStyle:function(){return this.$store.state.portfolio.templateSettings.navigation.style},shouldHighlight:function(){return this.$store.getters["design/highlightSectionModules"](this.$store.state.portfolio.templateSettings.hero)}})},ct=(0,l.A)(lt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("NavLogo"),c=(0,n.g2)("NavItem"),u=(0,n.g2)("TemplateSocialLinks"),d=(0,n.g2)("TemplateForegroundImage"),p=(0,n.g2)("Fab"),f=(0,n.g2)("FabCollapsingContainer"),h=(0,n.g2)("FabContainer");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["navbar","legacy",s.navBarLayout,s.navBarStyle,"pn-".concat(s.theme)])},[a.templateRestrictions.topLogo(s.theme)?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(l,{key:0,"custom-class":s.shouldHighlight},null,8,["custom-class"])),(0,n.Lk)("div",{class:(0,r.C4)(["navbar-container","nav-".concat(s.theme),t.viewData.navOpen?"on":"",s.shouldHighlight])},[s.showLines?((0,n.uX)(),(0,n.CE)("div",U)):(0,n.Q3)("v-if",!0),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.portfolioPages,function(t,e){return(0,n.uX)(),(0,n.Wv)(c,{page:t,key:t._id,index:e},null,8,["page","index"])}),128)),s.socialLinksAreInNavbar?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("v-if",!0),s.showLines?((0,n.uX)(),(0,n.CE)("div",B)):(0,n.Q3)("v-if",!0)],2),s.showForegroundImageInNav?((0,n.uX)(),(0,n.Wv)(d,{key:1})):(0,n.Q3)("v-if",!0),t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",X,[(0,n.bF)(h,{type:"horizontal",side:"right",collapse:!0},{default:(0,n.k6)(function(){return[s.backgroundStyleAvalible?((0,n.uX)(),(0,n.Wv)(f,{"display-icon":"nav-background-fill","display-label":"Backgroun
2d fill",key:"displayOptions"},{default:(0,n.k6)(function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.navBackgroundStyles,function(t){return(0,n.uX)(),(0,n.Wv)(p,{key:t.name,tooltip:t.name,selected:s.navigationStyle.fill===("filled"===t.value),onClick:function(e){return s.changeNavStyle("fill","filled"===t.value)}},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(t.name),1)]}),_:2},1032,["tooltip","selected","onClick"])}),128))]}),_:1})):(0,n.Q3)("v-if",!0),s.colorStyleAvalible?((0,n.uX)(),(0,n.Wv)(f,{"display-icon":"nav-font-color","display-label":"Text styles",key:"displayOptions"},{default:(0,n.k6)(function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.navTextStyles,function(t){return(0,n.uX)(),(0,n.Wv)(p,{key:t.name,tooltip:t.name,selected:s.projectNavStyle===t.value,onClick:function(e){return s.changeNavColorStyle(t.value)}},{default:(0,n.k6)(function(){return[(0,n.eW)((0,r.v_)(t.name),1)]}),_:2},1032,["tooltip","selected","onClick"])}),128)),(0,n.bF)(p,{onClick:s.openFontsSidebar,icon:"edit",style:{borderTop:"1px solid #232259"}},{default:(0,n.k6)(function(){return M(e[4]||(e[4]=[(0,n.eW)("Edit text style",-1)]))}),_:1},8,["onClick"])]}),_:1})):(0,n.Q3)("v-if",!0),!t.$store.state.portfolio.templateSettings.showProfilePicture&&s.showForegroundImageInNav?((0,n.uX)(),(0,n.Wv)(p,{key:2,icon:"add-media",tooltip:"Add image","tooltip-position":s.collapseFabs?"bottom":null,onClick:e[0]||(e[0]=function(t){return s.showForegroundImage()})},null,8,["tooltip-position"])):(0,n.Q3)("v-if",!0),(0,n.bF)(p,{icon:"edit-pages",onClick:e[1]||(e[1]=function(e){return t.$store.commit("openSidePanel",{panelPath:"pages"})}),tooltip:"Manage pages","tooltip-position":s.collapseFabs?"bottom":null},null,8,["tooltip-position"]),s.logoIsAvailableInTheme?((0,n.uX)(),(0,n.Wv)(p,{key:3,icon:"edit-logo",onClick:e[2]||(e[2]=function(t){return s.editLogo()}),tooltip:s.logoIsVisible?"Edit logo":"Add logo","tooltip-position":s.collapseFabs?"bottom":null},null,8,["tooltip","tooltip-position"])):(0,n.Q3)("v-if",!0),(0,n.bF)(p,{icon:"edit",onClick:e[3]||(e[3]=function(e){return t.$store.commit("openSidePanel",{panelPath:"style/fonts"})}),tooltip:"Navigation style","tooltip-position":s.collapseFabs?"bottom":null},null,8,["tooltip-position"])]}),_:1})],512))],2)}],["__scopeId","data-v-47b7400b"]]),ut={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-one",props:["user","portfolio"]},dt=(0,l.A)(ut,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("CoverImage"),l=(0,n.g2)("PortfolioDescription"),c=(0,n.g2)("TemplateNavigation"),u=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(u,null,{default:(0,n.k6)(function(){return[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(s,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",x,[(0,n.bF)(l),(0,n.bF)(c)])]}),_:1})}]]);var pt={class:"profile-short-cv"};const ft={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-two",props:["user","portfolio"],data:function(){return{showButtons:!1}}},ht=(0,l.A)(ft,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("CoverImage"),l=(0,n.g2)("PortfolioDescription"),c=(0,n.g2)("TemplateNavigation"),u=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(u,null,{default:(0,n.k6)(function(){return[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(s,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",pt,[(0,n.bF)(l),(0,n.bF)(c)])]}),_:1})}]]);var mt={class:"profile-short-cv"};const vt={components:{CoverImage:_,TemplateNavigation:ct,ThemeFrame:c,PortfolioDescription:C},name:"theme-three",props:["user","portfolio"],data:function(){return{showButtons:!1}}}
2,gt=(0,l.A)(vt,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("TemplateNavigation"),l=(0,n.g2)("CoverImage"),c=(0,n.g2)("PortfolioDescription"),u=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(u,null,{default:(0,n.k6)(function(){return[(0,n.bF)(s),(0,n.Lk)("div",mt,[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(l,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(c,{key:1}))])]}),_:1})}]]);var yt={class:"profile-short-cv"};function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function kt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function St(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=bt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Pt={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-four",props:["user","portfolio"],computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(o),!0).forEach(function(e){St(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):kt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({},(0,nt.L8)("view",["viewData"]))},wt=(0,l.A)(Pt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("CoverImage"),c=(0,n.g2)("PortfolioDescription"),u=(0,n.g2)("TemplateNavigation"),d=(0,n.g2)("theme-frame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[(0,n.Lk)("div",yt,[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(l,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.bF)(c),(0,n.bF)(u,{class:(0,r.C4)([t.viewData.navOpen?"visible":""])},null,8,["class"])])]}),_:1})}]]);var Ct={class:"profile-bio"};const Ot={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-five",props:["user","portfolio"],data:function(){return{showButtons:!1}},methods:{cropImage:function(){this.$store.state.uploadImageAndCropType="flexible",this.$store.state.uploadImageAndCropStep="crop",this.$store.state.activeModal="EditImageModal"},openUploadImageModal:function(){this.$store.state.uploadImageAndCropType="flexible",this.$store.state.uploadImageAndCropStep="upload",this.$store.state.activeModal="UploadImageModal"}}},At=(0,l.A)(Ot,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("CoverImage"),c=(0,n.g2)("TemplateNavigation"),d=(0,n.g2)("PortfolioDescription"),p=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(p,null,{default:(0,n.k6)(function(){return[(0,n.bo)((0,n.Lk)("div",{class:"profile-hero",style:(0,r.Tr)(t.$parent.$parent.templateBackgroundColor)},[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(l,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0)],4),[[u.vShow,!t.$parent.isSubPage]]),(0,n.bF)(c),(0,n.bo)((0,n.Lk)("div",Ct,[(0,n.bF)(d)],512),[[u.vShow,!t.$parent.isSubPage]])]}),_:1})}]]);var $t={class:"profile-links"},Tt={class:"social-content"},Et={key:1,class:"profile-bio"};const It={components:{TemplateNavigation:ct,ThemeFrame:c,TemplateSocialLinks:m.A,CoverImage:_,PortfolioDescription:C}
2,name:"theme-six",props:["user","portfolio"],data:function(){return{showButtons:!1}}},Lt=(0,l.A)(It,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TemplateNavigation"),c=(0,n.g2)("CoverImage"),u=(0,n.g2)("TemplateSocialLinks"),d=(0,n.g2)("PortfolioDescription"),p=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(p,null,{default:(0,n.k6)(function(){return[(0,n.bF)(l),t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["profile-hero",{"empty-state":!o.portfolio.image.url}])},[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(c,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",$t,[(0,n.Lk)("div",Tt,[(0,n.bF)(u)])])],2)),t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",Et,[(0,n.bF)(d)]))]}),_:1})}]]);const Ft={components:{TemplateNavigation:ct,Fab:E.A,FabContainer:H.A,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-seven",props:["user","portfolio"],data:function(){return{showButtons:!1}}},_t=(0,l.A)(Ft,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TemplateNavigation"),c=(0,n.g2)("CoverImage"),u=(0,n.g2)("PortfolioDescription"),d=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[(0,n.bF)(l),(0,n.Lk)("div",{class:(0,r.C4)(["profile-short-cv",{"no-picture":t.$parent.isSubPage}])},[!t.$parent.isSubPage&&t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(c,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",null,[t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(u,{key:0}))])],2)]}),_:1})}]]);var jt={class:"profile-bio"};const Dt={components:{TemplateForegroundImage:J,TemplateNavigation:ct,ThemeFrame:c,PortfolioDescription:C},name:"theme-eight",props:["user","portfolio"],data:function(){return{showButtons:!1}}},xt=(0,l.A)(Dt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TemplateNavigation"),c=(0,n.g2)("TemplateForegroundImage"),u=(0,n.g2)("PortfolioDescription"),d=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[(0,n.bF)(l),t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["profile-hero",{"empty-state":!o.portfolio.image.url}])},[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(c,{key:0})):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",jt,[(0,n.bF)(u)])],2))]}),_:1})}]]);var Mt={class:"profile-bio"};const Nt={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"theme-nine",props:["user","portfolio"]},Ut=(0,l.A)(Nt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("CoverImage"),c=(0,n.g2)("PortfolioDescription"),u=(0,n.g2)("TemplateNavigation"),d=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,r.C4)(["profile-hero",{"empty-state":!o.portfolio.image.url}])},[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(l,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0)],2),(0,n.Lk)("div",Mt,[(0,n.bF)(c)]),(0,n.bF)(u)]}),_:1})}]]);var Bt={ref:"bio",class:"ufo--page-hero-text"};function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Ht(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Wt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(o),!0).forEach(function(e){Rt(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ht(Object(o)).forEac
2h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Rt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Xt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Qt={name:"template-hero-text",props:{hidePositionButtons:{default:!1,type:Boolean}},components:{DragHandle:z.A,ChecklistTooltip:g.A,NavLogo:Z.A,TextEditor:p.A,TemplateSocialLinks:m.A,TemplateNavigation:ct},data:function(){return{TemplateRestrictions:G.A,ChecklistInteractionEnum:h.QT}},mounted:function(){var t=this;this.$nextTick(function(){t.$emit("getHeight",t.getHeight()),t.$store.state.checklist.activeInteraction===h.QT.HEADLINE&&t.$refs.tipTap&&t.$refs.tipTap.activateTipTap(),t.emitter.on("checklist-focus-header",function(){t.$refs.tipTap&&(t.$refs.tipTap.activateTipTap(),t.$nextTick(function(){t.emitter.emit("checklist-focus-ai-generation")}))})})},updated:function(){this.$emit("getHeight",this.getHeight())},methods:{updateText:function(t){this.$store.state.portfolio.description=t,this.$actions.updatePortfolio("Edit portfolio description"),f.z.updateUserInDrip("short_bio_updated")},setTextAlignment:function(t){this.$store.state.portfolio.templateSettings.hero=Wt(Wt({},this.$store.state.portfolio.templateSettings.hero),{},{textAlign:t.align}),this.$actions.updatePortfolio(null,!0)},openTemplateSettings:function(t){this.$store.commit("openSidePanel",{panelPath:"style/fonts"})},getHeight:function(){return this.$refs.bio.offsetHeight},keyDown:function(){this.$emit("getHeight",this.getHeight())},navigationIsInlineUnderText:function(){return this.$store.state.portfolio.templateSettings.navigation.type===h.m3.INLINE_BELOW_TEXT},socialLinksAreInline:function(){return this.$store.state.portfolio.templateSettings.navigation.socialLinksLocation===h.U$.INLINE_BELOW_TEXT}},computed:{theme:function(){return this.$store.state.portfolio.templateSettings.theme},flipped:function(){return!!this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.flipped},verticalAlignment:function(){return this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.alignment?this.$store.state.portfolio.templateSettings.hero.alignment.vertical:null},horizontalAlignment:function(){return this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.alignment?this.$store.state.portfolio.templateSettings.hero.alignment.horizontal:null},textAlignment:function(){return this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.textAlign?this.$store.state.portfolio.templateSettings.hero.textAlign:null},textIsOnFullWidth:function(){return 12===this.$store.state.portfolio.templateSettings.hero.textColumnSpan&&!this.$store.state.portfolio.templateSettings.showProfilePicture&&"theme_three"!==this.theme},showDragHandle:function(){return this.$store.state.portfolio.templateSettings.showProfilePicture&&"theme_twelve"!==this.$store.state.portfolio.templateSettings.theme&&"theme_six"!==this.$store.state.portfolio.templateSettings.theme&&"theme_three"!==this.$store.state.portfolio.templateSettings.theme},shouldHighlight:function(){return this.$store.getters["design/highlightSectionModules"](this.$store.state.portfolio.templateSettings.hero)}}},Gt=(0,l.A)(Qt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("NavLogo"),c=(0,n.g2)("TextEditor"),u=(0,n.g2)("TemplateNavigation"),d=(0,n.g2)("TemplateSocialLinks"),p=(0,n.g2)("DragHandle");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["ufo--page-hero-bio",{"full-w":s.textIsOnFullWidth},{flipped:s.flipped}])},[(0,n.Lk)("div",Bt,[a.TemplateRestrictions.topLogo(s.theme)?((0,n.uX)(),(0,n.Wv)(l,{key:0})):(0,n.Q3)("v-if",!0),(0,n.bF)(c,{ref:"tipTap","custom-class":s.shouldHighlight,"animation-section-type":"HERO_TEXT","set-text-alignment":s.setTextAlignment,"show-
2hero-labels":!!t.$store.state.portfolio.description,text:t.$store.state.portfolio.description,"text-alignment":s.textAlignment,"text-alignment-options":a.TemplateRestrictions.avalibleHeroTextAlignments(s.theme),"update-text":s.updateText,"section-type":"PortfolioHero",onKeydown:s.keyDown},null,8,["custom-class","set-text-alignment","show-hero-labels","text","text-alignment","text-alignment-options","update-text","onKeydown"]),s.navigationIsInlineUnderText()?((0,n.uX)(),(0,n.Wv)(u,{key:1})):(0,n.Q3)("v-if",!0),s.socialLinksAreInline()&&t.$store.state.portfolio.socialLinks?((0,n.uX)(),(0,n.Wv)(d,{key:2,"is-in-hero":s.socialLinksAreInline()},null,8,["is-in-hero"])):(0,n.Q3)("v-if",!0),(0,n.bF)(p,{show:s.showDragHandle},null,8,["show"])],512)],2)}],["__scopeId","data-v-74ce21a3"]]);var zt=o(1293),Vt=o(16495),Kt=o.n(Vt),Yt=o(89705),qt=o(81141),Jt=o(432),Zt=o.n(Jt),te=o(20807),ee=o(65570),oe=o(23492);function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function re(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function ie(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?re(Object(o),!0).forEach(function(e){ae(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):re(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function ae(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=ne(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ne(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const se={name:"theme-x",components:{draggable:Zt(),ViewportObserver:te.A,SettingsPopover:qt.A,ToggleGrid:Yt.A,TemplateSocialLinks:m.A,FabContainer:H.A,Fab:E.A,TemplateForegroundImage:J,TemplateNavigation:ct,TemplateHeroText:Gt,TemplateHeroBackground:zt.A,Resize:Kt()},data:function(){return{dragOn:!1,elements:[{key:"media"},{key:"text"}],grid:40,minHeight:this.getMinHeight,spacerIsActive:!1,offsetHeight:null,evenHeight:!1,TemplateRestrictions:G.A,EditedImageTypeEnum:h.i4,activePanel:null}},beforeMount:function(){var t;G.A.foregroundImageAvalible(this.theme)&&this.showProfilePicture||this.elements.splice(0,1),null!==(t=this.portfolioHero)&&void 0!==t&&t.flipped&&this.elements.reverse()},mounted:function(){var t=this;this.$refs.controls&&this.$refs.controls.style.setProperty("--wFix",(window.innerWidth-document.documentElement.clientWidth)/2+"px"),(0,ee.aQ)(this.portfolioHero),this.emitter.on("update-section-level-custom-colors",function(){(0,ee.aQ)(t.portfolioHero)}),this.emitter.on("reset-section-level-custom-colors",function(){(0,ee.wt)(t.portfolioHero)})},unmounted:function(){(0,oe.o)("dynamic-css-vars-for-portfolio-hero")},watch:{showProfilePicture:function(t){this.setVisibleItems(t)},theme:function(){this.setVisibleItems(this.showProfilePicture)},activeSection:{handler:function(t){t||this.closePopoverPanel()}}},methods:{setVisibleItems:function(t){this.elements=t?this.portfolioHero.flipped?[{key:"text"},{key:"media"}]:[{key:"media"},{key:"text"}]:[{key:"text"}]},closePopoverPanel:function(){this.activePanel=null},toggleActivePanel:function(t){this.$store.commit("selectSection",this.portfolioHero),this.$store.state.checklist.popUpClosed||(this.$store.state.checklist.popUpClosed=!0),this.$store.state.activeSectionSettingId="portfolio-hero",this.activePanel=this.activePanel===t?null:t},setSpacerActive:function(){!this.spacerIsActive&&this.$refs.spacer&&(this.spacerIsActive=!0,this.$refs.spacer.parentHeight=2e3)},onSectionResize:function(t){t.x,t.y,t.w;var e=t.h;e<this.getMaxHeight&&(this.$store.commit("updatePortfolioHero",{height:e}),this.checkHeights())},setHeroHeight:function(){var t;null!==(t=this.$store.state.portfolio)&&void 0!==t&&t.portfolioHero||this.portfolioHero&&this.portfolioHero.height&&(this.portfolioHero.height=this.$refs.content.offsetHeight,this.$refs.spacer&&(this.$refs.spacer.height=this.$refs.content.offsetHeight),this.minHeight=Math.ceil((this.offsetHeight<this.getMinHeight?this.getMinHeight:this.offsetHeight)/this.grid)*this.grid,this.portfolioHero.height<=this.minHeight&&(this.portfolioHero.height=this.minHeight>=2e3?2e3:this.minHeight,this.$refs.spacer&&(this.$refs.spacer.height=this.minHeight>=2e3?2e3:this.minHeight)),this.checkHeights())},setOffsetHeight:function(t){var e;if(null===(e=this.$store.state.portfolio)||void 0===e||!e.portfolioHero){var o="theme_two"!==this.theme||this.$store.state.portfolio.image.displayMode?"theme_six"===this.theme&&this.showProfilePicture?350:"theme_thirteen"===this.theme&&this.hasSocialLinks?document.querySelector(".social-links").offsetHeight+30+96:96:200;this.offsetHeight=t+o,this.setHeroHeight(),this.checkHeights()}},flipContent:function(){this.portfolioHero.flipped=!this.portfolioHero.flipped,"theme_eight"===this.portfolioTemplateSettings.theme&&this.$store.commit("updatePortfolioHero",{textAlign:this.portfolioHero.flipped?"right":"left"}),this.$actions.updatePortfolio("Flip portfolio hero")},toggleImageVisibility:function(){this.elements.find(function(t){return"media"===t.key})||this.elements.splice(this.portfolioHero.flipped?1:0,0,{key:"media"}),this.$store.commit("updatePortfolioTemplateSettings",{showProfilePicture:!this.showProfilePicture}),this.$store.commit("updatePortfolioHero",{flipped:this.getDefaultTemplateStyle(this.theme).templateSettings.hero.flipped}),"theme_one"!==this.portfolioTemplateSettings.theme&&"theme_seven"!==this.portfolioTemplateSettings.theme&&"theme_eleven"!==this.portfolioTemplateSettings.theme||this.$store.commit("updatePortfolioHero",{alignment:ie(ie({},this.portfolioHero.alignment),{},{vertical:this.showProfilePicture?"bottom":null})}),"theme_twelve"===this.portfolioTemplateSettings.theme&&this.showProfilePicture&&this.$store.commit("updatePortfolioHero",{height:document.querySelector(".ufo--page-hero-text").offsetHeight+160+144}),"theme_seven"===this.portfolioTemplateSettings.theme&&this.showProfilePicture&&this.$store.commit("updatePortfolioHero",{height:this.portfolioHero.height+160}),"theme_eight"===this.portfolioTemplateSettings.theme&&this.$store.commit("updatePortfolioHero",{textAlign:this.portfolioHero.flipped?"right":"left"}),this.$actions.updatePortfolio("".concat(this.$store.showProfilePicture?"Hide":"Show"," profile picture"))},checkHeights:function(){if(document.querySelector(".ufo--page-hero-text")){var t="theme_two"!==this.theme||this.$store.state.portfolio.image.displayMode?"theme_eight"===this.theme?140:120:240;this.evenHeight=document.querySelector(".ufo--page-hero-content").offsetHeight<=document.querySelector(".ufo--page-hero-text").offsetHeight+t}},navigationIsAbove:function(){return this.navigation&&this.navigation.type===h.m3.ABOVE},navigationIsBelow:function(){return this.navigation&&this.navigation.type===h.m3.BELOW},onDragStart:function(){this.emitter.emit("activate-cts",null),this.dragOn=!0},onDragEnd:function(){this.dragOn=!1,this.flipContent(),this.$store.commit("setSectionEditorSettings",{ctsModuleSelected:!1})}
2,showBackgroundPanel:function(){this.$store.state.checklist.popUpClosed||(this.$store.state.checklist.popUpClosed=!0),this.showPopoverPanel=!this.showPopoverPanel}},computed:ie(ie({},(0,nt.L8)(["portfolioTemplateSettings","portfolioHero","getDefaultTemplateStyle"])),{},{SectionSettingTypesEnum:function(){return h.O_},panelTitle:function(){return this.activePanel===h.O_.BACKGROUND?"Edit background":"Edit section"},theme:function(){return this.portfolioTemplateSettings.theme},navigation:function(){return this.portfolioTemplateSettings.navigation},height:function(){var t;return null!==(t=this.portfolioHero)&&void 0!==t&&t.height&&this.itemIsVisible?"height: ".concat(this.portfolioHero.height,"px"):this.itemIsVisible?void 0:"height: unset"},getToolbarPosition:function(){var t=document.querySelector(".navbar").offsetHeight;return"transparent"===this.navigationStyles[0]&&this.$refs.nav?{top:t+10+"px",right:"50px"}:{top:"10px"}},generatedBackground:function(){var t;return!(null===(t=this.portfolioHero)||void 0===t||null===(t=t.backgroundSettings)||void 0===t||!t.selectedBackgroundStyleId)},backgroundImageUrl:function(){if(this.portfolioHero.image)return this.portfolioHero.image.croppedImageUrl?this.portfolioHero.image.croppedImageUrl:this.portfolioHero.image.url},isSideBarOpen:function(){return this.$store.state.showSidePanel},coverIsVisible:function(){var t,e;return!(null===(t=this.portfolioHero)||void 0===t||null===(t=t.image)||void 0===t||!t.url)||!(null===(e=this.portfolioHero)||void 0===e||null===(e=e.backgroundSettings)||void 0===e||!e.backgroundColor)},itemIsVisible:function(){return this.$store.getters.isHomePage||this.isHeroAvalibleOnSubPages},isHeroAvalibleOnSubPages:function(){return"theme_seventeen"===this.portfolioTemplateSettings.theme},hasSocialLinks:function(){return this.$store.state.portfolio.socialLinks&&this.$store.state.portfolio.socialLinks.length>0},letSpacerInactive:function(){return!this.portfolioHero.height},getMinHeight:function(){return"theme_ten"!==this.portfolioTemplateSettings.theme||this.$store.state.portfolio.image.displayMode?"theme_eight"===this.portfolioTemplateSettings.theme?200:"theme_eighteen"===this.portfolioTemplateSettings.theme?230:"theme_thirteen"===this.portfolioTemplateSettings.theme?320:400:520},getMaxHeight:function(){return"theme_seventeen"===this.portfolioTemplateSettings.theme?600:2e3},imageDisplayMode:function(){return this.$store.state.portfolio.image.displayMode?this.$store.state.portfolio.image.displayMode:"theme-default"},navigationStyles:function(){return[this.portfolioTemplateSettings.navigation.fill?"filled":"transparent"]},oldThemeVersion:function(){return!this.portfolioHero||!!this.portfolioHero&&!this.portfolioHero.height},showProfilePicture:function(){var t;return null===(t=this.portfolioTemplateSettings)||void 0===t?void 0:t.showProfilePicture},socialLinksAreInHero:function(){return this.portfolioTemplateSettings.navigation.socialLinksLocation===h.U$.INLINE_STICK_TO_BOTTOM||this.portfolioTemplateSettings.navigation.socialLinksLocation===h.U$.OFF_GRID},showEditSectionButton:function(){return G.A.heroDescriptionLeftAlignment(this.theme)||G.A.heroDescriptionUpDownButtonAllowedInTheme(this.theme)},heroHeight:{get:function(){return this.portfolioHero.height},set:function(t){this.$store.commit("updatePortfolioHero",{height:t<this.getMaxHeight?t:this.getMaxHeight})}},textBoxPosition:function(){return this.portfolioHero.textBoxPosition?"text-is-".concat(this.portfolioHero.textBoxPosition):null},textColumnSpan:function(){return{"--text-column-span":this.portfolioHero.textColumnSpan}},verticalAlignment:function(){var t;return(null===(t=this.portfolioHero)||void 0===t||null===(t=t.alignment)||void 0===t?void 0:t.vertical)||"middle"},horizontalAlignment:function(){var t;return null===(t=this.portfolioHero)||void 0===t||null===(t=t.alignment)||void 0===t?void 0:t.horizontal},textIsOnFullWidth:function(){return 12===this.portfolioHero.textColumnSpan&&!this.portfolioTemplateSettings.showProfilePicture&&"theme_three"!==this.theme},activeSection:function(){return"portfolio-hero"===this.$store.state.activeSectionSettingId}})},le=(0,l.A)(se,[["render",function(t,e,o,i,a,s){var l,c=(0,n.g2)("ToggleGrid"),d=(0,n.g2)("TemplateNavigation"),p=(0,n.g2)("TemplateHeroBackgroun
2d"),f=(0,n.g2)("TemplateForegroundImage"),h=(0,n.g2)("TemplateHeroText"),m=(0,n.g2)("draggable"),v=(0,n.g2)("TemplateSocialLinks"),g=(0,n.g2)("SettingsPopover"),y=(0,n.g2)("fab"),b=(0,n.g2)("FabContainer"),k=(0,n.g2)("ViewportObserver");return(0,n.uX)(),(0,n.CE)("div",{ref:"hero",class:(0,r.C4)(["grid","ufo--page-hero",s.imageDisplayMode,s.navigationStyles])},[(0,n.bF)(c),s.navigationIsAbove()?((0,n.uX)(),(0,n.Wv)(d,{key:0,ref:"nav"},null,512)):(0,n.Q3)("v-if",!0),s.coverIsVisible&&s.itemIsVisible?((0,n.uX)(),(0,n.Wv)(p,{key:1})):(0,n.Q3)("v-if",!0),s.itemIsVisible?((0,n.uX)(),(0,n.CE)("div",{key:2,ref:"content",class:(0,r.C4)(["ufo--page-hero-content",{legacy:s.oldThemeVersion},{"has-picture":s.showProfilePicture},s.textBoxPosition]),style:(0,r.Tr)([s.height,s.textColumnSpan])},[(0,n.bF)(m,{modelValue:a.elements,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.elements=t}),class:(0,r.C4)(["ufo--page-hero-columns",{"drag-on":a.dragOn}]),style:(0,r.Tr)({"--rowSize":null!==(l=t.portfolioHero)&&void 0!==l&&l.height?"".concat(t.portfolioHero.height,"px"):"100%"}),group:"elements",handle:".drag-handler","item-key":"key",onEnd:s.onDragEnd,onStart:s.onDragStart},{item:(0,n.k6)(function(t){var e=t.element;return[(0,n.Lk)("div",{class:(0,r.C4)(["col","col-".concat(e.key),s.verticalAlignment,s.horizontalAlignment,{"full-w":s.textIsOnFullWidth&&"text"===e.key}])},["media"===e.key&&a.TemplateRestrictions.foregroundImageAvalible(s.theme)?((0,n.uX)(),(0,n.Wv)(f,{key:0})):(0,n.Q3)("v-if",!0),"text"===e.key?((0,n.uX)(),(0,n.Wv)(h,{key:1,ref:"text",onGetHeight:s.setOffsetHeight,"hide-position-buttons":a.evenHeight},null,8,["onGetHeight","hide-position-buttons"])):(0,n.Q3)("v-if",!0)],2)]}),_:1},8,["modelValue","class","style","onEnd","onStart"]),s.socialLinksAreInHero?((0,n.uX)(),(0,n.Wv)(v,{key:0,"is-in-hero":s.socialLinksAreInHero},null,8,["is-in-hero"])):(0,n.Q3)("v-if",!0),t.$store.getters.ctsIsActive||t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:1,ref:"controls",class:"ufo--page-hero-controls",onMouseenter:e[4]||(e[4]=function(t){return s.setSpacerActive()})},[(0,n.bF)(k,{"is-active":!!a.activePanel,onOutOfView:s.closePopoverPanel},{default:(0,n.k6)(function(){return[(0,n.bF)(b,{type:"vertical",side:"right",class:"section-edit-fabs",active:!!a.activePanel},{"popover-panel":(0,n.k6)(function(){return[a.activePanel&&s.activeSection?((0,n.uX)(),(0,n.Wv)(g,{key:0,"dark-scheme":!0,title:s.panelTitle,"panel-type":a.activePanel,section:t.portfolioHero,onClose:s.closePopoverPanel},null,8,["title","panel-type","section","onClose"])):(0,n.Q3)("v-if",!0)]}),default:(0,n.k6)(function(){return[s.showEditSectionButton?((0,n.uX)(),(0,n.Wv)(y,{key:0,icon:"edit",tooltip:"Edit section",onClick:e[1]||(e[1]=(0,u.withModifiers)(function(t){return s.toggleActivePanel(s.SectionSettingTypesEnum.LEGACY_HERO)},["stop"])),selected:a.activePanel===s.SectionSettingTypesEnum.LEGACY_HERO},null,8,["selected"])):(0,n.Q3)("v-if",!0),!s.showProfilePicture&&a.TemplateRestrictions.foregroundImageAvalible(s.theme)?((0,n.uX)(),(0,n.Wv)(y,{key:1,icon:"add-media",tooltip:"Add foreground image",onClick:e[2]||(e[2]=function(t){return s.toggleImageVisibility()})})):(0,n.Q3)("v-if",!0),(0,n.bF)(y,{icon:"set-background",tooltip:"Set background",onClick:e[3]||(e[3]=(0,u.withModifiers)(function(t){return s.toggleActivePanel(s.SectionSettingTypesEnum.BACKGROUND)},["stop"])),selected:a.activePanel===s.SectionSettingTypesEnum.BACKGROUND},null,8,["selected"])]}),_:1},8,["active"])]}),_:1},8,["is-active","onOutOfView"])],544))],6)):(0,n.Q3)("v-if",!0),s.navigationIsBelow()?((0,n.uX)(),(0,n.Wv)(d,{key:3})):(0,n.Q3)("v-if",!0)],2)}],["__scopeId","data-v-851f2038"]]);var ce={class:"profile-short-cv"},ue={class:"profile-name"},de={class:"profile-position"};const pe={components:{NavItem:W.A,ThemeFrame:c,CoverImage:_,PortfolioDescription:C},name:"default-theme-old",props:["user","portfolio"],computed:{portfolioPages:function(){return this.$store.state.portfolioPages?this.$store.state.portfolioPages.filter(function(t){return!t.deletedAt&&"contact"===t.type||"file"===t.type}):[]}}};var fe={class:"profile-name"},he={class:"profile-position"};const me={components:{TemplateNavigation:ct,ThemeFrame:c,CoverImage:_,PortfolioDescription:C}
2,name:"theme-three-old",props:["user","portfolio"]},ve={name:"portfolio-hero",components:{ThemeDefault:D,ThemeOne:dt,ThemeTwo:ht,ThemeThree:gt,ThemeFour:wt,ThemeFive:At,ThemeSix:Lt,ThemeSeven:_t,ThemeEight:xt,ThemeNine:Ut,ThemeX:le,ThemeDefaultOld:(0,l.A)(pe,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("CoverImage"),c=(0,n.g2)("NavItem"),u=(0,n.g2)("PortfolioDescription"),d=(0,n.g2)("theme-frame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[e[3]||(e[3]=(0,n.Lk)("div",{class:"fake-cut"},null,-1)),e[4]||(e[4]=(0,n.Lk)("div",{class:"fake-cut-line"},null,-1))],64)):(0,n.Q3)("v-if",!0),(0,n.bF)(l,{if:"$parent.showPortfolioPicture","portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"]),(0,n.Lk)("div",ce,[(0,n.Lk)("div",{class:"has-tooltip large",onClick:e[0]||(e[0]=function(e){return t.$router.push("/home/settings")}),tooltip:"Edit name & job title","tooltip-position":"bottom"},[(0,n.Lk)("div",ue,[(0,n.Lk)("h1",null,(0,r.v_)(t.$store.state.user.name),1)]),(0,n.Lk)("div",de,[(0,n.Lk)("h3",null,(0,r.v_)(t.$store.state.user.title),1)])]),(0,n.Lk)("div",{class:(0,r.C4)(["ufo--profile-buttons-container profile-links",{editable:t.$parent.hoverOnToolbar}]),onMouseenter:e[1]||(e[1]=function(e){return t.$parent.showToolbar=!0}),onMouseleave:e[2]||(e[2]=function(e){return t.$parent.showToolbar=!1})},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.portfolioPages,function(t){return(0,n.uX)(),(0,n.Wv)(c,{page:t,key:t._id},null,8,["page"])}),128))],34),(0,n.bF)(u)])]}),_:1})}]]),ThemeThreeOld:(0,l.A)(me,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TemplateNavigation"),c=(0,n.g2)("CoverImage"),u=(0,n.g2)("PortfolioDescription"),d=(0,n.g2)("ThemeFrame");return(0,n.uX)(),(0,n.Wv)(d,null,{default:(0,n.k6)(function(){return[(0,n.bF)(l),(0,n.Lk)("div",{class:(0,r.C4)(["profile-short-cv",{"no-picture":t.$parent.isSubPage}])},[t.$parent.showPortfolioPicture?((0,n.uX)(),(0,n.Wv)(c,{key:0,"portfolio-image-url":o.portfolio.image.croppedImageUrl?o.portfolio.image.croppedImageUrl:o.portfolio.image.url},null,8,["portfolio-image-url"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",{class:"has-tooltip large",onClick:e[0]||(e[0]=function(e){return t.$router.push("/home/settings")}),tooltip:"Edit name & job title","tooltip-position":"bottom"},[(0,n.Lk)("div",fe,[(0,n.Lk)("h1",null,(0,r.v_)(t.$store.state.user.name),1)]),(0,n.Lk)("div",he,[(0,n.Lk)("h3",null,(0,r.v_)(t.$store.state.user.title),1)])]),t.$parent.isSubPage?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(u,{key:1}))],2)]}),_:1})}]])},data:function(){return{showToolbar:!1,hoverOnToolbar:!1}},methods:{getThemeComponent:function(){if(this.theme.includes("profile_")){var t=this.theme.split("_")[2],e=this.theme.includes("_old");return"Theme".concat(t.charAt(0).toUpperCase()+t.slice(1)).concat(e?"Old":"")}return"ThemeX"}},computed:{theme:function(){return this.$store.state.portfolio.templateSettings.theme},isSubPage:function(){return this.$route.path.includes("/about")||this.$route.path.includes("/contact")||this.$route.path.includes("/p/")},showPortfolioPicture:function(){return!!this.$store.state.portfolio.templateSettings.showProfilePicture}}},ge=(0,l.A)(ve,[["render",function(t,e,o,r,i,a){return(0,n.uX)(),(0,n.Wv)((0,n.$y)(a.getThemeComponent()),{key:t.$store.state.portfolio._id,user:a.theme.includes("profile_")?t.$store.state.user:null,portfolio:a.theme.includes("profile_")?t.$store.state.portfolio:null},null,8,["user","portfolio"])}]]);var ye=o(31173);function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function ke(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Se(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?ke(Object(o),!0).forEach(function(e){Pe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ke(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Pe(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==be(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const we={name:"page-frame",components:{TemplateNavigation:ct,Fab:E.A,FabContainer:H.A,PortfolioHero:ge},beforeMount:function(){(0,oe.f)(this.getAllCssVars)},updated:function(){this.setHeightOfTextareas()},mounted:function(){this.$store.commit("setTriggerAnimation",!1)},watch:{getAllCssVars:{handler:function(){(0,oe.f)(this.getAllCssVars)}}},methods:{setHeightOfTextareas:function(){(0,ye.A)(document.querySelectorAll("textarea")),this.$nextTick(function(){return ye.A.update(document.querySelectorAll("textarea"))})},checkDarkMode:function(){this.$store.state.darkMode=(0,y.oW)(this.resolveColor("background")).l<.2}},computed:Se(Se({},(0,nt.L8)("design",["resolveColor","colorPalette","getAllCssVars"])),{},{dynamicClasses:function(){return this.$store.getters.isCaseStudy?["case-study",{"sidebar--on":this.$store.state.showSidePanel}]:["profile-page","profile-editor",this.useNewPageFrame?this.portfolioSettings.theme:this.setCurrentThemeAsClass,{"sidebar--on":this.$store.state.showSidePanel}]},useNewPageFrame:function(){return!this.$store.state.portfolio.templateSettings.theme.includes("profile_")},portfolioSettings:function(){return this.$store.state.portfolio.templateSettings},settings:function(){return this.$store.getters.isCaseStudy?this.$store.state.project.settings:this.$store.state.portfolio.templateSettings},setCurrentThemeAsClass:function(){return[this.portfolioSettings.theme]},isDefaultThemeSelected:function(){return this.portfolioSettings.theme.includes("theme_default")},sidebarBackgroundColor:function(){return{"--sidebarBgColor":this.$store.state.portfolio.templateSettings.hero&&this.$store.state.portfolio.templateSettings.hero.sidebarSettings?(0,y.iL)({color:this.$store.state.portfolio.templateSettings.hero.sidebarSettings.backgroundColor},this.colorPalette):null}},darkModeColors:function(){if(this.checkDarkMode(),this.$store.state.darkMode)return{"--fabColor":"var(--fabDarkColor)","--fabBackgroun
2dColor":"var(--fabDarkBackgroundColor)","--fabHoverBackgroundColor":"var(--fabDarkHoverBackgroundColor)","--fabDisabledColor":"var(--fabDarkDisabledColor)","--fabSelectedBackgroundColor":"var(--fabDarkSelectedBackgroundColor)","--fabSubtleColor":"var(--fabDarkSubtleColor)","--fabSubtleBackgroundColor":"var(--fabDarkSubtleBackgroundColor)","--fabSubtleHoverBackgroundColor":"var(--fabDarkSubtleHoverBackgroundColor)","--carbon30":"var(--asphalt100)","--toolbarColor":"var(--toolbarDarkColor)","--toolbarHoverColor":"var(--toolbarDarkHoverColor)","--toolHoverBackgroundColor":"var(--toolDarkHoverBackgroundColor)","--toolActiveBackgroundColor":"var(--toolDarkActiveBackgroundColor)","--toolDdOptionsShadow":"var(--toolDdDarkOptionsShadow)","--outlineColor":"var(--darkOutlineColor)","--hoverOutlineColor":"var(--darkHoverOutlineColor)","--focusOutlineColor":"var(--darkFocusOutlineColor)"}}})},Ce=(0,l.A)(we,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("PortfolioHero"),c=(0,n.g2)("TemplateNavigation");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["ufo--portfolio-page",s.dynamicClasses]),style:(0,r.Tr)([s.sidebarBackgroundColor,s.darkModeColors])},[t.$store.getters.isCaseStudy?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.bF)(l,(0,r._B)((0,n.Ng)(t.$attrs)),null,16),(0,n.Lk)("div",{class:(0,r.C4)(["ufo--page-content","ufo--".concat(t.$store.state.sectionEditorSettings.pageToEdit,"-page-content")])},[!s.useNewPageFrame&&s.isDefaultThemeSelected?((0,n.uX)(),(0,n.Wv)(c,{key:0})):(0,n.Q3)("v-if",!0),(0,n.RG)(t.$slots,"default",{},void 0,!0)],2)],64)),t.$store.getters.isCaseStudy?(0,n.RG)(t.$slots,"default",{key:1},void 0,!0):(0,n.Q3)("v-if",!0)],6)}],["__scopeId","data-v-03b157da"]])},93665(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>g});var n=o(20641),r={class:"uf-container-fluid"};var i=o(97073),a=o(33501),s=o(33253),l=o(65498),c=o(33639),u=o(55320);function d(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return p(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(p(e={},n,function(){return this}),e),f=c.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=c,p(f,"constructor",c),p(c,"constructor",l),l.displayName="GeneratorFunction",p(c,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,n,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function p(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}p=function(t,e,o,n){function i(e,o){p(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},p(t,e,o,n)}function f(t){return function(t){if(Array.isArray(t))return h(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 h(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?h(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;
2o++)n[o]=t[o];return n}function m(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}const v={name:"on-boarding-view",props:["user"],beforeMount:function(){if(!this.$store.state.showOnBoardingScreen){var t,e=null===(t=this.$store.state.portfolio)||void 0===t?void 0:t.shortId;this.$router.replace(e?"/home/portfolios/".concat(e):"/home")}},mounted:function(){(0,i.JR)({page_path:"/home/onboarding",page_title:"Onboarding",page_location:window.location.href});try{window.fbq("track","CompleteRegistration")}catch(t){console.log("Failed to load facebook tracking script.")}try{window.lintrk("track",{conversion_id:20199609})}catch(t){console.log("Failed to load linkedIn tracking script.")}},methods:{createUsersFirstPortfolio:function(t,e,o){var n,r=this;return(n=d().m(function n(){var a,s,p,h,m,v,g,y,b,k;return d().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,r.$store.state.pageIsLoading=!0,s=r.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate,p={projects:r.$store.state.previewAndCreatePortfolioDetails.selectedProjects,portfolioTitle:r.$store.state.user.name+"'s Portfolio",selectedFontPair:t,selectedColorPalette:e,updatedStyles:o,copyTemplateCaseStudy:!0},h=t||(null==s||null===(a=s.defaults)||void 0===a||null===(a=a.availableFontPairs)||void 0===a?void 0:a[0]),(0,u.bU)(h),n.n=1,l.A.post("/api/portfolio/onboarding/"+r.$store.state.user._id+"/"+s.portfolioShortId,p);case 1:m=n.v,v=m.data,g=v.portfolio,y=v.portfolioPages,b=v.caseStudyPages,r.$store.state.userPortfolios=[],r.$store.state.userPortfolios.push(g),r.$store.state.portfolio=g,r.$store.state.selectedPortfolio=g,r.$store.state.portfolioPages=f(y).sort(function(t,e){return t.order-e.order}),r.$store.state.caseStudyPages=f(b).sort(function(t,e){return t.order-e.order}),r.$store.state.user.defaultCollectionId=g._id,r.$store.state.user.defaultPortfolioId=g._id,r.$store.commit("setPageToEdit","home"),r.$store.state.portfolioSetupComplete=!0,r.$store.state.pageIsLoading=!1,r.finishOnboarding(),r.$store.commit("updateUserInDb"),(0,i.f0)("conversion",{send_to:"AW-16665415793/SC8LCPuFiNcZEPGg2Io-"}),(0,i.f0)("Choose This Template: "+s.name,{event_category:"Onboarding",event_label:"User: "+r.$store.state.user._id}),c.A.track("TEMPLATE_SELECTED",{event_group:c.A.MixpanelEventGroups.ONBOARDING,source:"Template selector",template_name:s.name}).catch(function(){}),document.querySelector("body").classList.remove("thumbnail-generator-visible"),r.$store.state.previewAndCreatePortfolioDetails.activeView=0,r.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTheme=null,n.n=3;break;case 2:n.p=2,k=n.v,console.log("Error while creating first portfolio",k);case 3:return n.p=3,r.$store.state.pageIsLoading=!1,n.f(3);case 4:return n.a(2)}},n,null,[[0,2,3,4]])}),function(){var t=this,e=arguments;return new Promise(function(o,r){var i=n.apply(t,e);function a(t){m(i,o,r,a,s,"next",t)}function s(t){m(i,o,r,a,s,"throw",t)}a(void 0)})})()},finishOnboarding:function(){(0,i.f0)("Finished: ".concat(this.$store.state.portfolio.templateSettings.theme),{event_category:"Onboarding",event_label:"User: "+this.$store.state.user._id}),this.$store.state.showOnBoardingScreen=!1,this.$store.state.onboardingFinished=!0,this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId)),window.scrollY&&window.scroll(0,0),a.A.downloadSingleFonts(Object.entries(this.$store.state.portfolio.designSettings.fontStyles).map(function(t){return t[1]})),(0,s.wi)(Object.entries(this.$store.state.portfolio.designSettings.fontStyles).map(function(t){return t[1]}))},goBack:function(){(0,i.f0)("Back to start: "+this.selectedPortfolioTemplate.name,{event_category:"Onboarding",event_label:"User: "+this.$store.state.user._id}),this.selectedPortfolioTemplate=null,this.$router.push("/home/onboarding")}},computed:{selectedPortfolioTemplate:function(){return this.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate}}};const g=(0,o(66262).A)(v,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("RouterView");return(0,n.uX)(),(0,n.CE)("div",r,[(0,n.bF)(l,{user:t.$store.state.user},{default:(0,n.k6)(function(t){var e=t.Component;return[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e),{onCreateNewPortfolio:s.createUsersFirstPortfolio},null,40,["onCreateNewPortfolio"]))]}),_:1},8,["user"])])}]])},3211(t,e,o){"use strict";o.r(e),o.d(e,{default:()=>v});var n=o(20641),r={class:"ufo--portfolio-list"};var i=o(5412),a=o(65498),s=o(45),l=o(88248);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,a,s=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}
2finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure 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 o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}function d(){var t,e,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return p(c,"_invoke",function(o,n,r){var i,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,o){return i=e,s=0,l=t,p.n=o,a}};function f(o,n){for(s=o,l=n,e=0;!d&&c&&!r&&e<u.length;e++){var r,i=u[e],f=p.p,h=i[2];o>3?(r=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=o<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(r=o<3||i[0]>n||n>h)&&(i[4]=o,i[5]=n,p.n=h,s=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(r="next"),e=i[r]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);i=t}else if((e=(d=p.n<0)?l:o.call(n,p))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(o,r,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(p(e={},n,function(){return this}),e),f=c.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=c,p(f,"constructor",c),p(c,"constructor",l),l.displayName="GeneratorFunction",p(c,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,n,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function p(t,e,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}p=function(t,e,o,n){function i(e,o){p(t,e,function(t){return this._invoke(e,o,t)})}e?r?r(t,e,{value:o,enumerable:!n,configurable:!n,writable:!n}):t[e]=o:(i("next",0),i("throw",1),i("return",2))},p(t,e,o,n)}function f(t,e,o,n,r,i,a){try{var s=t[i](a),l=s.value}catch(t){return void o(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function h(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var i=t.apply(e,o);function a(t){f(i,n,r,a,s,"next",t)}function s(t){f(i,n,r,a,s,"throw",t)}a(void 0)})}}const m={name:"portfolio-manager",components:{Cta:i.A},data:function(){return{noIndex:!1,tipMessage:{show:!1,type:null},previewRefreshTimer:null,previewRefreshActive:!1}},mounted:function(){var t=this;return h(d().m(function e(){return d().w(function(e){for(;;)switch(e.n){case 0:return t.previewRefreshActive=!0,t.$store.state.previewAndCreatePortfolioDetails.activeView=0,e.n=1,s.A.getPortfolios();case 1:t.refreshManagerPreviews();case 2:return e.a(2)}},e)}))()},unmounted:function(){this.$store.state.creatingNewPortfolio=!1,this.previewRefreshActive=!1,clearTimeout(this.previewRefreshTimer)},watch:{activeView:function(){window.scroll(0,0)},selectedPortfolioTemplate:function(){window.scroll(0,0)},noIndex:function(t){this.tipMessage.show=t,this.tipMessage.type=null}},methods:{refreshManagerPreviews:function(){var t=arguments,e=this;return h(d().m(function o(){var n,r,i,a,s,u;return d().w(function(o){for(;;)switch(o.n){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:null,e.previewRefreshActive){o.n=1;break}return o.a(2);case 1:if((r=n?e.$store.state.userPortfolios.find(function(t){return t._id===n}):null)&&(r.previewJobId="pending"),!n){o.n=3;break}return o.n=2,l.A.refreshManagerPreview(e.$store.state.user._id,n);case 2:u=o.v,o.n=5;break;case 3:return o.n=4,l.A.refreshManagerPreviews(e.$store.state.user._id);case 4:u=o.v;
2case 5:i=u.data,a=i.previews,s=i.jobs,Object.entries(a).forEach(function(t){var o=c(t,2),n=o[0],r=o[1],i=e.$store.state.userPortfolios.find(function(t){return t._id===n});i&&(i.previewUrl=r)}),e.$store.state.userPortfolios.forEach(function(t){s[t._id]?t.previewJobId=s[t._id]:delete t.previewJobId}),e.previewRefreshActive&&Object.keys(s).length&&(clearTimeout(e.previewRefreshTimer),e.previewRefreshTimer=setTimeout(function(){return e.refreshManagerPreviews()},5e3));case 6:return o.a(2)}},o)}))()},createNewPortfolio:function(){var t=this;return h(d().m(function e(){var o,n,r,i;return d().w(function(e){for(;;)switch(e.p=e.n){case 0:return t.$store.state.pageIsLoading=!0,e.p=1,o={projects:t.$store.state.previewAndCreatePortfolioDetails.selectedProjects,portfolioTitle:t.pickRandomTitle(),copyTemplateCaseStudy:t.hasNoCaseStudies},e.n=2,a.A.post("/api/portfolio/"+t.$store.state.user._id+"/"+t.selectedPortfolioTemplate.portfolioShortId,o);case 2:n=e.v,t.$store.state.userPortfolios.push(n.data),t.$store.state.portfolio=n.data,t.$store.state.previewAndCreatePortfolioDetails.activeView=0,t.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate=null,t.$store.commit("openPortfolioToEdit",n.data._id),e.n=4;break;case 3:e.p=3,i=e.v,console.log("Failed to create new portfolio",i),i.response&&(r=i.response.data,405!==i.response.status||1001!==r.code&&1002!==r.code||(t.$store.state.currentSubscriptionPlan=r.currentSubscriptionPlan,t.$store.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10})));case 4:return e.p=4,t.$store.state.pageIsLoading=!1,t.$store.state.previewAndCreatePortfolioDetails={selectedPortfolioTemplate:null,activeView:0,selectedProjects:[],newPortfolio:null},e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}))()},pickRandomTitle:function(){var t=["My Awesome Portfolio","My Brilliant Portfolio","My Super Portfolio","My Wonderful Portfolio","My Stunning Portfolio"];return t[Math.floor(Math.random()*Math.floor(t.length))]}},computed:{activeView:function(){return this.$store.state.previewAndCreatePortfolioDetails.activeView},selectedPortfolioTemplate:function(){return this.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate},selectedProjects:function(){return this.$store.state.previewAndCreatePortfolioDetails.selectedProjects},hasNoCaseStudies:function(){var t;return!(null!==(t=this.$store.state.allCaseStudyPages)&&void 0!==t&&t.length)}}};const v=(0,o(66262).A)(m,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("RouterView");return(0,n.uX)(),(0,n.CE)("div",r,[(0,n.bF)(l,{user:t.$store.state.user},{default:(0,n.k6)(function(t){var e=t.Component;return[((0,n.uX)(),(0,n.Wv)(n.PR,{include:"TemplateList,TemplateFullSizePreview,AllProjectsList"},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e),{onCreateNewPortfolio:s.createNewPortfolio,onRefreshPreview:s.refreshManagerPreviews},null,40,["onCreateNewPortfolio","onRefreshPreview"]))],1024))]}),_:1},8,["user"])])}]])},51164(t,e,o){"use strict";o.d(e,{A:()=>f});var n=o(20641),r={class:"onboarding-template-skeleton","aria-hidden":"true"},i={class:"onboarding-template-skeleton","aria-hidden":"true"};var a=o(76408),s=o(90033);function l(t){return function(t){if(Array.isArray(t))return c(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 c(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}const u={name:"OnboardingTemplateSkeleton",props:{index:{type:Number,default:1}}};var d=o(66262);const p={name:"OnboardingTemplateListSkeleton",components:{OnboardingTemplateSkeleton:(0,d.A)(u,[["render",function(t,e,o,r,i,a){return(0,n.uX)(),(0,n.CE)("div",{class:(0,s.C4)(["skeleton-card",{"skeleton-card--alternate":o.index%2==0}]),style:(0,s.Tr)({"--skeleton-card-index":o.index-1})},l(e[0]||(e[0]=[(0,n.Fv)('<div class="skeleton-thumbnail" data-v-bc969b08><div class="skeleton-preview-lines" data-v-bc969b08><div class="skeleton-navigation" data-v-bc969b08><div data-v-bc969b08></div><div data-v-bc969b08></div><div data-v-bc969b08></div><div data-v-bc969b08></div></div><div class="skeleton-hero" data-v-bc969b08><div class="skeleton-line skeleton-line--wide" data-v-bc969b08></div><div class="skeleton-multiline" data-v-bc969b08><div class="skeleton-line" data-v-bc969b08></div><div class="skeleton-line" data-v-bc969b08></div><div class="skeleton-line" data-v-bc969b08></div></div></div><div class="skeleton-block-grid" data-v-bc969b08><div data-v-bc969b08></div><div data-v-bc969b08></div><div data-v-bc969b08></div><div data-v-bc969b08></div></div></div></div><div class="skeleton-title" data-v-bc969b08></div>',2)])),6)}],["__scopeId","data-v-bc969b08"]]),NonEditorPageFrame:a.A},props:{withFrame:{type:Boolean,default:!1},cardCount:{type:Number,default:6}}},f=(0,d.A)(p,[["render",function(t,e,o,a,s,l){var c=(0,n.g2)("OnboardingTemplateSkeleton"),u=(0,n.g2)("NonEditorPageFrame");return o.withFrame?((0,n.uX)(),(0,n.Wv)(u,{key:0,"page-title":"Start with a solid foundation","page-sub-title":"Kick off your portfolio with a recruiter-friendly template","is-onboarding-flow":!0},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",r,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.cardCount,function(t){return(0,n.uX)(),(0,n.Wv)(c,{key:t,index:t},null,8,["index"])}),128))]),e[0]||(e[0]=(0,n.Lk)("span",{class:"sr-only"},"Loading templates",-1))]}),_:1})):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.Lk)("div",i,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.cardCount,function(t){return(0,n.uX)(),(0,n.Wv)(c,{key:t,index:t},null,8,["index"])}),128))]),e[1]||(e[1]=(0,n.Lk)("span",{class:"sr-only"},"Loading templates",-1))],64))}],["__scopeId","data-v-42f41994"]])},17621(t,e,o){"use strict";o.d(e,{A:()=>to});var n=o(20641),r=o(90033),i=["id"],a={class:"sidebar-content"};var s=o(82124),l=o(33253);var c=o(19209);var u=o(1868),d=o(45),p=o(97073);const f={name:"PortfolioFooterEmptyState",components:{TertiaryButton:u.A},computed:{isDarkMode:function(){return this.$store.state.darkMode}},methods:{enableFooter:function(){this.$store.getters.isCaseStudy?this.$store.state.portfolio.settings.showFooterOnProjects=!0:this.$store.state.portfolio.settings.showFooterOnPortfolio=!0,(0,p.f0)("Toggle portfolio footer on",{event_category:"Project editor",event_label:"User: ".concat(this.$store.state.user._id,", Project: ").concat(this.$store.state.project._id)}),d.A.updatePortfolio()}}};var h=o(66262);const m=(0,h.A)(f,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TertiaryButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["portfolio-footer-empty-state",{dark:s.isDarkMode},{"side-panel--on":t.$store.getters.isCaseStudy&&t.$store.state.showSidePanel&&t.$store.state.sectionEditorSettings.emptyStateTreshold>0}])},[(0,n.bF)(l,{"dark-scheme":s.isDarkMode,icon:"add",text:"Add footer",onClick:s.enableFooter},null,8,["dark-scheme","onClick"])],2)}],["__scopeId","data-v-02dbdf0d"]]);var v={class:"grid-wrapper"},g={class:"grid"},y={key:0,class:"separator"},b={class:"link-container"};var k=o(86405),S=o(89705),P=o(15637),w=o(28358),C=o(56360),O=o(53487),A=o(53751);var $=o(8187),T=o(11211),E=o(74256),I=o(81141),L=o(20807);const F={name:"footer-edit-buttons",components:{ViewportObserver:L.A,SettingsPopover:I.A,Fab:$.A,FabContainer:T.A},props:["section"],data:function(){return{collapsedFabs:!1,SectionTypesEnum:E.iK,activePanel:null,sectionSettingsButtons:[{type:E.O_.FOOTER,visible:!0},{type:E.O_.BACKGROUND,visible:!0,icon:"set-background",tooltip:"Set background"}]}},mounted:function(){var t=this;this.$nextTick(function(){t.observeParentSectionHeight()})},watch:{section:{handler:function(){this.observeParentSectionHeight()},deep:!0},activeSection:{handler:function(t){t||this.closePopoverPanel()}}},computed:{SectionSettingTypesEnum:function(){return E.O_},tooltipPosition:function(){return this.collapsedFabs?"bottom":"left"},panelTitle:function(){return this.activePanel===E.O_.BACKGROUND?"Edit background":"Edit section"},activeSection:function(){return this.$store.state.activeSectionSettingId===this.section._id}},methods:{observeParentSectionHeight:function(){var t,e,o,n=this,r=this.collapsedFabs?1:0,i=(null===(t=this.$refs.fabs)||void 0===t?void 0:t.$el.querySelectorAll(".ufo-fab:not(.settings-popover .ufo-fab)").length)-r,a=new ResizeObserver(function(t){t.forEach(function(t){n.collapsedFabs=t.target.offsetHeight<=52*i+20})});null!==(e=this.$refs.fabs)&&void 0!==e&&e.$el.parentElement&&a.observe(null===(o=this.$refs.fabs)||void 0===o?void 0:o.$el.parentElement)},closePopoverPanel:function(){this.activePanel=null},toggleActivePanel:function(t){this.$store.commit("selectSection",this.section),this.$store.state.activeSectionSettingId=this.section._id,this.$store.state.checklist.popUpClosed||(this.$store.state.checklist.popUpClosed=!0),this.activePanel=this.activePanel===t?null:t},isPanelActive:function(t){return this.activePanel===t},removeFooter:function(){this.$store.getters.isCaseStudy?this.$store.state.portfolio.settings.showFooterOnProjects=!1:this.$store.state.portfolio.settings.showFooterOnPortfolio=!1,(0,p.f0)("Toggle portfolio footer off",{event_category:"Portfolio editor",event_label:"User: ".concat(this.$store.state.user._id,", Project: ").concat(this.$store.state.project._id)}),d.A.updatePortfolio()}}},_=(0,h.A)(F,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("SettingsPopover"),l=(0,n.g2)("Fab"),c=(0,n.g2)("FabContainer"),u=(0,n.g2)("ViewportObserver");return(0,n.uX)(),(0,n.Wv)(u,{"is-active":!!i.activePanel,onOutOfView:a.closePopoverPanel},{default:(0,n.k6)(function(){return[(0,n.bF)(c,{ref:"fabs",type:"vertical",side:"right",collapse:i.collapsedFabs,active:!!i.activePanel,"custom-class":"section-edit-fabs"},{"popover-panel":(0,n.k6)(function(){return[i.activePanel&&a.activeSection?((0,n.uX)(),(0,n.Wv)(s,{key:0,"dark-scheme":!0,title:a.panelTitle,section:o.section,panelType:i.activePanel,onClose:a.closePopoverPanel},null,8,["title","section","panelType","onClose"])):(0,n.Q3)("v-if",!0)]}),default:(0,n.k6)(function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(i.sectionSettingsButtons,function(t){return(0,n.uX)(),(0,n.Wv)(l,{key:t.type,icon:t.icon||"edit",tooltip:a.isPanelActive(t.type)?null:t.tooltip||"Edit section","tooltip-position":t.tooltipPosition||a.tooltipPosition,selected:i.activePanel===t.type,onClick:(0,A.withModifiers)(function(e){return a.toggleActivePanel(t.type)},["stop"])},null,8,["icon","tooltip","tooltip-position","selected","onClick"])}),128)),o.section.type!==i.SectionTypesEnum.CASE_STUDY_GRID?((0,n.uX)(),(0,n.Wv)(l,{key:0,icon:"delete",alert:!0,tooltip:"Delete section","tooltip-position":a.tooltipPosition,onClick:a.removeFooter},null,8,["tooltip-position","onClick"])):(0,n.Q3)("v-if",!0)]}),_:1},8,["collapse","active"])]}),_:1},8,["is-active","onOutOfView"])}]]);var j=o(93789),D=o(36635),x=o(37874),M=o(65570),N=o(31096),U=o(30387);function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function X(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function H(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?X(Object(o),!0).forEach(function(e){W(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):X(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function W(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==B(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const R={name:"PortfolioFooter",components:{AnimationWrapper:P.A,FooterEditButtons:_,NavItem:C.A,RichTextModule:w.A,SectionBackground:j.A,SectionCol:D.A,SocialLink:O.A,SpacerModule:x.A,SpacingHelper:k.A,ToggleGrid:S.A},data:function(){return{resizing:!1}},mounted:function(){var t;(0,N.Ty)(this.$store.state.portfolio.portfolioFooter),Object.assign(this,(0,U.o)(null===(t=this.$store.state.portfolio.portfolioFooter.layoutSettings)||void 0===t?void 0:t.modules,12,0)),(0,M.aQ)(this.$store.state.portfolio.portfolioFooter)},watch:{"portfolioFooter.layoutSettings.modules":function(t,e){t!==e&&null!=this&&this.setModules&&this.setModules(t)}},computed:H(H({},(0,s.L8)("design",["templateSettings"])),{},{showSocialLinksInFooterNavigation:function(){var t;return(null===(t=this.$store.state.portfolio.portfolioFooter.socialIcons)||void 0===t?void 0:t.length)<1&&this.$store.state.portfolio.portfolioFooter.displaySocialLinks&&this.socialLinks},footerBackgroundColor:function(){if(this.templateSettings.hero){var t,e;if(this.templateSettings.hero.sidebarSettings)return{"--heroBackgroundColor":this.templateSettings.hero.sidebarSettings.color};if(null!==(t=this.templateSettings.hero)&&void 0!==t&&null!==(t=t.backgroundSettings)&&void 0!==t&&t.backgroundColor)return{"--heroBackgroundColor":null===(e=this.templateSettings.hero)||void 0===e||null===(e=e.backgroundSettings)||void 0===e?void 0:e.backgroundColor}}return null},portfolioPages:function(){return this.$store.state.portfolioPages?this.$store.state.portfolioPages.filter(function(t){return!t.deletedAt}).slice(0,5):[]},filteredSocialLinks:function(){return this.socialLinks?this.$store.state.portfolio.socialLinks.filter(function(t){return t.url&&t.type}):[]},socialLinks:function(){return this.$store.state.portfolio.socialLinks},calcStyle:function(){var t,e=null===(t=this.$store.state.portfolio.portfolioFooter.style)||void 0===t?void 0:t.paddingTop;return{height:"".concat(null!=e?e:60,"px")}},footerLineClasses:function(){return"".concat(this.$store.state.portfolio.portfolioFooter.lineWeight)},portfolioFooter:function(){return this.$store.state.portfolio.portfolioFooter},footerHorizontalAlign:function(){var t;return(null===(t=this.portfolioFooter.styleSettings)||void 0===t||null===(t=t.boxAlign)||void 0===t||null===(t=t.split("-"))||void 0===t?void 0:t[0])||"left"},footerModules:function(){return(0,N.Tp)(this.portfolioFooter)},showFooterLinks:function(){return this.portfolioFooter.displayPageLinks||this.portfolioFooter.displaySocialLinks&&this.socialLinks},disableAlignmentForLinks:function(){return this.portfolioFooter.displayPageLinks&&this.portfolioFooter.displaySocialLinks&&this.socialLinks},shouldHighlight:function(){return this.$store.getters["design/highlightSectionModules"](this.$store.state.portfolio.portfolioFooter)}}),methods:{resizeStartHandler:function(){this.resizing=!0},updateFooterSection:function(){var t;null===(t=this.flushScheduledCompactRow)||void 0===t||t.call(this),this.resizing=!1,this.$store.dispatch("updateSection",{section:this.portfolioFooter})},moduleIsText:function(t){return(null==t?void 0:t.type)===E.jB.TEXT},moduleIsSpacer:function(t){return(null==t?void 0:t.type)===E.jB.SPACER},onResizeHandler:function(t,e){var o;if(null!=e&&e.gridSettings){var n=Number(t.columnStart),r=Number(t.columnEnd),i=H({},t);Number.isFinite(n)&&Number.isFinite(r)&&(i.columnStart=n,i.columnEnd=r,i.columnSpan=Math.max(0,r-n));var a,s=e.gridSettings.columnEnd-e.gridSettings.columnStart,l=i.columnEnd-i.columnStart-s;if("center"===this.footerHorizontalAlign&&1===(null===(o=this.portfolioFooter.layoutSettings)||void 0===o||null===(o=o.modules)||void 0===o?void 0:o.length)&&!this.moduleIsSpacer(e))this.resizeCenterAlignedModule(e.moduleId,l);else Object.assign(e.gridSettings,i),null===(a=this.scheduleCompactRow)||void 0===a||a.call(this,e.moduleId,t.resizeDirection);this.$forceUpdate()}}}},Q={name:"footer-section",components:{PortfolioFooter:(0,h.A)(R,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("ToggleGrid"),c=(0,n.g2)("SectionBackgroun
2d"),u=(0,n.g2)("SpacingHelper"),d=(0,n.g2)("FooterEditButtons"),p=(0,n.g2)("SpacerModule"),f=(0,n.g2)("RichTextModule"),h=(0,n.g2)("SectionCol"),m=(0,n.g2)("AnimationWrapper"),k=(0,n.g2)("NavItem"),S=(0,n.g2)("SocialLink");return(0,n.uX)(),(0,n.CE)("div",{id:"footer-section",class:(0,r.C4)(["footer-section","portfolio-footer","ufo-sec",s.portfolioFooter.styleSettings.boxAlign,{"fixed-links":s.disableAlignmentForLinks}]),style:(0,r.Tr)(s.footerBackgroundColor)},[(0,n.bF)(l),(0,n.bF)(c,{section:s.portfolioFooter},null,8,["section"]),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.CE)("div",{key:1,style:(0,r.Tr)(s.calcStyle)},null,4)):((0,n.uX)(),(0,n.Wv)(u,{key:0,section:t.$store.state.portfolio.portfolioFooter,type:"paddingTop",position:"top"},null,8,["section"])),(0,n.bF)(d,{section:s.portfolioFooter},null,8,["section"]),(0,n.Lk)("div",v,[(0,n.Lk)("div",g,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.footerModules,function(e,o){return(0,n.uX)(),(0,n.Wv)(h,{key:"".concat(e.moduleId,"-").concat(o),module:e,"module-index":o,section:t.$store.state.portfolio.portfolioFooter,"hide-tools":"",onResize:function(t){return s.onResizeHandler(t,e)},onResizeStart:s.resizeStartHandler,onResizeEnd:s.updateFooterSection},{default:(0,n.k6)(function(o){var r=o.showToolbar,i=o.containerClass,a=o.handleCtsClick,l=o.resizing;return[s.moduleIsSpacer(e)?((0,n.uX)(),(0,n.Wv)(p,{key:0,"container-class":i,"handle-cts-click":a,module:e,resizing:l,section:t.$store.state.portfolio.portfolioFooter,"show-toolbar":r},null,8,["container-class","handle-cts-click","module","resizing","section","show-toolbar"])):s.moduleIsText(e)&&t.$store.state.portfolio.portfolioFooter.displayText?((0,n.uX)(),(0,n.Wv)(f,{key:1,section:t.$store.state.portfolio.portfolioFooter,"show-toolbar":r,"container-class":i,"handle-cts-click":a},null,8,["section","show-toolbar","container-class","handle-cts-click"])):(0,n.Q3)("v-if",!0)]}),_:2},1032,["module","module-index","section","onResize","onResizeStart","onResizeEnd"])}),128)),t.$store.state.portfolio.portfolioFooter.displayDividerLine?((0,n.uX)(),(0,n.CE)("div",y,[(0,n.bF)(m,{"is-final-section":""},{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,r.C4)(["line",s.footerLineClasses])},null,2)]}),_:1})])):(0,n.Q3)("v-if",!0),s.showFooterLinks?((0,n.uX)(),(0,n.CE)("div",{key:1,class:(0,r.C4)(["footer-links",{profile_theme_default:!t.$store.state.portfolio.templateSettings.theme||t.$store.state.portfolio.templateSettings.theme.includes("theme_default")}])},[(0,n.Lk)("div",b,[t.$store.state.portfolio.portfolioFooter.displayPageLinks?((0,n.uX)(),(0,n.CE)("div",{key:0,ref:"portfolio-pages",class:(0,r.C4)(["portfolio-pages",s.shouldHighlight])},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.portfolioPages,function(t,e){return(0,n.uX)(),(0,n.Wv)(k,{page:t,key:t._id,index:e,"is-in-footer":!0},null,8,["page","index"])}),128))],2)):(0,n.Q3)("v-if",!0),s.showSocialLinksInFooterNavigation?((0,n.uX)(),(0,n.CE)("div",{key:1,ref:"social-links",class:(0,r.C4)(["social-links",s.shouldHighlight])},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.filteredSocialLinks,function(t,e){return(0,n.uX)(),(0,n.CE)("div",{key:e,class:"footer-link"},[(0,n.bF)(m,{"is-final-section":"","delay-animation":e?.1*e:0},{animationContent:(0,n.k6)(function(){return[(0,n.bF)(S,{"social-link":t},null,8,["social-link"])]}),_:2},1032,["delay-animation"])])}),128))],2)):(0,n.Q3)("v-if",!0)])],2)):(0,n.Q3)("v-if",!0)])])],6)}],["__scopeId","data-v-7f7a959a"]]),PortfolioFooterEmptyState:m},computed:{footerAllowedInTemplate:function(){return c.A.footerAllowedInTheme(this.$store.state.portfolio.templateSettings.theme)||this.$store.getters.isCaseStudy},showFooter:function(){return this.$store.getters.isCaseStudy&&this.$store.state.portfolio.settings.showFooterOnProjects||!this.$store.getters.isCaseStudy&&this.$store.state.portfolio.settings.showFooterOnPortfolio},showFooterEmptyState:function(){return!(!this.footerAllowedInTemplate&&!this.$store.getters.isCaseStudy)&&!this.showFooter}}},G=(0,h.A)(Q,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("PortfolioFooterEmptyState"),l=(0,n.g2)("PortfolioFooter");return a.showFooterEmptyState?((0,n.uX)(),(0,n.Wv)(s,{key:0})):a.showFooter?((0,n.uX)(),(0,n.Wv)(l,{key:1})):(0,n.Q3)("v-if",!0)}]]);var z=o(15509),V=o(67297),K=o(76434),Y=o(89844),q=o(4493),J=o(59023),Z=o(1373),tt=o(83734),et=o(21178);var ot=o(98963),nt=o(91839),rt=o(4484);const it={name:"PortfolioNavigationSection",mixins:[o(56286).A],components:{PortfolioNavigationBar:nt.A,SectionBase:ot.A},props:{section:{type:Object,default:null}}
2,data:function(){return{navHeightObserver:null}},computed:{isOverlay:function(){var t;return!this.$store.getters.heroIsSidebar&&(this.$store.getters.isCaseStudy||!0===(null===(t=this.section)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.overlay))},isBelow:function(){var t;return!this.$store.getters.isCaseStudy&&!this.isPinnedEffect&&this.isOverlay&&(null===(t=this.section)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.position)===E.ze.BOTTOM},sectionClasses:function(){return this.isOverlay?[{"nav-overlay":!0},{"nav-sticky":this.isPinnedEffect},this.isBelow?"at-bottom":null].filter(Boolean):null},portfolio:function(){return this.$store.state.portfolio}},mounted:function(){var t=this;this.navHeightObserver=(0,rt.T)({isOverlay:function(){return t.isOverlay},getSectionEl:function(){var e;return null===(e=t.$refs.sectionRoot)||void 0===e?void 0:e.$el.querySelector("section")},onHeight:function(e){return t.applyNavHeightVars(e)},onClear:function(){return t.applyNavHeightVars(null)}}),this.$nextTick(function(){t.setupResizeObserver()})},beforeUnmount:function(){this.teardownResizeObserver()},watch:{isOverlay:function(){var t=this;this.$nextTick(function(){t.setupResizeObserver(),t.applyNavHeightVars()})},section:function(){var t=this;this.$nextTick(function(){t.setupResizeObserver()})}},methods:{setupResizeObserver:function(){var t;null===(t=this.navHeightObserver)||void 0===t||t.setup()},teardownResizeObserver:function(){var t;null===(t=this.navHeightObserver)||void 0===t||t.teardown()},applyNavHeightVars:function(t){(0,rt.k)({height:t,isBelow:this.isBelow,isOverlay:this.isOverlay})}}},at=(0,h.A)(it,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("PortfolioNavigationBar"),c=(0,n.g2)("SectionBase");return o.section?((0,n.uX)(),(0,n.Wv)(c,{key:0,ref:"sectionRoot",class:(0,r.C4)(s.sectionClasses),section:o.section,"hide-background-image":"","spacing-disabled":""},{default:(0,n.k6)(function(){return[(0,n.bF)(l,{navigation:o.section},null,8,["navigation"])]}),_:1},8,["class","section"])):(0,n.Q3)("v-if",!0)}]]);var st=o(27032);function lt(t){return function(t){if(Array.isArray(t))return ct(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 ct(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ct(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 ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}var ut={class:"empty-state grid"},dt={class:(0,r.C4)(["container"])},pt={class:"text-wrapper"},ft={class:"title"},ht={class:"subtitle"},mt={class:"centered-button"};const vt={name:"PageEmptyState",props:["handleClick"],components:{Cta:o(5412).A},computed:{title:function(){return"You havenât added any sections yet"},subtitle:function(){return"You can choose from generic and UX specific sections."}}},gt=(0,h.A)(vt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Cta");return(0,n.uX)(),(0,n.CE)("div",ut,[(0,n.Lk)("div",{class:(0,r.C4)(["empty-collection",{dark:t.$store.state.darkMode}])},[(0,n.Lk)("div",dt,[(0,n.Lk)("div",pt,[(0,n.Lk)("h2",ft,(0,r.v_)(s.title),1),(0,n.Lk)("p",ht,(0,r.v_)(s.subtitle),1)]),(0,n.Lk)("div",mt,[(0,n.bF)(l,{"dark-scheme":t.$store.state.darkMode,onClick:e[0]||(e[0]=function(){return o.handleClick()})},{default:(0,n.k6)(function(){return lt(e[1]||(e[1]=[(0,n.eW)("Add a new section",-1)]))}),_:1},8,["dark-scheme"])])])],2)])}],["__scopeId","data-v-feef3d10"]]);const yt={name:"AddSectionRow",components:{Fab:$.A},emits:["add"]},bt=(0,h.A)(yt,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("Fab");return t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--add-section-row",{inactive:t.$store.getters.ctsIsActive}])},[t.$store.getters.ctsIsActive?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(l,{key:0,icon:"add",size:"small",tooltip:"Add section","tooltip-position":"top",onClick:e[0]||(e[0]=function(e){return t.$emit("add")})}))],2))}],["__scopeId","data-v-2a3553b6"]]);var kt=o(99421);function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Pt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function wt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?Pt(Object(o),!0).forEach(function(e){Ct(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Pt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Ct(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=St(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==St(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Ot={name:"PortfolioHeroSection",components:{GeneralSection:kt.A},props:{section:{type:Object,default:null}},data:function(){return{resizeObserver:null,heightInitialized:!1}},computed:{showHeightHandle:function(){return!this.$store.getters.ctsIsActive&&!this.$store.getters.isEditorBlocked},heightHandleProps:function(){var t=this.getHeightBounds(),e=t.min,o=t.max;return{enabled:this.showHeightHandle,height:this.sectionHeight,minHeight:e,maxHeight:o,target:this.getHeroSectionEl()}},heightHandleListeners:function(){return{change:this.updateHeight,end:this.persistHeight}},heroElement:function(){var t;return(null===(t=this.$refs.heroSection)||void 0===t?void 0:t.$el)||null},heroStyle:function(){var t,e=this.sectionHeight;if(!e)return null;var o=(null===(t=this.section)||void 0===t||null===(t=t.styleSettings)||void 0===t||null===(t=t.boxAlign)||void 0===t||null===(t=t.split("-"))||void 0===t?void 0:t[1])||"middle";return{"--sectionHeight":"".concat(e,"px"),"--heroContentAlign":{top:"flex-start",middle:"center",bottom:"flex-end"}[o]||"center"}},sectionHeight:function(){var t,e=null===(t=this.section)||void 0===t||null===(t=t.styleSettings)||void 0===t?void 0:t.sectionHeight;if(null==e||""===e)return null;var o=Number(e);return Number.isFinite(o)?Math.round(o):null},theme:function(){var t;return null===(t=this.$store.state.portfolio)||void 0===t||null===(t=t.templateSettings)||void 0===t?void 0:t.theme}},methods:{getHeroSectionEl:function(){var t,e=null===(t=this.$refs.heroSection)||void 0===t?void 0:t.$el;return e?e.querySelector(".ufo-sec--hero")||e:null},getHeightBounds:function(){var t=Math.max(0,320-this.getNavPaddingSum());return{min:t,max:Math.max(t,2e3)}},clampHeight:function(t){var e=this.normalizeHeight(t);if(null===e)return null;var o=this.getHeightBounds(),n=o.min,r=o.max;return Math.min(Math.max(e,n),r)},getNavPaddingSum:function(){if("undefined"==typeof window)return 0;var t=this.getHeroSectionEl();if(!t)return 0;var e=window.getComputedStyle(t);return(parseFloat(e.getPropertyValue("--portfolioNavPaddingTop"))||0)+(parseFloat(e.getPropertyValue("--portfolioNavPaddingBottom"))||0)},normalizeHeight:function(t){var e=Number(t);return Number.isFinite(e)?Math.round(e):null},handleUpdate:function(){d.A.updatePortfolio("Update portfolio hero",!0)},updateHeight:function(t){var e,o=this.clampHeight(t);null!==o&&(this.heightInitialized=!0,this.$store.commit("updatePortfolioHeroSection",{styleSettings:wt(wt({},(null===(e=this.section)||void 0===e?void 0:e.styleSettings)||{}),{},{sectionHeight:o})}))},persistHeight:function(){d.A.updatePortfolio("Set hero height")},setupResizeObserver:function(){var t=this;if("undefined"!=typeof window){var e=window.ResizeObserver||globalThis.ResizeObserver;if(e){var o=this.getHeroSectionEl();if(o){var n=o.querySelector(".grid");n&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new e(function(){var e,o;if(!t.heightInitialized&&"number"!=typeof t.sectionHeight){var r=n.scrollHeight||(null===(e=n.getBoundingClientRect)||void 0===e?void 0:e.call(n).height);if(r){var i=t.clampHeight(r);null!==i&&(t.$store.commit("updatePortfolioHeroSection",{styleSettings:wt(wt({},(null===(o=t.section)||void 0===o?void 0:o.styleSettings)||{}),{},{sectionHeight:i})}),t.heightInitialized=!0)}}}),this.resizeObserver.observe(n))}}}}},mounted:function(){var t=this;this.heightInitialized="number"==typeof this.sectionHeight,this.$nextTick(function(){t.setupResizeObserver()})},beforeUnmount:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},watch:{heroElement:function(){var t=this;this.$nextTick(function(){t.setupResizeObserver()})},"section.layoutSettings.modules":{handler:function(){var t=this;this.$nextTick(function(){t.setupResizeObserver()})},deep:!0},sectionHeight:function(t){"number"==typeof t&&(this.heightInitialized=!0)}}},At={name:"HeaderSections",components:{PortfolioHeroSection:(0,h.A)(Ot,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("GeneralSection");return(0,n.uX)(),(0,n.Wv)(s,{ref:"heroSection",section:o.section,"section-style":a.heroStyle,"update-handler":a.handleUpdate,"spacing-disabled":"","show-height-handle":a.showHeightHandle,"height-handle-props":a.heightHandleProps,"height-handle-listeners":a.heightHandleListeners},null,8,["section","section-style","update-handler","show-height-handle","height-handle-props","height-handle-listeners"])}]]),PortfolioNavigationSection:at},props:{showPortfolioHero:{type:Boolean,default:!1},portfolioHeroSection:{type:Object,default:null},portfolioNavigationSection:{type:Object,default:null},navigationVisibility:{type:Object,default:function(){return{}}},isSidebarHeroLayout:{type:Boolean,default:!1}},computed:{items:function(){var t,e,o=[];return null!==(t=this.navigationVisibility)&&void 0!==t&&t.showAbove&&this.portfolioNavigationSection&&o.push({key:"nav-above",component:"PortfolioNavigationSection",section:this.portfolioNavigationSection,className:null}),this.showPortfolioHero&&this.portfolioHeroSection&&o.push({key:"portfolio-hero",component:"PortfolioHeroSection",section:this.portfolioHeroSection,className:null}),null!==(e=this.navigationVisibility)&&void 0!==e&&e.showBelow&&this.portfolioNavigationSection&&o.push({key:"nav-below",component:"PortfolioNavigationSection",section:this.portfolioNavigationSection,className:this.isSidebarHeroLayout?"is-below":null}),o}}},$t=(0,h.A)(At,[["render",function(t,e,o,i,a,s){return(0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.items,function(t){return(0,n.uX)(),(0,n.Wv)((0,n.$y)(t.component),{key:t.key,section:t.section,class:(0,r.C4)(t.className)},null,8,["section","class"])}),128)}]]);var Tt={key:0,class:"sidebar-edit-fabs"},Et={class:"logo-edit-fabs"},It={class:"grid"},Lt={class:"navbar-edit-fabs"};var Ft=o(2411),_t=o(74472),jt=o(96937);function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function xt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Mt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?xt(Object(o),!0).forEach(function(e){Nt(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):xt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Nt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Dt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Ut={name:"PortfolioSidebarHeroSection",components:{SectionEditButtons:o(36532).A,PortfolioNavigationBar:nt.A,SectionCol:D.A,SectionBackground:j.A,PortfolioNavigationLogo:Ft.A,MediaModule:_t.A,RichTextModule:w.A},props:{section:{type:Object,default:null},navigation:{type:Object,default:null},navigationVisibility:{type:Object,default:function(){return{}}},sidebarHasBackground:{type:Boolean,default:!1}},data:function(){return{resizing:!1,sidebarHeroTextMaxHeight:jt.Po,sidebarTextResizeObserver:null,sidebarTextMaxHeightAnimationFrame:null,showInlineFabs:!1}},computed:{SectionSettingTypesEnum:function(){return E.O_},sidebarModules:function(){var t,e=this;return((null===(t=this.section)||void 0===t||null===(t=t.layoutSettings)||void 0===t?void 0:t.modules)||[]).filter(function(t){var o,n;return(null==t?void 0:t.type)===E.jB.MEDIA?null===(o=e.section)||void 0===o||null===(o=o.contentSettings)||void 0===o?void 0:o.showMedia:(null==t?void 0:t.type)===E.jB.TEXT&&(null===(n=e.section)||void 0===n||null===(n=n.contentSettings)||void 0===n?void 0:n.showText)}).sort(function(t,e){var o,n;return(Number(null==t||null===(o=t.gridSettings)||void 0===o?void 0:o.rowStart)||0)-(Number(null==e||null===(n=e.gridSettings)||void 0===n?void 0:n.rowStart)||0)})},showNavigationAbove:function(){var t;return!!this.navigation&&(null===(t=this.navigationVisibility)||void 0===t?void 0:t.showAbove)},showNavigationBelow:function(){var t;return!!this.navigation&&(null===(t=this.navigationVisibility)||void 0===t?void 0:t.showBelow)},logo:function(){var t;return(null===(t=this.$store.state.portfolio)||void 0===t?void 0:t.logo)||null},userName:function(){var t,e;return(null===(t=this.logo)||void 0===t?void 0:t.name)||(null===(e=this.$store.state.user)||void 0===e?void 0:e.name)||""},showLogo:function(){var t;return!(null===(t=this.logo)||void 0===t||!t.mode)&&"None"!==this.logo.mode},contentStyle:function(){var t;return{"--heroContentAlign":{left:"flex-start",center:"center",right:"flex-end"}[(null===(t=this.section)||void 0===t||null===(t=t.styleSettings)||void 0===t||null===(t=t.boxAlign)||void 0===t||null===(t=t.split("-"))||void 0===t?void 0:t[0])||"left"]||"flex-start"}}},mounted:function(){var t=this;(0,M.aQ)(this.section),this.emitter.on("update-section-level-custom-colors",function(){(0,M.aQ)(t.section)}),this.emitter.on("reset-section-level-custom-colors",function(){(0,M.wt)(t.section)}),this.setupSidebarTextMaxHeightObserver(),this.$nextTick(function(){var e;null===(e=t.getSidebarRailElement())||void 0===e||e.addEventListener("mouseleave",t.hideLogoInlineFabs)})},beforeUnmount:function(){var t;null===(t=this.getSidebarRailElement())||void 0===t||t.removeEventListener("mouseleave",this.hideLogoInlineFabs),this.teardownSidebarTextMaxHeightObserver()},watch:{sidebarModules:{handler:function(){this.scheduleSidebarTextMaxHeightUpdate()},deep:!0},showNavigationAbove:function(){this.scheduleSidebarTextMaxHeightUpdate()},showNavigationBelow:function(){this.scheduleSidebarTextMaxHeightUpdate()}},methods:{getComponentType:function(t){return this.moduleIsMedia(t)?"MediaModule":this.moduleIsText(t)?"RichTextModule":null},getModuleProps:function(t,e,o,n,r){var i={key:t.moduleId,section:this.section,showToolbar:e,containerClass:o,handleCtsClick:n};return this.moduleIsMedia(t)?Mt(Mt({},i),{},{resizing:r,mediaElement:this.section.media,placeholder:"hero-placeholder-foreground.webp",deleteHandler:this.onMediaDelete}):this.moduleIsText(t)?Mt(Mt({},i),{},{resizing:r,maxRenderedTextHeight:this.sidebarHeroTextMaxHeight}):i},moduleIsMedia:function(t){var e;return(null===(e=this.section)||void 0===e||null===(e=e.contentSettings)||void 0===e?void 0:e.showMedia)&&(null==t?void 0:t.type)===E.jB.MEDIA},moduleIsText:function(t){var e;return(null===(e=this.section)||void 0===e||null===(e=e.contentSettings)||void 0===e?void 0:e.showText)&&(null==t?void 0:t.type)===E.jB.TEXT},resizeStartHandler:function(){this.resizing=!0},onResizeHandler:function(t,e,o){o.gridSettings.columnStart=t.columnStart,o.gridSettings.columnEnd=t.columnEnd,o.gridSettings.columnSpan=t.columnEnd-t.columnStart,o.gridSettings.height=t.height,o.gridSettings.mediaHeight=t.mediaHeight,o.gridSettings.mediaAspectRatio=t.mediaAspectRatio,this.scheduleSidebarTextMaxHeightUpdate()},onMediaResizeHandler:function(t,e){e.gridSettings.mediaHeight=t.height,e.resizeSettings.autoHeight=!0,this.scheduleSidebarTextMaxHeightUpdate()},updateSection:function(t,e,o){var n,r,i;(this.resizing=!1,e)&&(e.resizeSettings.autoHeight=(null===(n=this.section.media)||void 0===n?void 0:n.type)!==E.Eb.IMAGE||!(null===(r=this.section.media)||void 0===r||!r.mockupSettings)||!(null===(i=this.section.media)||void 0===i||!i.thumbnailData));d.A.updatePortfolio("Update portfolio hero",!0),this.scheduleSidebarTextMaxHeightUpdate()},onMediaDelete:function(){var t;this.$store.commit("deleteHeroMediaModule"),d.A.updatePortfolioHero(null===(t=this.$store.state.portfolio)||void 0===t?void 0:t.portfolioHero)},setupSidebarTextMaxHeightObserver:function(){var t=this;if(this.teardownSidebarTextMaxHeightObserver(),"undefined"!=typeof window){var e=window.ResizeObserver||globalThis.ResizeObserver;
2e&&(this.sidebarTextResizeObserver=new e(function(){t.scheduleSidebarTextMaxHeightUpdate()}),this.$nextTick(function(){var e,o,n=t.getSidebarRailElement(),r=t.$refs.content;n&&(null===(e=t.sidebarTextResizeObserver)||void 0===e||e.observe(n)),r&&(null===(o=t.sidebarTextResizeObserver)||void 0===o||o.observe(r))})),window.addEventListener("resize",this.scheduleSidebarTextMaxHeightUpdate),this.scheduleSidebarTextMaxHeightUpdate()}},teardownSidebarTextMaxHeightObserver:function(){this.sidebarTextResizeObserver&&(this.sidebarTextResizeObserver.disconnect(),this.sidebarTextResizeObserver=null),this.sidebarTextMaxHeightAnimationFrame&&(cancelAnimationFrame(this.sidebarTextMaxHeightAnimationFrame),this.sidebarTextMaxHeightAnimationFrame=null),"undefined"!=typeof window&&window.removeEventListener("resize",this.scheduleSidebarTextMaxHeightUpdate)},scheduleSidebarTextMaxHeightUpdate:function(){var t=this;"undefined"!=typeof window&&(this.sidebarTextMaxHeightAnimationFrame||(this.sidebarTextMaxHeightAnimationFrame=requestAnimationFrame(function(){t.sidebarTextMaxHeightAnimationFrame=null,t.updateSidebarTextMaxHeight()})))},updateSidebarTextMaxHeight:function(){this.sidebarHeroTextMaxHeight=(0,jt.$4)({rail:this.getSidebarRailElement(),textElement:this.getSidebarTextEditorElement()})},getSidebarRailElement:function(){var t,e;return(null===(t=this.$refs.content)||void 0===t||null===(e=t.closest)||void 0===e?void 0:e.call(t,".sidebar-rail"))||null},getSidebarTextEditorElement:function(){var t,e;return(null===(t=this.$refs.content)||void 0===t||null===(e=t.querySelector)||void 0===e?void 0:e.call(t,".ufo-sec--hero .col .ufo--text-editor"))||null},hideLogoInlineFabs:function(){var t,e;this.showInlineFabs=!1,null===(t=this.$refs.logoEditButtons)||void 0===t||null===(e=t.closePopoverPanel)||void 0===e||e.call(t)},navigateHome:function(){(this.$store.state.portfolioPages||[]).find(function(t){return"home"===(null==t?void 0:t.shortId)})&&this.$store.commit("setPageToEdit","home"),this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId))}}},Bt=(0,h.A)(Ut,[["render",function(t,e,o,i,a,s){var l,c,u,d,p=(0,n.g2)("SectionEditButtons"),f=(0,n.g2)("SectionBackground"),h=(0,n.g2)("PortfolioNavigationLogo"),m=(0,n.g2)("PortfolioNavigationBar"),v=(0,n.g2)("SectionCol");return(0,n.uX)(),(0,n.CE)(n.FK,null,[a.showInlineFabs?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",Tt,[t.$store.getters.ctsIsActive||t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(p,{key:0,section:o.section},null,8,["section"]))])),(0,n.bF)(f,{section:o.section},null,8,["section"]),(0,n.Lk)("div",{ref:"content",class:"ufo-sec ufo-sec--hero",style:(0,r.Tr)(s.contentStyle)},[s.showLogo?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"sidebar-logo-wrapper",onMouseenter:e[0]||(e[0]=function(t){return a.showInlineFabs=!0})},[(0,n.Lk)("div",Et,[t.$store.getters.ctsIsActive||t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(p,{key:0,ref:"logoEditButtons",section:null===(l=t.$store.state.portfolio)||void 0===l?void 0:l.portfolioNavigation,"is-logo-edit":"","tooltip-appears-at":"right"},null,8,["section"]))]),s.showLogo?((0,n.uX)(),(0,n.Wv)(h,{key:0,logo:s.logo,"user-name":s.userName,onNavigateHome:s.navigateHome},null,8,["logo","user-name","onNavigateHome"])):(0,n.Q3)("v-if",!0)],32)):(0,n.Q3)("v-if",!0),s.showNavigationAbove?((0,n.uX)(),(0,n.Wv)(m,{key:1,navigation:null===(c=t.$store.state.portfolio)||void 0===c?void 0:c.portfolioNavigation},null,8,["navigation"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",It,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.sidebarModules,function(t,e){return(0,n.uX)(),(0,n.Wv)(v,{key:"".concat(t.moduleId,"-").concat(e),module:t,"module-index":e,section:o.section,"sibling-resizing":a.resizing,"hide-tools":"",onResize:function(o){return s.onResizeHandler(o,e,t)},onResizeStart:s.resizeStartHandler,onResizeEnd:function(o){return s.updateSection(o,t,e)},onMediaResize:function(e){return s.onMediaResizeHandler(e,t)}},{default:(0,n.k6)(function(e){var o=e.showToolbar,r=e.containerClass,i=e.handleCtsClick,a=e.resizing;return[((0,n.uX)(),(0,n.Wv)((0,n.$y)(s.getComponentType(t)),(0,n.v6)({key:t.moduleId},{ref_for:!0},s.getModuleProps(t,o,r,i,a),(0,n.Tb)(s.moduleIsMedia(t)?{"image-loaded":s.scheduleSidebarTextMaxHeightUpdate}:{})),null,16))]}),_:2},1032,["module","module-index","section","sibling-resizing","onResize","onResizeStart","onResizeEnd","onMediaResize"])}),128))]),(0,n.Lk)("div",{class:"sidebar-navbar-wrapper",onMouseenter:e[1]||(e[1]=function(t){return a.showInlineFabs=!0}),onMouseleave:e[2]||(e[2]=function(t){return a.showInlineFabs=!1})},[(0,n.Lk)("div",Lt,[t.$store.getters.ctsIsActive||t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(p,{key:0,"fab-container-side":"top","fab-container-type":"horizontal","tooltip-appears-at":"top",section:null===(u=t.$store.state.portfolio)||void 0===u?void 0:u.portfolioNavigation},null,8,["section"]))]),s.showNavigationBelow?((0,n.uX)(),(0,n.Wv)(m,{key:0,navigation:null===(d=t.$store.state.portfolio)||void 0===d?void 0:d.portfolioNavigation},null,8,["navigation"])):(0,n.Q3)("v-if",!0)],32)],4)],64)}],["__scopeId","data-v-3b5f01ad"]]);var Xt=o(68820),Ht=o(66871),Wt=o(78805);const Rt=o.p+"src/assets/images/empty-project-thumbnail-small.aaccf918.jpg";var Qt={class:"project-footer"},Gt={key:0,class:"footer-info"},zt={class:"project-owner"},Vt={class:"owner"},Kt=["src"],Yt={class:"owner-name"},qt={class:"owner-company"},Jt={class:"ufo-fab--container"},Zt={class:"footer-links"},te=["onClick","target"],ee={class:"owner-projects-content"},oe=["onClick"],ne={class:"image"},re=["src","alt"],ie=["alt"],ae={key:0,class:"title"};var se=o(7149),le=(o(76107),o(68438));function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function ue(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function de(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?ue(Object(o),!0).forEach(function(e){pe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ue(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function pe(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=ce(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ce(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const fe={name:"case-study-footer",components:{ProjectThumbnail:se.A,Fab:$.A},data:function(){return{noTitle:!1}},mounted:function(){this.oneHasNoTitle()},methods:{oneHasNoTitle:function(){var t=this;this.$store.state.caseStudyPages&&this.$store.state.caseStudyPages.some(function(e){t.getProjectName(e).length<1&&(t.noTitle=!0)})},openHomePage:function(){this.$store.commit("setPageToEdit","home"),this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId)),window.scroll(0,0)},openProject:function(t){this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId,"/p/").concat(t)),window.scroll(0,0)},openPage:function(t){t.type===E.Q8.FILE?window.open(t.settings.link.url):(this.$store.commit("setPageToEdit",t.shortId),this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId,"/p/").concat(t.shortId)),window.scroll(0,0))},openAccountSettings:function(){return this.$router.push("/home/settings#name")},transformText:function(t){return this.$store.state.portfolio.templateSettings.navigation.navigationItems.button.upperCase?t.toUpperCase():t},getProjectName:function(t){var e=t.sections[0];return null!==t.name?t.name:(0,le.sZ)(e.title.text)}},computed:de(de({},(0,s.L8)("design",["resolveColor"])),{},{user:function(){return this.$store.state.user},visibleProjects:function(){var t=this;return this.$store.state.caseStudyPages?this.$store.state.caseStudyPages.filter(function(e){return e._id!==t.$store.state.project._id&&!e.deletedAt}):[]},newFooterSectionInitialized:function(){return null!==this.$store.state.portfolio.settings.showFooterOnProjects},portfolioPages:function(){return this.$store.state.portfolioPages?this.$store.state.portfolioPages.filter(function(t){return!t.deletedAt&&("home"===t.type||"about"===t.type||"contact"===t.type||"file"===t.type)}):[]}})},he=(0,h.A)(fe,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("fab"),c=(0,n.g2)("ProjectThumbnail");return(0,n.uX)(),(0,n.CE)("footer",Qt,[s.newFooterSectionInitialized?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",Gt,[(0,n.Lk)("div",{class:(0,r.C4)(["grid info",{"projects-list":s.visibleProjects.length>1}])},[(0,n.Lk)("div",zt,[(0,n.Lk)("div",Vt,[s.user.image&&s.user.image.url?((0,n.uX)(),(0,n.CE)("div",{key:0,onClick:e[0]||(e[0]=function(t){return s.openHomePage()}),class:"owner-picture"},[s.user.image&&s.user.image.url?((0,n.uX)(),(0,n.CE)("img",{key:0,class:"profile-picture",height:"60",alt:"userimage",src:s.user.image.url},null,8,Kt)):(0,n.Q3)("v-if",!0)])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",{onClick:e[1]||(e[1]=function(t){return s.openHomePage()}),class:"owner-info"},[(0,n.Lk)("div",Yt,(0,r.v_)(s.user.name),1),(0,n.Lk)("div",qt,(0,r.v_)(s.user.title),1)]),(0,n.Lk)("div",Jt,[(0,n.bF)(l,{tooltip:"Edit account","tooltip-position":"bottom",icon:"edit",size:"small",onClick:e[2]||(e[2]=function(t){return s.openAccountSettings()})})])]),(0,n.Lk)("div",Zt,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.portfolioPages,function(t){return(0,n.uX)(),(0,n.CE)("a",{key:t._id,onClick:(0,A.withModifiers)(function(e){return s.openPage(t)},["prevent"]),target:["file"===t.type?"_blank":null],class:"footer-btn"},(0,r.v_)(s.transformText(t.name)),9,te)}),128))])]),s.visibleProjects.length>1?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["project-owner-projects",{"long-list":s.visibleProjects.length>6||a.noTitle}])},[e[3]||(e[3]=(0,n.Lk)("div",{class:"title-line"},"See more of my work:",-1)),(0,n.Lk)("div",ee,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.visibleProjects,function(t){return(0,n.uX)(),(0,n.CE)("div",{class:"f-project",onClick:function(e){return s.openProject(t.shortId)}},[(0,n.Lk)("div",ne,[t.settings.usingGeneratedThumbnail?((0,n.uX)(),(0,n.Wv)(c,{key:0,caseStudy:t,"force-squared":""},null,8,["caseStudy"])):t.image.url?((0,n.uX)(),(0,n.CE)("img",{key:1,width:"70",src:t.image.url,alt:t.name},null,8,re)):((0,n.uX)(),(0,n.CE)("img",{key:2,src:Rt,width:"70",alt:t.name},null,8,ie))]),s.visibleProjects.length<7&&!a.noTitle?((0,n.uX)(),(0,n.CE)("div",ae,[(0,n.Lk)("h4",null,(0,r.v_)(s.getProjectName(t)),1)])):(0,n.Q3)("v-if",!0)],8,oe)}),256))])],2)):(0,n.Q3)("v-if",!0)],2)]))])}],["__scopeId","data-v-05d0bad3"]]);var me={key:0},ve={key:0,class:"profile-footer"},ge={class:"grid"},ye={class:"profile-footer-content"},be={class:"social-links editor"},ke=["href"],Se={key:0,ref:"controls",class:"ufo--page-nav-control
2s"};const Pe={name:"page-footer",components:{Fab:$.A,FabContainer:T.A},methods:{updateText:function(t){this.$store.state.portfolio.portfolioFooter.text=t,d.A.updatePortfolio()},openTemplateSettings:function(t){this.$store.commit("openSidePanel",{panelPath:"style/fonts"})},getCleanTypeOfSocialLink:function(t){return"x-twitter"===t.toLowerCase()?"x":t}},computed:{templateSettings:function(){return this.$store.state.portfolio.templateSettings},oldFooterIsVisible:function(){return!!this.$store.state.portfolio&&this.$store.state.portfolio.settings&&null===this.$store.state.portfolio.settings.showFooterOnPortfolio&&!!this.$store.state.portfolio.socialLinks&&this.$store.state.portfolio.socialLinks.length>0&&""!==this.$store.state.portfolio.socialLinks[0].url&&"profile_theme_four"!==this.templateSettings.theme&&this.templateSettings.theme.indexOf("default")<0&&"profile_theme_nine"!==this.templateSettings.theme&&("profile_theme_eight"===this.templateSettings.theme||"theme_eight"===this.templateSettings.theme||"theme_eleven"===this.templateSettings.theme||"theme_twelve"===this.templateSettings.theme)},newFooterSectionInitialized:function(){return null!==this.$store.state.portfolio.settings.showFooterOnPortfolio},showSocialIcons:function(){return"profile_theme_eight"===this.templateSettings.theme||"theme_eight"===this.templateSettings.theme||"theme_thirteen"===this.templateSettings.theme},socialLinks:function(){return this.$store.state.portfolio.socialLinks?this.$store.state.portfolio.socialLinks.filter(function(t){return!!t.url&&!!t.type}):[]}}},we=(0,h.A)(Pe,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("fab"),c=(0,n.g2)("fab-container");return s.newFooterSectionInitialized?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",me,[s.oldFooterIsVisible?((0,n.uX)(),(0,n.CE)("div",ve,[(0,n.Lk)("div",ge,[(0,n.Lk)("div",ye,[(0,n.Lk)("div",be,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.socialLinks,function(t,e){return(0,n.uX)(),(0,n.CE)("a",{key:e,href:t.url,target:"_blank",class:(0,r.C4)([s.showSocialIcons?"footer-icon":"footer-url",s.getCleanTypeOfSocialLink(t.type.toLowerCase())])},[s.showSocialIcons?((0,n.uX)(),(0,n.CE)("i",{key:0,class:(0,r.C4)("fa fa-".concat(s.getCleanTypeOfSocialLink(t.type.toLowerCase())))},null,2)):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.eW)((0,r.v_)(s.getCleanTypeOfSocialLink(t.type)),1)],64))],10,ke)}),128))])])]),t.$store.getters.isEditorBlocked?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",Se,[(0,n.bF)(c,{type:"vertical",side:"right"},{default:(0,n.k6)(function(){return[(0,n.bF)(l,{icon:"edit-pages",onClick:e[0]||(e[0]=function(e){return t.$store.commit("openSidePanel",{panelPath:"settings/social-media-links"})}),tooltip:"Edit social links"})]}),_:1})],512))])):(0,n.Q3)("v-if",!0)]))}],["__scopeId","data-v-26dfdcc2"]]);var Ce={class:"grid-wrapper"},Oe={class:"grid"},Ae={class:"grid-container"},$e={key:0,class:"related-title"},Te={key:0,class:"separator related-divider"},Ee={class:"related-projects"},Ie=["onClick"],Le={class:"image"},Fe=["src","alt"],_e=["src","alt"],je=["alt"],De={class:"related-project-title"},xe={key:0,class:"related-project-subtitle"};var Me=o(61432);const Ne={name:"related-case-studies-edit-buttons",components:{ViewportObserver:L.A,SettingsPopover:I.A,Fab:$.A,FabContainer:T.A},props:["section"],data:function(){return{collapsedFabs:!1,activePanel:null,sectionSettingsButtons:[{type:E.O_.RELATED_CASE_STUDIES_FOOTER,visible:!0},{type:E.O_.BACKGROUND,visible:!0,icon:"set-background",tooltip:"Set background"}]}},mounted:function(){var t=this;this.$nextTick(function(){t.observeParentSectionHeight()})},watch:{section:{handler:function(){this.observeParentSectionHeight()},deep:!0},activeSection:{handler:function(t){t||this.closePopoverPanel()}}},computed:{SectionSettingTypesEnum:function(){return E.O_},tooltipPosition:function(){return this.collapsedFabs?"bottom":"left"},panelTitle:function(){return this.activePanel===E.O_.BACKGROUND?"Edit background":"Edit section"},activeSection:function(){return this.$store.state.activeSectionSettingId===this.section._id}},methods:{observeParentSectionHeight:function(){var t,e,o,n=this,r=this.collapsedFabs?1:0,i=(null===(t=this.$refs.fabs)||void 0===t?void 0:t.$el.querySelectorAll(".ufo-fab:not(.settings-popover .ufo-fab)").length)-r,a=new ResizeObserver(function(t){t.forEach(function(t){n.collapsedFabs=t.target.offsetHeight<=52*i+20})});null!==(e=this.$refs.fabs)&&void 0!==e&&e.$el.parentElement&&a.observe(null===(o=this.$refs.fabs)||void 0===o?void 0:o.$el.parentElement)},closePopoverPanel:function(){this.activePanel=null},toggleActivePanel:function(t){this.$store.commit("selectSection",this.section),this.$store.state.activeSectionSettingId=this.section._id,this.activePanel=this.activePanel===t?null:t},isPanelActive:function(t){return this.activePanel===t},removeRelatedFooter:function(){this.$store.state.portfolio.settings.showRelatedCaseStudiesOnProjects=!1,(0,p.f0)("Toggle related case studies footer off",{event_category:"Project editor",event_label:"User: ".concat(this.$store.state.user._id,", Project: ").concat(this.$store.state.project._id)}),d.A.updatePortfolio()}}},Ue=(0,h.A)(Ne,[["render",function(t,e,o,r,i,a){var s=(0,n.g2)("SettingsPopover"),l=(0,n.g2)("Fab"),c=(0,n.g2)("FabContainer"),u=(0,n.g2)("ViewportObserver");return(0,n.uX)(),(0,n.Wv)(u,{"is-active":!!i.activePanel,onOutOfView:a.closePopoverPanel},{default:(0,n.k6)(function(){return[(0,n.bF)(c,{ref:"fabs",type:"vertical",side:"right",collapse:i.collapsedFabs,active:!!i.activePanel,"custom-class":"section-edit-fabs"},{"popover-panel":(0,n.k6)(function(){return[i.activePanel&&a.activeSection?((0,n.uX)(),(0,n.Wv)(s,{key:0,"dark-scheme":!0,title:a.panelTitle,section:o.section,panelType:i.activePanel,onClose:a.closePopoverPanel},null,8,["title","section","panelType","onClose"])):(0,n.Q3)("v-if",!0)]}),default:(0,n.k6)(function(){return[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(i.sectionSettingsButtons,function(t){return(0,n.uX)(),(0,n.Wv)(l,{key:t.type,icon:t.icon||"edit",tooltip:a.isPanelActive(t.type)?null:t.tooltip||"Edit section","tooltip-position":t.tooltipPosition||a.tooltipPosition,selected:i.activePanel===t.type,onClick:(0,A.withModifiers)(function(e){return a.toggleActivePanel(t.type)},["stop"])},null,8,["icon","tooltip","tooltip-position","selected","onClick"])}),128)),(0,n.bF)(l,{icon:"delete",alert:!0,tooltip:"Delete section","tooltip-position":a.tooltipPosition,onClick:a.removeRelatedFooter},null,8,["tooltip-position","onClick"])]}),_:1},8,["collapse","active"])]}),_:1},8,["is-active","onOutOfView"])}]]);var Be=o(77745);const Xe={name:"RelatedCaseStudiesEmptyState",components:{TertiaryButton:u.A},computed:{isDarkMode:function(){return this.$store.state.darkMode}},methods:{enableRelatedFooter:function(){this.$store.state.portfolio.settings.showRelatedCaseStudiesOnProjects=!0,(0,p.f0)("Toggle related case studies footer on",{event_category:"Project editor",event_label:"User: ".concat(this.$store.state.user._id,", Project: ").concat(this.$store.state.project._id)}),d.A.updatePortfolio()}}};function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function We(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Re(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?We(Object(o),!0).forEach(function(e){Qe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):We(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Qe(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=He(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==He(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const Ge={name:"RelatedCaseStudiesSection",components:{RelatedCaseStudiesEmptyState:(0,h.A)(Xe,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("TertiaryButton");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["project-wrapper related-case-studies-empty-state",{dark:s.isDarkMode},{"side-panel--on":t.$store.getters.isCaseStudy&&t.$store.state.showSidePanel&&t.$store.state.sectionEditorSettings.emptyStateTreshold>0}])},[(0,n.bF)(l,{"dark-scheme":s.isDarkMode,icon:"add",text:"Show other case studies",onClick:s.enableRelatedFooter},null,8,["dark-scheme","onClick"])],2)}],["__scopeId","data-v-dc517732"]]),SectionBackground:j.A,RelatedCaseStudiesEditButtons:Ue,AnimationWrapper:P.A,ProjectThumbnail:se.A,TitleModule:Me.A,SpacingHelper:k.A,ToggleGrid:S.A},mounted:function(){this.relatedFooter&&(0,M.aQ)(this.relatedFooter)},methods:{openProject:function(t){this.$router.push("/home/portfolios/".concat(this.$store.state.portfolio.shortId,"/p/").concat(t)),window.scroll(0,0)},getProjectName:function(t){var e=t.sections[0];return null!==t.name?t.name:(0,le.sZ)(e.title.text)},getProjectSubtitle:function(t){var e,o=t.sections[0];return null!=t.subtitle&&""!==t.subtitle?t.subtitle:(0,le.sZ)((null==o||null===(e=o.subtitle)||void 0===e?void 0:e.text)||"")}},computed:Re(Re({},(0,s.L8)("design",["templateSettings"])),{},{cornerRadius:function(){var t,e,o,n=null!==(e=((null===(t=this.templateSettings)||void 0===t?void 0:t.cardStyle)||{}).cornerRadiusPx)&&void 0!==e?e:0,r=null!==(o=E.Tp[n])&&void 0!==o?o:0;return r?"corner-radius-footer-".concat(r):""},footerProjects:function(){return(0,Be.j)({caseStudies:this.$store.state.caseStudyPages||[],currentId:this.$store.state.project.shortId})},calcStyle:function(){var t,e,o=this.relatedFooter.style.paddingTop,n=null===(t=this.$store.state.portfolio.portfolioFooter)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.paddingTop,r=null!==(e=null!=o?o:n)&&void 0!==e?e:60;return{height:"".concat(r,"px")}},relatedFooter:function(){return this.$store.state.portfolio.relatedCaseStudyFooter},relatedFooterVisible:function(){var t;return!(null===(t=this.$store.state.portfolio.settings)||void 0===t||!t.showRelatedCaseStudiesOnProjects)},relatedAlignment:function(){return this.relatedFooter.styleSettings.boxAlign},relatedSizeClass:function(){return this.relatedFooter.cardSize===E.iI.SMALL?"related-size-small":"related-size-medium"},relatedLineClasses:function(){return"".concat(this.relatedFooter.lineWeight)},showRelatedDividerLine:function(){return!!this.relatedFooter.displayDividerLine},showRelatedTitle:function(){return!!this.relatedFooter.displayTitle},showRelatedDescription:function(){var t,e=!1!==this.relatedFooter.displayDescription,o=!0===(null===(t=this.templateSettings)||void 0===t||null===(t=t.projectTitle)||void 0===t?void 0:t.hideDescription);return e&&!o},showRelatedFooterEmptyState:function(){return!this.relatedFooterVisible&&this.footerProjects.length>0},showRelatedFooter:function(){return this.relatedFooterVisible&&this.footerProjects.length>0}})},ze=(0,h.A)(Ge,[["render",function(t,e,o,i,a,s){var l=(0,n.g2)("RelatedCaseStudiesEmptyState"),c=(0,n.g2)("ToggleGrid"),u=(0,n.g2)("SectionBackground"),d=(0,n.g2)("SpacingHelper"),p=(0,n.g2)("RelatedCaseStudiesEditButtons"),f=(0,n.g2)("TitleModule"),h=(0,n.g2)("AnimationWrapper"),m=(0,n.g2)("ProjectThumbnail");return s.showRelatedFooterEmptyState?((0,n.uX)(),(0,n.Wv)(l,{key:0})):s.showRelatedFooter?((0,n.uX)(),(0,n.CE)("div",{key:1,class:(0,r.C4)(["footer-section ufo-sec related-case-studies",[s.cornerRadius,s.relatedAlignment,s.relatedSizeClass]])},[(0,n.bF)(c),s.relatedFooter?((0,n.uX)(),(0,n.Wv)(u,{key:0,section:s.relatedFooter},null,8,["section"])):(0,n.Q3)("v-if",!0),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.CE)("div",{key:2,style:(0,r.Tr)(s.calcStyle)},null,4)):((0,n.uX)(),(0,n.Wv)(d,{key:1,section:t.$store.state.portfolio.portfolioFooter,type:"paddingTop",position:"top"},null,8,["section"])),s.relatedFooter?((0,n.uX)(),(0,n.Wv)(p,{key:3,section:s.relatedFooter},null,8,["section"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",Ce,[(0,n.Lk)("div",Oe,[(0,n.Lk)("div",Ae,[(0,n.Lk)("div",{class:(0,r.C4)(["related-projects-container",{"no-related-header":!s.showRelatedTitle&&!s.showRelatedDividerLine}])},[(0,n.bF)(h,null,{animationContent:(0,n.k6)(function(){return[s.showRelatedTitle?((0,n.uX)(),(0,n.CE)("div",$e,[(0,n.bF)(f,{section:s.relatedFooter},null,8,["section"])])):(0,n.Q3)("v-if",!0)]}),_:1}),s.showRelatedDividerLine?((0,n.uX)(),(0,n.CE)("div",Te,[(0,n.bF)(h,{"is-final-section":""},{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,r.C4)(["line",s.relatedLineClasses])},null,2)]}),_:1})])):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",Ee,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(s.footerProjects,function(t,e){return(0,n.uX)(),(0,n.CE)("div",{key:e,class:"related-project",onClick:function(e){return s.openProject(t.shortId)}},[(0,n.bF)(h,{"delay-animation":e?.1*e:0},{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("div",Le,[t.settings.usingGeneratedThumbnail?((0,n.uX)(),(0,n.Wv)(m,{key:0,caseStudy:t,"force-squared":""},null,8,["caseStudy"])):t.image.url?((0,n.uX)(),(0,n.CE)("img",{key:1,loading:"lazy",src:t.image.croppedImageUrl?t.image.croppedImageUrl:t.image.url,alt:t.name},null,8,Fe)):"MainHeader"===t.sections[0].type&&t.sections[0].image&&t.sections[0].image.url?((0,n.uX)(),(0,n.CE)("img",{key:2,loading:"lazy",src:t.sections[0].image.croppedImageUrl?t.sections[0].image.croppedImageUrl:t.sections[0].image.url,alt:t.name},null,8,_e)):t.sections[0].backgroundColor?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("img",{key:3,loading:"lazy",src:"/example_project_images/v2/empty-project-thumbnail.jpg",alt:t.name},null,8,je))])]}),_:2},1032,["delay-animation"]),(0,n.bF)(h,{"delay-animation":e?.1*e:0},{animationContent:(0,n.k6)(function(){return[(0,n.Lk)("div",De,[(0,n.Lk)("h4",null,(0,r.v_)(s.getProjectName(t)),1)]),s.showRelatedDescription?((0,n.uX)(),(0,n.CE)("div",xe,[(0,n.Lk)("p",null,(0,r.v_)(s.getProjectSubtitle(t)),1)])):(0,n.Q3)("v-if",!0)]}),_:2},1032,["delay-animation"])],8,Ie)}),128))])],2)])])])],2)):(0,n.Q3)("v-if",!0)}]]);function Ve(t){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(t)}function Ke(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Ye(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
2e%2?Ke(Object(o),!0).forEach(function(e){qe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ke(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function qe(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=Ve(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ve(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var Je=new Set(Object.values(E.jw));const Ze={name:"SectionLoader",components:{RelatedCaseStudiesSection:ze,LegacyPageFooter:we,LegacyCaseStudyFooter:he,FooterSection:G,ColumnsSection:Xt.A,GeneralSection:kt.A,AnimatedTextSection:Ht.A,PageEmptyState:gt,GallerySection:z.A,TabsSection:V.A,LogoWallSection:K.A,MainHeaderSection:Y.A,PortfolioNavigationSection:at,ProjectGridSection:q.A,StatSection:J.A,TestimonialSection:Z.A,DividerLineSection:tt.A,ProcessSection:et.A,CardsSection:st.A,AddSectionRow:bt,HeaderSections:$t,PortfolioSidebarHeroSection:Bt},mounted:function(){var t=this;this.$store.commit("setSectionEditorSettings",{emptyStateTreshold:this.$store.getters.isCaseStudy?1:0,hideTextAndImageIdeasButtons:!this.$store.getters.isCaseStudy,hideMockupButtons:!this.$store.getters.isCaseStudy,hiddenMediaTypes:Ye(Ye({},this.$store.state.hiddenMediaTypes),{},{proto:!this.$store.getters.isCaseStudy,media:!this.$store.getters.isCaseStudy}),maxColumnsPerSection:this.themeWithSidebar()?3:4,maxStatItemsPerSection:this.themeWithSidebar()?3:5}),this.$nextTick(function(){t.GoogleFontsHelper.downloadSingleFonts(Object.entries(t.fontStyles).map(function(t){return t[1]})),(0,l.wi)(Object.entries(t.fontStyles).map(function(t){return t[1]}))})},methods:{themeWithSidebar:function(){return!(this.$store.getters.isCaseStudy||this.portfolioSettings.theme&&"profile_theme_default"!==this.portfolioSettings.theme.replace("_old","")&&"profile_theme_four"!==this.portfolioSettings.theme&&"profile_theme_nine"!==this.portfolioSettings.theme)},getSectionComponent:function(t){return t.type===E.iK.CARDS?"CardsSection":Je.has(t.type)?"GeneralSection":"".concat(t.type,"Section")},openAddSectionModal:function(t){this.$store.commit("selectSection",t),this.$store.state.activeModal="AddSectionModal"}},computed:Ye(Ye(Ye({},(0,s.L8)(["portfolioHasNavigationSection"])),(0,s.L8)("design",["fontStyles"])),{},{setClasses:function(){return[{"sidebar-layout":this.isSidebarHeroLayout},this.projectGridIsFirst,"".concat(this.$store.state.project.type.toLowerCase(),"-editor"),{displayFooter:this.displayFooter}]},portfolioSettings:function(){return this.$store.state.portfolio.templateSettings},settings:function(){return this.$store.getters.isCaseStudy?this.$store.state.project.settings:this.$store.state.portfolio.templateSettings},projectGridIsFirst:function(){var t=this.$store.state.project.sections.filter(function(t){return!t.deletedAt})[0];return t&&"ProjectGrid"===t.type?"pg-first":null},displayFooter:function(){return!this.$store.getters.isCaseStudy&&this.$store.state.portfolio.settings.showFooterOnPortfolio},sections:function(){return this.$store.state.project.sections?this.$store.state.project.sections.filter(function(t){return!t.deletedAt||t.type===E.iK.CASE_STUDY_GRID}):[]},portfolioHeroSection:function(){var t;return(null===(t=this.$store.state.portfolio)||void 0===t?void 0:t.portfolioHero)||null},portfolioNavigationSection:function(){var t;return this.portfolioHasNavigationSection&&(null===(t=this.$store.state.portfolio)||void 0===t?void 0:t.portfolioNavigation)||null},showPortfolioHero:function(){var t;return!!this.portfolioHeroSection&&(!!this.isSidebarHeroLayout||!this.$store.getters.isCaseStudy&&(!!this.$store.getters.isHomePage||(null===(t=this.portfolioNavigationSection)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.position)===E.ze.BOTTOM))},navigationVisibility:function(){return(0,Wt.Z)({navigation:this.portfolioNavigationSection,isSidebarHeroLayout:this.isSidebarHeroLayout,isCaseStudy:this.$store.getters.isCaseStudy})},showInitialAddSectionRow:function(){return!this.$store.getters.isCaseStudy},isSidebarHeroLayout:function(){return this.$store.getters.heroIsSidebar}
2,sidebarHasBackground:function(){var t;if(!this.isSidebarHeroLayout)return!1;var e=this.portfolioHeroSection;return!(null==e||!e.backgroundSettings)&&Number(null==e||null===(t=e.backgroundSettings)||void 0===t?void 0:t.selectedBackgroundStyleId)>0},sectionListIsEmpty:function(){return this.sections.length===this.$store.state.sectionEditorSettings.emptyStateTreshold},showLegacyFooter:function(){return!this.$store.getters.isCaseStudy&&null===this.$store.state.portfolio.settings.showFooterOnPortfolio},showLegacyCaseStudyFooter:function(){return this.$store.getters.isCaseStudy&&(null===this.$store.state.portfolio.settings.showFooterOnProjects||!1===this.$store.state.portfolio.settings.showFooterOnProjects)},isPortfolioFooterEnabled:function(){return!["theme_four","profile_theme_four","theme_nine","profile_theme_nine","theme_default","profile_theme_default"].includes(this.portfolioSettings.theme)}})},to=(0,h.A)(Ze,[["render",function(t,e,o,s,l,c){var u=(0,n.g2)("PortfolioSidebarHeroSection"),d=(0,n.g2)("PortfolioNavigationSection"),p=(0,n.g2)("AddSectionRow"),f=(0,n.g2)("PageEmptyState"),h=(0,n.g2)("RelatedCaseStudiesSection"),m=(0,n.g2)("FooterSection"),v=(0,n.g2)("HeaderSections"),g=(0,n.g2)("LegacyPageFooter"),y=(0,n.g2)("LegacyCaseStudyFooter");return t.$store.state.project&&t.$store.state.project.sections?((0,n.uX)(),(0,n.CE)("div",{key:0,class:(0,r.C4)(["ufo--page-sections editor",c.setClasses])},[c.isSidebarHeroLayout?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",{id:"section-".concat(c.portfolioHeroSection._id),class:"sidebar-rail"},[(0,n.bF)(u,{section:c.portfolioHeroSection,navigation:c.portfolioNavigationSection,"navigation-visibility":c.navigationVisibility},null,8,["section","navigation","navigation-visibility"])],8,i),(0,n.Lk)("div",a,[c.navigationVisibility.showOutside?((0,n.uX)(),(0,n.Wv)(d,{key:0,ref:"section-".concat(c.portfolioNavigationSection._id),section:c.portfolioNavigationSection},null,8,["section"])):(0,n.Q3)("v-if",!0),c.showInitialAddSectionRow?((0,n.uX)(),(0,n.Wv)(p,{key:1,onAdd:e[0]||(e[0]=function(t){return c.openAddSectionModal()})})):(0,n.Q3)("v-if",!0),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(c.sections,function(t){return(0,n.uX)(),(0,n.CE)(n.FK,{key:t._id},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(c.getSectionComponent(t)),{ref_for:!0,ref:"section-".concat(t._id),section:t},null,8,["section"])),(0,n.bF)(p,{onAdd:function(e){return c.openAddSectionModal(t)}},null,8,["onAdd"])],64)}),128)),c.sectionListIsEmpty&&!t.$store.getters.isEditorBlocked?((0,n.uX)(),(0,n.Wv)(f,{key:2,"handle-click":function(){return c.openAddSectionModal(c.sections[0])}},null,8,["handle-click"])):(0,n.Q3)("v-if",!0),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.Wv)(h,{key:3})):(0,n.Q3)("v-if",!0),(0,n.bF)(m)])],64)):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.bF)(v,{"show-portfolio-hero":c.showPortfolioHero,"portfolio-hero-section":c.portfolioHeroSection,"portfolio-navigation-section":c.portfolioNavigationSection,"navigation-visibility":c.navigationVisibility,"is-sidebar-hero-layout":c.isSidebarHeroLayout},null,8,["show-portfolio-hero","portfolio-hero-section","portfolio-navigation-section","navigation-visibility","is-sidebar-hero-layout"]),c.showInitialAddSectionRow?((0,n.uX)(),(0,n.Wv)(p,{key:0,onAdd:e[1]||(e[1]=function(t){return c.openAddSectionModal()})})):(0,n.Q3)("v-if",!0),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(c.sections,function(t){return(0,n.uX)(),(0,n.CE)(n.FK,{key:t._id},[((0,n.uX)(),(0,n.Wv)((0,n.$y)(c.getSectionComponent(t)),{ref_for:!0,ref:"section-".concat(t._id),section:t},null,8,["section"])),(0,n.bF)(p,{onAdd:function(e){return c.openAddSectionModal(t)}},null,8,["onAdd"])],64)}),128)),c.sectionListIsEmpty&&!t.$store.getters.isEditorBlocked?((0,n.uX)(),(0,n.Wv)(f,{key:1,"handle-click":function(){return c.openAddSectionModal(c.sections[0])}},null,8,["handle-click"])):(0,n.Q3)("v-if",!0),t.$store.getters.isCaseStudy?((0,n.uX)(),(0,n.Wv)(h,{key:2})):(0,n.Q3)("v-if",!0),c.isPortfolioFooterEnabled?((0,n.uX)(),(0,n.Wv)(m,{key:3})):(0,n.Q3)("v-if",!0),c.showLegacyFooter?((0,n.uX)(),(0,n.Wv)(g,{key:4})):(0,n.Q3)("v-if",!0),c.showLegacyCaseStudyFooter?((0,n.uX)(),(0,n.Wv)(y,{key:5})):(0,n.Q3)("v-if",!0)],64))],2)):(0,n.Q3)("v-if",!0)}],["__scopeId","data-v-2ec291ca"]])},84435(t,e,o){var n=o(93908);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);(0,o(70534).A)("569d12cf",n,!1,{})},76634(t,e,o){"use strict";
2t.exports=o.p+"src/assets/images/icon-image-profile-empty.fddf6f68.svg"},7673(t,e,o){"use strict";t.exports=o.p+"src/assets/images/uxfolio-logo-circle.0d0b408d.svg"},14831(t,e,o){"use strict";function n(t){var e=t.price,o=t.monthlyPrice,n=t.isUpgrade,r=t.promoCodeData,i=0;return null!=r&&r.amountOff?i=r.amountOff/100:null!=r&&r.percentOff&&(i=e*r.percentOff/100),n?e-o-i:e-i}o.d(e,{W:()=>n})}}]);
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.