1var e=(e,a,t)=>new Promise(((i,l)=>{var o=e=>{try{n(t.next(e))}catch(a){l(a)}},s=e=>{try{n(t.throw(e))}catch(a){l(a)}},n=e=>e.done?i(e.value):Promise.resolve(e.value).then(o,s);n((t=t.apply(e,a)).next())}));import{j as a,f as t,m as i,a as l,o,X as s,S as n,U as r,Y as d,u,a0 as c,Z as v,F as p,a6 as m,D as h,a1 as g,G as f,c as y,_ as b,a7 as w,a3 as k,a4 as j}from"./vendor.vue-8e1ca106.js";import{_ as T,df as I,dg as C,dh as L,di as F,dj as P,b as S,A as E,dk as U,dl as A,dm as _,dn as q,dp as O}from"../../index-38cba2d9.js";import{a as N,u as R}from"./vendor.vue-router-3ad40f34.js";import{u as x}from"./vendor.vuex-976f11e2.js";import W from"./CustomerSay-a66b2330.js";import{m as M}from"./vendor.ant-design-vue-2ee9bbf9.js";import"./vendor.ant-design-c80223b9.js";import"./vendor.ctrl-e15579ee.js";import"./vendor.vueuse-b0ad69f5.js";import"./vendor.axios-24b0428f.js";import"./vendor.qs-8be921a7.js";import"./vendor.side-channel-b37bd2e2.js";import"./vendor.get-intrinsic-3178b4a5.js";import"./vendor.has-symbols-456daba2.js";import"./vendor.function-bind-3b46cdfe.js";import"./vendor.has-5d462d7b.js";import"./vendor.call-bind-628b274d.js";import"./vendor.object-inspect-13c19352.js";import"./vendor.costway-tracking-v2-ce83bed4.js";import"./vendor.moment-655a4810.js";import"./vendor.vue3-lazyload-40a81281.js";import"./vendor.vue-gtm-6d74a337.js";import"./vendor.url-search-params-polyfill-4728772f.js";import"./vendor.lucky-canvas-6613cddc.js";import"./vendor.lodash-es-ea6e8d41.js";import"./vendor.swiper-c3f0ecfa.js";import"./vendor.dom7-82d99216.js";import"./vendor.ssr-window-4d6020fc.js";import"./vendor.qrcode-f3f50c47.js";import"./vendor.encode-utf8-2ec93547.js";import"./vendor.dijkstrajs-b38e4460.js";import"./vendor.viewerjs-affe6b87.js";import"./vendor.vue3-perfect-scrollbar-7ba9a369.js";import"./vendor.perfect-scrollbar-6d2dffac.js";import"./vendor.babel-c01be30c.js";import"./vendor.dayjs-fad73014.js";import"./vendor.resize-observer-polyfill-ed8efec3.js";import"./vendor.vue-types-4744ec4d.js";import"./vendor.dom-align-d32d5309.js";import"./vendor.async-validator-9428d82e.js";import"./vendor.scroll-into-view-if-needed-3e6f9e86.js";import"./vendor.compute-scroll-into-view-fb7a621d.js";import"./vendor.lodash-fa2b3534.js";import"./CustomerSayPop-71a767eb.js";const Y=e=>(k("data-v-1717ee5a"),e=e(),j(),e),H={class:"freetrials"},V={class:"ft-ban"},D=Y((()=>d("img",{src:"https://cdn1.costway.com/costway/images/guaguale/freetrialsban1.jpg",alt:"costway img"},null,-1))),G={class:"button"},z={class:"ft-current ft-content"},B=Y((()=>d("img",{src:U,alt:"costway img",class:"ft-icon"},null,-1))),K={class:"current-cont"},$=f(" FREE TRIAL ITEMS IN THE "),J=Y((()=>d("img",{src:I,alt:"costway img"},null,-1))),X={key:0,class:"ft-pro"},Z=["onClick"],Q=["src"],ee={class:"btn"},ae=["onClick"],te={key:1,class:"applied"},ie={key:1,class:"nopro"},le=[Y((()=>d("img",{src:A,alt:"costway img"},null,-1))),Y((()=>d("p",null,"More Surprises Are On The Way!",-1)))],oe={key:2,class:"note"},se={key:0,class:"ft-before ft-content"},ne={class:"before-content"},re={class:"before-tabs"},de=["onClick"],ue=f(" FREE TRIAL ITEMS IN THE "),ce={key:0,class:"before-products"},ve=["onClick"],pe=["src"],me={key:1,class:"before-nopro"},he=[Y((()=>d("img",{src:A,alt:"costway img"},null,-1))),Y((()=>d("p",null,"More Surprises Are On The Way!",-1)))],ge={class:"winners-section"},fe={class:"lucky-badge"},ye=Y((()=>d("img",{src:_,alt:"Our Lucky 10"},null,-1))),be={key:0},we=Y((()=>d("br",null,null,-1))),ke=f("This Period"),je={key:1},Te=[f("Our Lucky 10 "),Y((()=>d("br",null,null,-1))),f("This Period")],Ie={key:0,class:"email-lists"},Ce={key:1,class:"noemail"},Le=Y((()=>d("img",{src:q,alt:"costway img"},null,-1))),Fe={class:"ft-others"},Pe={key:0,class:"saying ft-content"},Se=Y((()=>d("div",{class:"title"},[d("h1",null,[f("What Pepole are Saying "),d("img",{src:I,alt:"costway img"})])],-1))),Ee=w('<div class="guidline ft-content" data-v-1717ee5a><div class="title" data-v-1717ee5a><h1 data-v-1717ee5a>Free Trial Guideline <img src="'+I+'" alt="costway img" data-v-1717ee5a></h1><h4 data-v-1717ee5a>- Follow the steps below -</h4></div><ul data-v-1717ee5a><li data-v-1717ee5a><img src="'+C+'" alt="costway img" data-v-1717ee5a><div class="cont" data-v-1717ee5a><h2 data-v-1717ee5a>APPLY</h2><p data-v-1717ee5a>Click on âApply Nowâ button and fill up the form with your information including phone number and Facebook profile page link. </p></div></li><li data-v-1717ee5a><img src="'+L+'" alt="costway img" data-v-1717ee5a><div class="cont" data-v-1717ee5a><h2 data-v-1717ee5a>WAIT</h2><p data-v-1717ee5a>10 participants will be selected each period for Items free trial. The result will be announced within 2 weeks once you apply. </p></div></li><li data-v-1717ee5a><img src="'+F+'" alt="costway img" data-v-1717ee5a><div class="cont" data-v-1717ee5a><h2 data-v-1717ee5a>PURCHASE</h2><p data-v-1717ee5a>If you are lucky enough to be informed by email as the free trial participant, purchasing the item you would like for free trial is a MUST. Your purchase will soon be refunded without asking for your item. Yes itâs actually free giveaway! </p></div></li><li data-v-1717ee5a><img src="'+P+'" alt="costway img" data-v-1717ee5a><div class="cont" data-v-1717ee5a><h2 data-v-1717ee5a>SHARE</h2><p data-v-1717ee5a> Once you get your free trial item. You will need to: 1. Creating a Facebook post. 2. Writing a review on the website. </p></div></li></ul></div><div class="rules ft-content" id="rules-section" data-v-1717ee5a><div class="rules-title" data-v-1717ee5a><h1 data-v-1717ee5a>Costway Free Trial - Rules & Terms <img src="'+I+'" alt="costway img" data-v-1717ee5a></h1></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>1. Campaign Schedule</h2><ul data-v-1717ee5a><li data-v-1717ee5a>The campaign is held twice a month:</li><li data-v-1717ee5a><strong data-v-1717ee5a>Period 1:</strong> 1st to 15th of each month</li><li data-v-1717ee5a><strong data-v-1717ee5a>Period 2:</strong> 16th to the last day of the month</li><li data-v-1717ee5a>Each period features <strong data-v-1717ee5a>4 trial items</strong> to choose from.</li><li data-v-1717ee5a><strong data-v-1717ee5a>10 participants</strong> will be selected each period.</li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>2. Application Process</h2><ul data-v-1717ee5a><li data-v-1717ee5a>Apply through the <strong data-v-1717ee5a>official campaign form</strong> during the active period.</li><li data-v-1717ee5a>Required information:</li><li data-v-1717ee5a>Valid phone number(optional)</li><li data-v-1717ee5a>Link to an active Facebook profile</li><li data-v-1717ee5a>Incomplete applications will not be considered.</li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>3. Selection Criteria</h2><p data-v-1717ee5a>Participants will be selected based on:</p><ul data-v-1717ee5a><li data-v-1717ee5a><strong data-v-1717ee5a>Purchase history</strong> (frequency and total spending)</li><li data-v-1717ee5a><strong data-v-1717ee5a>Social media influence</strong> (number of followers, engagement, and content quality) </li></ul><p data-v-1717ee5a>Customers who have contributed to sales in the past and have active social profiles have a higher chance of being selected.</p><p data-v-1717ee5a>Selected participants will be:</p><ul data-v-1717ee5a><li data-v-1717ee5a><strong data-v-1717ee5a>Showcased on the campaign page</strong></li><li data-v-1717ee5a><strong data-v-1717ee5a>Notified by email during the following trial period</strong></li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>4. How the Free Trial Works</h2><ul data-v-1717ee5a><li data-v-1717ee5a>Selected participants must <strong data-v-1717ee5a>purchase</strong> their chosen trial item upfront.</li><li data-v-1717ee5a>To qualify for a <strong data-v-1717ee5a>100% refund</strong>, participants must:</li><li data-v-1717ee5a>Create <strong data-v-1717ee5a>one social media post</strong> featuring the product with a visible 100% public status shown for over 2 weeks.</li><li data-v-1717ee5a>Leave it set to "Public" continuously for 14 full days after posting. Posts edited such as "Friends-only" or "Hidden" during this period will not qualify for a refund.</li><li data-v-1717ee5a>Include original photos or videos</li><li data-v-1717ee5a>Follow & Tag our official account: @Costway</li><li data-v-1717ee5a>Use the campaign hashtag: #Costwaytester</li><li data-v-1717ee5a>Submit <strong data-v-1717ee5a>one written review</strong> on our website for the item(product page of this item).</li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>5. Refund Process</h2><ul data-v-1717ee5a><li data-v-1717ee5a>Once both the social post and review are verified:</li><li data-v-1717ee5a>
1We automatically track your post's public visibility from the moment you publish it. Once the 14-day period ends, our team will issue your full refund to the original payment method within 3 business days. </li><li data-v-1717ee5a>If tasks are not completed as required:</li><li data-v-1717ee5a>The participant will <strong data-v-1717ee5a>forfeit the refund</strong></li><li data-v-1717ee5a>Users participating in the trial of the Free Trial product: any refunds, benefits, or compensation shall not exceed the Free Trial product amount.</li><li data-v-1717ee5a> You will only receive a full refund for the Free Trial product you actually paid. </li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>6. Posting Timeline</h2><ul data-v-1717ee5a><li data-v-1717ee5a>All required content and reviews must be submitted <strong data-v-1717ee5a>within 14 days</strong> of receiving the product.</li><li data-v-1717ee5a>Late submissions will not be eligible for a refund.</li></ul></div><div class="rules-section" data-v-1717ee5a><h2 data-v-1717ee5a>7. Use of Submitted Content</h2><p data-v-1717ee5a>By participating in the Free Trial Campaign, you agree that <strong data-v-1717ee5a>any social media posts, photos, videos, or written content</strong> you create as part of the trial may be <strong data-v-1717ee5a>used by Costway for promotional purposes</strong>, including but not limited to:</p><ul data-v-1717ee5a><li data-v-1717ee5a>Display on the <strong data-v-1717ee5a>Free Trial campaign page</strong></li><li data-v-1717ee5a>Sharing on <strong data-v-1717ee5a>Costway's official social media accounts</strong></li><li data-v-1717ee5a>Use in <strong data-v-1717ee5a>marketing emails or advertisements</strong></li></ul><p data-v-1717ee5a>We may credit your name or social handle when sharing your content unless you request otherwise. </p></div></div>',2),Ue={class:"info-content"},Ae=Y((()=>d("h2",null,"My Info",-1))),_e={class:"info-submit"},qe={class:"success-content"},Oe=Y((()=>d("img",{src:O,alt:"costway img"},null,-1))),Ne=Y((()=>d("h2",null,"Application Submitted",-1))),Re=T({__name:"FreeTrials",setup(w){const k=x(),j=N();R();const T=a((()=>k.state.customer.isLogin)),I=t("changeLoginPopVisible"),C=e=>{window.showDetailPop(e.productId),S("Newitems_FreeTrial_clickapply",{activity_id:e.freeId,sku:e.sku})},L=i([]),F=i([]),P=i(0),U=i(!1),A=i(""),_=i(0),q=i(""),O=i(!1),Y=i(!1),Re=i(!1),xe=l({phone:"",facebookLink:""}),We=i(null),Me=(e,a)=>{T.value?("bannerInfo"===e?Re.value=!0:(Re.value=!1,We.value=a),O.value=!0):I(!0,1,window.location.pathname+window.location.search)},Ye=()=>{xe.facebookLink&&""!==xe.facebookLink.trim()?(E.FreeTrialApply({userId:k.state.customer.gtmGlobalValue.customer_id?k.state.customer.gtmGlobalValue.customer_id:0,whichId:_.value,phoneNumber:xe.phone,fbUrl:xe.facebookLink,sku:We.value?We.value.sku:""}).then((e=>{200==e.code&&e.data?(Re.value?M.success("Info Updated"):(Y.value=!0,S("Newitems_FreeTrial_applyitem",{activity_id:_.value,sku:We.value.sku})),U.value=!0):M.error(e.message)})).catch((e=>{M.error("Error submitting free trial application,please try again later.")})),O.value=!1):M.warning("Please enter your Facebook page link")},He=()=>e(this,null,(function*(){try{const e=yield E.getFreetrialInfo({userId:k.state.customer.gtmGlobalValue.customer_id?k.state.customer.gtmGlobalValue.customer_id:0});L.value=e.data.productLists||[],F.value=e.data.beforeList||[],U.value=e.data.isSignUp||!1,A.value=e.data.signUpTime||"",q.value=e.data.announceTime||"",_.value=e.data.freeId||0,xe.phone=e.data.signUpPhoneNumber||"",xe.facebookLink=e.data.signUpFbUrl||"";const a=j.query.activityid;if(a&&F.value.length>0){const e=F.value.findIndex((e=>e.freeId==a));P.value=-1!==e?e:0}else P.value=0}catch(e){}})),Ve=i([]),De=()=>e(this,null,(function*(){try{const e=yield E.getFreetrialBuyershow({page:1,pageSize:10});Ve.value=e.data.datalists||[]}catch(e){}})),Ge=()=>{I(!0,1,window.location.pathname+window.location.search)},ze=()=>{const e=document.getElementById("rules-section");e&&e.scrollIntoView({behavior:"smooth",block:"start"})};return o((()=>{He(),De()})),(e,a)=>{const t=s("a-input"),i=s("a-form-item"),l=s("a-modal");return n(),r("div",H,[d("div",V,[D,d("div",G,[d("button",{class:"btn-rules",onClick:ze},"Rules"),u(T)?c("",!0):(n(),r("button",{key:0,class:"sigin",onClick:Ge},"Log in/Sign up")),U.value?(n(),r("button",{key:1,class:"applyinfo",onClick:a[0]||(a[0]=e=>Me("bannerInfo"))},"My apply info")):c("",!0)])]),d("div",{class:g(["ft-try",{"ft-try-nobefore":0==F.value.length}])},[d("div",z,[B,d("div",K,[d("h2",null,[$,d("b",null,"PERIOD OF "+v(A.value),1),J]),L.value&&L.value.length>0?(n(),r("div",X,[d("ul",null,[(n(!0),r(p,null,m(L.value,((e,a)=>(n(),r("li",{key:a,onClick:a=>C(e)},[d("img",{src:e.productImage,alt:"costway img"},null,8,Q),d("h4",null,v(e.productName),1),d("p",null,"$"+v(e.specialPrice),1),d("div",ee,[U.value?(n(),r("button",te,"Applied")):(n(),r("button",{key:0,class:"apply",onClick:h((a=>Me("productInfo",e)),["stop"])},"Apply Now",8,ae))])],8,Z)))),128))])])):(n(),r("div",ie,le)),L.value&&L.value.length>0?(n(),r("p",oe,' *Click on ANY "Apply Now" button to apply. The results will be announced during '+v(q.value)+". ",1)):c("",!0)])]),F.value&&F.value.length>0?(n(),r("div",se,[d("div",ne,[d("div",re,[(n(!0),r(p,null,m(F.value,((e,a)=>(n(),r("div",{key:a,class:g(["tab-item",{active:P.value===a}]),onClick:e=>P.value=a},[1===a?(n(),r(p,{key:0},[ue,d("b",null,"PERIOD OF "+v(e.signUpTime),1)],64)):(n(),r(p,{key:1},[f(" Period Of "+v(e.signUpTime),1)],64))],10,de)))),128))]),F.value[P.value].productLists&&F.value[P.value].productLists.length>0?(n(),r("div",ce,[(n(!0),r(p,null,m(F.value[P.value].productLists,((e,a)=>(n(),r("div",{key:a,class:"product-card",onClick:a=>C(e)},[d("img",{src:e.productImage,alt:"costway img"},null,8,pe),d("h4",null,v(e.productName),1),d("p",null,"$"+v(e.specialPrice),1),d("button",null,v(e.isSignUp?"Applied":"Unavaliable"),1)],8,ve)))),128))])):(n(),r("div",me,he))]),d("div",ge,[d("div",fe,[ye,F.value[P.value].announceEmailLists.length&&F.value[P.value].announceEmailLists.length>0?(n(),r("p",be,[f("Our Lucky "+v(F.value[P.value].announceEmailLists.length)+" ",1),we,ke])):(n(),r("p",je,Te))]),F.value[P.value].announceEmailLists&&F.value[P.value].announceEmailLists.length>0?(n(),r("div",Ie,[(n(!0),r(p,null,m(F.value[P.value].announceEmailLists,((e,a)=>(n(),r("div",{key:a,class:"email-item"},v(e),1)))),128))])):(n(),r("div",Ce,[Le,d("p",null,"*The results will be announced during "+v(F.value[P.value].announceTime)+".",1)]))])])):c("",!0)],2),d("div",Fe,[Ve.value&&Ve.value.length>0?(n(),r("div",Pe,[Se,y(W,{data:Ve.value},null,8,["data"])])):c("",!0),Ee]),y(l,{visible:O.value,"onUpdate:visible":a[3]||(a[3]=e=>O.value=e),closable:!0,maskClosable:!1,centered:"",footer:null,class:"myinfo"},{default:b((()=>[d("div",Ue,[Ae,y(i,null,{default:b((()=>[y(t,{value:xe.facebookLink,"onUpdate:value":a[1]||(a[1]=e=>xe.facebookLink=e),placeholder:"Facebook page link"},null,8,["value"])])),_:1}),y(i,null,{default:b((()=>[y(t,{value:xe.phone,"onUpdate:value":a[2]||(a[2]=e=>xe.phone=e),placeholder:"Phone Number (Optional)"},null,8,["value"])])),_:1}),d("div",_e,[d("button",{class:"submit",onClick:Ye},v(Re.value?"OK":"Submit"),1)])])])),_:1},8,["visible"]),y(l,{visible:Y.value,"onUpdate:visible":a[5]||(a[5]=e=>Y.value=e),closable:!0,maskClosable:!1,centered:"",footer:null,class:"success-modal"},{default:b((()=>[d("div",qe,[Oe,Ne,d("p",null,"You're now on the list for this period.We'll announce the selected participants between "+v(q.value)+". If you're chosen, an email notification will be sent with the next steps. Thanks and good luck!",1),d("button",{class:"suc-ok",onClick:a[4]||(a[4]=e=>Y.value=!1)},"OK")])])),_:1},8,["visible"])])}}},[["__scopeId","data-v-1717ee5a"]]);export{Re 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.