1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6b8b0d8d-13c9-4cc1-aff9-5848f9195afa",e._sentryDebugIdIdentifier="sentry-dbid-6b8b0d8d-13c9-4cc1-aff9-5848f9195afa")}catch(T){}import{E as e}from"./EditProductReviewSummary.b2c7a4bf.js";import{u as a}from"./useEditReviews.33120db4.js";import{c7 as o,c5 as t,c2 as s,c9 as i,ca as c,cs as r,cx as l,cf as n,ce as d,d0 as u,cc as f,ct as v,cy as p,cb as w,cz as m,f7 as b,c$ as g,cF as y,dj as _}from"./index.061e774e.js";import{S as h}from"./Snackbar.5ab4d14c.js";import x from"./BazaarvoiceProductReviewItem.1f638513.js";import{u as R,a as k}from"./useBazaarvoiceReviewWidget.ef0a309a.js";import"./Image.00c251a6.js";import"./vue-scrollto.bb23a375.js";import"./ElementUtils.b5351a1d.js";import"./FileUploadService.f8367bfb.js";const z={class:"account-reviews"},I={class:"account-nav-heading uppercase light"},j={key:0},P={key:1},S={class:"reviews-edit-product-list flex-grid"};var E=o({name:"AccountReviews",components:{EditProductReviewSummary:e,Snackbar:h},setup(){t({title:"My Account"});const{loading:e,loadProductReviews:o,productReviews:i,experienceReview:c,notification:r,clearNotifications:l,error:n}=a();return s((async()=>{await o({}),r&&setTimeout(l,5e3)})),{loading:e,loadProductReviews:o,productReviews:i,experienceReview:c,notification:r,clearNotifications:l,error:n}},methods:{onProductClick({review:e,rating:a}){e&&this.$router.push({name:"accountProductReview",params:{productId:e.productId},query:{rating:a}})}}},[["render",function(e,a,o,t,s,m){const b=i("router-link"),g=i("EditProductReviewSummary"),y=i("Snackbar");return c(),r("div",z,[l("h3",I,[n(b,{to:{name:"menu"},class:"account-nav-back","aria-label":"Go back"},{default:d((()=>a[0]||(a[0]=[l("i",{class:"af af-leftarrow"},null,-1)]))),_:1,__:[0]}),a[1]||(a[1]=u(" Reviews ",-1))]),a[3]||(a[3]=l("hr",{class:"top-margin small-bottom-margin"},null,-1)),t.loading&&!t.productReviews.length?(c(),r("div",j,a[2]||(a[2]=[u(" Loading reviews ",-1),l("div",{class:"loader tiny"},null,-1)]))):t.productReviews.length?f("",!0):(c(),r("p",P,"You have no products to review.")),l("div",S,[(c(!0),r(v,null,p(t.productReviews,(e=>(c(),w(g,{key:e.productId,class:"flex-col-12-xs flex-col-12-sm flex-col-6-md flex-col-6-lg flex-col-4-xl flex-col-4-xxl",review:e,onEdit:m.onProductClick},null,8,["review","onEdit"])))),128))]),n(y,{show:!!t.notification,position:"right",message:t.notification,"onUpdate:show":t.clearNotifications},null,8,["show","message","onUpdate:show"])])}]]);const D={class:"bazaarvoice-reviews"},U={key:0,class:"bazaarvoice-reviews-loader"},A={key:3,class:"reviews-edit-product-list flex-grid"};var B=o(m({__name:"BazaarvoiceReviews",setup(e){const{productReviews:a,loading:o,error:t,fetchProductReviews:s}=R(),{openReviewWidget:f}=k("stfr-account-reviews");return b((async()=>{await s()})),(e,s)=>{const m=i("router-link");return c(),r("section",D,[n(g,{element:"h3",size:"display6",weight:"bold",class:"account-nav-heading"},{default:d((()=>[n(m,{to:{name:"menu"},class:"account-nav-back","aria-label":"Go back"},{default:d((()=>s[0]||(s[0]=[l("i",{class:"af af-leftarrow"},null,-1)]))),_:1,__:[0]}),s[1]||(s[1]=u(" Reviews ",-1))])),_:1,__:[1]}),s[6]||(s[6]=l("hr",{class:"top-margin small-bottom-margin"},null,-1)),y(o)?(c(),r("div",U,[n(g,{element:"p",size:"display7"},{default:d((()=>s[2]||(s[2]=[u("Loading...",-1)]))),_:1,__:[2]}),s[3]||(s[3]=l("div",{class:"loader tiny"},null,-1))])):y(t)?(c(),w(g,{key:1,element:"p",size:"display7",class:"bazaarvoice-reviews-error"},{default:d((()=>s[4]||(s[4]=[u(" Sorry, we couldn't load your reviews right now. Please try again later. ",-1)]))),_:1,__:[4]})):y(a).length?(c(),r("div",A,[(c(!0),r(v,null,p(y(a),(e=>(c(),w(x,{key:e.productId,class:"flex-col-12-xs flex-col-12-sm flex-col-6-md flex-col-6-lg flex-col-4-xl flex-col-4-xxl",product:e,onReview:y(f)},null,8,["product","onReview"])))),128))])):(c(),w(g,{key:2,element:"p",size:"display7"},{default:d((()=>s[5]||(s[5]=[u("You have no products to review.",-1)]))),_:1,__:[5]}))])}}}),[["__scopeId","data-v-75c796b2"]]);const N=m({__name:"AccountReviewsSwitcher",setup(e){const{settingValue:a}=_("storefront.temp.bazaarvoice.reviews.enabled",!1);return(e,o)=>y(a)?(c(),w(B,{key:0})):(c(),w(E,{key:1}))}});
1export{N as default}; 2//# sourceMappingURL=AccountReviewsSwitcher.f28af7b6.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.