1import{C as oe,D as he,r as xe,j as y,d as T,o as l,c as p,E as le,a as t,F as O,u as s,t as C,b as _,G as X,H as F,I as L,e as A,A as z,B as N,T as de,_ as Y,J as ce,s as V,K as Se,h as H,k as x,L as $e,M as h,N as $,O as G,P as te,i as ue,Q as ze,R as re,S as Ae,U as ke,V as se,W as pe,X as Te,Y as me,w as Ie,m as Ce,v as Xe}from"./CRcD7-OL.js";import{s as Be}from"./uBKjD5Rv.js";import Pe from"./YHBFWcH7.js";import{_ as ae}from"./CppaU2De.js";import{_ as Ee}from"./CBpzIwA-.js";import{_ as Ve}from"./CgkgPdez.js";import{_ as De}from"./CCSnwoW6.js";import{_ as Ne}from"./CN3tCpGu.js";import{B as We}from"./BrFXIemd.js";import"./pH3IlwEs.js";import"./If7ZEN3C.js";import"./B4td6we0.js";import"./DoNgt76P.js";import"./BM9vBfu9.js";import"./CAJNaXhZ.js";function fe(){return oe().public.ENVIRONMENT==="development"}var I=(d=>(d.BASIC_SETTINGS="basic",d.ANALYTICS="analytics",d.APPEARANCE="appearance",d.PAGES="pages",d))(I||{});const W=he("wizard",()=>{const d=xe({jwt:"",wizard:{},stepIndex:0,finishedSteps:[],visitedSteps:[I.BASIC_SETTINGS],steps:[{key:I.BASIC_SETTINGS,name:"Basic Settings"},{key:I.ANALYTICS,name:"Analytics"},{key:I.PAGES,name:"Template"},{key:I.APPEARANCE,name:"Appearance"}],templates:[],templateVariation:null}),e=y(()=>d.wizard),o=y(()=>d.stepIndex),a=y(()=>d.steps[o.value]??null),c=y(()=>d.steps);function f(){const n=d.stepIndex+1;c.value.length>=n&&(d.finishedSteps.includes(a.value.key)||d.finishedSteps.push(a.value.key),d.stepIndex=n,d.visitedSteps.includes(a.value.key)||d.visitedSteps.push(a.value.key))}function u(){const n=d.stepIndex-1;n>=0&&(d.stepIndex=n)}function v(n){const i=c.value.findIndex(b=>b.key===n);i!==-1&&(d.stepIndex=i)}async function m(){const n=await $fetch("/api/wizard/templates");d.templates=n}return{data:d,step:a,stepIndex:o,steps:c,wizard:e,nextStep:f,prevStep:u,goToStep:v,loadTemplates:m}}),je={width:"0",height:"0",style:{width:"0",height:"0",overflow:"hidden",position:"fixed",left:"-3000px",top:"-300px"}},Me={class:"position-relative wizardBox__steps-wrapper"},Ue={class:"wizardBox__stepbg"},Ge={key:0,style:{left:"0",top:"0",width:"100%",height:"100%"},class:"position-absolute d-flex align-items-center justify-content-center"},Oe=["innerHTML"],Fe={key:1,class:"d-flex flex-column flex-md-row justify-content-between wizardBox__steps"},Le=["onClick"],He={key:0,class:"ti ti-check me-2"},Re={key:1,class:"ti ti-point-filled me-2"},qe=T({__name:"WizardBoxSteps",setup(d){const e=W(),o=y(()=>e.data.redirectingText!==void 0),a=y(()=>{let u=25*(e.stepIndex+1);return u=u==100?110:u>0?u+3:0,{transform:`translateX(${u}%)`}});function c(u){return e.data.visitedSteps.includes(u)}function f(u){c(u)&&e.goToStep(u)}return(u,v)=>(l(),p("div",null,[(l(),p("svg",je,v[0]||(v[0]=[le('<defs data-v-a8f26f49><clipPath id="myClip" data-v-a8f26f49><rect width="900" height="100" data-v-a8f26f49></rect><rect width="920" height="40" y="30" data-v-a8f26f49></rect><circle cx="900" cy="20" r="20" data-v-a8f26f49><animateTransform attributeType="XML" attributeName="transform" type="translate" values="4,0;0,0;4,0" dur="5s" repeatCount="indefinite" data-v-a8f26f49></animateTransform></circle><circle cx="920" cy="40" r="18" data-v-a8f26f49><animate attributeName="r" values="18;22;18" dur="5s" repeatCount="indefinite" data-v-a8f26f49></animate></circle></clipPath></defs>',1)]))),t("div",Me,[t("div",{class:"wizardBox__stepbg-wrapper d-none d-md-block",style:O(s(a))},[t("div",Ue,[t("div",{class:C(["wizardBox__stepbg-redirecting",{shown:s(o)}])},null,2)])],4),_(de,{name:"redirecting"},{default:X(()=>[s(o)?(l(),p("div",Ge,[t("div",{class:"text-center py-2",innerHTML:s(e).data.redirectingText},null,8,Oe)])):(l(),p("div",Fe,[(l(!0),p(F,null,L(s(e).steps,({name:m,key:n},i)=>(l(),p("div",{class:C(["wizardBox__step d-flex align-items-center justify-content-center",{"wizardBox__step--active":s(e).stepIndex===i}]),style:O({cursor:c(n)?"pointer":"not-allowed"}),key:n,onClick:b=>f(n)},[s(e).data.finishedSteps.includes(n)?(l(),p("i",He)):s(e).stepIndex===i||s(e).data.visitedSteps.includes(n)?(l(),p("i",Re)):A("",!0),z(" "+N(m),1)],14,Le))),128))]))]),_:1})])]))}}
1),Ye=Y(qe,[["__scopeId","data-v-a8f26f49"]]),Je={key:0,class:"alert alert-danger d-flex align-items-center"},Ke={class:"d-flex align-items-center"},J=T({__name:"WizardErrors",props:{errors:{}},setup(d){return(e,o)=>e.errors&&e.errors.length>0?(l(),p("div",Je,[o[0]||(o[0]=t("i",{class:"ti ti-exclamation-circle me-3",style:{"font-size":"25px"}},null,-1)),t("div",null,[(l(!0),p(F,null,L(e.errors,a=>(l(),p("div",Ke,[t("span",null,N(a.message),1)]))),256))])])):A("",!0)}}),Qe={class:"wizardBox__section"},Ze={class:"wizardBox__section-title"},et={class:"wizardBox__section-body"},ge=T({__name:"WizardSection",props:{title:{}},setup(d){return(e,o)=>(l(),p("div",Qe,[t("div",Ze,N(e.title),1),t("div",et,[ce(e.$slots,"default")])]))}}),tt={class:"wb-btn__text"},st=T({__name:"BaseButton",props:{href:{},target:{},type:{},processing:{type:Boolean},disabled:{type:Boolean}},setup(d){const e=d,o=y(()=>e.href!==void 0);return(a,c)=>(l(),V(Se(s(o)?"a":"button"),{href:a.href,target:a.target,type:a.type,disabled:a.disabled,class:C(["wb-btn position-relative",{"wb-btn--processing":a.processing}])},{default:X(()=>[t("div",tt,[ce(a.$slots,"default",{},void 0,!0)]),c[0]||(c[0]=t("div",{class:"wb-btn__spinner"},[t("div",{class:"spinner-border",role:"status","aria-hidden":"true"})],-1))]),_:3},8,["href","target","type","disabled","class"]))}}),nt=Y(st,[["__scopeId","data-v-a4daab32"]]),ot={class:"d-flex align-items-center"},K=T({__name:"WizardNavigation",props:{nextFn:{},processing:{type:Boolean,default:!1},continueTitle:{default:"Continue"},disabled:{type:Boolean,default:!1}},emits:["back","next"],setup(d,{emit:e}){const o=W(),a=d;function c(){o.prevStep()}function f(){window.scrollTo({top:0,behavior:"smooth"})}async function u(){typeof a.nextFn=="function"?await a.nextFn({next:()=>o.nextStep(),scroll:()=>f()}):o.nextStep(),f()}return(v,m)=>(l(),p("div",ot,[s(o).stepIndex>0?(l(),p("button",{key:0,class:"btn btn-light",onClick:c},"Back")):A("",!0),_(nt,{class:"btn btn-primary ms-auto",processing:v.processing,disabled:v.processing||v.disabled,onClick:u},{default:X(()=>[z(N(v.continueTitle),1)]),_:1},8,["processing","disabled"])]))}}),q=d=>{if(typeof d=="object"&&d!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(d);return e===Object.prototype||e===null}return Object.prototype.toString.call(d)==="[object Object]"}return!1},k=(...d)=>d.reduce((e,o)=>{if(o===void 0)return e;if(Array.isArray(o))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(o).forEach(a=>{["__proto__","constructor","prototype"].includes(a)||(Array.isArray(e[a])&&Array.isArray(o[a])?e[a]=k.options.mergeArrays?k.options.uniqueArrayItems?Array.from(new Set(e[a].concat(o[a]))):[...e[a],...o[a]]:o[a]:q(e[a])&&q(o[a])?e[a]=k(e[a],o[a]):!q(e[a])&&q(o[a])?e[a]=k(o[a],void 0):e[a]=o[a]===void 0?k.options.allowUndefinedOverrides?o[a]:e[a]:o[a])}),e},{}),ne={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};k.options=ne;k.withOptions=(d,...e)=>{k.options=Object.assign(Object.assign({},ne),d);const o=k(...e);return k.options=ne,o};const at={style:{display:"grid","grid-template-columns":"1fr 1fr","grid-gap":"8px"}},it=["onClick"],rt={class:"template-name"},lt={class:"d-flex flex-wrap",style:{gap:"8px"}},dt=T({__name:"WizardPages",setup(d){const e=W(),o=H(),a=x([]),c=x(!1),f=x(null);function u(m){f.value=m,e.data.templateVariation=null}async function v({next:m}){if(!c.value){c.value=!0;try{const n=await $fetch(`/api/wizard/template-variation/${e.data.templateVariation?.id}`);if(n?.settings){const i={contact:o.settings.contact,meta:o.settings.meta,name:o.settings.name,logo:o.settings.logo,favicon:void 0};o.state.settings=k(n.settings,i);const b=`#${e.data.companyData?.themeColor}`;e.data.companyData?.themeColor&&$e(b).getBrightness()<215&&(o.state.settings.colors.primary=b),m()}else throw new Error("No settings found for the selected template.")}catch(n){const i=n.data?.errors||[{message:n.message}];i&&(a.value=i,window.scrollTo({top:0,behavior:"smooth"}))}c.value=!1}}return(m,n)=>{const i=J,b=ge,B=Pe,w=K;return l(),p("div",null,[_(i,{errors:s(a)}
1,null,8,["errors"]),_(b,{title:"Choose Template"},{default:X(()=>[t("div",null,[t("div",at,[(l(!0),p(F,null,L(s(e).data.templates,r=>(l(),p("div",{class:C(["d-inline-flex border rounded position-relative overflow-hidden",{"wp_checkbox--checked":s(f)!==null&&s(f).id===r.id}]),style:O([{cursor:"pointer"},{backgroundImage:r.image?`url(${r.image})`:void 0,backgroundSize:"cover",backgroundPosition:"top center",paddingTop:"50%",backgroundRepeat:"no-repeat",width:"100%"}]),onClick:P=>u(r)},[t("div",rt,N(r.name),1)],14,it))),256))])])]),_:1}),s(f)?(l(),V(b,{key:0,title:"Choose Variation"},{default:X(()=>[t("div",null,[t("div",lt,[(l(!0),p(F,null,L(s(f)?.variations,r=>(l(),V(B,{class:C(["d-inline-flex border rounded p-3",{"wp_checkbox--checked":s(e).data.templateVariation?.id===r.id}]),"model-value":s(e).data.templateVariation?.id===r.id,"onUpdate:modelValue":P=>s(e).data.templateVariation=r},{default:X(()=>[z(N(r.name),1)]),_:2},1032,["class","model-value","onUpdate:modelValue"]))),256))])])]),_:1})):A("",!0),_(w,{disabled:!s(e).data.templateVariation,"next-fn":v,processing:s(c)},null,8,["disabled","processing"])])}}}),ct=Y(dt,[["__scopeId","data-v-34b74128"]]),ut={class:"mb-3"},pt={for:"wa_gtm"},mt={key:0,class:"text-danger pt-1"},ft={class:"mb-3"},gt={for:"wa_ga"},_t={key:0,class:"text-danger pt-1"},vt={key:0,class:"alert alert-warning mb-3 d-flex align-items-center"},bt={class:"mb-3"},yt={for:"wa_pixel"},wt={key:0,class:"text-danger pt-1"},ht=T({__name:"WizardAnalytics",setup(d){const e=H(),o=W(),a=x(!1),c=x([]),f=y(()=>u.value===""?!1:!/^\d{4,20}$/.test(u.value)),u=y({get(){return e.state.settings.tracking.pixel?.id||""},set(w){e.state.settings.tracking.pixel=w===""?void 0:{id:w}}}),v=y(()=>m.value===""?!1:m.value.substring(0,2)==="G-"?m.value.length<8||m.value.length>22:!0),m=y({get(){return e.state.settings.tracking.ga?.id||""},set(w){e.state.settings.tracking.ga=w===""?void 0:{id:w}}}),n=y(()=>i.value===""?!1:i.value.substring(0,4)==="GTM-"?i.value.length<6||i.value.length>22:!0),i=y({get(){return e.state.settings.tracking.gtm?.id||""},set(w){e.state.settings.tracking.gtm=w===""?void 0:{id:w}}}),b=y(()=>!v.value&&!n.value&&!f.value);async function B({next:w,scroll:r}){a.value=!0;try{await o.loadTemplates(),w()}catch(P){c.value=P?.data?.errors,r()}a.value=!1}return(w,r)=>{const P=J,U=ae,Q=K;return l(),p("div",null,[_(P,{errors:s(c)},null,8,["errors"]),t("div",ut,[t("label",pt,[r[3]||(r[3]=z(" Google Tag Manager ")),_(U,{class:"me-1",content:`Enter your full Google Tag Manager ID, including the GTM- prefix. 2Example: GTM-XXXXXXX`})]),h(t("input",{id:"wa_gtm",type:"text","onUpdate:modelValue":r[0]||(r[0]=E=>G(i)?i.value=E:null),class:C(["form-control",{"is-invalid":s(n)}]),placeholder:"GTM ID (GTM-XXXXXXXX)"},null,2),[[$,s(i)]]),s(n)?(l(),p("div",mt," Your GTM ID is incorrect. ")):A("",!0)]),t("div",ft,[t("label",gt,[r[4]||(r[4]=z("Google Analytics ")),_(U,{class:"me-1",content:`Enter your full Google Analytics Measurement ID, including the G- prefix. 3Example: G-XXXXXXXXXX 4Note: Leave this field empty if you plan to implement Google Analytics via Google Tag Manager.`})]),h(t("input",{id:"wa_ga",type:"text","onUpdate:modelValue":r[1]||(r[1]=E=>G(m)?m.value=E:null),class:C(["form-control",{"is-invalid":s(v)}]),placeholder:"Measurement ID (G-XXXXXXXXXX)"},null,2),[[$,s(m)]]),s(v)?(l(),p("div",_t," Your Analytics measurement ID is incorrect. ")):A("",!0)]),s(m)&&s(i)?(l(),p("div",vt,r[5]||(r[5]=[t("i",{class:"ti ti-exclamation-circle me-3",style:{"font-size":"20px"}},null,-1),t("div",null,[z(" If your Google Tag Manager is configured to register page hits, please "),t("b",null,"don't fill in Google Analytics tracking code"),z(" as it may result in duplicite Page Views. ")],-1)]))):A("",!0),t("div",bt,[t("label",yt,[r[6]||(r[6]=z("Meta(Facebook) Pixel ")),_(U,{class:"me-1",content:`Enter your full Facebook Pixel ID. 5Example: 123456789012345.`})]),h(t("input",{id:"wa_pixel",type:"text","onUpdate:modelValue":r[2]||(r[2]=E=>G(u)?u.value=E:null),class:C(["form-control",{"is-invalid":s(f)}]),placeholder:"Tracking ID (XXXXXXXXXXXXXXX)"},null,2),[[$,s(u)]]),s(f)?(l(),p("div",wt," Your Pixel ID is incorrect(digits only). ")):A("",!0)]),_(Q,{disabled:!s(b)||s(a),processing:s(a),"next-fn":B},null,8,["disabled","processing"])])}}}),xt={class:"row mb-3"},St={class:"col-md-6"},$t={class:"form-group mb-3"},zt={class:"d-flex align-items-center"},At={class:"ms-2"},kt=["src","alt"],Tt={for:"animations"},It={class:"col-md-6"},Ct={for:"headingFont"},Xt={for:"defaultFont"},Bt={class:"mb-2"},Pt={class:"d-flex mb-1 align-items-center justify-content-between"},Et=T({__name:"WizardAppearance",setup(d){const e=H(),o=W(),a=x(1),c=x(),f=x(),u=oe(),v=y(()=>te(o.wizard.slug)),m=ue(),n=x([]);function i(){a.value=Math.random(),setTimeout(()=>{c.value&&(c.value.classList.add("wb-anim-shown"),setTimeout(()=>{f.value&&f.value.classList.add("wb-anim-shown")},200))},10)}ze(()=>{i()});function b(D,g){e.settings.colors[D]=g}const B=y(()=>re(e.settings.fonts.heading)?.path),w=y(()=>re(e.settings.fonts.default)?.path),r=y(()=>e.settings.logo||"/images/blocks/base-image/placeholder-image.webp");e.settings.animation||(e.settings.animation="none");const P=y({get(){return e.settings.animation===void 0?"none":e.settings.animation},set(D){e.settings.animation=D==="none"?void 0:D,i()}}),U=[{id:"b1",color:"var(--color-primary-rgb)",content:"Primary"},{id:"b2",color:"var(--color-secondary-rgb)",content:"Secondary"}];function Q(D){e.settings.logo=D}const E=y(()=>m.query.jwt),R=x(!1);async function _e({next:D}){R.value=!0;const g={jwt:E.value,websiteSettings:e.settings,templateVariationId:o.data.templateVariation?.id,pages:[],slug:o.wizard.slug,customHTML:e.customHTML};try{const M=await $fetch("/api/wizard/create-website",{method:"POST",body:g});M&&M.website_id&&(o.data.redirectingText=`Redirecting to <b>${o.wizard.slug}.${u.public.APP_MAIN_HOST}</b>...`,setTimeout(()=>{let j=`https://${o.wizard.slug}.${u.public.APP_MAIN_HOST}/?jwt=${E.value}`;if(fe()){const Z=u.public.APP_MAIN_PORT?`:${u.public.APP_MAIN_PORT}`:"";j=`http://${o.wizard.slug}.${u.public.APP_MAIN_HOST}${Z}/?jwt=${E.value}`}pe(j,{external:!0})},1500))}catch(M){const j=M.data?.errors;j&&(n.value=j,window.scrollTo({top:0,behavior:"smooth"}))}R.value=!1}return(D,g)=>{const M=J,j=Ee,Z=Ve,ee=ae,ie=De,ve=Ne,be=K,ye=Ae("tippy");return l(),p("div",null,[_(M,{errors:s(n)},null,8,["errors"]),t("div",xt,[t("div",St,[t("div",$t,[g[4]||(g[4]=t("label",null,"Colors",-1)),(l(!0),p(F,null,L(Object.keys(s(e).settings.colors).filter(S=>!["heading"].includes(S)),S=>(l(),p("div",zt,[_(j,{"only-custom":!0,color:s(e).settings.colors[S],onChange:we=>b(S,we)},null,8,["color","onChange"]),t("div",At,N(s(e).settings.colorData[S]?.name||S),1)]))),256))]),g[7]||(g[7]=t("label",null,"Logo",-1)),_(Z,{class:"mb-4","show-library":!1,"force-edit":!0,onUploaded:Q},{default:X(()=>[t("img",{src:s(r),alt:s(e).settings.name,class:"wizardBox__logo"},null,8,kt)]),_:1}),t("label",Tt,[g[5]||(g[5]=z("Animations ")),_(ee,{class:"ms-1",content:" Animations can enhance the visual appeal of your site and improve user experience. However, excessive or complex animations may negatively impact performance, especially on lower-end devices. Use them thoughtfully for best results."})]),h(t("select",{id:"animations","onUpdate:modelValue":g[0]||(g[0]=S=>G(P)?P.value=S:null),class:"form-select mb-3"},g[6]||(g[6]=[t("option",{value:"none"},"None",-1),t("option",{value:"fade-slide"}," Slide from bottom (default) ",-1),t("option",{value:"fade-scale"},"Scale",-1),t("option",{value:"fade-blur"},"Blur",-1)]),512),[[ke,s(P)]])]),t("div",It,[t("label",Ct,[g[8]||(g[8]=z("Heading Font ")),_(ee,{class:"ms-1",content:"Note: Using non-system fonts can slow down your website, as they require downloading before rendering."})]),_(ie,{"input-id":"headingFont",class:"mb-2","model-value":s(e).settings.fonts.heading,"onUpdate:modelValue":g[1]||(g[1]=S=>s(e).settings.fonts.heading=S)},null,8,["model-value"]),t("label",Xt,[g[9]||(g[9]=z("Default Font ")),_(ee,{class:"ms-1",content:"Note: Using non-system fonts can slow down your website, as they require downloading before rendering."})]),_(ie,{"input-id":"defaultFont",class:"mb-2","model-value":s(e).settings.fonts.default,"onUpdate:modelValue":g[2]||(g[2]=S=>s(e).settings.fonts.default=S)},null,8,["model-value"]),t("div",Bt,[g[10]||(g[10]=t("label",null,"Button border radius",-1)),_(ve,{modelValue:s(e).settings.borderRadius.button,"onUpdate:modelValue":g[3]||(g[3]=S=>s(e).settings.borderRadius.button=S)},null,8,["modelValue"])]),t("div",Pt,[g[12]||(g[12]=t("label",null,"Preview",-1)),h((l(),p("button",{class:"btn btn-light btn-sm",style:{padding:"4px 6px"},onClick:se(i,["prevent"])}
5,g[11]||(g[11]=[t("i",{class:"ti ti-refresh"},null,-1)]))),[[ye,"re-run animation"]])]),(l(),p("div",{class:"fontShowcase app wb--not-editing",key:s(a)},[t("h3",{ref_key:"previewHeading",ref:c,class:C(s(e).animationClasses),style:O({fontFamily:s(B)})}," Lorem ipsum ",6),t("p",{ref_key:"previewParagraph",ref:f,class:C(["mb-3",s(e).animationClasses]),style:O({fontFamily:s(w)})}," Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",6),_(We,{items:U})]))])]),_(be,{"next-fn":_e,processing:s(R)||!s(v),disabled:s(R),"continue-title":"Create Hosted Website"},null,8,["processing","disabled"])])}}}),Vt=Y(Et,[["__scopeId","data-v-c3c11dca"]]),Dt={class:"row"},Nt={class:"col-md-6"},Wt={class:"form-group mb-3"},jt={class:"col-md-6"},Mt={class:"form-group mb-3"},Ut={for:"wb_host"},Gt={class:"input-group"},Ot={class:"input-group-text"},Ft={key:0,class:"text-danger small"},Lt={key:1,class:"text-danger small"},Ht={class:"col-md-6 mb-3"},Rt={class:"col-md-6 mb-3"},qt={class:"col-md-12"},Yt={class:"mb-4"},Jt={class:"row"},Kt={class:"col-md-6"},Qt={class:"col-md-6"},Zt=T({__name:"WizardBasicSettings",setup(d){const e=H(),o=W(),a=oe(),c=x([]),f=x(!1),u=y(()=>te(o.wizard.slug));async function v({next:m,scroll:n}){f.value=!0,c.value=[];try{const i=await $fetch("/api/wizard/validate-website-url",{method:"POST",body:{jwt:o.data.jwt,slug:o.wizard.slug}});m()}catch(i){c.value=i?.data?.errors,n()}f.value=!1}return(m,n)=>{const i=J,b=ae,B=ge,w=K;return l(),p("div",null,[_(i,{errors:s(c)},null,8,["errors"]),t("div",Dt,[t("div",Nt,[t("div",Wt,[n[10]||(n[10]=t("label",{for:"wb_name"},"Website Name",-1)),h(t("input",{type:"text",id:"wb_name",class:"form-control","onUpdate:modelValue":n[0]||(n[0]=r=>s(e).settings.name=r)},null,512),[[$,s(e).settings.name]])])]),t("div",jt,[t("div",Mt,[t("label",Ut,[n[11]||(n[11]=z(" Website Address ")),_(b,{class:"me-1",content:`Enter the name of the shop as it should appear in the URL. Use only lowercase letters, numbers, and hyphens. 6Example: my-laundry-shop`})]),t("div",Gt,[h(t("input",{style:{"text-align":"right"},type:"text",id:"wb_host",class:"form-control","onUpdate:modelValue":n[1]||(n[1]=r=>s(o).wizard.slug=r)},null,512),[[$,s(o).wizard.slug]]),t("div",Ot," ."+N(s(a).public.APP_MAIN_HOST),1)]),("isSafeSubdomainName"in m?m.isSafeSubdomainName:s(te))(s(o).wizard.slug)?A("",!0):(l(),p("div",Ft," Invalid character detected. Please use lower case letters, numbers or dashes. (Eg: a-z, 0-9, -) ")),s(o).wizard.slug&&(s(o).wizard.slug.startsWith("-")||s(o).wizard.slug.endsWith("-"))?(l(),p("div",Lt,n[12]||(n[12]=[z(" Subdomain name cannot start or end with character "),t("b",null,'"-"',-1),z(". ")]))):A("",!0)])]),t("div",Ht,[n[13]||(n[13]=t("label",{for:"meta_desc"},"Default page description (optional)",-1)),h(t("input",{id:"meta_desc",type:"text",class:"form-control mb-2","onUpdate:modelValue":n[2]||(n[2]=r=>s(e).settings.meta.description=r)},null,512),[[$,s(e).settings.meta.description]])]),t("div",Rt,[n[14]||(n[14]=t("label",{for:"meta_keywords"},"Default page keywords (optional)",-1)),h(t("input",{id:"meta_keywords",type:"text",class:"form-control","onUpdate:modelValue":n[3]||(n[3]=r=>s(e).settings.meta.keywords=r)},null,512),[[$,s(e).settings.meta.keywords]])]),t("div",qt,[t("div",Yt,[_(B,{title:"Contact & Social Information"},{default:X(()=>[t("div",Jt,[t("div",Kt,[n[15]||(n[15]=t("label",{for:"ci_1"},"Email",-1)),h(t("input",{type:"text",id:"ci_1",class:"form-control mb-2","onUpdate:modelValue":n[4]||(n[4]=r=>s(e).settings.contact.email=r),placeholder:""},null,512),[[$,s(e).settings.contact.email]]),n[16]||(n[16]=t("label",{for:"ci_2"},"Phone number",-1)),h(t("input",{type:"text",id:"ci_2",class:"form-control mb-2","onUpdate:modelValue":n[5]||(n[5]=r=>s(e).settings.contact.phone=r),placeholder:""},null,512),[[$,s(e).settings.contact.phone]]),n[17]||(n[17]=t("label",{for:"ci_3"},"Address",-1)),h(t("input",{type:"text",id:"ci_3",class:"form-control mb-2","onUpdate:modelValue":n[6]||(n[6]=r=>s(e).settings.contact.address=r),placeholder:""},null,512),[[$,s(e).settings.contact.address]])]),t("div",Qt,[n[18]||(n[18]=t("label",{for:"sl_fb"},"Facebook",-1)),h(t("input",{type:"text",id:"sl_fb",class:"form-control mb-2","onUpdate:modelValue":n[7]||(n[7]=r=>s(e).settings.links.social.facebook=r),placeholder:"https://facebook.com/..."},null,512),[[$,s(e).settings.links.social.facebook]]),n[19]||(n[19]=t("label",{for:"sl_ig"},"Instagram",-1)),h(t("input",{type:"text",id:"sl_ig",class:"form-control mb-2","onUpdate:modelValue":n[8]||(n[8]=r=>s(e).settings.links.social.instagram=r),placeholder:"https://instagram.com/..."},null,512),[[$,s(e).settings.links.social.instagram]]),n[20]||(n[20]=t("label",{for:"sl_tw"},"X (Former Twitter)",-1)),h(t("input",{type:"text",id:"sl_tw",class:"form-control mb-2","onUpdate:modelValue":n[9]||(n[9]=r=>s(e).settings.links.social.twitter=r),placeholder:"https://twitter.com/..."},null,512),[[$,s(e).settings.links.social.twitter]])])])]),_:1})])])]),_(w,{"next-fn":v,disabled:!s(u),processing:s(f)},null,8,["disabled","processing"])])}}}),es={class:"wizardBox__wrapper"},ts={class:"wizardBox"},ss={class:"wizardBox__body"},ns={key:0},os=T({__name:"WizardBox",setup(d){const e=W();function o(a){return e.step&&e.step.key===a}return(a,c)=>{const f=Ye,u=ct,v=ht,m=Vt,n=Te;return l(),V(n,null,{default:X(()=>[t("div",es,[c[0]||(c[0]=t("div",{class:"d-flex flex-column flex-sm-row align-items-center ps-0 ps-sm-3",style:{"margin-bottom":"2em"}},[t("img",{class:"wizardBox__cclogo mb-2 mb-sm-0",src:me,alt:"CleanCloud"}),t("div",{class:"ms-4 me-3 text-muted d-none d-sm-block"},"/"),t("h1",{style:{"letter-spacing":"1px","font-size":"16px","font-weight":"normal",margin:"0"}}," Hosted Website Wizard ")],-1)),t("div",ts,[_(f),t("div",ss,[_(de,{name:"step",mode:"out-in"},{default:X(()=>[s(e).step?o(s(I).BASIC_SETTINGS)?(l(),V(Zt,{key:1})):o(s(I).PAGES)?(l(),V(u,{key:2})):o(s(I).ANALYTICS)?(l(),V(v,{key:3})):o(s(I).APPEARANCE)?(l(),V(m,{key:4})):A("",!0):(l(),p("div",ns))]),_:1})])])])]),_:1})}}}),as={key:0,class:"wizardContainer container"},is={key:1,class:"p-5 text-center"},rs={key:0,class:"card mx-auto mt-5"},ls={class:"card-body"},ds={class:"input-group"},cs=["disabled"],As=T({__name:"index",async setup(d){let e,o;const a=ue(),c=H(),f=W(),u=x(!1),v=x(!1),m=x("");function n(){m.value&&(window.location.href=`?jwt=WEBSITE_${m.value}`)}if(a.query.jwt){v.value=!0;const{data:i}=([e,o]=Ie(()=>Xe("/api/redirect-data",{method:"POST",body:{jwt:a.query.jwt}},"$cbOUBLnpHm")),e=await e,o(),e);if(i.value?.redirect_url)pe(i.value?.redirect_url,{external:!0});else if(i.value&&i.value.companyData!==null&&!i.value.redirect_url)v.value=!1,u.value=!0,f.data.companyData=i.value.companyData,c.settings.name=i.value.companyData.name,c.settings.logo=i.value.companyData.logo,f.data.jwt=String(a.query.jwt),c.state.settings.contact.phone=i.value.companyData.phone,c.state.settings.contact.address=[i.value.companyData.address,i.value.companyData.city,[i.value.companyData.state,i.value.companyData.zip].filter(
6Boolean).join(" "),i.value.companyData.country].filter(Boolean).join(", "),c.settings.meta.titleSuffix=`| ${i.value.companyData.name}, ${i.value.companyData.city}`,i.value.companyData.themeColor&&(c.settings.colors.primary=`#${i.value.companyData.themeColor}`);else throw Ce({statusCode:404})}return f.wizard.slug||(f.wizard.slug=Be(c.settings.name||"",{lower:!0,strict:!0})),(i,b)=>s(v)?A("",!0):(l(),p("div",as,[s(u)?(l(),V(os,{key:0})):(l(),p("div",is,[b[2]||(b[2]=le('<div class="d-flex flex-column flex-sm-row align-items-center justify-content-center ps-0 ps-sm-3 mb-3"><img class="wizardBox__cclogo mb-2 mb-sm-0" src="'+me+'" alt="CleanCloud"><div class="ms-4 me-3 text-muted d-none d-sm-block">/</div><h1 style="letter-spacing:1px;font-size:16px;font-weight:normal;margin:0;"> Hosted Website </h1></div><a class="btn btn-primary btn-sm" style="border-radius:25px;margin:10px 0;" href="https://cleancloudapp.com">Learn more at <b>cleancloudapp.com</b></a>',2)),("isLocalServer"in i?i.isLocalServer:s(fe))()?(l(),p("div",rs,[b[1]||(b[1]=t("div",{class:"card-header"},"Dev tools",-1)),t("div",ls,[t("form",{onSubmit:se(n,["prevent"])},[t("div",ds,[h(t("input",{"onUpdate:modelValue":b[0]||(b[0]=B=>G(m)?m.value=B:null),type:"number",class:"form-control",placeholder:"Store ID"},null,512),[[$,s(m)]]),t("button",{disabled:!s(m),onClick:se(n,["prevent"]),class:"btn btn-dark btn-sm"}," Go ",8,cs)])],32)])])):A("",!0)]))]))}});export{As as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.