GIF94; MINI MO Shell - Tarih Gösterimli

MINI MINI MANI MO - TARİH GÖSTERİMLİ

Path : /var/www/wordpress/wp-content/plugins/oxygen/builder/dist/js/
File Upload :
Current File : /var/www/wordpress/wp-content/plugins/oxygen/builder/dist/js/onboarding-app.45fc8e15.js

(()=>{"use strict";var t={36055:(t,e,s)=>{s.d(e,{__:()=>o});const a=window.wp.i18n;function o(t,e="breakdance"){return a.__(t,e)}a.sprintf},24267:(t,e,s)=>{var a=s(20144),o=s(85450),i=s(49026),n=s(78345),r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"p-4"},[e("LogoBeta")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-start-background",class:`onboarding-start-background--${t.pathName}`},[t.isWritingStyleRoute?e("OnboardingTagline"):t._e(),e("OnboardingFeedback",{attrs:{floating:"true"}})],1)]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routesOnboarding}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("OnboardingStartForm")]},proxy:!0},{key:"right-panel-footer",fn:function(){return[e("BottomNav",{attrs:{routes:t.routesOnboarding,"is-validated":t.isFormValid}})]},proxy:!0}])})},l=[],c=s(70655),p=s(38085),u=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"onboarding-layout"},[e("div",{staticClass:"onboarding-layout__left-panel"},[e("header",{staticClass:"onboarding-layout__header"},[t._t("left-panel-header")],2),t._t("left-panel-content")],2),e("div",{staticClass:"onboarding-layout__right-panel"},[t._t("right-panel-progress"),t._t("right-panel-content"),t._t("right-panel-footer")],2)])},d=[],g=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("svg",{attrs:{width:t.size,height:t.size,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{width:"32",height:"32",rx:"2.44706",fill:t.color}}),e("path",{attrs:{d:"M17.1379 19.454L11.4485 19.4543C10.823 19.4539 10.3107 18.9238 10.3106 18.3024C10.3111 17.6811 10.8234 17.1514 11.4487 17.1512H13.732C14.3544 17.1467 14.8621 16.6182 14.8623 15.9997V9.09117C14.8627 8.47005 15.3748 7.94037 16 7.93998C16.6253 7.94024 17.1375 8.46996 17.1379 9.09117V12.3473C17.1383 12.9598 17.6766 13.4981 18.2755 13.4985C18.9009 13.4982 19.4132 12.9683 19.4134 12.347V9.09117C19.4138 8.46996 19.926 7.94024 20.5513 7.93998C21.1766 7.94024 21.6889 8.46992 21.6894 9.09117V22.9086C21.689 23.5299 21.1767 24.0597 20.5513 24.06C19.9259 24.0597 19.4137 23.5299 19.4134 22.9086V21.7571C19.4134 20.4859 18.3937 19.454 17.1379 19.454Z",fill:t.fill}}),e("path",{attrs:{d:"M16.8779 23.661C17.7748 23.661 18.5019 22.9252 18.5019 22.0176C18.5019 21.11 17.7748 20.3742 16.8779 20.3742C15.9809 20.3742 15.2538 21.11 15.2538 22.0176C15.2538 22.9252 15.9809 23.661 16.8779 23.661Z",fill:t.fill}})])},h=[];let m=class extends a.ZP{};(0,c.gn)([(0,p.fI)({default:"#000000"})],m.prototype,"color",void 0),(0,c.gn)([(0,p.fI)({default:"32"})],m.prototype,"size",void 0),(0,c.gn)([(0,p.fI)({default:"#ffffff"})],m.prototype,"fill",void 0),m=(0,c.gn)([p.wA],m);const b=m,_=b;var f=s(1001),v=(0,f.Z)(_,g,h,!1,null,null,null);const y=v.exports;var x=s(45904);let P=class extends a.ZP{get backgroundCss(){return{backgroundColor:`var(--${this.background})`}}};(0,c.gn)([(0,p.fI)()],P.prototype,"background",void 0),P=(0,c.gn)([(0,x.ZP)({components:{Logo:y}})],P);const S=P,C=S;var w=(0,f.Z)(C,u,d,!1,null,null,null);const k=w.exports;var I=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("nav",{staticClass:"stepper"},t._l(t.routes,(function(s,a){return e("router-link",{key:a,staticClass:"stepper__step",class:{"stepper__step--completed":a<t.currentRouteIndex,"stepper__step--active":a===t.currentRouteIndex},attrs:{to:s.path}},[s.meta?e("span",[t._v(t._s(s.meta.title))]):t._e()])})),1)},T=[];let O=class extends a.ZP{get currentRouteIndex(){return this.routes.findIndex((t=>t.path===this.$route.path))}};(0,c.gn)([(0,p.fI)()],O.prototype,"routes",void 0),O=(0,c.gn)([(0,p.wA)({})],O);const D=O,B=D;var L=(0,f.Z)(B,I,T,!1,null,null,null);const Z=L.exports;var A=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("nav",{staticClass:"onboarding-bottom-nav"},[e("div",[t.isFirstRoute?t._e():e("Button",{on:{click:t.prev}},[t._v(t._s(t.__("Back")))])],1),e("div",[t.isLastRoute?t._e():e("Button",{attrs:{disabled:!t.isValidated||t.loading},on:{click:t.next}},[t.loading?e("span",[t._v(t._s(t.__("Loading...")))]):e("span",[t._v(t._s(t.__("Next")))])])],1)])},E=[],R=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("button",{class:t.classes,attrs:{disabled:t.disabled},on:{click:t.onClick}},[t.icon?e("Icon",{attrs:{size:"16",icon:t.icon}}):t._e(),t._t("default")],2)},N=[],F=s(85283);let $=class extends a.ZP{onClick(){this.disabled||(this.to?this.$router.push(this.to):this.$emit("click"))}get classes(){return{button:!0,"button--disabled":this.disabled,"button--small":"small"===this.size,"button--large":"large"===this.size,"button--primary":this.primary}}};(0,c.gn)([(0,p.fI)({default:!1})],$.prototype,"disabled",void 0),(0,c.gn)([(0,p.fI)({default:"default"})],$.prototype,"size",void 0),(0,c.gn)([(0,p.fI)()],$.prototype,"icon",void 0),(0,c.gn)([(0,p.fI)({default:!1})],$.prototype,"primary",void 0),(0,c.gn)([(0,p.fI)()],$.prototype,"to",void 0),$=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z}})],$);const z=$,G=z;var M=(0,f.Z)(G,R,N,!1,null,null,null);const U=M.exports;var V=s(65669),W=s(57653),H=s(98851),K=s(65913),j=s(30902),q=s(45974),Y=s(23128),J=s(76491);async function X(){const t=o.onboardingStore.onboardingData,e=await(0,H.D)({action:"breakdance_save_onboarding_settings",dataToPost:{settings:(0,V.J)(t)},decoder:W.LC});return(0,j.pipe)(e,(0,q.fold)((()=>!1),(t=>(o.onboardingStore.setOnboardingData(t),Q(t),!0))))}async function Q(t){const e=(0,Y.Z)(o.globalStore.aiSettings),{websiteName:s,websiteDescription:a}=t.websiteDetails;e.prompt.businessName=s,e.prompt.businessDescription=a,e.prompt.qualifiers=(0,K.jF)(t.websiteDetails),o.globalStore.setAiSettings(e),await(0,J.yV)()}async function tt(){const t=await(0,H.D)({action:"breakdance_get_onboarding_settings",decoder:W.LC,suppressErrorLogging:!0});return(0,j.pipe)(t,(0,q.fold)((()=>!1),(t=>(o.onboardingStore.setOnboardingData(t),!0))))}var et=s(31044),st=s(93113);let at=class extends a.ZP{constructor(){super(...arguments),this.loading=!1}get currentRouteIndex(){return this.routes.findIndex((t=>t.path===this.$route.path))}get loginURL(){return et.PK.neededData?.adminLoginUrl}get currentRoute(){return this.routes[this.currentRouteIndex]}async next(){if(!this.loading){this.loading=!0;try{this.onNextCallback&&await this.onNextCallback(),await X(),await st.Z.sendRequest({payload:{action:"saveDocumentToWordPress"}}),this.isLastRoute?this.$router.push("/"):this.currentRoute.meta?.nextPath?this.$router.push(this.currentRoute.meta.nextPath):this.$router.push(this.routes[this.currentRouteIndex+1].path)}catch(t){console.error("Error in onNextCallback:",t)}finally{this.loading=!1}}}prev(){this.currentRouteIndex>0&&this.$router.push(this.routes[this.currentRouteIndex-1].path)}get isFirstRoute(){return 0===this.currentRouteIndex}get isLastRoute(){return this.currentRouteIndex===this.routes.length-1&&void 0===this.currentRoute.meta?.nextPath}async beforeMount(){Promise.all([tt(),(0,J.I8)()])}};(0,c.gn)([(0,p.fI)()],at.prototype,"routes",void 0),(0,c.gn)([(0,p.fI)({default:!0})],at.prototype,"isValidated",void 0),(0,c.gn)([(0,p.fI)({type:Function,default:null})],at.prototype,"onNextCallback",void 0),at=(0,c.gn)([(0,p.wA)({components:{Button:U}})],at);const ot=at,it=ot;var nt=(0,f.Z)(it,A,E,!1,null,null,null);const rt=nt.exports;var lt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"onboarding-layout__content flex flex-col gap-4"},[t.isStartPath?[e("div",{staticClass:"flex flex-col gap-4"},[e("h1",{staticClass:"text-4xl"},[t._v(t._s(t.__("Let's get started")))]),e("p",{staticClass:"text-base text-balance"},[t._v(" "+t._s(t.__("We just need a few details. These answers help us generate a starting point that feels right for you."))+" ")]),e("p",{staticClass:"text-base text-balance"},[t._v(" "+t._s(t.__("Looking for inspiration?"))+" "),e("button",{staticClass:"font-medium text-neutral-900 text-underline",on:{click:t.generateExample}},[t._v(" "+t._s(t.__("Generate example"))+" ")])]),e("TextInput",{attrs:{id:"websiteName",placeholder:t.__("ie. ACME Studios"),label:t.__("What is your website called?")},on:{input:t.updateName},model:{value:t.websiteDetails.websiteName,callback:function(e){t.$set(t.websiteDetails,"websiteName",e)},expression:"websiteDetails.websiteName"}}),e("TextInput",{attrs:{type:"textarea",id:"websiteAbout",placeholder:t.__("Describe your website in a sentence or two"),label:t.__("What is your website about?"),note:t.__("This won't be visible on the website but helps us understand your needs.")},on:{input:t.updateDescription},model:{value:t.websiteDetails.websiteDescription,callback:function(e){t.$set(t.websiteDetails,"websiteDescription",e)},expression:"websiteDetails.websiteDescription"}})],1)]:t.isCategoryPath?[e("MultipleChoiceSection",{attrs:{value:t.categories,title:t.__("What category does your website fall under?"),description:t.__("Choose the category that best describes your website."),note:t.__("Select up to two"),limit:"2"},on:{update:t.updateCategories}})]:t.isGoalsPath?[e("MultipleChoiceSection",{attrs:{value:t.goals,title:t.__("What are your website goals?"),description:t.__("Choose the goals that best describe your website."),note:t.__("Select up to four"),limit:"4"},on:{update:t.updateGoals}})]:t.isWritingStylePath?[e("MultipleChoiceSection",{attrs:{value:t.writingStyles,title:t.__("What is your website's writing style?"),description:t.__("Choose the writing style that best describes your website."),note:t.__("Select up to three"),limit:"3"},on:{update:t.updateWritingStyle}})]:t._e()],2)},ct=[],pt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-input"},[e("label",{staticClass:"text-input__label",attrs:{for:t.id}},[t._v(t._s(t.label))]),e("textarea"===t.type?"textarea":"input",t._b({tag:"component",staticClass:"text-input__input",attrs:{id:t.id,placeholder:t.placeholder},on:{input:t.update}},"component","input"===t.type?{type:"text",value:t.value}:{},!1),["textarea"===t.type?[t._v(t._s(t.value))]:t._e()],2),t.note?e("span",{staticClass:"text-xs text-neutral-500"},[t._v(t._s(t.note))]):t._e()],1)},ut=[];let dt=class extends a.ZP{update(t){this.$emit("input",t.target.value)}};(0,c.gn)([(0,p.fI)()],dt.prototype,"value",void 0),(0,c.gn)([(0,p.fI)()],dt.prototype,"id",void 0),(0,c.gn)([(0,p.fI)()],dt.prototype,"placeholder",void 0),(0,c.gn)([(0,p.fI)()],dt.prototype,"label",void 0),(0,c.gn)([(0,p.fI)()],dt.prototype,"note",void 0),(0,c.gn)([(0,p.fI)({default:"input"})],dt.prototype,"type",void 0),dt=(0,c.gn)([(0,p.wA)({model:{prop:"value",event:"input"}})],dt);const gt=dt,ht=gt;var mt=(0,f.Z)(ht,pt,ut,!1,null,null,null);const bt=mt.exports;var _t=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("label",{staticClass:"onboarding-checkbox",attrs:{for:t.id}},[e("input",{attrs:{type:"checkbox",id:t.id,disabled:t.disabled},domProps:{value:t.selectedValue,checked:t.isChecked},on:{change:t.update}}),e("span",{staticClass:"onboarding-checkbox__icon"}),e("span",{staticClass:"onboarding-checkbox__label"},[t._v(t._s(t.selectedValue.label))])])},ft=[];let vt=class extends a.ZP{get isChecked(){return this.modelValue.some((t=>t.id===this.selectedValue.id))}update(t){const e=t.target.checked;let s=[...this.modelValue];e?s.push(this.selectedValue):s=s.filter((t=>t.id!==this.selectedValue.id)),this.$emit("input",s)}};(0,c.gn)([(0,p.fI)()],vt.prototype,"selectedValue",void 0),(0,c.gn)([(0,p.fI)()],vt.prototype,"id",void 0),(0,c.gn)([(0,p.fI)()],vt.prototype,"modelValue",void 0),(0,c.gn)([(0,p.fI)()],vt.prototype,"disabled",void 0),vt=(0,c.gn)([(0,p.wA)({model:{prop:"modelValue",event:"input"}})],vt);const yt=vt,xt=yt;var Pt=(0,f.Z)(xt,_t,ft,!1,null,null,null);const St=Pt.exports;var Ct=s(20952),wt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"flex flex-col gap-4"},[e("div",{staticClass:"flex flex-col"},[t.title?e("h2",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.description?e("p",{staticClass:"text-base text-balance"},[t._v(" "+t._s(t.description)+" ")]):t._e()]),t.note?e("p",{staticClass:"text-base text-neutral-500"},[t._v(t._s(t.note))]):t._e(),t.value.length?e("div",{staticClass:"grid onboarding-checkbox-container",class:{"grid-cols-2":t.value.length>=9}},t._l(t.value,(function(s){return e("CheckboxInput",{key:s.id,attrs:{id:s.id,selectedValue:s,label:s.label,disabled:t.isLimitReached&&!t.internalValue.some((t=>t.label===s.label))},on:{input:t.update},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})})),1):t._e()])},kt=[];let It=class extends a.ZP{constructor(){super(...arguments),this.internalValue=[]}get isLimitReached(){return this.limit&&this.internalValue.length>=this.limit}update(){this.limit&&this.internalValue.length>this.limit&&(this.internalValue=this.internalValue.slice(0,this.limit)),this.internalValue=this.internalValue.map((t=>({...t,selected:!0}))),this.$emit("update",this.internalValue)}onValueChange(t){this.internalValue=t.filter((t=>t.selected))}};(0,c.gn)([(0,p.fI)({type:Array,required:!0})],It.prototype,"value",void 0),(0,c.gn)([(0,p.fI)()],It.prototype,"title",void 0),(0,c.gn)([(0,p.fI)({type:Array})],It.prototype,"selected",void 0),(0,c.gn)([(0,p.fI)()],It.prototype,"description",void 0),(0,c.gn)([(0,p.fI)()],It.prototype,"note",void 0),(0,c.gn)([(0,p.fI)()],It.prototype,"limit",void 0),(0,c.gn)([(0,p.RL)("value",{immediate:!0,deep:!0})],It.prototype,"onValueChange",null),It=(0,c.gn)([(0,p.wA)({components:{CheckboxInput:St}})],It);const Tt=It,Ot=Tt;var Dt=(0,f.Z)(Ot,wt,kt,!1,null,"0719d788",null);const Bt=Dt.exports;let Lt=class extends a.ZP{constructor(){super(...arguments),this.websiteExamples=[{businessName:"Sage and Bloom",businessDescription:"Sage & Bloom is a local flower shop that offers custom bouquets, event arrangements, and same-day delivery, letting you bring beauty to any moment with ease."},{businessName:"Oakwood Bistro",businessDescription:"Oakwood Bistro is a neighborhood restaurant that serves seasonal, locally sourced dishes in a cozy setting, with online reservations and takeout available."},{businessName:"Lume Jewelry",businessDescription:"Lume Jewelry is a minimalist e-commerce brand that sells handcrafted rings, necklaces, and earrings, making it easy to shop timeless pieces online."},{businessName:"Willa Grant",businessDescription:"Willa Grant is a personal brand site for a freelance designer, showcasing her portfolio, client testimonials, and booking availability in one clean, modern layout."},{businessName:"RiverRun Festival",businessDescription:"RiverRun Festival is an annual music and arts event that features local talent, food trucks, and family-friendly activities with tickets, schedules, and info all online."},{businessName:"Nest Interiors",businessDescription:"Nest Interiors is a boutique interior design studio that helps homeowners transform their spaces with personalized, modern designs and easy online consultations."},{businessName:"The Daily Crumb",businessDescription:"The Daily Crumb is a cozy bakery and café that offers fresh pastries, artisanal coffee, and online ordering for pickup and delivery."},{businessName:"TrailNotes",businessDescription:"TrailNotes is a personal blog that shares hiking stories, trail guides, and gear reviews to inspire your next outdoor adventure."},{businessName:"BrightFuture Fund",businessDescription:"BrightFuture Fund is a non-profit organization dedicated to expanding educational access for underserved communities through scholarships and mentorship programs."},{businessName:"LaunchWell",businessDescription:"LaunchWell is a startup that offers easy-to-use tools for launching and managing product waitlists, landing pages, and user feedback collection."}]}get isHomepageSet(){return o.onboardingStore.generatedPages.homepage}get websiteDetails(){return o.onboardingStore.websiteDetails}get categories(){return W.TX.map((t=>({...t,selected:this.websiteDetails.websiteCategory.some((e=>e.id===t.id))})))}get goals(){return W.t9.map((t=>({...t,selected:this.websiteDetails.websiteGoals.some((e=>e.id===t.id))})))}get writingStyles(){return W.eV.map((t=>({...t,selected:this.websiteDetails.websiteWritingStyle.some((e=>e.id===t.id))})))}get isCategoryPath(){return this.$route.path===Fi.CATEGORY}get isStartPath(){return this.$route.path===Fi.START}get isGoalsPath(){return this.$route.path===Fi.GOALS}get isWritingStylePath(){return this.$route.path===Fi.WRITING_STYLE}generateExample(){let t;do{t=Math.floor(Math.random()*this.websiteExamples.length)}while(this.websiteDetails.websiteName===this.websiteExamples[t].businessName&&this.websiteDetails.websiteDescription===this.websiteExamples[t].businessDescription&&this.websiteExamples.length>1);const e=this.websiteExamples[t];this.updateName(e.businessName),this.updateDescription(e.businessDescription),(0,Ct.h)()}updateName(t){o.onboardingStore.updateWebsiteDetails({websiteName:t})}updateDescription(t){o.onboardingStore.updateWebsiteDetails({websiteDescription:t})}updateCategories(t){o.onboardingStore.updateWebsiteDetails({websiteCategory:t})}updateGoals(t){o.onboardingStore.updateWebsiteDetails({websiteGoals:t})}updateWritingStyle(t){o.onboardingStore.updateWebsiteDetails({websiteWritingStyle:t})}onHomepageSetChange(t){t&&this.$root.$emit("toast",{message:"Looks like you are already stared onboarding",duration:9999,callback:()=>this.resetOnboarding(),callbackText:"Restart"})}async resetOnboarding(){o.onboardingStore.resetOnboardingData(),await X(),"/start"!==this.$route.path&&this.$router.push("/start")}};(0,c.gn)([(0,p.RL)("isHomepageSet",{immediate:!0})],Lt.prototype,"onHomepageSetChange",null),Lt=(0,c.gn)([(0,p.wA)({components:{TextInput:bt,CheckboxInput:St,Button:U,MultipleChoiceSection:Bt}})],Lt);const Zt=Lt,At=Zt;var Et=(0,f.Z)(At,lt,ct,!1,null,null,null);const Rt=Et.exports;var Nt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"relative flex items-center gap-2"},[e("Logo"),e("span",{staticClass:"beta-badge"},[t._v("Beta")])],1)},Ft=[];let $t=class extends a.ZP{};$t=(0,c.gn)([(0,p.wA)({components:{Logo:y}})],$t);const zt=$t,Gt=zt;var Mt=(0,f.Z)(Gt,Nt,Ft,!1,null,null,null);const Ut=Mt.exports;var Vt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"onboarding-tagline"},[!t.rewriteInProgress&&t.output.tagline.length>0?e("div",{staticClass:"flex flex-col gap-2"},[e("span",{staticClass:"text-lg"},[t._v("Writing Style")]),e("h2",[t._v(t._s(t.output.tagline))])]):e("div",{staticClass:"onboarding-tagline-dots"},[e("div",{staticClass:"dot"}),e("div",{staticClass:"dot"}),e("div",{staticClass:"dot"})])])},Wt=[],Ht=s(23279),Kt=s.n(Ht);let jt=class extends a.ZP{constructor(){super(...arguments),this.rewriteInProgress=!1,this.output={tagline:""},this.deboncedRewriteTagline=Kt()((t=>{this.rewriteTagline(t)}),500)}get websiteDetails(){return o.onboardingStore.websiteDetails}async rewriteTagline(t){if(this.rewriteInProgress)return;if(!t.websiteDescription||!t.websiteName)return;this.rewriteInProgress=!0;const e=(0,K.j7)(t);try{const t=await(0,K.eh)(e);this.output.tagline=t?.tagline||""}catch(s){console.error("Error rewriting tagline:",s)}finally{this.rewriteInProgress=!1}}onWebsiteDetailsChange(t){t&&this.deboncedRewriteTagline(t)}};(0,c.gn)([(0,p.RL)("websiteDetails",{immediate:!0,deep:!0})],jt.prototype,"onWebsiteDetailsChange",null),jt=(0,c.gn)([p.wA],jt);const qt=jt,Yt=qt;var Jt=(0,f.Z)(Yt,Vt,Wt,!1,null,null,null);const Xt=Jt.exports;var Qt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"flex flex-col p-4 w-full feedback",class:{"is-floating":t.floating,"is-open":t.showFeedback}},[e("div",{staticClass:"feedback-button",attrs:{role:"button"},on:{click:t.toggle}},[t.floating?e("Icon",{staticClass:"text-neutral-900",class:{"text-primary-700":t.showFeedback},attrs:{icon:t.showFeedback?"CloseIcon":"CommentSolidIcon",size:"18"}}):e("span",[t.showFeedback?[t._v(" "+t._s(t.__("Hide Feedback"))+" ")]:[t._v(" "+t._s(t.__("Leave Feedback"))+" ")]],2)],1),t.showFeedback?e("div",{staticClass:"flex flex-col gap-2"},[e("div",{staticClass:"flex w-full gap-1 mb-1 justify-center",class:{"mt-4":!t.floating}},t._l([1,2,3,4,5],(function(s){return e("button",{key:s},[e("Icon",{staticClass:"feedback-star",attrs:{icon:s<=(t.rating??0)?"StarSolidIcon":"StarIcon",size:"24"},on:{click:function(e){t.rating=s}}})],1)})),0),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.feedback,expression:"feedback"}],ref:"feedbackTextarea",staticClass:"feedback-textarea",attrs:{placeholder:t.__("How can we improve this experience?")},domProps:{value:t.feedback},on:{input:function(e){e.target.composing||(t.feedback=e.target.value)}}}),t.showFeedback?e("Button",{staticClass:"mt-2",attrs:{size:"small",disabled:!t.isValidFeedback},on:{click:t.sendFeedback}},[t._v(t._s(t.__("Send Feedback")))]):t._e()],1):t._e()])},te=[],ee=s(47431);let se=class extends a.ZP{constructor(){super(...arguments),this.showFeedback=!1,this.feedbackTextArea=null,this.feedback="",this.rating=null}get isValidFeedback(){return this.feedback.length>0||this.rating&&this.rating>0}toggle(){this.showFeedback=!this.showFeedback,this.$nextTick((()=>{const t=this.$refs.feedbackTextarea;t&&t.focus()}))}sendFeedback(){this.feedback.length>0&&((0,ee.K)("Onboarding",{action:"onboarding_app_leave_feedback",feedback:this.feedback,rating:this.rating}),this.feedback="",this.rating=null,this.showFeedback=!1,(0,Ct.h)(),this.$root.$emit("toast",{message:"Thank you for your feedback!",duration:3e3}))}};(0,c.gn)([(0,p.fI)({default:!1})],se.prototype,"floating",void 0),se=(0,c.gn)([(0,p.wA)({components:{Button:U,Icon:F.Z}})],se);const ae=se,oe=ae;var ie=(0,f.Z)(oe,Qt,te,!1,null,null,null);const ne=ie.exports;let re=class extends a.ZP{constructor(){super(...arguments),this.routesOnboarding=Gi}get websiteDetails(){return o.onboardingStore.websiteDetails}get pathName(){return this.$route.name?.toLowerCase()||""}get isWritingStyleRoute(){return this.$route.path===Fi.WRITING_STYLE}get isFormValid(){const t=this.$route.path;return t===Fi.START?this.websiteDetails.websiteName.length>0&&this.websiteDetails.websiteDescription.length>0:t===Fi.CATEGORY?this.websiteDetails.websiteCategory.length>0:t===Fi.GOALS?this.websiteDetails.websiteGoals.length>0:t===Fi.WRITING_STYLE&&this.websiteDetails.websiteWritingStyle.length>0}};re=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,BottomNav:rt,OnboardingStartForm:Rt,LogoBeta:Ut,OnboardingTagline:Xt,OnboardingFeedback:ne}})],re);const le=re,ce=le;var pe=(0,f.Z)(ce,r,l,!1,null,null,null);const ue=pe.exports;var de=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"p-4"},[e("LogoBeta")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-start-background onboarding-start-background--goals"},[e("OnboardingFeedback",{attrs:{floating:"true"}})],1)]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routesCustomization}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[t.isLoading?e("div",{staticClass:"onboarding-layout__content flex flex-col gap-8 my-auto"},[e("div",{staticClass:"flex flex-col"},[e("h2",{staticClass:"text-base font-medium text-neutral-900"},[t._v(t._s(t.__("Hang tight...")))]),e("p",{staticClass:"text-base text-balance text-neutral-500"},[t._v(" "+t._s(t.__("We're setting up your design library."))+" ")]),e("div",{staticClass:"mt-4"},[t.isLoading?e("OnboardingLoader"):t._e()],1)])]):e("div",{staticClass:"onboarding-layout__content flex flex-col gap-8 my-auto"},[e("div",{staticClass:"flex flex-col"},[e("h2",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" "+t._s(t.__("How would you like to get started?"))+" ")]),e("p",{staticClass:"text-base text-balance text-neutral-500"},[t._v(" "+t._s(t.__("Choose one of the options below."))+" ")])]),e("div",{staticClass:"flex gap-4 items-start"},[e("CardLink",{attrs:{title:t.__("Breakdance Barebones"),description:t.__("Tailor your template to your needs.")},on:{click:t.setBarebonesProviderAndRedirect}}),e("CardLink",{attrs:{title:t.__("Design Template"),description:t.__("Premade templates to kickstart your design.")},on:{click:t.goToTemplatesGallery}})],1)])]},proxy:!0}])})},ge=[],he=function(){var t=this,e=t._self._c;t._self._setupProxy;return t.path?e("router-link",{staticClass:"onboarding-card-link flex flex-col",attrs:{to:t.path}},[t._t("default"),e("div",{staticClass:"flex flex-col items-start"},[t.title?e("h3",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.description?e("p",{staticClass:"text-sm text-neutral-500"},[t._v(" "+t._s(t.description)+" ")]):t._e()])],2):e("div",{staticClass:"onboarding-card-link flex flex-col",attrs:{role:"button",tabindex:"0"},on:{click:t.handleClick}},[t._t("default"),e("div",{staticClass:"flex flex-col items-start"},[t.title?e("h3",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.description?e("p",{staticClass:"text-sm text-neutral-500"},[t._v(" "+t._s(t.description)+" ")]):t._e()])],2)},me=[];let be=class extends a.ZP{handleClick(){this.$emit("click")}};(0,c.gn)([(0,p.fI)()],be.prototype,"path",void 0),(0,c.gn)([(0,p.fI)()],be.prototype,"title",void 0),(0,c.gn)([(0,p.fI)()],be.prototype,"description",void 0),be=(0,c.gn)([(0,p.wA)({})],be);const _e=be,fe=_e;var ve=(0,f.Z)(fe,he,me,!1,null,null,null);const ye=ve.exports;var xe=s(3735),Pe=s(48973),Se=s(92260),Ce=function(){var t=this;t._self._c,t._self._setupProxy;return t._m(0)},we=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"loader"},[e("div",{staticClass:"loader__bar"})])}];let ke=class extends a.ZP{};ke=(0,c.gn)([p.wA],ke);const Ie=ke,Te=Ie;var Oe=(0,f.Z)(Te,Ce,we,!1,null,null,null);const De=Oe.exports;let Be=class extends a.ZP{constructor(){super(...arguments),this.pathBarebones=Fi.BAREBONES_SITEMAP,this.pathTemplate=Fi.TEMPLATE,this.routesCustomization=Ui,this.isLoading=!0}get designLibraryData(){return o.onboardingStore.designLibrary.data}get websiteDetails(){return o.onboardingStore.websiteDetails}async importProviders(){return(0,xe.zG)(await(0,H.D)({action:"breakdance_get_design_library_data",decoder:Se.Jd}),(0,Pe.g_)((()=>{this.isLoading=!1}),(t=>{o.onboardingStore.updateDesignLibraryData(t),this.isLoading=!1})))}async setBarebonesProviderAndRedirect(){(0,ee.K)("Onboarding",{action:"onboarding_app_select_website_type",type:"barebones"}),o.onboardingStore.setBarebonesDesignProvider(),await X(),this.$router.push(this.pathBarebones)}goToTemplatesGallery(){(0,ee.K)("Onboarding",{action:"onboarding_app_select_website_type",type:"template"}),this.$router.push(this.pathTemplate)}async mounted(){await tt(),await this.importProviders(),(0,ee.K)("Onboarding",{action:"onboarding_app_website_details",details:{description:this.websiteDetails.websiteDescription,name:this.websiteDetails.websiteName,category:this.websiteDetails.websiteCategory.map((t=>t.label)),goals:this.websiteDetails.websiteGoals.map((t=>t.label)),personality:this.websiteDetails.websiteWritingStyle.map((t=>t.label))}})}};Be=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,BottomNav:rt,CardLink:ye,LogoBeta:Ut,OnboardingLoader:De,OnboardingFeedback:ne}})],Be);const Le=Be,Ze=Le;var Ae=(0,f.Z)(Ze,de,ge,!1,null,null,null);const Ee=Ae.exports;var Re=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"bg-neutral-100 w-full flex justify-between p-4"},[e("LogoBeta"),e("ToggleBreakpoints")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("OnboardingIframe",{attrs:{pageId:t.homepage?.postId}}),e("OnboardingFeedback",{attrs:{floating:"true"}})]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routes}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-layout__content flex flex-col my-auto"},[e("div",{staticClass:"dropdown-sections"},[e("ManagePalettes"),e("ManageTypography"),e("ManageButtons")],1)])]},proxy:!0},{key:"right-panel-footer",fn:function(){return[e("BottomNav",{attrs:{routes:t.routes}})]},proxy:!0}])})},Ne=[],Fe=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"sample-section",style:t.style,on:{click:t.toggleTheme}},[e("h3",[t._v("This is a sample heading of this length")]),e("p",[t._v(" Lorem ipsum dolr sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ")])])},$e=[],ze=s(6778);let Ge=class extends a.ZP{constructor(){super(...arguments),this.internalTheme=this.theme}get palette(){return(0,ze.Wk)(this.color)}get style(){return{backgroundColor:"light"===this.internalTheme?this.palette.scale[200]:this.palette.scale[900],color:"light"===this.internalTheme?this.palette.scale[900]:this.palette.scale[300]}}get classes(){return{"is-dark":"dark"===this.theme}}toggleTheme(){this.internalTheme="light"===this.internalTheme?"dark":"light"}};(0,c.gn)([(0,p.fI)({default:"#000000"})],Ge.prototype,"color",void 0),(0,c.gn)([(0,p.fI)({default:"light"})],Ge.prototype,"theme",void 0),Ge=(0,c.gn)([x.ZP],Ge);const Me=Ge,Ue=Me;var Ve=(0,f.Z)(Ue,Fe,$e,!1,null,null,null);const We=Ve.exports;var He=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("DropdownSection",{attrs:{title:t.__("Buttons & Forms")},scopedSlots:t._u([{key:"actions",fn:function(){return[e("Button",{attrs:{size:"small",icon:"ShuffleSolidIcon"},on:{click:t.rotateCorners}},[t._v(t._s(t.__("Corners")))])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"flex flex-col gap-8 bg-white"},[e("div",{staticClass:"manage-ui rounded",attrs:{role:"button"},on:{click:t.rotateCorners}},[e("div",{staticClass:"manage-ui__form-input",class:t.borderRadius,style:t.stylesForms},[t._v(" "+t._s(t.__("Input"))+" ")]),e("div",{staticClass:"manage-ui__button manage-ui__button--primary",class:t.borderRadius,style:t.stylesPrimary},[t._v(" "+t._s(t.__("Primary"))+" ")]),e("div",{staticClass:"manage-ui__button manage-ui__button--secondary",class:t.borderRadius,style:t.stylesSecondary},[t._v(" "+t._s(t.__("Secondary"))+" ")])])])]},proxy:!0}])})},Ke=[],je=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"flex flex-col gap-4 p-4 dropdown-section",class:{"is-active":!t.toggle}},[e("div",{staticClass:"w-full flex justify-between items-center"},[e("div",{staticClass:"flex w-full items-center",attrs:{role:"button"},on:{click:t.toggleSection}},[e("Icon",{staticClass:"text-neutral-500 mr-2",attrs:{icon:"ChevronDownIcon",size:"16",rotate:t.toggle?270:0}}),e("h3",{staticClass:"text-neutral-900 text-md font-medium cursor-pointer"},[t._v(" "+t._s(t.title)+" ")])],1),e("div",{staticClass:"dropdown-section__actions"},[t._t("actions")],2)]),e("div",{staticClass:"dropdown-section__content"},[t._t("content")],2)])},qe=[];let Ye=class extends a.ZP{constructor(){super(...arguments),this.toggle=!0}mounted(){this.opened&&(this.toggle=!1)}toggleSection(){this.toggle=!this.toggle,(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"dropdown_section_toggle",section:this.title})}};(0,c.gn)([(0,p.fI)({type:String,required:!0})],Ye.prototype,"title",void 0),(0,c.gn)([(0,p.fI)()],Ye.prototype,"opened",void 0),Ye=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z}})],Ye);const Je=Ye,Xe=Je;var Qe=(0,f.Z)(Xe,je,qe,!1,null,null,null);const ts=Qe.exports;let es=class extends a.ZP{constructor(){super(...arguments),this.borderRadius=o.onboardingStore.websiteUI.buttons.radius,this.corners=["none","sm","md","lg","full"]}get roundedCorners(){return o.onboardingStore.websiteUI.buttons.radius}get primaryPalette(){return o.onboardingStore.websiteUI.colorPalettes.primary}get neutralPalette(){return o.onboardingStore.websiteUI.colorPalettes.neutral}get borderRadiusTopLeftStyle(){return{borderTopLeftRadius:W.CZ[this.borderRadius]?.style}}get stylesPrimary(){return this.primaryPalette?{backgroundColor:this.primaryPalette.base.value?.toString(),color:this.primaryPalette.text.value?.toString(),borderRadius:W.CZ[this.borderRadius]?.style}:{}}get stylesSecondary(){return this.neutralPalette?{backgroundColor:"transparent",text:this.neutralPalette.text.value?.toString(),borderColor:this.neutralPalette.scale[300].value?.toString(),borderRadius:W.CZ[this.borderRadius]?.style}:{}}get stylesForms(){return this.neutralPalette?{borderColor:this.neutralPalette.scale[200].value?.toString(),borderRadius:W.CZ[this.borderRadius]?.style}:{}}rotateCorners(){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"manage_buttons_rotate_corners"});const t=this.corners.indexOf(this.borderRadius),e=(t+1)%this.corners.length;this.borderRadius=this.corners[e],o.onboardingStore.updateButtons({radius:this.borderRadius})}};es=(0,c.gn)([(0,x.ZP)({components:{Button:U,DropdownSection:ts}})],es);const ss=es,as=ss;var os=(0,f.Z)(as,He,Ke,!1,null,null,null);const is=os.exports;var ns=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("DropdownSection",{attrs:{title:t.__("Colors"),opened:!0},scopedSlots:t._u([{key:"actions",fn:function(){return[e("Button",{attrs:{size:"small",icon:"ShuffleSolidIcon"},on:{click:t.shufflePalettes}},[t._v(t._s(t.__("Shuffle")))])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"flex flex-col gap-2"},[e("div",{staticClass:"flex gap-2 w-full"},[e("PaletteGenerator",{attrs:{palette:t.primaryPalette},on:{update:t.updatePrimaryPalette}}),t._l(t.secondaryPalettes,(function(s,a){return e("PaletteGenerator",{key:a,attrs:{palette:s},on:{remove:function(e){return t.removeSecondaryPalette(a)},update:function(e){return t.updateSecondaryPalette(a,e)}}})})),t.isSecondaryPaletteFull?t._e():e("div",{staticClass:"w-full h-full bg-white border-neutral-200 rounded hover-bg-neutral-100 flex items-center justify-center cursor-pointer palette-generator-add",on:{click:t.addPalette}},[e("Icon",{staticClass:"text-neutral-500",attrs:{icon:"PlusIcon",size:"18"}})],1)],2),e("div",{staticClass:"w-full"},[e("PaletteGenerator",{attrs:{palette:t.neutralPalette,neutral:!0}})],1)])]},proxy:!0}])})},rs=[],ls=function(){var t=this,e=t._self._c;t._self._setupProxy;return t.palette?e("div",{staticClass:"palette-generator"},[e("PaletteOverlay",{attrs:{palette:t.palette,show:t.isOverlayOpen},on:{update:t.updatePalette,close:function(e){t.isOverlayOpen=!1}}}),t.palette?e("div",{staticClass:"palette-generator__button"},[t.neutral?t._e():e("div",{staticClass:"palette-generator__actions"},[t.palette.primary?t._e():e("div",{staticClass:"palette-generator__action",style:t.primaryTagStyle,attrs:{role:"button"},on:{click:t.removePalette}},[e("Icon",{attrs:{icon:"TrashSolidIcon",size:"10"}})],1),e("div",{staticClass:"palette-generator__action",style:t.primaryTagStyle,attrs:{role:"button"},on:{click:t.lockPalette}},[t.palette.locked?e("Icon",{attrs:{icon:"LockSolidIcon",size:"10"}}):e("Icon",{attrs:{icon:"LockOpenSolidIcon",size:"10"}})],1)]),e("div",{staticClass:"palette-generator__base",class:{"is-light":t.isLightColor,"is-neutral":t.neutral},style:{backgroundColor:t.palette.base.value?.toString()},attrs:{role:"button"},on:{click:function(e){t.isOverlayOpen=!0}}},[e("div",{staticClass:"palette-generator__top"},[e("div",[t.palette.primary?e("div",{staticClass:"palette-generator__badge",style:t.primaryTagStyle},[t._v(" Primary ")]):t._e()])]),e("div",{staticClass:"flex flex-col gap-1",style:t.textStyle},[e("p",{staticClass:"leading-none font-medium"},[t._v(t._s(t.palette.label))]),e("p",{staticClass:"text-sm leading-none"},[t._v(" "+t._s(t.palette.base.value?.toString().substring(1).toUpperCase())+" ")])])]),e("div",{staticClass:"palette-generator__swatches"},t._l(t.palette.scale,(function(t,s){return e("div",{key:"color-"+s,staticClass:"palette-generator__swatch",style:{backgroundColor:t.value?.toString()}})})),0)]):t._e()],1):t._e()},cs=[],ps=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("button",{class:t.classes,attrs:{disabled:t.disabled},on:{click:t.onClick}},[e("Icon",{attrs:{icon:t.icon,size:t.iconSize,rotate:t.rotate}})],1)},us=[];let ds=class extends a.ZP{onClick(){this.$emit("click")}get iconSize(){return"small"===this.size?16:20}get classes(){return{"button-icon":!0,"button-icon--disabled":this.disabled,"button-icon--small":"small"===this.size,"button-icon--large":"large"===this.size}}};(0,c.gn)([(0,p.fI)({default:!1})],ds.prototype,"disabled",void 0),(0,c.gn)([(0,p.fI)({default:"default"})],ds.prototype,"size",void 0),(0,c.gn)([(0,p.fI)()],ds.prototype,"icon",void 0),(0,c.gn)([(0,p.fI)()],ds.prototype,"rotate",void 0),ds=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z}})],ds);const gs=ds,hs=gs;var ms=(0,f.Z)(hs,ps,us,!1,null,null,null);const bs=ms.exports;var _s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"palette-picker",on:{"click:outside":function(e){t.isOverlayOpen=!1}}},[e("div",{staticClass:"palette-picker__color",on:{click:function(e){t.isOverlayOpen=!t.isOverlayOpen}}},[e("div",{staticClass:"palette-picker__color-swatch",style:t.inlineStyles},[e("span",{},[t._v(t._s(t.internalColor.substring(1).toUpperCase()))])])]),t.isOverlayOpen?e("div",{staticClass:"palette-picker__overlay"},[e("div",{staticClass:"flex gap-8 items-center justify-between w-full"},[e("p",{staticClass:"text-sm font-medium text-black"},[t._v("Color picker")]),e("ButtonIcon",{attrs:{size:"small",icon:"CloseIcon"},on:{click:function(e){t.isOverlayOpen=!1}}})],1),e("Chrome",{attrs:{value:t.color,disableAlpha:!0},on:{input:t.updateColor}})],1):t._e()])},fs=[],vs=s(94023),ys=s(66485),xs=s.n(ys);let Ps=class extends a.ZP{constructor(){super(...arguments),this.internalColor=this.color,this.isOverlayOpen=!1,this.palette=(0,ze.Wk)(this.internalColor)}get classes(){return{"is-light":(0,ze.eO)(this.internalColor)}}updateColor(t){this.internalColor=t.hex,this.palette=(0,ze.Wk)(t.hex),this.$emit("update",t.hex)}get inlineStyles(){return{backgroundColor:this.internalColor,color:(0,ze.eO)(this.internalColor)?String(this.palette.scale[900].value):String(this.palette.scale[100].value)}}copyColor(t){xs()(t)}onColorChange(t){this.internalColor=t,this.palette=(0,ze.Wk)(t)}mounted(){this.palette=(0,ze.Wk)(this.internalColor)}};(0,c.gn)([(0,p.fI)()],Ps.prototype,"color",void 0),(0,c.gn)([(0,p.RL)("color")],Ps.prototype,"onColorChange",null),Ps=(0,c.gn)([(0,x.ZP)({components:{Chrome:vs.Chrome,ButtonIcon:bs}})],Ps);const Ss=Ps,Cs=Ss;var ws=(0,f.Z)(Cs,_s,fs,!1,null,null,null);const ks=ws.exports;var Is=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.show?e("div",{staticClass:"palette-generator__overlay"},[e("div",{staticClass:"flex flex-col w-full gap-4"},[e("div",{staticClass:"flex gap-4 items-center justify-between w-full"},[e("h3",{staticClass:"text-2xl font-medium text-neutral-900"},[t._v(" "+t._s(t.internalPalette.label)+" ")]),e("div",{staticClass:"flex gap-2"},[e("ButtonIcon",{attrs:{icon:"ShuffleSolidIcon"},on:{click:t.shuffle}}),e("ButtonIcon",{attrs:{icon:"CloseSolidIcon"},on:{click:t.close}})],1)]),e("PalettePicker",{attrs:{color:t.internalPalette.base.value},on:{update:t.updateColor}}),e("TextInput",{attrs:{label:"Name",placeholder:"Palette name"},model:{value:t.internalPalette.label,callback:function(e){t.$set(t.internalPalette,"label",e)},expression:"internalPalette.label"}}),t.internalPalette?e("div",{staticClass:"flex flex-col gap-2"},t._l(t.internalPalette?.scale,(function(s,a){return e("div",{key:"color-"+a},[s&&s.value?e("div",{staticClass:"palette-generator__swatch-lg flex items-center justify-between p-2",style:t.style(s.value?.toString())},[e("span",{staticClass:"text-sm"},[t._v(t._s(s.value?.toString().substring(1).toUpperCase()))]),e("div",{staticClass:"palette-generator__swatch-copy",attrs:{role:"button"}},[e("Icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){t.copyColor(s.value?.toString())}}})],1)]):t._e()])})),0):t._e()],1)]):t._e()])},Ts=[];let Os=class extends a.ZP{constructor(){super(...arguments),this.internalPalette={...this.palette}}close(){this.$emit("close")}style(t){return(0,ze._9)(t,this.palette)}shuffle(){const t=(0,ze.Wk)((0,ze.p)());console.log("newPalette",t),this.internalPalette=t,this.palette=t,this.$emit("update",{...t})}updateColor(t){const e=(0,ze.Wk)(t);this.internalPalette={...this.internalPalette,base:e.base,scale:e.scale},this.$emit("update",{...this.internalPalette})}copyColor(t){xs()(t),this.$root.$emit("toast",{message:"Copied!",duration:3e3})}updateName(){this.$emit("update",{...this.internalPalette,label:this.internalPalette.label})}mounted(){this.internalPalette={...this.palette}}onPaletteChange(t){this.internalPalette={...t}}};(0,c.gn)([(0,p.fI)({required:!0})],Os.prototype,"palette",void 0),(0,c.gn)([(0,p.fI)({default:!1})],Os.prototype,"show",void 0),(0,c.gn)([(0,p.RL)("palette")],Os.prototype,"onPaletteChange",null),Os=(0,c.gn)([(0,x.ZP)({components:{ButtonIcon:bs,PalettePicker:ks,TextInput:bt,Icon:F.Z}})],Os);const Ds=Os,Bs=Ds;var Ls=(0,f.Z)(Bs,Is,Ts,!1,null,null,null);const Zs=Ls.exports;let As=class extends a.ZP{constructor(){super(...arguments),this.isOverlayOpen=!1}get textStyle(){return this.palette?{color:(0,ze.eO)(this.palette.base.value?.toString())?this.palette.scale[900].value?.toString():this.palette.scale[100].value?.toString()}:{}}get primaryTagStyle(){return this.palette?{backgroundColor:((0,ze.eO)(this.palette.base.value?.toString()),this.palette.scale[600].value?.toString()),color:(0,ze.eO)(this.palette.base.value?.toString())?this.palette.scale[900].value?.toString():this.palette.scale[100].value?.toString()}:{}}updatePalette(t){this.$emit("update",t)}removePalette(){this.$emit("remove")}lockPalette(){this.$emit("update",{...this.palette,locked:!this.palette.locked})}get isLightColor(){return!!this.palette?.base&&(0,ze.eO)(this.palette.base.value?.toString())}};(0,c.gn)([(0,p.fI)()],As.prototype,"palette",void 0),(0,c.gn)([(0,p.fI)({default:!1})],As.prototype,"neutral",void 0),As=(0,c.gn)([(0,x.ZP)({components:{Button:U,ButtonIcon:bs,Icon:F.Z,PalettePicker:ks,TextInput:bt,PaletteOverlay:Zs}})],As);const Es=As,Rs=Es;var Ns=(0,f.Z)(Rs,ls,cs,!1,null,null,null);const Fs=Ns.exports;let $s=class extends a.ZP{constructor(){super(...arguments),this.maxSecondaryPalettes=4}get primaryPalette(){return o.onboardingStore.websiteUI.colorPalettes.primary}get secondaryPalettes(){return o.onboardingStore.websiteUI.colorPalettes.secondary}get neutralPalette(){return o.onboardingStore.websiteUI.colorPalettes.neutral}get isSecondaryPaletteFull(){return o.onboardingStore.isSecondaryPalettesLimitReached}addPalette(){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"manage_buttons_add_palette"}),this.primaryPalette?o.onboardingStore.addToSecondaryPalettes():o.onboardingStore.createPrimaryPalette()}shufflePalettes(){o.onboardingStore.shufflePalettes(),(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"manage_buttons_shuffle_palettes"})}removeSecondaryPalette(t){o.onboardingStore.removeFromSecondaryPalettes(t)}updateSecondaryPalette(t,e){o.onboardingStore.updateSecondaryPalette({index:t,palette:e})}updatePrimaryPalette(t){o.onboardingStore.updatePrimaryPalette(t)}};$s=(0,c.gn)([(0,x.ZP)({components:{Button:U,PaletteGenerator:Fs,Icon:F.Z,DropdownSection:ts}})],$s);const zs=$s,Gs=zs;var Ms=(0,f.Z)(Gs,ns,rs,!1,null,null,null);const Us=Ms.exports;var Vs=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("DropdownSection",{attrs:{title:t.__("Typography"),opened:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"flex gap-4 w-full"},[e("TypographyPicker",{attrs:{value:t.bodyFont,label:t.__("Body")},on:{update:t.updateBody}}),e("TypographyPicker",{attrs:{value:t.headingFont,label:t.__("Headings")},on:{update:t.updateHeadings}})],1)]},proxy:!0}])})},Ws=[],Hs=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"typography-picker"},[e("TypographyPickerOverlay",{attrs:{show:t.isOverlayOpen,label:t.label},on:{update:t.update,close:function(e){t.isOverlayOpen=!1}}}),e("TypographyFont",{attrs:{value:t.value,label:t.label},on:{update:function(e){t.isOverlayOpen=!0}}})],1)},Ks=[],js=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.show?e("div",{staticClass:"typography-picker__overlay"},[e("div",{staticClass:"flex flex-col w-full gap-4"},[e("div",{staticClass:"flex gap-4 items-center justify-between w-full"},[e("h3",{staticClass:"text-2xl font-medium text-neutral-900"},[t._v(" "+t._s(t.label)+" ")]),e("ButtonIcon",{attrs:{icon:"CloseIcon"},on:{click:t.close}})],1),e("div",{staticClass:"flex flex-col gap-4"},[e("p",[t._v("Select font category")]),t._l(Object.keys(t.fontsByCategory),(function(s){return e("TypographyCategory",{key:s,attrs:{label:s,fonts:t.fontsByCategory[s]},on:{update:t.update}})}))],2)])]):t._e()])},qs=[],Ys=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"typography-font",attrs:{role:"button"},on:{click:t.update}},[t.value?.previewImageUrl?e("img",{staticClass:"typography-font__preview-image",attrs:{alt:t.value?.label,src:t.value?.previewImageUrl}}):t._e(),e("div",{staticClass:"flex flex-col gap-1"},[e("p",{staticClass:"leading-none font-medium"},[t._v(t._s(t.value?.label||"No font"))]),t.label?e("p",{staticClass:"text-sm leading-none text-neutral-500"},[t._v(" "+t._s(t.label)+" ")]):t._e()])])},Js=[];let Xs=class extends a.ZP{update(){this.$emit("update",this.value)}};(0,c.gn)([(0,p.fI)()],Xs.prototype,"label",void 0),(0,c.gn)([(0,p.fI)()],Xs.prototype,"value",void 0),Xs=(0,c.gn)([p.wA],Xs);const Qs=Xs,ta=Qs;var ea=(0,f.Z)(ta,Ys,Js,!1,null,null,null);const sa=ea.exports;var aa=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"typography-font"},[e("div",{staticClass:"flex flex-col gap-1"},[t.isOpen?t._e():e("div",{staticClass:"flex flex-col gap-4",attrs:{role:"button"},on:{click:function(e){t.isOpen=!0}}},[t.representativeFont?.previewImageUrl?e("img",{staticClass:"typography-font__preview-image",attrs:{alt:t.representativeFont?.label,src:t.representativeFont?.previewImageUrl}}):t._e(),e("p",{staticClass:"text-sm leading-none text-neutral-500 capitalize"},[t._v(" "+t._s(t.label)+" ")])]),t.isOpen?e("div",[e("div",{staticClass:"flex justify-between items-center"},[e("span",{staticClass:"text-base font-medium text-black capitalize"},[t._v(t._s(t.label)+" fonts")]),e("ButtonIcon",{attrs:{icon:"CloseIcon"},on:{click:function(e){t.isOpen=!1}}})],1),e("div",{staticClass:"typography-picker__search"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.filter,expression:"filter"}],staticClass:"w-full p-2 border border-neutral-200 rounded bg-white",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.filter},on:{input:function(e){e.target.composing||(t.filter=e.target.value)}}})]),e("div",{staticClass:"flex flex-col gap-4"},t._l(t.filteredFonts,(function(s,a){return e("TypographyFont",{key:"font-"+a,attrs:{value:s},on:{update:t.update}})})),1)]):t._e()])])},oa=[];const ia={"sans-serif":"Inter",serif:"Playfair Display",display:"Alfa Slab One",handwriting:"Caveat Brush",monospace:"Roboto Mono"};let na=class extends a.ZP{constructor(){super(...arguments),this.isOpen=!1,this.filter=""}get filteredFonts(){return this.fonts.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase())))}get searchInputPlaceholder(){return`Search ${this.label} fonts`}update(t){this.$emit("update",t)}getRepresentativeFont(t,e){const s=t.find((t=>t.label===ia[e]));return s||null}get representativeFont(){const t=this.label;return this.getRepresentativeFont(this.fonts,t)}};(0,c.gn)([(0,p.fI)()],na.prototype,"label",void 0),(0,c.gn)([(0,p.fI)()],na.prototype,"fonts",void 0),na=(0,c.gn)([(0,x.ZP)({components:{TypographyFont:sa,ButtonIcon:bs}})],na);const ra=na,la=ra;var ca=(0,f.Z)(la,aa,oa,!1,null,null,null);const pa=ca.exports;let ua=class extends a.ZP{constructor(){super(...arguments),this.filter=""}get fontsByCategory(){return o.configStore.fonts.reduce(((t,e)=>{const s=e.category||"Other";return t[s]||(t[s]=[]),t[s].push(e),t}),{})}update(t){this.$emit("update",t)}close(){this.$emit("close")}};(0,c.gn)([(0,p.fI)()],ua.prototype,"label",void 0),(0,c.gn)([(0,p.fI)({default:!1})],ua.prototype,"show",void 0),ua=(0,c.gn)([(0,x.ZP)({components:{ButtonIcon:bs,TypographyFont:sa,TypographyCategory:pa}})],ua);const da=ua,ga=da;var ha=(0,f.Z)(ga,js,qs,!1,null,null,null);const ma=ha.exports;let ba=class extends a.ZP{constructor(){super(...arguments),this.isOverlayOpen=!1}update(t){this.isOverlayOpen=!1,this.$emit("update",t)}toggle(){this.$emit("open",!this.isOpen)}};(0,c.gn)([(0,p.fI)()],ba.prototype,"value",void 0),(0,c.gn)([(0,p.fI)({default:"Body"})],ba.prototype,"label",void 0),(0,c.gn)([(0,p.fI)()],ba.prototype,"isOpen",void 0),ba=(0,c.gn)([(0,p.wA)({components:{TypographyPickerOverlay:ma,TypographyFont:sa}})],ba);const _a=ba,fa=_a;var va=(0,f.Z)(fa,Hs,Ks,!1,null,null,null);const ya=va.exports;let xa=class extends a.ZP{get typography(){return o.onboardingStore.websiteUI.typography}get headingFont(){return o.onboardingStore.websiteUI.typography.headings}get bodyFont(){return o.onboardingStore.websiteUI.typography.body}updateHeadings(t){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"manage_typography_headings"}),o.onboardingStore.updateTypography({headings:t})}updateBody(t){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"manage_typography_headings"}),o.onboardingStore.updateTypography({body:t})}};xa=(0,c.gn)([(0,x.ZP)({components:{DropdownSection:ts,TypographyPicker:ya}})],xa);const Pa=xa,Sa=Pa;var Ca=(0,f.Z)(Sa,Vs,Ws,!1,null,null,null);const wa=Ca.exports;var ka=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"website-preview",class:{"is-mobile":"breakpoint_phone_portrait"===t.previewBreakpointId}},[e("div",{staticClass:"website-preview__frame"},[e("BrowserUIPreview",{attrs:{breakpoint:t.previewBreakpointId}}),t.pageId?e("iframe",{ref:"iframe",staticClass:"breakdance-iframe",attrs:{id:"iframe",name:"iframe",src:t.iframeUrl},on:{load:t.onIframeLoaded}}):t._e(),t.showSkeleton?e("div",{staticClass:"website-preview__sections"},[t._m(0)]):t._e()],1)])},Ia=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"website-skeleton"},[e("div",{staticClass:"skeleton-header"}),e("div",{staticClass:"skeleton-hero"}),e("div",{staticClass:"skeleton-heading"}),e("div",{staticClass:"skeleton-line"}),e("div",{staticClass:"skeleton-line short"}),e("div",{staticClass:"skeleton-content"},[e("div",{staticClass:"skeleton-box"}),e("div",{staticClass:"skeleton-box"}),e("div",{staticClass:"skeleton-box"})]),e("div",{staticClass:"skeleton-heading"}),e("div",{staticClass:"skeleton-line"}),e("div",{staticClass:"skeleton-line"}),e("div",{staticClass:"skeleton-line short"}),e("div",{staticClass:"skeleton-hero"}),e("div",{staticClass:"skeleton-footer"})])}],Ta=s(77622),Oa=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"browser-bar w-full"},[t.isDesktop?e("div",{staticClass:"browser-bar__desktop"},[e("div",{staticClass:"browser-bar__circle"}),e("div",{staticClass:"browser-bar__circle"}),e("div",{staticClass:"browser-bar__circle"})]):t._e(),t.isMobile?e("div",{staticClass:"browser-bar__mobile-top"},[e("div",{staticClass:"browser-bar__mobile-line"})]):t._e()])},Da=[];let Ba=class extends a.ZP{get isDesktop(){return"desktop"===this.breakpoint||"breakpoint_base"===this.breakpoint}get isMobile(){return"mobile"===this.breakpoint||"breakpoint_phone_portrait"===this.breakpoint}};(0,c.gn)([(0,p.fI)({default:"desktop"})],Ba.prototype,"breakpoint",void 0),Ba=(0,c.gn)([p.wA],Ba);const La=Ba,Za=La;var Aa=(0,f.Z)(Za,Oa,Da,!1,null,null,null);const Ea=Aa.exports;let Ra=class extends a.ZP{get iframeUrl(){return`/?breakdance=builder&id=${this.pageId}&onboarding=true`}get showSkeleton(){return!this.pageId||!this.loading}get palettes(){return o.onboardingStore.websiteUI.colorPalettes}get buttons(){return o.onboardingStore.websiteUI.buttons}get images(){return o.onboardingStore.websiteUI.images}get typography(){return o.onboardingStore.websiteUI.typography}get previewBreakpointId(){return o.onboardingStore.previewBreakpointId}get breakpoints(){return o.configStore.breakpoints}get websiteUI(){return o.onboardingStore.websiteUI}get selectedHomepageSectionsIdsToRemove(){return o.onboardingStore.homepageSectionIdsToRemove}onIframeLoaded(){const t=this.iframe;st.Z.set(t)}mounted(){this.$nextTick((()=>{this.onIframeLoaded()}))}async onPageIdChange(t){if(!t)return;const e=await(0,Ta.A_)(t);e?.document.tree&&o.onboardingStore.updateCurrentTree(e?.document.tree.root.children)}onPreviewBreakpointIdChange(t){if(console.log("Preview breakpoint changed:",t),!t)return;const e=this.breakpoints.find((e=>e.id===t));e&&st.Z.sendRequest({payload:{action:"updateBreakpoint",data:{breakpoint:e}}})}onWebsiteUIChange(t){if(!t)return;const e=(0,ze.hz)(t.colorPalettes),s=[{path:"settings.colors",value:{palette:{colors:e},brand:`var(--${t.colorPalettes.primary?.base.cssVariableName})`,text:`var(--${t.colorPalettes.neutral?.base.cssVariableName})`,headings:`var(--${t.colorPalettes.neutral?.base.cssVariableName})`,background:`var(--${t.colorPalettes.primary?.scale[100].cssVariableName})`}},{path:"settings.buttons",value:{primary:{corners:"custom",corner_radius:W.CZ[t.buttons?.radius],background:`var(--${t.colorPalettes.primary?.base.cssVariableName})`,background_hover:`var(--${t.colorPalettes.primary?.scale[600].cssVariableName})`,typography:{color:`var(--${t.colorPalettes.primary?.text.cssVariableName})`}},secondary:{corners:"custom",corner_radius:W.CZ[t.buttons?.radius],outline:"true",color:`var(--${t.colorPalettes.neutral?.scale[300].cssVariableName})`,typography:{color:`var(--${t.colorPalettes.neutral?.scale[900].cssVariableName})`}}}},{path:"settings.forms",value:{fields:{borders:{radius:{all:W.CZ[t.buttons?.radius]}}}}},{path:"settings.typography",value:{heading_font:t.typography.headings?.slug,body_font:t.typography.body?.slug}}];s.forEach((({path:t,value:e})=>{st.Z.sendRequest({payload:{action:"updateGlobalSettingsPerPath",data:{path:t,value:e}}})}))}};(0,c.gn)([(0,p.fI)()],Ra.prototype,"pageId",void 0),(0,c.gn)([(0,p.fI)({default:!1})],Ra.prototype,"loading",void 0),(0,c.gn)([(0,p.Rl)()],Ra.prototype,"iframe",void 0),(0,c.gn)([(0,p.RL)("pageId",{immediate:!0})],Ra.prototype,"onPageIdChange",null),(0,c.gn)([(0,p.RL)("previewBreakpointId",{immediate:!0})],Ra.prototype,"onPreviewBreakpointIdChange",null),(0,c.gn)([(0,p.RL)("websiteUI",{deep:!0,immediate:!0})],Ra.prototype,"onWebsiteUIChange",null),Ra=(0,c.gn)([(0,p.wA)({components:{BrowserUIPreview:Ea}})],Ra);const Na=Ra,Fa=Na;var $a=(0,f.Z)(Fa,ka,Ia,!1,null,null,null);const za=$a.exports;var Ga=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"toggle-breakpoints"},[e("button",{staticClass:"toggle-breakpoints__button",class:{active:"breakpoint_base"===t.currentBreakpoint},on:{click:function(e){return t.setBreakpoint("breakpoint_base")}}},[e("Icon",{attrs:{icon:"DesktopIcon"}})],1),e("button",{staticClass:"toggle-breakpoints__button",class:{active:"breakpoint_phone_portrait"===t.currentBreakpoint},on:{click:function(e){return t.setBreakpoint("breakpoint_phone_portrait")}}},[e("Icon",{attrs:{icon:"MobileIcon"}})],1)])},Ma=[];let Ua=class extends a.ZP{get currentBreakpoint(){return o.onboardingStore.previewBreakpointId}get currentBreakpointFromStore(){return o.uiStore.currentBreakpoint}get breakpoints(){return o.configStore.breakpoints}setBreakpoint(t){o.onboardingStore.setPreviewBreakpointId(t)}};Ua=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z}})],Ua);const Va=Ua,Wa=Va;var Ha=(0,f.Z)(Wa,Ga,Ma,!1,null,null,null);const Ka=Ha.exports;let ja=class extends a.ZP{get colorPalettes(){return[o.onboardingStore.websiteUI.colorPalettes.primary,...o.onboardingStore.websiteUI.colorPalettes.secondary]}get isHomepageCreated(){return o.onboardingStore.isHomepageCreated}get homepage(){return o.onboardingStore.generatedPages.homepage}get pages(){return o.onboardingStore.generatedPages.pages}};(0,c.gn)([(0,p.fI)()],ja.prototype,"routes",void 0),ja=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,Button:U,BottomNav:rt,SampleSection:We,LogoBeta:Ut,ManageButtons:is,ManagePalettes:Us,ManageTypography:wa,OnboardingIframe:za,ToggleBreakpoints:Ka,OnboardingFeedback:ne}})],ja);const qa=ja,Ya=qa;var Ja=(0,f.Z)(Ya,Re,Ne,!1,null,null,null);const Xa=Ja.exports;var Qa=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"grid place-items-center h-full"},[t.isSyncingComplete?e("div",{staticClass:"flex flex-col items-center justify-center gap-6 text-center"},[e("div",{staticClass:"flex flex-col gap-1 items-center max-w-60ch"},[e("Logo"),e("h1",{staticClass:"text-4xl font-bold text-neutral-900"},[t._v(" "+t._s(t.__("Your website is ready!"))+" ")]),e("p",{staticClass:"text-base text-neutral-500"},[t._v(" "+t._s(t.__("We've set up your website based on your choices. You can now start customizing it to make it truly yours."))+" ")])],1),e("Button",{attrs:{size:"large"},on:{click:t.openBuilder}},[t._v(t._s(t.__("Edit in Builder")))]),e("p",{staticClass:"text-base text-neutral-500"},[t._v(t._s(t.__("or view it live")))]),e("div",{staticClass:"flex w-full items-center justify-between bg-neutral-100 p-2 rounded-md"},[e("a",{staticClass:"pl-2 font-medium text-black website-link",attrs:{href:t.websiteUrl}},[t._v(" "+t._s(t.websiteUrl)+" ")]),e("div",{staticClass:"flex gap-2"},[e("Button",{attrs:{size:"small"},on:{click:t.open}},[t._v(t._s(t.__("Open")))]),e("Button",{attrs:{size:"small"},on:{click:t.copy}},[t._v(t._s(t.__("Copy URL")))])],1)]),e("OnboardingFeedback")],1):e("div",{staticClass:"flex flex-col items-center justify-center gap-6 text-center"},[e("div",{staticClass:"flex flex-col gap-1 items-center max-w-60ch"},[e("Logo"),e("h1",{staticClass:"text-4xl font-bold text-neutral-900"},[t._v(" "+t._s(t.__("Building your website..."))+" ")]),e("p",{staticClass:"text-base text-neutral-500"},[t._v(" "+t._s(t.__("We're setting up your website based on your choices."))+" ")])],1),e("OnboardingLoader")],1)])},to=[],eo=s(36055);let so=class extends a.ZP{constructor(){super(...arguments),this.arePagesTrashed=!1,this.isSyncingComplete=!1}get websiteUrl(){return o.configStore.neededData?.homeUrl||""}get homepageId(){return o.onboardingStore.generatedPages.homepage?.postId}openBuilder(){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"onboarding_complete_open_builder"});const t=`${o.configStore.neededData?.homeUrl}/?breakdance=builder&id=${this.homepageId}`;window.open(t,"_blank")}get dataToRemove(){return o.onboardingStore.generatedPages.toRemove}get selectedPagesToTrash(){return o.onboardingStore.generatedPages.toRemove.pageIds}get homepageSectionsToTrash(){return o.onboardingStore.generatedPages.toRemove.homepageSectionIds}get homepage(){return o.onboardingStore.generatedPages.homepage}open(){window.open(this.websiteUrl,"_blank")}async syncSelectedPages(){if(!this.isSyncingComplete&&0!=this.selectedPagesToTrash?.length&&this.selectedPagesToTrash)return await(0,Ta.IV)(this.selectedPagesToTrash)}async syncSelectedSections(){if(!this.isSyncingComplete&&0!=this.homepageSectionsToTrash?.length&&this.homepageSectionsToTrash&&this.homepage?.postId)return await(0,Ta.PX)(this.homepage.postId,this.homepageSectionsToTrash)}async syncOnboardingData(){const t=await this.syncSelectedPages(),e=await this.syncSelectedSections();return Promise.all([t,e])}copy(){xs()(this.websiteUrl),(0,Ct.h)(),this.$root.$emit("toast",{message:(0,eo.__)("Copied!"),duration:3e3})}async onDataToRemoveChange(){await this.syncOnboardingData(),this.isSyncingComplete=!0,(0,Ct.h)()}};(0,c.gn)([(0,p.RL)("dataToRemove",{immediate:!0})],so.prototype,"onDataToRemoveChange",null),so=(0,c.gn)([(0,p.wA)({components:{Logo:y,Button:U,OnboardingLoader:De,OnboardingFeedback:ne}})],so);const ao=so,oo=ao;var io=(0,f.Z)(oo,Qa,to,!1,null,null,null);const no=io.exports;var ro=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"h-full w-full flex flex-col"},[e("div",{staticClass:"p-4 w-full flex justify-between"},[e("div",{staticClass:"flex gap-4 items-center"},[e("Logo"),e("span",{staticClass:"text-2xl"},[t._v("Premium Templates")])],1)]),e("div",{staticClass:"flex gap-4 items-center justify-between sticky-filter-bar w-full p-4"},[e("div",{staticClass:"flex gap-2 items-center"},[e("button",{staticClass:"bg-neutral-100 button-back rounded text-sm font-medium text-neutral-900",on:{click:t.goBackToCustomization}},[e("Icon",{attrs:{icon:"ArrowLeftIcon"}})],1),e("div",{staticClass:"filter-bar flex bg-neutral-100 p-2 rounded"},[e("button",{staticClass:"filter-bar__button",class:{"is-active":t.currentFilter.includes("complete_site")&&t.currentFilter.includes("sections")},on:{click:function(e){return t.setFilter(["complete_site","sections"])}}},[t._v(" All ")]),e("button",{staticClass:"filter-bar__button",class:{"is-active":t.currentFilter.includes("complete_site")&&!t.currentFilter.includes("sections")},on:{click:function(e){return t.setFilter(["complete_site"])}}},[t._v(" Complete Website ")]),e("button",{staticClass:"filter-bar__button",class:{"is-active":t.currentFilter.includes("sections")&&!t.currentFilter.includes("complete_site")},on:{click:function(e){return t.setFilter(["sections"])}}},[t._v(" Sections ")])])]),e("p",{staticClass:"text-sm text-neutral-500"},[t._v(" Showing "+t._s(t.providers.length)+" templates ")])]),e("div",{staticClass:"flex flex-col p-4 gap-8"},[e("div",{staticClass:"w-full flex flex-col gap-10"},[e("div",{staticClass:"grid-templates"},t._l(t.providers,(function(s){return e("OnboardingDesignProvider",{key:s.name,attrs:{provider:s},on:{update:t.update}})})),1)])]),e("OnboardingFeedback",{attrs:{floating:"true"}})],1)},lo=[],co=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"design-provider"},[e("div",{staticClass:"design-provider__overlay",class:{"is-open":t.isOverlayOpen}},[e("div",{staticClass:"design-provider__button-close flex gap-2"},[e("ButtonIcon",{staticClass:"design-provider__button-close__icon",attrs:{icon:"ChevronRightIcon",rotate:"180"},on:{click:t.previousProvider}}),e("ButtonIcon",{staticClass:"design-provider__button-close__icon",attrs:{icon:"ChevronRightIcon"},on:{click:t.nextProvider}}),e("ButtonIcon",{staticClass:"design-provider__button-close__icon",attrs:{icon:"CloseIcon"},on:{click:function(e){t.isOverlayOpen=!1}}})],1),e("div",{staticClass:"design-provider__overlay-bg",on:{click:function(e){t.isOverlayOpen=!1}}}),e("div",{staticClass:"design-provider__overlay-content flex flex-col gap-8"},[e("div",{staticClass:"flex justify-between items-center"},[e("h2",{staticClass:"text-2xl w-full"},[t._v(t._s(t.providerName))]),e("div",{staticClass:"design-provider__preview-buttons w-full justify-center flex gap-4"},[e("button",{staticClass:"design-provider__preview-buttons-button",class:{"is-active":"desktop"===t.preview},on:{click:function(e){return t.setPreview("desktop")}}},[e("Icon",{attrs:{icon:"DesktopIcon",size:"20"}})],1),e("button",{staticClass:"design-provider__preview-buttons-button",class:{"is-active":"mobile"===t.preview},on:{click:function(e){return t.setPreview("mobile")}}},[e("Icon",{attrs:{icon:"MobileIcon",size:"20"}})],1)]),e("div",{staticClass:"flex gap-2 w-full items-end justify-end"},[e("Button",{attrs:{icon:"ExternalLinkIcon"},on:{click:t.openPreviewInNewTab}},[t._v("Preview")]),e("Button",{attrs:{primary:"true"},on:{click:t.update}},[t._v("Use this template")])],1)]),e("div",{staticClass:"design-provider__preview",class:`is-${t.preview}`},[e("BrowserUIPreview",{attrs:{breakpoint:t.preview}}),t.isOverlayOpen?e("iframe",{staticClass:"design-provider__preview-iframe",attrs:{src:t.providerUrl,title:t.providerName,frameborder:"0",allowfullscreen:""}}):t._e(),t._v(" > ")],1)])]),e("div",{staticClass:"design-provider__grid-item",attrs:{role:"button"},on:{click:function(e){t.isOverlayOpen=!0}}},[e("div",{staticClass:"design-provider__thumbnail",style:{backgroundImage:`url(${t.providerThumbnail})`}}),e("div",{staticClass:"design-provider__meta"},[e("span",{staticClass:"design-provider__label"},[t._v(t._s(t.providerName))])])])])},po=[];let uo=class extends a.ZP{constructor(){super(...arguments),this.isOverlayOpen=!1,this.preview="desktop",this.internalProvider=null}get providerName(){return this.internalProvider?.name||this.provider.name}get providerUrl(){return this.internalProvider?.url||this.provider.url}get providerThumbnail(){return this.internalProvider?.meta?.thumbnailUrl||this.provider.meta?.thumbnailUrl}update(){(0,ee.K)("Onboarding",{ction:"onboarding_app_template_imported",provider:this.internalProvider?.name||this.provider.name,type:this.internalProvider?.type||this.provider.type}),this.$emit("update",this.internalProvider),this.isOverlayOpen=!1}setPreview(t){this.preview=t}get providers(){return o.onboardingStore.designLibrary.data.designProviders}created(){this.internalProvider=this.provider,(0,ee.K)("Onboarding",{action:"onboarding_app_template_preview_open",provider:this.internalProvider?.name||this.provider.name,type:this.internalProvider?.type||this.provider.type})}nextProvider(){const t=this.providers.findIndex((t=>t.name===(this.internalProvider?.name||this.provider.name)&&t.type===this.provider.type)),e=(t+1)%this.providers.length;this.internalProvider=this.providers[e]}previousProvider(){const t=this.providers.findIndex((t=>t.name===(this.internalProvider?.name||this.provider.name)&&t.type===this.provider.type)),e=(t-1+this.providers.length)%this.providers.length;this.internalProvider=this.providers[e]}openPreviewInNewTab(){window.open(this.providerUrl,"_blank"),(0,ee.K)("Onboarding",{action:"onboarding_app_template_preview_new_tab",provider:this.internalProvider?.name||this.provider.name,type:this.internalProvider?.type||this.provider.type})}};(0,c.gn)([(0,p.fI)({required:!0})],uo.prototype,"provider",void 0),uo=(0,c.gn)([(0,p.wA)({components:{Button:U,Icon:F.Z,ButtonIcon:bs,BrowserUIPreview:Ea}})],uo);const go=uo,ho=go;var mo=(0,f.Z)(ho,co,po,!1,null,null,null);const bo=mo.exports;let _o=class extends a.ZP{constructor(){super(...arguments),this.pathBarebones=Fi.BAREBONES,this.isLoading=!0,this.currentFilter=["complete_site","sections"]}update(t){(0,ee.K)("Onboarding",{action:"onboarding_app_template_imported",provider:t}),o.onboardingStore.setDesignLibrarySelectedProvider(t),this.$router.push(Fi.TEMPLATE_IMPORT)}setFilter(t){this.currentFilter=t}async importProviders(){return(0,xe.zG)(await(0,H.D)({action:"breakdance_get_design_library_data",decoder:Se.Jd}),(0,Pe.g_)((()=>{this.isLoading=!1}),(t=>{o.onboardingStore.updateDesignLibraryData(t),this.isLoading=!1})))}get providers(){return o.onboardingStore.designLibrary.data?.designProviders.filter((t=>0===this.currentFilter.length||this.currentFilter.some((e=>t?.type===e))))||[]}goBackToCustomization(){this.$router.push(Fi.CUSTOMIZATION_SELECT)}mounted(){this.importProviders()}};_o=(0,c.gn)([(0,p.wA)({components:{Logo:y,Button:U,OnboardingDesignProvider:bo,Icon:F.Z,OnboardingFeedback:ne}})],_o);const fo=_o,vo=fo;var yo=(0,f.Z)(vo,ro,lo,!1,null,null,null);const xo=yo.exports;var Po=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"bg-neutral-100 w-full p-4"},[e("LogoBeta")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("OnboardingIframe",{attrs:{loading:!0}})]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routes}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-layout__content flex flex-col my-auto p-4"},[e("OnboardingImportDesignProvider",{attrs:{value:t.selectedDesignLibraryProvider},on:{update:t.redirect}})],1)]},proxy:!0},{key:"right-panel-footer",fn:function(){},proxy:!0}])})},So=[],Co=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"w-full flex-col flex gap-2"},[e("div",{staticClass:"flex items-center w-full gap-2 text-neutral-900"},[e("OnboardingImportStatusIcon",{attrs:{status:t.importingDataStatus["trashingTemplates"],size:"24"}}),e("span",{staticClass:"w-full flex gap-2 font-medium text-neutral-900"},[t._v(" "+t._s("loading"===t.importingDataStatus["trashingTemplates"]?"Trashing":"success"===t.importingDataStatus["trashingTemplates"]?"Successfully trashed":"error"===t.importingDataStatus["trashingTemplates"]?"Error trashing":"Failed to trash")+" existing content. ")])],1),t._l(t.infoToImport,(function(s){return e("div",{staticClass:"flex items-center w-full gap-2"},[e("OnboardingImportStatusIcon",{attrs:{status:t.importingDataStatus[s.statusKey]}}),e("div",{staticClass:"text-base font-medium text-neutral-900"},[e("span",[t._v(" "+t._s("loading"===t.importingDataStatus[s.statusKey]?"Importing":"success"===t.importingDataStatus[s.statusKey]?"Successfully imported":"successNothingToDo"===t.importingDataStatus[s.statusKey]?"Nothing to import for":"error"===t.importingDataStatus[s.statusKey]?"Error importing":(t.importingDataStatus[s.statusKey],"Failed to import"))+" ")]),e("span",[t._v(t._s(s.label))])])],1)}))],2)},wo=[],ko=s(39664),Io=s(32521),To=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",["loading"===t.status?e("Icon",{staticClass:"is-spinning",attrs:{icon:"NotchSolidIcon",title:"Importing the data",size:"16"}}):"success"===t.status||"successNothingToDo"===t.status?e("Icon",{attrs:{icon:"CheckSolidIcon",title:"Success loading the data",size:"18"}}):"error"!==t.status&&t.status?"partialError"===t.status?e("Icon",{attrs:{icon:"ExclamationMarkCircleIcon",title:"Some requests failed. Try again",size:"18"}}):t._e():e("Icon",{staticClass:"text-red-600",attrs:{icon:"CloseSolidIcon",title:"There was an error loading the data",size:"18"}})],1)},Oo=[];let Do=class extends a.ZP{};(0,c.gn)([(0,p.fI)()],Do.prototype,"status",void 0),Do=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z}})],Do);const Bo=Do,Lo=Bo;var Zo=(0,f.Z)(Lo,To,Oo,!1,null,null,null);const Ao=Zo.exports;var Eo=s(96065),Ro=s(75031),No=s(71688);let Fo=class extends a.ZP{constructor(){super(...arguments),this.importingDataStatus={trashingTemplates:null,globalSettings:null,designPresets:null,postsAndPages:null,templates:null,headers:null,footers:null,popups:null,blocks:null,variables:null,oxySelectors:null},this.temporaryDataStatus={trashingTemplates:null,globalSettings:null,designPresets:null,postsAndPages:null,templates:null,headers:null,footers:null,popups:null,blocks:null,variables:null,oxySelectors:null},this.remoteHomepageId=null,this.importedHomepageIdOrFirstPostId=null,this.idsOfPostsAndPagesToImport=null}async mounted(){this.value?(this.applyStatusToAllTemplateStatuses("loading"),this.importingDataStatus.postsAndPages="loading",this.importingDataStatus.globalSettings="loading",this.importingDataStatus.designPresets="loading",this.importingDataStatus.trashingTemplates="loading",this.setFullSiteLastImportedFromUrl(),this.importGlobalSettings(),this.importDesignPresets(),await this.getRemoteHomepageId(),this.importPostsAndPages(),await this.trashAllTemplatesHeadersFooters(),this.importAllTemplates()):ko.Z.log.errorMessage("Couldn't import site, something went wrong")}get infoToImport(){return[{label:"Settings",statusKey:"globalSettings"},{label:"Design Presets",statusKey:"designPresets"},{label:"Pages",statusKey:"postsAndPages"},{label:"Templates",statusKey:"templates"},{label:"Headers",statusKey:"headers"},{label:"Footers",statusKey:"footers"},{label:"Popups",statusKey:"popups"},{label:"Blocks",statusKey:"blocks"},{label:"Variables",statusKey:"variables"}]}get canCloseImportingDialog(){const t=t=>"loading"!==t,e=t(this.importingDataStatus.postsAndPages)&&t(this.importingDataStatus.globalSettings)&&t(this.importingDataStatus.designPresets)&&t(this.importingDataStatus.templates)&&t(this.importingDataStatus.blocks)&&t(this.importingDataStatus.popups)&&t(this.importingDataStatus.footers)&&t(this.importingDataStatus.headers)&&t(this.importingDataStatus.variables);return e&&this.$emit("update"),e}onImportingDataStatusChange(){const t=t=>"loading"!==t;console.log("importingDataStatus",this.importingDataStatus);const e=t(this.importingDataStatus.postsAndPages)&&t(this.importingDataStatus.globalSettings)&&t(this.importingDataStatus.designPresets)&&t(this.importingDataStatus.templates)&&t(this.importingDataStatus.blocks)&&t(this.importingDataStatus.popups)&&t(this.importingDataStatus.footers)&&t(this.importingDataStatus.headers)&&t(this.importingDataStatus.variables);e&&this.$emit("update")}get getImportedSiteHomepageUrl(){if(!this.value||!this.importedHomepageIdOrFirstPostId||!window.Breakdance.homeUrl)return null;const t=new URL(window.Breakdance.homeUrl);return t.searchParams.append("breakdance","builder"),t.searchParams.append("id",`${this.importedHomepageIdOrFirstPostId}`),t.href}close(){this.$emit("close")}setFullSiteLastImportedFromUrl(){this.value&&(0,H.D)({action:"breakdance_save_arbitrary",dataToPost:{key:"design_library_full_site_last_imported_from_url",data:this.value.url},decoder:Io._4})}async importGlobalSettings(){this.value&&(0,xe.zG)(await(0,H.D)({action:"breakdance_import_external_global_settings",decoder:Ro.az,dataToPost:{url:this.value.url},friendlyName:"Importing Global Settings"}),(0,Pe.g_)((()=>{this.importingDataStatus.globalSettings="error"}),(()=>{(0,No.h)(),this.importingDataStatus.globalSettings="success"})))}async importDesignPresets(){this.value&&(0,xe.zG)(await(0,H.D)({action:"breakdance_import_external_design_presets",decoder:Io.dt({success:Io.Z_}),dataToPost:{url:this.value.url},friendlyName:"Importing Design Presets"}),(0,Pe.g_)((()=>{this.importingDataStatus.designPresets="error"}),(()=>{this.importingDataStatus.designPresets="success"})))}async importPostsAndPages(){this.value&&(this.idsOfPostsAndPagesToImport=await this.getPostsIdsToImport(this.value.url),null!==this.idsOfPostsAndPagesToImport?this.idsOfPostsAndPagesToImport.length?this.importPagesOneByOne(this.idsOfPostsAndPagesToImport):this.importingDataStatus.postsAndPages="successNothingToDo":this.importingDataStatus.postsAndPages="error")}async getPostsIdsToImport(t){return(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_get_ids_of_posts_and_pages_to_import",decoder:Io.G0([Io.IX(Io.pk),Io.lB]),dataToPost:{url:t},friendlyName:"Getting Posts IDs to import"}),(0,Pe.g_)((()=>null),(t=>t)))}async importPagesOneByOne(t){if(!this.value)return;let e=!1,s=!1,a=null;for(const i of t)(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_import_post_or_page",decoder:Io.dt({success:Io.Z_,postId:Io.G0([Io.pk,Io.S1]),postTitle:Io.G0([Io.Z_,Io.S1])}),dataToPost:{url:this.value.url,id:i,post_type:"page"},friendlyName:"Importing all pages"}),(0,Pe.g_)((()=>{e=!0}),(t=>{t.postId&&(!a&&t.postId&&(a=t.postId),i===this.remoteHomepageId&&t.postId?(this.importedHomepageIdOrFirstPostId=t.postId,o.onboardingStore.updateGeneratedPageHomepage({postId:t.postId,postTitle:"Homepage"})):o.onboardingStore.addToGeneratedPagesPage({postId:t.postId,postTitle:t.postTitle||"Page"}),s=!0)})));this.importedHomepageIdOrFirstPostId||(this.importedHomepageIdOrFirstPostId=a),this.updateTemporaryState("postsAndPages",e,s),this.importingDataStatus.postsAndPages=this.temporaryDataStatus.postsAndPages}updateTemporaryState(t,e,s){e&&s?this.temporaryDataStatus[t]="partialError":e?this.temporaryDataStatus[t]="error":s&&(this.temporaryDataStatus[t]="success")}async trashAllTemplatesHeadersFooters(){const t=await Promise.all([this.trashTemplateByPostType("headers"),this.trashTemplateByPostType("footers"),this.trashTemplateByPostType("templates"),this.trashTemplateByPostType("global_blocks"),this.trashTemplateByPostType("popups")]);return this.importingDataStatus["trashingTemplates"]=this.temporaryDataStatus["trashingTemplates"],t}async trashTemplateByPostType(t){return(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_trash_all_templates_by_type",decoder:Io.dt({success:Io.Z_}),dataToPost:{templateType:t},friendlyName:`Trashing all ${t}`}),(0,Pe.g_)((()=>{this.updateTemporaryState("trashingTemplates",!0,"success"===this.temporaryDataStatus["trashingTemplates"])}),(()=>{this.updateTemporaryState("trashingTemplates","error"===this.temporaryDataStatus["trashingTemplates"],!0)})))}async importAllTemplates(){if(!this.value)return;const t=await this.getTemplateIdsToImport(this.value.url);t&&(0!==Object.values(t).flat().length?(this.importTemplates(t.templateIds),this.importHeaders(t.headerIds),this.importFooter(t.footerIds),this.importPopups(t.popupIds),this.importBlocks(t.blockIds)):this.applyStatusToAllTemplateStatuses("successNothingToDo"))}applyStatusToAllTemplateStatuses(t){this.importingDataStatus.templates=t,this.importingDataStatus.headers=t,this.importingDataStatus.footers=t,this.importingDataStatus.blocks=t,this.importingDataStatus.popups=t}async getTemplateIdsToImport(t){return(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_get_ids_of_templates_to_import",decoder:Eo.Z,dataToPost:{url:t},friendlyName:"Getting template IDs to import"}),(0,Pe.g_)((()=>(this.applyStatusToAllTemplateStatuses("error"),null)),(t=>t)))}async importTemplates(t){if(t.length){for(const e of t)await this.importTemplateById(e,"templates");this.importingDataStatus.templates=this.temporaryDataStatus.templates,this.temporaryDataStatus.templates=null}else this.importingDataStatus.templates="successNothingToDo"}async importHeaders(t){if(t.length){for(const e of t)await this.importTemplateById(e,"headers");this.importingDataStatus.headers=this.temporaryDataStatus.headers,this.temporaryDataStatus.headers=null}else this.importingDataStatus.headers="successNothingToDo"}async importFooter(t){if(t.length){for(const e of t)await this.importTemplateById(e,"footers");this.importingDataStatus.footers=this.temporaryDataStatus.footers,this.temporaryDataStatus.footers=null}else this.importingDataStatus.footers="successNothingToDo"}async importPopups(t){if(t.length){for(const e of t)await this.importTemplateById(e,"popups");this.importingDataStatus.popups=this.temporaryDataStatus.popups,this.temporaryDataStatus.popups=null}else this.importingDataStatus.popups="successNothingToDo"}async importBlocks(t){if(t.length){for(const e of t)await this.importTemplateById(e,"blocks");this.importingDataStatus.blocks=this.temporaryDataStatus.blocks,this.temporaryDataStatus.blocks=null}else this.importingDataStatus.blocks="successNothingToDo"}async importTemplateById(t,e){this.value&&(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_import_template_by_id",decoder:Io.dt({success:Io.Z_}),dataToPost:{url:this.value.url,id:t},friendlyName:`Importing template with ID "${t}"`}),(0,Pe.g_)((()=>{this.updateTemporaryState(e,!0,"success"===this.temporaryDataStatus[e])}),(()=>{this.updateTemporaryState(e,"error"===this.temporaryDataStatus[e],!0)})))}async getRemoteHomepageId(){if(this.value)return(0,xe.zG)(await(0,H.D)({action:"breakdance_design_lib_get_homepage_id_to_import",decoder:Io.dt({id:Io.pk}),dataToPost:{url:this.value.url},friendlyName:"Importing homepage id"}),(0,Pe.g_)((()=>{}),(t=>{this.remoteHomepageId=t.id,o.onboardingStore.updateGeneratedPageHomepage({postId:t.id,postTitle:"Homepage"})})))}};(0,c.gn)([(0,p.fI)()],Fo.prototype,"value",void 0),(0,c.gn)([(0,p.RL)("importingDataStatus",{deep:!0})],Fo.prototype,"onImportingDataStatusChange",null),Fo=(0,c.gn)([(0,p.wA)({components:{OnboardingImportStatusIcon:Ao}})],Fo);const $o=Fo,zo=$o;var Go=(0,f.Z)(zo,Co,wo,!1,null,null,null);const Mo=Go.exports;let Uo=class extends a.ZP{constructor(){super(...arguments),this.homepageId=null}get selectedDesignLibraryProvider(){return o.onboardingStore.designLibrary.selectedProvider}get routes(){const t={[Fi.BAREBONES_IMPORT]:Vi,[Fi.TEMPLATE_IMPORT]:Wi};return t[this.$route.path]||[]}async redirect(){const t={[Fi.BAREBONES_IMPORT]:Fi.BAREBONES_STYLEGUIDE,[Fi.TEMPLATE_IMPORT]:Fi.TEMPLATE_HOMEPAGE},e=t[this.$route.path];e&&(await X(),this.$router.push(e))}};Uo=(0,c.gn)([(0,p.wA)({components:{LogoBeta:Ut,Button:U,OnboardingLayout:k,OnboardingIframe:za,BottomNav:rt,Stepper:Z,OnboardingImportDesignProvider:Mo}})],Uo);const Vo=Uo,Wo=Vo;var Ho=(0,f.Z)(Wo,Po,So,!1,null,null,null);const Ko=Ho.exports;var jo=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"bg-neutral-100 w-full flex justify-between p-4"},[e("LogoBeta"),e("ToggleBreakpoints")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("OnboardingIframe",{attrs:{pageId:t.homepage?.postId}})]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routes}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-layout__content-stretch"},[e("OnboardingInsertSectionSelect")],1)]},proxy:!0},{key:"right-panel-footer",fn:function(){return[e("BottomNav",{attrs:{routes:t.routes}})]},proxy:!0}])})},qo=[],Yo=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"flex flex-col gap-4"},[t.activeElementId?e("div",t._l(t.sections,(function(s){return e("OnboardingInsertSectionDropdown",{key:s.id,attrs:{section:s,designProviderPosts:t.designProviderPosts,isActive:t.activeElementId===s.id}})})),1):e("div",{staticClass:"flex flex-col"},[e("h2",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" Select a section to customize ")]),e("p",{staticClass:"text-base text-balance text-neutral-500"},[t._v(" Click on a section and customize it further. ")])])])},Jo=[],Xo=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"dropdown-sections",class:{"is-hidden":!t.isActive}},[e("div",{staticClass:"dropdown-sections__title text-neutral-500"},[t._v(" "+t._s(t.sectionTitle)+" ")]),e("DropdownSection",{attrs:{title:"Rewrite",opened:!t.isBarebones},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"flex flex-col gap-4"},[e("TextInput",{attrs:{id:"sectionPrompt",type:"textarea",placeholder:"Describe the section in a sentence or two",label:"Prompt"},model:{value:t.sectionPromptValue,callback:function(e){t.sectionPromptValue=e},expression:"sectionPromptValue"}}),e("Button",{attrs:{loading:t.isLoading,disabled:t.isLoading},on:{click:t.updateSectionPromptAndRewrite}},[t.isLoading?e("Icon",{staticClass:"is-spinning",attrs:{icon:"NotchSolidIcon",title:"Updating section prompt",size:"14"}}):e("Icon",{attrs:{icon:"SparklesSolidIcon",title:"Section prompt updated",size:"14"}}),t._v(" Rewrite ")],1)],1)]},proxy:!0}])}),t.isBarebones?e("DropdownSection",{attrs:{title:"Colors"},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"flex gap-4"},t._l(t.groupedGlobalColors,(function(s,a){return e("NodeOnboardingPaletteButton",{key:a,attrs:{colorGroup:s,elementId:t.section.id,sendRequest:!0}})})),1)]},proxy:!0}],null,!1,4162669394)}):t._e(),t.isBarebones?e("DropdownSection",{attrs:{title:"Component"},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"flex gap-4"},[e("div",{staticClass:"section-insert__search-wrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.filter,expression:"filter"}],staticClass:"section-insert__search",attrs:{type:"text",placeholder:"Search components..."},domProps:{value:t.filter},on:{input:function(e){e.target.composing||(t.filter=e.target.value)}}}),e("Icon",{staticClass:"text-neutral-400",attrs:{icon:"SearchIcon",size:"16"}})],1),e("Button",{on:{click:t.shuffle}},[e("Icon",{attrs:{icon:"ArrowsRotateSolidIcon",title:"Section prompt updated",size:"14"}}),t._v(" Shuffle ")],1)],1),e("ul",{staticClass:"section-insert__list mt-4"},t._l(t.filteredPosts,(function(s){return e("li",{key:s.title},t._l(s.tree.root.children,(function(a){return e("button",{key:a.id,staticClass:"w-full border",on:{click:function(e){return t.handleSectionPaste(a)}}},[t._v(" "+t._s(`${s.title} ${a.id}`)+" ")])})),0)})),0)]},proxy:!0}],null,!1,3905261786)}):t._e()],1)},Qo=[],ti=s(36240);let ei=class extends a.ZP{constructor(){super(...arguments),this.isLoading=!1,this.isDropdownOpen=!1,this.filter="",this.isDropdownActive=!1,this.sectionPromptValue=""}created(){this.sectionPromptValue=this.hasPromptInfo?this.section.data.properties.meta.promptInfo.sectionDescription:""}get isBarebones(){return et.Kx.designLibrary.selectedProvider&&"Barebones"===et.Kx.designLibrary.selectedProvider.name}get groupedGlobalColors(){return(0,ze.xS)(et.cr.globalColors)}get hasPromptInfo(){return this.section.data.properties&&this.section.data.properties.meta&&this.section.data.properties.meta.promptInfo&&this.section.data.properties.meta.promptInfo.onboarding}get sectionTitle(){return this.hasPromptInfo&&!1!==this.section.data.properties.meta.promptInfo.onboarding.sectionType?this.section.data.properties.meta.promptInfo.onboarding.sectionType:"Section"}async handleSectionPaste(t){t.data.properties.meta=this.section.data.properties.meta||{},(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"sidebar_import_section_paste"}),await st.Z.sendRequest({payload:{action:"importSectionFromOnboarding",data:{sectionTree:t,activeElementId:this.section.id}}})}toggle(){this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&st.Z.sendRequest({payload:{action:"onboardingActivateElement",data:{elementId:this.section.id}}})}async updateSectionPromptAndRewrite(){this.isLoading=!0,(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"sidebar_update_section_prompt_and_rewrite"}),await st.Z.sendRequest({payload:{action:"updateSectionPrompt",data:{elementId:this.section.id,sectionDescription:this.sectionPromptValue}}}),this.isLoading=!1}shuffle(){(0,ee.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"sidebar_shuffle_section"}),st.Z.sendRequest({payload:{action:"shuffleSection",data:{elementId:this.section.id}}})}get filteredPosts(){if(0===this.filter.length){if(this.hasPromptInfo&&this.section.data.properties.meta.promptInfo.onboarding.sectionType){const t=this.designProviderPosts.filter((t=>t.title===this.section.data.properties.meta.promptInfo.onboarding.sectionType));return t.length>0?t:this.designProviderPosts}return this.designProviderPosts}const t=this.filter.toLowerCase();return this.designProviderPosts.filter((e=>e.title.toLowerCase().includes(t)))}};(0,c.gn)([(0,p.fI)()],ei.prototype,"section",void 0),(0,c.gn)([(0,p.fI)()],ei.prototype,"designProviderPosts",void 0),(0,c.gn)([(0,p.fI)()],ei.prototype,"isActive",void 0),ei=(0,c.gn)([(0,p.wA)({components:{Icon:F.Z,TextInput:bt,Button:U,NodeOnboardingPaletteButton:ti.Z,DropdownSection:ts}})],ei);const si=ei,ai=si;var oi=(0,f.Z)(ai,Xo,Qo,!1,null,null,null);const ii=oi.exports;let ni=class extends a.ZP{constructor(){super(...arguments),this.designProviderPosts=[],this.newSections=[],this.isLoading=!1}get sections(){return et.Hb.document.tree.root.children}get activeElementId(){return et.kD.activeElementId}async fetchBarebonesSections(){this.isLoading=!0;const t=await(0,Ta.O$)();if(!t)return!1;const e=t.posts.filter((t=>!!t.tree&&(0,q.isRight)(Ro.f2.decode(t.tree))));return this.designProviderPosts=e,this.isLoading=!1,t}mounted(){this.fetchBarebonesSections()}};ni=(0,c.gn)([(0,p.wA)({components:{OnboardingInsertSectionDropdown:ii}})],ni);const ri=ni,li=ri;var ci=(0,f.Z)(li,Yo,Jo,!1,null,null,null);const pi=ci.exports;let ui=class extends a.ZP{get homepage(){return et.Kx.generatedPages.homepage}};(0,c.gn)([(0,p.fI)()],ui.prototype,"routes",void 0),ui=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,BottomNav:rt,OnboardingIframe:za,LogoBeta:Ut,ToggleBreakpoints:Ka,OnboardingFeedback:ne,OnboardingInsertSectionSelect:pi}})],ui);const di=ui,gi=di;var hi=(0,f.Z)(gi,jo,qo,!1,null,null,null);const mi=hi.exports;var bi=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"bg-neutral-100 w-full p-4 flex justify-between"},[e("LogoBeta"),e("select",{directives:[{name:"model",rawName:"v-model",value:t.currentPostId,expression:"currentPostId"}],staticClass:"rounded bg-white dropdown-preview",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.currentPostId=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"",disabled:""}},[t._v("Select a page to preview")]),t._l(t.pages,(function(s){return e("option",{key:s.postId,domProps:{value:s.postId}},[t._v(" "+t._s(s.postTitle)+" ")])}))],2),e("ToggleBreakpoints")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("OnboardingIframe",{attrs:{pageId:t.currentPostId}}),e("OnboardingFeedback",{attrs:{floating:"true"}})]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routes}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-layout__content-stretch"},[e("OnboardingInsertSectionSelect",{attrs:{tree:t.currentPostId}})],1)]},proxy:!0},{key:"right-panel-footer",fn:function(){return[e("BottomNav",{attrs:{routes:t.routes}})]},proxy:!0}])})},_i=[];let fi=class extends a.ZP{constructor(){super(...arguments),this.currentPostId=null}get pages(){return o.onboardingStore.generatedPages.pages}onPagesLoaded(t){t.length>0&&!this.currentPostId&&(this.currentPostId=t[0].postId)}setCurrentPostId(t){this.currentPostId=t}};(0,c.gn)([(0,p.fI)()],fi.prototype,"routes",void 0),(0,c.gn)([(0,p.RL)("pages",{immediate:!0})],fi.prototype,"onPagesLoaded",null),fi=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,BottomNav:rt,LogoBeta:Ut,OnboardingIframe:za,ToggleBreakpoints:Ka,OnboardingFeedback:ne,OnboardingInsertSectionSelect:pi}})],fi);const vi=fi,yi=vi;var xi=(0,f.Z)(yi,bi,_i,!1,null,null,null);const Pi=xi.exports;var Si=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingLayout",{scopedSlots:t._u([{key:"left-panel-header",fn:function(){return[e("div",{staticClass:"bg-neutral-100 w-full flex justify-between p-4"},[e("LogoBeta")],1)]},proxy:!0},{key:"left-panel-content",fn:function(){return[e("OnboardingSitemap",{attrs:{sitemap:t.sitemap,loading:t.generatingSitemap}}),e("OnboardingFeedback",{attrs:{floating:"true"}})]},proxy:!0},{key:"right-panel-progress",fn:function(){return[e("Stepper",{attrs:{routes:t.routes}})]},proxy:!0},{key:"right-panel-content",fn:function(){return[e("div",{staticClass:"onboarding-layout__content flex flex-col gap-8 my-auto"},[e("div",{staticClass:"flex flex-col"},[e("h2",{staticClass:"text-base font-medium text-neutral-900"},[t._v(" "+t._s(t.generatingSitemap?t.__("Generating your sitemap..."):t.__("Your sitemap is ready!"))+" ")]),e("p",{staticClass:"text-base text-balance text-neutral-500"},[t._v(" "+t._s(t.generatingSitemap?t.__("We're creating a sitemap."):t.__("You can now view and manage your sitemap."))+" ")]),t.generatingSitemap?t._e():[e("p",{staticClass:"mt-4 text-base text-balance"},[t._v(" "+t._s(t.__("Not happy with the generated sitemap?"))+" "),e("button",{staticClass:"font-medium text-neutral-900 text-underline",attrs:{type:"button"},on:{click:t.generateSitemap}},[t._v(" "+t._s(t.__("Start over"))+" ")])])]],2)])]},proxy:!0},{key:"right-panel-footer",fn:function(){return[e("BottomNav",{attrs:{routes:t.routes,isValidated:!t.generatingSitemap||!t.sitemap,onNextCallback:t.createPagesFromSitemap}})]},proxy:!0}])})},Ci=[],wi=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"onboarding-sitemap"},[t.loading?e("div",{staticClass:"flex flex-col items-center justify-center gap-6 text-center"},[e("div",{staticClass:"flex flex-col gap-1 items-center max-w-60ch"},[e("Logo"),e("h1",{staticClass:"text-2xl font-bold text-neutral-900"},[t._v(" Generating your sitemap... ")]),e("p",{staticClass:"text-base text-neutral-500"},[t._v(" We’re creating a sitemap based on your choices. Hang tight. ")])],1),e("OnboardingLoader")],1):e("div",{staticClass:"onboarding-sitemap__wrapper"},t._l(t.sitemap,(function(s,a){return e("div",{key:s.title,staticClass:"flex flex-col items-center onboarding-sitemap__page"},[e("div",{staticClass:"onboarding-sitemap__page-header"},[e("div",{staticClass:"flex items-center gap-1"},[e("div",{staticClass:"flex items-center gap-1"},["Homepage"==s.title?e("Icon",{staticClass:"text-neutral-900",attrs:{icon:"HomeRegularIcon",size:"13"}}):e("Icon",{staticClass:"text-neutral-900",attrs:{icon:"PageRegularIcon",size:"13"}}),e("h2",{staticClass:"onboarding-sitemap__page-title"},[t._v(t._s(s.title))])],1),e("div",{staticClass:"onboarding-sitemap__page-actions flex items-center"},["Homepage"!==s.title?e("button",{staticClass:"text-neutral-700 hover:text-neutral-900",on:{click:function(e){return t.removePage(a)}}},[e("Icon",{attrs:{icon:"TrashSolidIcon",size:"12"}})],1):t._e()])])]),e("div",{staticClass:"onboarding-sitemap__sections flex flex-col items-center"},t._l(s.sections,(function(s,a){return e("div",{key:`${s.type}-${a}`,staticClass:"onboarding-sitemap__section flex flex-col items-center"},[e("div",{staticClass:"onboarding-sitemap__section-header"},[e("p",{staticClass:"font-semibold"},[t._v(t._s(s.type))]),e("p",[t._v(t._s(s.description))])])])})),0)])})),0)])},ki=[];let Ii=class extends a.ZP{removePage(t){et.Kx.removePageFromSitemapAction(t)}};(0,c.gn)([(0,p.fI)()],Ii.prototype,"sitemap",void 0),(0,c.gn)([(0,p.fI)({default:!1})],Ii.prototype,"loading",void 0),Ii=(0,c.gn)([(0,p.wA)({components:{Logo:y,OnboardingLoader:De,Icon:F.Z}})],Ii);const Ti=Ii,Oi=Ti;var Di=(0,f.Z)(Oi,wi,ki,!1,null,null,null);const Bi=Di.exports;var Li=s(40045);let Zi=class extends a.ZP{constructor(){super(...arguments),this.generatingSitemap=!1}get sitemap(){return o.onboardingStore.sitemap}async generateSitemap(){this.generatingSitemap=!0,(0,Ta.WU)().then((async t=>{if(t){const e=(0,Ta.pL)(t);(0,Li.t)(e)}else this.generatingSitemap=!1,this.$root.$emit("toast",{message:"Failed to generate sitemap. Please try again later.",duration:3e3});const e=await(0,K.NI)();e&&(o.onboardingStore.updateSitemap(e),this.$root.$emit("toast",{message:"Sitemap generated successfully!",duration:3e3})),this.generatingSitemap=!1}))}async mounted(){this.sitemap||await this.generateSitemap()}async createPagesFromSitemap(){const t=this.sitemap??[],e=t.map((t=>({title:t.title,sections:t.sections})));return Promise.resolve().then((()=>Promise.all(e.map((t=>(0,Ta.Of)(t)))))).then((t=>{0!==t.length&&(o.onboardingStore.updateGeneratedPages({homepage:t[0]??null,pages:t.slice(1),toRemove:{homepageSectionIds:null,pageIds:null}}),this.$root?.$emit("toast",{message:"Pages created successfully!",duration:3e3}))})).catch((t=>{console.error("Error creating pages:",t),this.$root?.$emit("toast",{message:"Failed to create pages. Please try again later.",duration:3e3})}))}};(0,c.gn)([(0,p.fI)()],Zi.prototype,"routes",void 0),Zi=(0,c.gn)([(0,p.wA)({components:{OnboardingLayout:k,Stepper:Z,Button:U,LogoBeta:Ut,BottomNav:rt,OnboardingFeedback:ne,OnboardingSitemap:Bi,Icon:F.Z}})],Zi);const Ai=Zi,Ei=Ai;var Ri=(0,f.Z)(Ei,Si,Ci,!1,null,null,null);const Ni=Ri.exports;a.ZP.use(n.ZP);const Fi={START:"/start",CATEGORY:"/category",GOALS:"/goals",WRITING_STYLE:"/writing-style",CUSTOMIZATION_SELECT:"/customization",CUSTOMIZATION_NEXT:"/#",BAREBONES:"/barebones",BAREBONES_IMPORT:"/barebones/import",BAREBONES_STYLEGUIDE:"/barebones/styleguide",BAREBONES_SITEMAP:"/barebones/sitemap",BAREBONES_HOMEPAGE:"/barebones/homepage",BAREBONES_PAGES:"/barebones/pages",BAREBONES_COMPLETED:"/barebones/completed",TEMPLATE:"/templates",TEMPLATE_IMPORT:"/templates/import",TEMPLATE_HOMEPAGE:"/template/homepage",TEMPLATE_PAGES:"/template/pages",TEMPLATE_COMPLETED:"/template/completed",COMPLETED:"/completed"},$i={path:"/",redirect:"/start"},zi={path:"/barebones",redirect:"/barebones/import"},Gi=[{path:Fi.START,components:{default:ue},name:"Start",meta:{title:"Start"}},{path:Fi.CATEGORY,components:{default:ue},name:"Category",meta:{title:"Category"}},{path:Fi.GOALS,component:ue,name:"Goals",meta:{title:"Goals"}},{path:Fi.WRITING_STYLE,component:ue,name:"WritingStyle",meta:{title:"Writing Style",nextPath:Fi.CUSTOMIZATION_SELECT}}],Mi={path:Fi.COMPLETED,component:no,name:"Completed",meta:{title:"Finish"}},Ui=[{path:Fi.CUSTOMIZATION_SELECT,component:Ee,name:"CustomizationSelect",meta:{title:"Select"}},{path:Fi.CUSTOMIZATION_NEXT,component:Ee,name:"CustomizationNext",meta:{title:"Customization"}}],Vi=[{path:Fi.BAREBONES_SITEMAP,component:Ni,name:"BarebonesSitemap",meta:{title:"Sitemap"},props:()=>({routes:Vi})},{path:Fi.BAREBONES_STYLEGUIDE,component:Xa,name:"BarebonesStyleguide",meta:{title:"Style"},props:()=>({routes:Vi})},{path:Fi.BAREBONES_HOMEPAGE,component:mi,name:"BarebonesHomepage",meta:{title:"Homepage"},props:()=>({routes:Vi})},{path:Fi.BAREBONES_PAGES,component:Pi,name:"BarebonesPages",meta:{title:"Pages"},props:()=>({routes:Vi})},{path:Fi.BAREBONES_COMPLETED,redirect:Fi.COMPLETED,meta:{title:"Finish"}}],Wi=[{path:Fi.TEMPLATE,component:xo,name:"TemplateLibrary",meta:{title:"Library"}},{path:Fi.TEMPLATE_IMPORT,components:{default:Ko},name:"TemplateImport",meta:{title:"Import"}},{path:Fi.TEMPLATE_HOMEPAGE,component:mi,name:"TemplateHomepage",meta:{title:"Homepage"},props:()=>({routes:Wi})},{path:Fi.TEMPLATE_PAGES,component:Pi,name:"TemplatePages",meta:{title:"Pages"},props:()=>({routes:Wi})},{path:Fi.TEMPLATE_COMPLETED,redirect:Fi.COMPLETED,meta:{title:"Finish"}}],Hi=new n.ZP({mode:"hash",routes:[$i,Mi,...Gi,...Ui,zi,...Vi,...Wi]}),Ki=Hi;var ji=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("OnboardingAppLayout",[e("router-view")],1)},qi=[],Yi=s(31096),Ji=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("main",{staticClass:"onboarding-app-layout"},[e(Yi.Z,{staticClass:"font-inter onboarding-app"},[t._t("default"),e("ToastNotification")],2)],1)},Xi=[],Qi=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("transition",{attrs:{name:"fade"}},[t.visible?e("div",{staticClass:"toast-notification"},[e("span",[t._v(t._s(t.message))]),t.callbackText?e("div",{staticClass:"toast-notification__buttons"},[e("button",{on:{click:t.handleButtonClick}},[t._v(" "+t._s(t.callbackText)+" ")]),e("button",{on:{click:function(e){t.visible=!1}}},[t._v(t._s(t.__("Cancel")))])]):t._e()]):t._e()])},tn=[];let en=class extends a.ZP{constructor(){super(...arguments),this.message="",this.callbackText="",this.visible=!1,this.timeout=null,this.callback=null}created(){this.$root.$on("toast",this.showToast)}showToast({message:t="",callbackText:e="",duration:s=3e3,callback:a=null}){this.message=t,this.callbackText=e,this.visible=!0,this.callback=a,this.timeout&&clearTimeout(this.timeout),this.timeout=window.setTimeout((()=>{this.visible=!1}),s)}handleButtonClick(){this.visible=!1,this.callback&&"function"===typeof this.callback&&this.callback()}};en=(0,c.gn)([p.wA],en);const sn=en,an=sn;var on=(0,f.Z)(an,Qi,tn,!1,null,null,null);const nn=on.exports;let rn=class extends a.ZP{};rn=(0,c.gn)([(0,p.wA)({components:{ToastNotification:nn}})],rn);const ln=rn,cn=ln;var pn=(0,f.Z)(cn,Ji,Xi,!1,null,null,null);const un=pn.exports;let dn=class extends a.ZP{mounted(){(0,ee.K)("Onboarding",{action:"onboarding_app_loaded",url:location.href,title:document.title,viewport:{width:window.innerWidth,height:window.innerHeight}})}onRouteChange(t){(0,ee.K)("Onboarding",{action:"onboarding_path_changed",pathName:t.name||""})}};(0,c.gn)([(0,p.RL)("$route",{immediate:!0})],dn.prototype,"onRouteChange",null),dn=(0,c.gn)([(0,p.wA)({components:{OnboardingAppLayout:un}})],dn);const gn=dn,hn=gn;var mn=(0,f.Z)(hn,ji,qi,!1,null,null,null);const bn=mn.exports;var _n=s(74604);a.ZP.config.productionTip=!1,a.ZP.directive("permission",_n.Z),new a.ZP({store:o["default"],router:Ki,vuetify:i.Z,render:t=>t(bn)}).$mount("#onboarding-app")}},e={};function s(a){var o=e[a];if(void 0!==o)return o.exports;var i=e[a]={id:a,loaded:!1,exports:{}};return t[a].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=t,(()=>{var t=[];s.O=(e,a,o,i)=>{if(!a){var n=1/0;for(p=0;p<t.length;p++){for(var[a,o,i]=t[p],r=!0,l=0;l<a.length;l++)(!1&i||n>=i)&&Object.keys(s.O).every((t=>s.O[t](a[l])))?a.splice(l--,1):(r=!1,i<n&&(n=i));if(r){t.splice(p--,1);var c=o();void 0!==c&&(e=c)}}return e}i=i||0;for(var p=t.length;p>0&&t[p-1][2]>i;p--)t[p]=t[p-1];t[p]=[a,o,i]}})(),(()=>{s.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return s.d(e,{a:e}),e}})(),(()=>{s.d=(t,e)=>{for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}})(),(()=>{s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})(),(()=>{s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{s.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t)})(),(()=>{s.j=974})(),(()=>{var t={974:0};s.O.j=e=>0===t[e];var e=(e,a)=>{var o,i,[n,r,l]=a,c=0;if(n.some((e=>0!==t[e]))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);if(l)var p=l(s)}for(e&&e(a);c<n.length;c++)i=n[c],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(p)},a=globalThis["webpackChunkbuilder"]=globalThis["webpackChunkbuilder"]||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))})();var a=s.O(void 0,[998,64],(()=>s(24267)));a=s.O(a)})();
//# sourceMappingURL=onboarding-app.45fc8e15.js.map

OHA YOOO - Tarih: 2026-08-04 00:34:04