1import{ay as E,aF as _,aP as $,aM as A,aJ as i,aG as y,b3 as T,bt as U,aS as V,az as M,aC as p,aX as q,bk as F,aZ as L,bc as O,aA as S,aB as B,aI as R,aE as b,aH as H,aL as j,aN as z}from"./BM23tSk-.js";import{u as J}from"./COTrYFZK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"98f4aa50fc7483ec8fff8de364c01c29fc102efa"};var l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="46f69bfa-07e5-4035-9f12-2dec919c89a8",e._sentryDebugIdIdentifier="sentry-dbid-46f69bfa-07e5-4035-9f12-2dec919c89a8")}catch{}})();const X={class:"mfp-inline-holder"},Y={class:"mfp-content"},Z={class:"c-popup-cnt-up"},K={class:"c-card-clm-txt"},Q={key:0},W={key:1},ee=E({__name:"CouponGetModal",props:{dialog:{type:Boolean,requied:!0},errorMessage:{type:String,required:!0}},emits:["onDialogUpdate"],setup(e,{emit:l}){const o=l,s=d=>{o("onDialogUpdate",d)},r=()=>{s(!1)};return(d,m)=>{const f=U("v-dialog");return _(),$(f,{transition:"fade-transition",zIndex:"99999",modelValue:e.dialog,"onUpdate:modelValue":s},{default:A(()=>[i("div",X,[i("div",Y,[i("div",Z,[i("div",K,[e.errorMessage?(_(),y("p",Q,T(e.errorMessage),1)):(_(),y("p",W,"ã¯ã¼ãã³åå¾ãã¾ãã"))]),i("div",{class:"c-btnwrap"},[i("a",{onClick:r,class:"popup-modal-dismiss c-btn is-S"},"éãã")])])])])]),_:1},8,["modelValue"])}}}),oe=Object.assign(V(ee,[["__scopeId","data-v-bedbcc6c"]]),{__name:"CouponGetModal"}),te=["innerHTML"],ne=E({__name:"CommonBannerSection",props:{code:{type:String,required:!0},isCouponBanner:{type:Boolean,default:!1},pageType:{type:String,default:""}},emits:["setBannerEvent"],async setup(e,{emit:l}){let o,s;const r=e,d=p(!1),m=p(""),f=n=>{d.value=n},x=([o,s]=M(()=>S({code:r.code},r.code)),o=await o,s(),o),{data:k}=([o,s]=M(()=>J(B.fixedContents.detail,x,{fatal:!1})),o=await o,s(),o),h=p(k.value),C=p(),{onViewPromotion:I,onSelectPromotion:D}=q(),w=p([]),G=n=>{const a=w.value.find(t=>t.promotion_code===n);a&&D({promotions:[{...a,creative_name:`${a.creative_name} ã¯ã¼ãã³çºè¡`}]})};return F(async()=>{if(r.isCouponBanner&&C.value){const n=[];if(C.value.querySelectorAll(".coupon-btn").forEach(a=>{const t=a.getAttribute("data-coupon-secret")??"";t&&n.push(t),a.addEventListener("click",async()=>{m.value="";const u=await L.coupon.issue(t),g=O.utils.getErrorMessage(u.status);g?m.value=g:G(t),f(!0)})}),n.length){const t=await S({couponSecrets:n}),u=await $fetch(B.member.coupons.get,t);if(u&&u.length){const g=R().public.site.coupon.incentiveClassId;w.value=u.map(c=>{const v=n.findIndex(P=>P===c.secret);return{promotion_id:c.id,promotion_name:c.name,promotion_type:g[Number(c.incentive.class_id)],promotion_code:c.code,creative_name:h.value?.name||"",creative_slot:v>=0?`${v+1}`:"",location_id:`${r.pageType}_couponBanner`}}).sort((c,v)=>Number(c.creative_slot)-Number(v.creative_slot)),I({promotions:w.value})}}}}),(n,a)=>{const t=oe;return _(),y(z,null,[b(h)?(_(),y("div",{key:0,innerHTML:b(h).body?.[0]?.data?.value,ref_key:"bannerElement",ref:C,class:"comp-cart-bnrarea",style:{order:"1"}},null,8,te)):H("",!0),j(t,{dialog:b(d),errorMessage:b(m),onOnDialogUpdate:f},null,8,["dialog","errorMessage"])],64)}}}),ce=Object.assign(ne,{__name:"CommonBannerSection"});export{ce as _};
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.