1import{d as A,N as C,u as I,r as u,o as N,c as i,a as r,b as w,e as f,m as n,F as h,h as t,i as B,x as v,t as m,L as E,c3 as G,p as $,j as P,f as g,_ as V}from"./CBb99Q15.js";import{M as L}from"./ChYhb54x.js";import{M as j}from"./dFIXalo2.js";import{b as D}from"./Jd6aBPtE.js";import{h as H}from"./CbGaPIAM.js";import"./HJwVSgq5.js";import"./BDr1m4Qv.js";const _=s=>($("data-v-e8f4e975"),s=s(),P(),s),R={class:"main favorite-shops"},T={class:"favorite-shops__list","data-testid":"favorite-shops-list"},U=["href"],z={class:"favorite-shop__address","data-testid":"favorite-shop-address"},Y=["onClick"],q={key:1,class:"main__mypage no-favorite-shop","data-testid":"no-favorite-shop"},J=_(()=>t("img",{src:G,alt:"ãæ°ã«å
¥ãåºèã®ç»é²ãããã¾ãã",class:"no-favorite-shop__img"},null,-1)),K=_(()=>t("p",{class:"no-favorite-shop__attention-title"}," ãæ°ã«å
¥ãåºèã®ç»é²ãããã¾ãã ",-1)),O=_(()=>t("p",{class:"no-favorite-shop__attention-sub"},[g(" ãæ°ã«å
¥ãåºèãç»é²ããã¨"),t("br"),g(" åºèéå®ã¯ã¼ãã³ãã§ãã¯ã§ãã¾ãã ")],-1)),Q=_(()=>t("a",{href:"/shop/",class:"no-favorite-shop__btn"},"åºèãæ¤ç´¢ãã",-1)),W=[J,K,O,Q],y=A({__name:"favorite-shop",setup(s){const{t:o,locale:S}=C({useScope:"local"}),{$accountApi:l,$errorHandler:k}=I(),p=u([]),c=u(!1),F=async()=>{c.value=!1;const{data:e,error:d}=await l().getFavoriteShops();if(d.value){k().handle(d.value.statusCode);return}p.value=e.resources.map(a=>({...a,favorite:!0})),c.value=!0},M=async e=>{e.favorite?await l().deleteFavoriteShop(e.tenpo_id):await l().registerFavoriteShop(e.tenpo_id),e.favorite=!e.favorite};return N(()=>{H.set({title:o("title"),useShortSiteTitle:!0,isEn:S.value==="en"}),D.set([{name:"mypage",translation:!0,path:"/mypage/"},{name:o("title")}]),F()}),(e,d)=>(r(),i("main",R,[n(c)?(r(),i(h,{key:0},[f(j,{title:n(o)("heading")},null,8,["title"]),n(p).length?(r(),i(h,{key:0},[t("ul",T,[(r(!0),i(h,null,B(n(p),(a,x)=>(r(),i("li",{key:`shop-${x}`,class:"main__mypage favorite-shop","data-testid":"favorite-shop"},[t("a",{href:`/shop/${a.tenpo_id}`,class:"favorite-shop__anchor"},[t("span",{class:v(["favorite-shop__title",{"favorite-shop__title--coupon":a.has_coupon}]),"data-testid":"favorite-shop-title"},m(a.name),3),t("span",z,m(a.address),1)],8,U),t("span",{class:v(["material-symbols-outlined favorite-shop__icon",{"favorite-shop__icon--disabled":!a.favorite}]),"data-testid":"favorite-shop-icon",onClick:X=>M(a)}," favorite ",10,Y)]))),128))]),f(L,{href:"/shop?referrer_from=MY_PAGE",type:"add",text:"ãè¿ãã®åºèãè¨å®ãã"})],64)):(r(),i("div",q,W))],64)):w("",!0),f(E,{loading:!n(c)},null,8,["loading"])]))}});function b(s){const o=s;o.__i18n=o.__i18n||[],o.__i18n.push({locale:"",resource:{ja:{heading:{t:0,b:{t:2,i:[{t:3}],s:"ãæ°ã«å
¥ãåºèä¸è¦§"}},title:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ãæ°ã«å
¥ãåºèä¸è¦§"},{t:2,i:[{t:3}],s:"UP GARAGE ãã¤ãã¼ã¸"}]}},back:{t:0,b:{t:2,i:[{t:3}],s:"æ»ã"}}},en:{heading:{t:0,b:{t:2,i:[{t:3}],s:"Favorite Shops"}},title:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"Favorite Shops"},{t:2,i:[{t:3}],s:"UP GARAGE ID"}]}},back:{t:0,b:{t:2,i:[{t:3}],s:"Back"}}}}})}typeof b=="function"&&b(y);const rt=V(y,[["__scopeId","data-v-e8f4e975"]]);export{rt 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.