1import{P as v,b,t as T,T as w}from"./ThemePreview.80713196.js";import{l as y,a3 as k,_ as x,a4 as S}from"./index.474d7b13.js";import{E as i,f as l,U as n,N as c,D as s,F as p,R as u,a1 as _,Q as d,a2 as P,W as C,aa as I,ab as B,S as G}from"./vue.00f7c436.js";import"./StoreFrontFooter.82cc63f4.js";import"./sentry.09480738.js";import"./StoreFrontSubfooter.9a544ff8.js";import"./StoreFrontMinimalFooter.vue_vue_type_style_index_0_lang.25be2ef7.js";import"./StoreFrontCurrencySelect.9ba679cd.js";import"./faAlignCenter.3762bffe.js";import"./faPaperPlane.6c0a8be2.js";import"./teemail-mailing-list.ae72a50a.js";import"./index.426732af.js";import"./faTh.b868897d.js";const j=v.create("themeGridPreview").block(e=>b.extend().property("padding",3).property("buttonStyle","primary|secondary").property("title",e("title","Headings draw people in")).property("copy","Subheadings can give more short details and direct to products, pages, collections and links via buttons.").property("image",y.ref("image.default"),r=>k(r,640,480))).block(T.extend().property("padding",3).property("text",'<h3 style="text-align:center;">Write a short, snappy sentence about your brand.</h3>'));const N={name:"ThemeSelector",components:{ThemePreview:w},inject:["theme"],props:{currentTheme:{type:y,require:!1},savingTheme:{type:Boolean},logoImage:String,overrideProperties:Object},data(){return{themeGridPreview:j,themes:S,selectableThemes:["gallery","apothecary","popsicle","good","bubble","quiet","sol","clay","lux","naked","punch","outland","daze","joy","tropic","simply","charcoal","verde","spring","academia","dunes","angelo","neonCity","salt","atlantic","california","municipal","nordic","popart","wildWood","wanderlust"]}},methods:{selectTheme(e){this.overrideProperties&&Object.keys(this.overrideProperties).forEach(r=>{e.property(r,this.overrideProperties[r])}),this.$emit("input",e)}}},E=e=>(I("data-v-1506ff23"),e=e(),B(),e),R={class:"theme-selector"},V=E(()=>G("h3",null,"Switch Theme",-1));function W(e,r,o,q,t,m){const h=c("theme-preview"),g=c("tml-grid"),f=c("tml-loader");return s(),i("div",R,[l(f,{loading:o.savingTheme,text:"Saving Theme...","loading-ratio":"0.10"},{default:n(()=>[o.currentTheme&&o.currentTheme.id?(s(),i(p,{key:0},[l(g,{class:"mb-12",breakpoints:{xs:2,sm:2,md:3,xl:4}},{default:n(()=>[l(h,{class:"theme","page-template":t.themeGridPreview,theme:o.currentTheme,"logo-image":o.logoImage,"show-header":!1,"show-footer":!1,style:u({borderRadius:m.theme().get("image.border.radius")}),onClick:r[0]||(r[0]=_(a=>e.$emit("input",o.currentTheme),["stop"]))},null,8,["page-template","theme","logo-image","style"])]),_:1}),V],64)):d("",!0),l(g,{breakpoints:{xs:2,sm:2,md:3,xl:4}},{default:n(()=>[(s(!0),i(p,null,P(t.selectableThemes,a=>(s(),i(p,null,[t.themes[a]&&!t.themes[a].deprecated?(s(),i("div",{key:a},[t.themes[a]?(s(),C(h,{key:0,class:"theme",style:u({borderRadius:m.theme().get("image.border.radius")}),"page-template":t.themeGridPreview,"logo-image":o.logoImage,theme:t.themes[a],"show-header":!1,"show-footer":!1,onClick:_(z=>m.selectTheme(t.themes[a]),["stop"])},null,8,["style","page-template","logo-image","theme","onClick"])):d("",!0)])):d("",!0)],64))),256))]),_:1})]),_:1},8,["loading"])])}const Z=x(N,[["render",W],["__scopeId","data-v-1506ff23"]]);export{Z as default}; 2//# sourceMappingURL=ThemeSelector.8ce3afcf.js.map
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.