PageSourceSearch

https://cdn.myfunnow.com/funnowwebv3/prod/_nuxt/K11qOT7D.js

js myfunnow.com collected 2026-10-02 02:27:50 UTC 5,519 bytes, 1 lines download raw bytes

1import{T as U,i as T,bt as x,G as H,bP as B,bQ as f,_}from"./DWjolwZt.js";import{a as F}from"./CmIbZ_Sb.js";import{C as N}from"./DtyXnP3T.js";import O from"./CVjehKMH.js";import{a7 as j,C as G,af as W,o as Y,ab as t,b5 as w,bf as p,ad as a,bi as g,a4 as s,bj as d,ac as n,bh as i,I as z,bk as v,a8 as m,bw as K,bB as Q,r as E,d as C}from"./Bamyh7fc.js";import{t as X}from"./BWMgPsMA.js";import{V as q}from"./iRVlTpmC.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="617ffa83-1490-4f11-a42d-ac8379e7f2f8",e._sentryDebugIdIdentifier="sentry-dbid-617ffa83-1490-4f11-a42d-ac8379e7f2f8")}catch{}const J={class:"cardContent__top"},Z={key:0,class:"cardDiscountText wd-text-gray80 wd-text-omd wd-mb-2"},ee=["innerHTML"],te={key:0,class:"wd-h-10"},oe={key:2,class:"cardEligibilities wd-bg-gray20 wd-rounded wd-p-2 wd-mt-2 wd-text-omd"},de={class:"!wd-mb-1"},ne={class:"cardContent__bottom wd-flex wd-justify-between wd-items-center wd-min-h-42px"},ae={key:0},se={key:1},ie={class:"wd-mr-3"},re={key:0},le={key:1},ce={key:1,class:"wd-text-white wd-text-otempmd"},me={key:2,class:"wd-text-gray60"},ue=j({name:"PromoCodeCard",__name:"PromoCodeCard",props:{isActive:{type:Boolean,default:!0},promoCodeInfo:{default:()=>({})},isHeightFixed:{type:Boolean,default:!1},isInModal:{type:Boolean,default:!1},isButtonLoading:{type:Boolean,default:!1},shouldAlwaysExpand:{type:Boolean,default:!1}},emits:["buttonClick"],setup(e,{emit:y}){const r=e,$=y,c=G(),D=W(),b=Q("cardDescriptionRef"),I=E(!1),h=E(!1),P=U.nl2br,L=C(()=>r.isActive?`wd-text-orange50 wd-text-otempmd ${r.promoCodeInfo.discount_text?"!wd-mb-1":"!wd-mb-2"}`:"inactive wd-text-gray60 wd-text-omd !wd-mb-0"),k=C(()=>r.promoCodeInfo.end_at?X.formatDateTime(r.promoCodeInfo.end_at,!0):""),A=C(()=>r.promoCodeInfo.end_at?`${c.$i18n.t("promocode_claim_date")} ${k.value}`:""),S=C(()=>{const o=B[r.promoCodeInfo.status]??B[x.FULLY_USED];return c.$i18n.t(o)}),V=C(()=>{switch(r.promoCodeInfo.status){case f.USED:return c.$i18n.t("promo_used_already");case f.EXPIRED:return c.$i18n.t("promo_expired_already");case f.NOT_APPLICABLE:return c.$i18n.t("promo_code_not_applicable");case f.FULLY_USED:return c.$i18n.t("promo_full_appled");case f.ACTIVE:default:return""}});Y(()=>{r.isActive&&(I.value=!!b.value&&b.value.scrollHeight>b.value.clientHeight)});function M(){F(H.PROMO_CODE);const o=r.promoCodeInfo.path;if(!o)return;if(o.startsWith("https")){location.href=o;return}const l=o.startsWith("/")?o:`/${o}`;D.push(c.$localePath(l))}function R(o){o&&$("buttonClick",o)}return(o,l)=>(t(),w(q,{class:"promoCodeCard wd-w-full wd-p-4 wd-pt-3 wd-border wd-border-solid wd-border-gray40 wd-rounded wd-self-baseline",elevation:"0"},{default:p(()=>[a("div",J,[a("p",{class:g(["cardTitle",s(L)])},d(e.promoCodeInfo.title),3),e.promoCodeInfo.discount_text?(t(),n("p",Z,d(e.promoCodeInfo.discount_text),1)):i("",!0),e.isActive?(t(),w(N,{key:1,modelValue:s(h),"onUpdate:modelValue":l[0]||(l[0]=u=>z(h)?h.value=u:null),hide:e.shouldAlwaysExpand||!s(I),"class-name":"mb-0 wd-mt-4 wd-text-otempsm wd-px-3 wd-py-0.5"},{default:p(()=>[a("div",{ref_key:"cardDescriptionRef",ref:b,class:g(["cardDescription wd-text-omd wd-min-h-12",e.shouldAlwaysExpand||s(h)?"wd-line-clamp-none":"wd-line-clamp-2"])},[a("div",null,[e.isInModal?(t(),n("div",{key:0,innerHTML:s(P)(e.promoCodeInfo.content)},null,8,ee)):(t(),n(m,{key:1},[v(d(e.promoCodeInfo.content)+" ",1),e.promoCodeInfo.condition?(t(),n(m,{key:0},[l[2]||(l[2]=a("br",null,null,-1)),v(" "+d(e.promoCodeInfo.condition),1)],64)):i("",!0)],64))])],2),e.isHeightFixed&&!s(I)?(t(),n("div",te)):i("",!0)]),_:1},8,["modelValue","hide"])):i("",!0),e.promoCodeInfo.eligibilities?.length?(t(),n("div",oe,[a("p",de,d(o.$t("promocode_condition")),1),a("ul",null,[(t(!0),n(m,null,K(e.promoCodeInfo.eligibilities,u=>(t(),n("li",{key:u},d(u),1))),128))])])):i("",!0)]),a("hr",{class:g(["wd-my-3 wd-border-0 wd-border-t wd-border-dashed",e.isActive?"wd-border-orange50":"inactive wd-border-gray60"])},null,2),a("div",ne,[a("div",{class:g(["wd-flex wd-flex-col wd-justify-center wd-gap-0.5 wd-mr-2",[e.isActive?"wd-text-gray80":"wd-text-gray60"]])},[e.isInModal?(t(),n(m,{key:1},[e.promoCodeInfo.usage_rate?(t(),n("p",re,d(e.promoCodeInfo.usage_rate),1)):i("",!0),s(A)?(t(),n("p",le,d(s(A)),1)):i("",!0)],64)):(t(),n(m,{key:0},[e.isActive&&e.promoCodeInfo.usage_rate?(t(),n("p",ae,d(e.promoCodeInfo.usage_rate),1)):i("",!0),a("p",null,d(o.$t("promo_expired_date"))+" "+d(s(k)),1),e.promoCodeInfo.times>1&&e.isActive?(t(),n("p",se,[a("span",ie,d(o.$t("promo_total_times"))+" "+d(e.promoCodeInfo.times),1),a("span",null,d(o.$t("promo_code_remain_times"))+" "+d(e.promoCodeInfo.remain_times),1)])):i("",!0)],64))],2),e.isInModal?(t(),w(T,{key:0,class:"claim-btn",height:"40",color:e.promoCodeInfo.status===s(x).ACTIVE?"orange50":"orange30",disabled:e.promoCodeInfo.status!==s(x).ACTIVE||e.isButtonLoading,variant:"flat",onClick:l[1]||(l[1]=u=>R(e.promoCodeInfo.code))},{default:p(()=>[e.isButtonLoading?(t(),w(O,{key:0})):(t(),n("span",ce,d(s(S)),1))]),_:1},8,["color","disabled"])):(t(),n(m,{key:1},[e.isActive&&e.promoCodeInfo.path?(t(),w(T,{key:0,class:"text-white",height:"40",color:"orange50",variant:"flat",onClick:M},{default:p(()=>[v(d(o.$t("all_discover")),1)]),_:1})):i("",!0)],64)),e.isActive?i("",!0):(t(),n("p",me,d(s(V)),1))])]),_:1}))}}),ge=_(ue,[["__scopeId","data-v-021bc216"]]);export{ge as P};

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.