PageSourceSearch

https://studio.fertilebodyyoga.com/_nuxt/BLTkaz-K.js

js fertilebodyyoga.com collected 2026-10-01 02:23:19 UTC 4,106 bytes, 2 lines download raw bytes

1import{R as m,l as p,m as y,_ as O,o as r,e as d,f as i,g as f,i as e,x as n,q as S,t as u,K as T,L as P,h as C,j as D,s as k,v as R}from"./CjU924Rn.js";import{_ as A}from"./BSJyBmdS.js";import{H as E}from"./CK41uUUP.js";import{_ as w}from"./M4ZMr_29.js";import{S as g}from"./CQ0TeA4K.js";import{e as B}from"./-8JjO_8n.js";import"./GTTuLbdn.js";import"./DApGTt_6.js";import"./B-f9BHOx.js";const H={name:"StudioShop",components:{StudioProductCard:g},mixins:[m],setup(){const t=p();return{RefreshData:m,studioStore:t}},computed:{...y(p,{studio:"currentStudio",hasStripe:"hasStripe"}),searchedProducts(){return this.search?this.products.filter(t=>t.product_name.toUpperCase().indexOf(this.search.toUpperCase())!==-1):this.products},productTags(){var l;if(!((l=this.searchedProducts)!=null&&l.length))return[];const t={id:0,name:this.$t("STUDIO.LABELS.ALL_PRODUCTS")},o={0:{...t,selected:t.name===this.selectedProductTag}};return this.searchedProducts.forEach(_=>{var c;(c=_.tags)!=null&&c.length&&_.tags.forEach(a=>{o[a.id]={...a,selected:a.name===this.selectedProductTag}})}),Object.values(o)},selectedProductTag(){return decodeURIComponent(this.$route.query.tag||this.$t("STUDIO.LABELS.ALL_PRODUCTS"))},filteredProducts(){return this.selectedProductTag===this.$t("STUDIO.LABELS.ALL_PRODUCTS")?this.searchedProducts:this.searchedProducts.filter(t=>t.tags.some(o=>o.name===this.selectedProductTag))},nonPurchasedProducts(){return this.selectedProductTag===this.$t("STUDIO.LABELS.ALL_PRODUCTS")?this.searchedProducts.filter(t=>!t.purchased):this.searchedProducts.filter(t=>!t.purchased&&t.tags.some(o=>o.name===this.selectedProductTag))},purchasedProducts(){return this.filteredProducts.filter(t=>t.purchased)}},data(){return{isLoading:!0,search:null,products:[]}},methods:{async loadData(){try{this.isLoading=!0,this.products=await this.studioStore.loadGiftableProducts(this.$studioURL)}catch(t){this.$notify({group:"app",type:"error",title:"Failed to load giftable products",text:B(t.response,`Request failed: ${t}`),duration:-1})}finally{this.isLoading=!1}}},mounted(){this.loadData()}},L=t=>(k("data-v-7ffea6f5"),t=t(),R(),t),$={class:"studio-page"},b={key:0,class:"container text-center"},N={class:"container"},V={class:"row"},M={class:"col-12"},q=L(()=>e("i",{class:"fal fa-chevron-left me-2"},null,-1)),F={class:"mt-4"},j=L(()=>e("div",{class:"col-12"},[e("hr")],-1)),G={key:0,class:"row"},K={class:"col-12 products-list"},z={class:"row"},X={class:"col-12 col-md-9 d-flex justify-content-between mb-2 mb-md-0"},J={class:"d-flex flex-wrap"},Q={class:"col-12 col-md-3"},W={key:0,class:"row px-2"},Y={key:1,class:"row"},Z={class:"col-12 text-center my-5"},tt={class:"c-dark-gray"};function et(t,o,l,_,c,a){const v=D,h=A,x=E,U=w,I=g;return r(),d("div",$,[c.isLoading?(r(),d("div",b,[i(v,{class:"mt-4"})])):f("",!0),e("div",N,[e("div",V,[e("div",M,[i(h,{class:"undecorated-router-link mb-3",to:{name:"studio-shop"}},{default:n(()=>[q,S(" "+u(t.$t("STUDIO.LINKS.BACK_TO_SHOP")),1)]),_:1}),e("h1",F,u(t.$t("STUDIO.TITLE.PURCHASE_A_GIFT")),1)]),j]),c.isLoading?f("",!0):(r(),d("div",G,[e("div",K,[e("div",z,[e("div",X,[e("div",J,[(r(!0),d(T,null,P(a.productTags,s=>(r(),C(h,{class:"undecorated-router-link",key:s.id,to:{query:{tag:encodeURIComponent(s.name)}},replace:""},{default:n(()=>[i(x,{class:"mt-2 me-2",selected:s.selected},{default:n(()=>[S(u(s.name),1)]),_:2},1032,["selected"])]),_:2},1032,["to"]))),128))])]),e("div",Q,[i(U,{modelValue:c.search,"onUpdate:modelValue":o[0]||(o[0]=s=>c.search=s)},null,8,["modelValue"])])]),a.filteredProducts.length?(r(),d("div",W,[(r(!0),d(T,null,P(a.filteredProducts,s=>(r(),d("div",{class:"col-6 col-md-3 mt-4 px-1 px-md-3",key:s.id},[i(h,{class:"undecorated-router-link",to:{name:"studio-product-gift",params:{product_id:s.id}}},{default:n(()=>[i(I,{isGift:!0,product:s,size:"sm"},null,8,["product"])]),_:2},1032,["to"])]))),128))])):(r(),d("div",Y,[e("div",Z,[e("h4",tt,u(t.$t("STUDIO.TEXT.NO_PRODUCTS_MATCH_THIS_FILTER")),1)])]))])]))])])}const lt=O(H,[["render",et],["__scopeId","data-v-7ffea6f5"]]);export{lt as default};
2//# sourceMappingURL=BLTkaz-K.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.