1import{l as g,v as i,M as S,b6 as k,o as y,c as R,d as e,a,B,g as C,h as _,p as E,b as x,_ as H}from"./RCr3O1Ik.js";import{d as m}from"./B1K08hXr.js";import"./Do1OVwwS.js";const I=""+new URL("repeat-discount-coupon.BapEmCi_.png",import.meta.url).href,r=n=>(E("data-v-05baf07d"),n=n(),x(),n),L={key:0,class:"repeatDiscountModal-overlay"},V={class:"repeatDiscountModal-content"},A=r(()=>e("div",{class:"repeatDiscountModal-titleArea"},[e("h3",{class:"repeatDiscountModal-title"},"ååè³¼å ¥ã®æ¹éå®ï¼")],-1)),N=r(()=>e("div",{class:"repeatDiscountModal-subtitle"},"ã¾ãåå ããããªã£ãæã«ãå¾ãªãªãã¼ãå¸",-1)),O=r(()=>e("div",{class:"repeatDiscountModal-couponArea"},[e("div",{class:"coupon-ticket"},[e("img",{src:I,alt:"åæ°å¸ãªãã¼ãå¸ - Â¥500OFF 2æ æå¹æéï¼è³¼å ¥æ¥ãã90æ¥é",class:"coupon-image"})])],-1)),P={class:"repeatDiscountModal-buttonArea"},T=["disabled"],F=["disabled"],U=r(()=>e("br",null,null,-1)),W=g({__name:"RepeatDiscountModal",props:{shouldShowModal:{type:Boolean}},emits:["close-modal","purchase-with-repeat-discount","purchase-without-repeat-discount"],setup(n,{emit:f}){const d=n,p=f,t=i(!1),u=i(!1),l=i(!1),o=i(null),w=()=>{!d.shouldShowModal||l.value||(o.value=()=>{const s=window.pageYOffset||document.documentElement.scrollTop,c=window.innerHeight,h=document.body.scrollHeight-c;(h>0?s/h:0)>=.5&&!l.value&&(l.value=!0,M(),o.value&&(window.removeEventListener("scroll",o.value),o.value=null))},window.addEventListener("scroll",o.value,{passive:!0}))},M=()=>{d.shouldShowModal&&l.value&&(u.value=!0)},v=()=>{u.value=!1},b=async()=>{if(t.value)return;t.value=!0;const s=_();m(s,"追å ãã"),p("purchase-with-repeat-discount",{includeRepeatDiscount:!0}),v()},D=async()=>{if(t.value)return;t.value=!0;const s=_();m(s,"追å ããªã"),p("purchase-without-repeat-discount",{includeRepeatDiscount:!1}),v()};return S(()=>{w()}),k(()=>{o.value&&window.removeEventListener("scroll",o.value)}),(s,c)=>u.value?(y(),R("div",L,[e("div",{class:"repeatDiscountModal",onClick:c[0]||(c[0]=B(()=>{},["stop"]))},[e("div",V,[A,a(),N,a(),O,a(),e("div",P,[e("button",{disabled:t.value,class:"repeatDiscountModal-button secondary",onClick:D},"追å ããªã",8,T),a(),e("button",{disabled:t.value,class:"repeatDiscountModal-button primary",onClick:b},[a(` 2 追å ãã`),U,a(`ï¼ï¼500åï¼ 3 `)],8,F)])])])])):C("",!0)}}),G=H(W,[["__scopeId","data-v-05baf07d"]]);export{G as default}; 4//# sourceMappingURL=C-rO_Io3.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.