1import{D as f,H as G,c as I,E as X,L as q,s as Q,b as m,v as p,j as e,I as g,i as k,k as n,K as v,u as s,y as l,t as o,g as N,J as L,a as Y,W as T,O as Z,S as P}from"./vendor-vue-DXkV8it4.js";import{_ as U,c as ee}from"./app-BppaT81g.js";import{J as $,K as te,L as j,I as R,z as re,M as se,N as oe,O as ae,p as ne,B as le,P as C}from"./vendor-fa-CyThFpc3.js";import"./vendor-sentry-DJYVjEjh.js";const de={class:"flex items-start bg-red-50 border border-red-100 text-red-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},ie={key:0,class:"flex items-start bg-red-50 border border-red-100 text-red-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},ce={key:1,class:"flex items-start bg-red-50 border border-red-100 text-red-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},ue={href:"/addfunds",class:"text-brand-primary hover:text-brand-primary-dark underline font-semibold"},me={key:2,class:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},pe=["href"],be={class:"flex items-start bg-yellow-50 border border-yellow-100 text-yellow-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},xe={class:"flex items-start bg-yellow-50 border border-yellow-100 text-yellow-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},fe={class:"flex items-start bg-yellow-50 border border-yellow-100 text-yellow-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},he={class:"flex items-start bg-green-50 border border-green-100 text-green-700 px-4 py-3 rounded-lg shadow-sm mb-6",role:"alert"},ye={class:"flex-1"},_e={target:"_blank",href:"https://www.trustpilot.com/evaluate/juicysms.com",class:"font-semibold underline text-green-800 hover:text-green-900"},ge={class:"flex flex-wrap -mx-4"},ve={class:"w-full md:w-1/3 px-4 mb-6 md:mb-0"},we={class:"bg-gradient-to-br from-white to-gray-50 rounded-lg shadow-lg p-6 border border-gray-100 border-t-4 border-t-gray-200"},ke={class:"space-y-1 text-sm"},$e={class:"flex items-start py-3 px-2 border-t border-gray-100 rounded-md"},Ce={class:"block font-medium text-gray-500"},Ie={class:"text-gray-700"},Ne={class:"flex items-start py-3 px-3 border-t border-gray-100 rounded-md"},Oe={class:"block font-medium text-gray-500"},Ee={class:"text-gray-700"},Te={class:"flex items-start py-3 px-3 border-t border-gray-100 rounded-md"},De={class:"block font-medium text-gray-500"},Se={class:"text-gray-700 font-semibold"},Ae={class:"flex items-start py-3 px-3 border-t border-gray-100 rounded-md"},Be={class:"block font-medium text-gray-500"},Me=["href"],Le={key:1,class:"text-gray-500 italic"},Pe={class:"w-full md:w-2/3 px-4"},je={class:"bg-gradient-to-br from-white to-gray-50 rounded-lg shadow-lg p-6 border border-gray-100 border-t-4 border-t-brand-primary"},Re={class:"border-b border-gray-200 pb-5 mb-6"},Ge={class:"text-lg font-semibold text-gray-700 mb-2 flex items-center flex-wrap"},Ue={class:"ml-3 my-1 bg-brand-light text-brand-primary-dark font-mono font-medium text-base px-4 py-1.5 rounded-md border border-brand-primary shadow-sm"},We=["title"],Fe={key:0,class:"ml-3 text-xs text-brand-primary-dark font-medium bg-brand-light px-2 py-0.5 rounded"},Ke={key:"waiting",class:"space-y-5 min-h-[200px]"},Ve={class:"flex items-center text-base font-semibold text-brand-primary-dark"},Je={class:"text-gray-600 text-sm"},He={class:"bg-gray-50 border border-gray-200 rounded-md p-4"},ze={class:"text-sm font-semibold text-gray-700 mb-3"},Xe={class:"space-y-2 text-sm text-gray-700"},qe={class:"flex items-start"},Qe={class:"flex items-start"},Ye={class:"font-semibold"},Ze={class:"flex items-start"},et={class:"text-gray-500 text-xs"},tt={class:"pt-1"},rt=["disabled"],st={key:"failed",class:"space-y-4 min-h-[200px]"},ot={class:"text-base font-semibold text-red-600 flex items-center"},at={class:"text-gray-600 text-sm"},nt={key:"completed",class:"space-y-5 min-h-[200px]"},lt={class:"text-base font-semibold text-green-600 flex items-center"},dt={class:"bg-brand-light border border-brand-primary rounded-lg p-4 text-center shadow-inner"},it={class:"font-mono text-brand-primary-dark text-xl tracking-widest font-semibold"},ct={class:"text-gray-600 text-sm"},ut={class:"text-xs text-gray-500 italic"},mt={class:"flex flex-wrap gap-3 pt-4 border-t border-gray-100"},pt=["disabled"],bt={__name:"OrderPanel",props:{orderdata:Object,formerror:[String,null],trustpilot:Boolean,admin:Boolean},setup(i){const b=i,r=b.orderdata&&b.orderdata.data?b.orderdata.data:b.orderdata;console.log("Working with orderData:",r);const c=f("+31"),u=f(r&&typeof r.expires_at=="number"&&r.expires_at>0?r.expires_at:0),h=f(!1);f(r.sms_received!==void 0?r.sms_received!=="":!1);const y=f(!1),_=f(!1);let x=null,w=null;const D=G(),W=I(()=>{var t;return((t=D.props.currency)==null?void 0:t.code)||"EUR"}),F=I(()=>{var t;return((t=D.props.currency)==null?void 0:t.rates)||{EUR:1}}),O=t=>ee.formatMoney(t,W.value,F.value),K=t=>{const a=Math.floor(t/60),d=Math.floor(t%60);return`${a} ${a===1?"minute":"minutes"} ${d} ${d===1?"second":"seconds"}`},V=()=>{const t=document.createElement("input");t.value=r.number,t.id="inputID",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),h.value=!0,setTimeout(()=>{h.value=!1},3e3)},S=()=>{Y.post("/order/getstatus",{order_id:r.id}).then(t=>{r.order_status||(r.order_status={}),r.order_status.status=t.data.status,r.order_status.message=t.data.message}).catch(t=>{console.error(t)})},A=t=>{y.value||(y.value=!0,T.visit("/order/skip?orderId="+t))},J=t=>{_.value||(_.value=!0,window.location.href="/order/reorder?order_id="+t)},E=f(!1),B=()=>{E.value||(E.value=!0,T.post("/new-order/"+r.country+"/"+r.service_id,{},{preserveState:!1,onFinish:()=>{E.value=!1}}))},H=()=>{window.location.href="/order/cancel?orderId="+r.id+"&switch_service=509&switch_country="+r.country},z=()=>{T.post("/dismiss-trustpilot",{},{preserveScroll:!0})};return X(()=>
1{if(r.country=="UK"?c.value="+44":r.country=="USA"?c.value="+1":r.country=="DE"?c.value="+49":r.country=="PH"?c.value="+63":r.country=="PL"&&(c.value="+48"),S(),u.value>0){const t=Date.now()+u.value*1e3;x=setInterval(()=>{const a=t-Date.now();a<=0?(u.value=0,clearInterval(x)):u.value=a/1e3},1e3)}w=setInterval(()=>{if(r.order_status&&r.order_status.status!="WAITING"){clearInterval(w);return}S()},5e3)}),q(()=>{x&&clearInterval(x),w&&clearInterval(w)}),(t,a)=>{const d=Q("font-awesome-icon");return p(),m("div",null,[a[10]||(a[10]=e("div",{class:"mb-6 p-3 bg-blue-50 border border-blue-200 rounded-md text-center"},[e("span",{class:"text-gray-700"},[n("Looking for a temporary email as well? Check "),e("a",{href:"https://tempmailer.net/?ref=juicysms",target:"_blank",rel:"noreferrer",class:"text-blue-600 font-semibold hover:underline"},"TempMailer.net"),n(" for free premium domains for JuicySMS customers.")])],-1)),g(e("div",de,[l(d,{icon:s($),class:"mr-3 text-red-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",null,o(s(r).order_status&&s(r).order_status.message),1)],512),[[v,s(r).order_status&&(s(r).order_status.status=="EXPIRED"||s(r).order_status.status=="CANCELED"||s(r).order_status.status=="NUMBER_OFFLINE")]]),i.formerror&&i.formerror!="NO_BALANCE"&&!i.formerror.includes("ORDER_OPEN")?(p(),m("div",ie,[l(d,{icon:s($),class:"mr-3 text-red-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",null,o(i.formerror),1)])):k("",!0),i.formerror&&i.formerror=="NO_BALANCE"?(p(),m("div",ce,[l(d,{icon:s($),class:"mr-3 text-red-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",null,[n(o(t.$t("order.error_nofunds_pt1"))+" ",1),e("a",ue,o(t.$t("order.error_nofunds_pt2")),1),n(" "+o(t.$t("order.error_nofunds_pt3")),1)])])):k("",!0),i.formerror&&i.formerror.includes("ORDER_OPEN")?(p(),m("div",me,[e("p",null,[n(o(t.$t("order.error_order_open_pt1"))+" ",1),e("a",{href:"/order?id="+i.formerror.split("_")[2],class:"text-brand-primary hover:text-brand-primary-dark underline font-semibold"},o(t.$t("order.error_order_open_pt2")),9,pe),n(" "+o(t.$t("order.error_order_open_pt3")),1)])])):k("",!0),g(e("div",be,[l(d,{icon:s(te),class:"mr-3 text-yellow-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",null,[n(o(t.$t("order.error_too_long"))+" ",1),e("a",{onClick:a[0]||(a[0]=M=>A(s(r).id)),class:"text-brand-primary hover:text-brand-primary-dark underline font-semibold cursor-pointer"},o(t.$t("order.skip_btn")),1)])],512),[[v,s(r).expires_at<540&&s(r).order_status&&s(r).order_status.status=="WAITING"]]),g(e("div",xe,[l(d,{icon:s(j),class:"mr-3 text-yellow-400 text-xl flex-shrink-0"},null,8,["icon"]),a[3]||(a[3]=e("p",null,[n(" For Telegram make sure to use "),e("strong",{class:"font-semibold"},"the original telegram app from the AppStore/PlayStore on a physical mobile device"),n(" and NOT an emulator like Nox and Bluestacks. If you are on Android make sure you have the "),e("strong",{class:"font-semibold"},"original OS"),n(" and NOT an alternative like GrapheneOS. Else the SMS will "),e("strong",{class:"font-semibold"},"NOT"),n(" come in. ")],-1))],512),[[v,s(r).service=="Telegram"]]),g(e("div",fe,[l(d,{icon:s(j),class:"mr-3 text-yellow-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",null,[n(o(t.$t("order.google_chat_notice_pt1"))+" ",1),e("a",{onClick:H,class:"text-brand-primary hover:text-brand-primary-dark underline font-semibold cursor-pointer"},o(t.$t("order.google_chat_notice_pt2")),1),n(" "+o(t.$t("order.google_chat_notice_pt3")),1)])],512),[[v,s(r).service_id==1]]),g(e("div",he,[l(d,{icon:s(R),class:"mr-3 text-green-400 text-xl flex-shrink-0"},null,8,["icon"]),e("p",ye,[n(o(t.$t("order.trustpilot_review"))+" ",1),e("a",_e,o(t.$t("order.trustpilot_link_text")),1)]),e("button",{onClick:z,class:"ml-3 text-green-400 hover:text-green-600 text-xs whitespace-nowrap flex-shrink-0 cursor-pointer"},o(t.$t("order.trustpilot_dismiss")),1)],512),[[v,s(r).order_status&&s(r).order_status.status=="COMPLETED"&&!i.trustpilot]]),e("div",ge,[e("div",ve,[e("div",we,[a[4]||(a[4]=e("h3",{class:"text-base font-semibold text-gray-700 mb-4 border-b border-gray-100 pb-3"},"Order Summary",-1)),e("ul",ke,[e("li",$e,[l(d,{icon:s(re),class:"mr-3 text-gray-400 w-4 h-4 text-center pt-px flex-shrink-0 text-base"},null,8,["icon"]),e("div",null,[e("span",Ce,o(t.$t("order.table_created")),1),e("span",Ie,o(s(r).created_at),1)])]),e("li",Ne,[l(d,{icon:s(se),class:"mr-3 text-gray-400 w-4 h-4 text-center pt-px flex-shrink-0 text-base"},null,8,["icon"]),e("div",null,[e("span",Oe,o(t.$t("order.table_expires")),1),e("span",Ee,o(K(u.value)),1)])]),e("li",Te,[l(d,{icon:s(oe),class:"mr-3 text-gray-400 w-4 h-4 text-center pt-px flex-shrink-0 text-base"},null,8,["icon"]),e("div",null,[e("span",De,o(t.$t("order.table_service")),1),e("span",Se,o(s(r).service),1)])]),e("li",Ae,[l(d,{icon:s(ae),class:"mr-3 text-gray-400 w-4 h-4 text-center pt-px flex-shrink-0 text-base"},null,8,["icon"]),e("div",null,[e("span",Be,o(t.$t("order.table_options")),1),s(r).order_status&&s(r).order_status.status=="WAITING"?(p(),m("a",{key:0,href:"order/cancel?orderId="+s(r).id,class:"text-red-600 hover:text-red-800 hover:underline font-semibold"},o(t.$t("order.cancel_order")),9,Me)):(p(),m("span",Le,"N/A"))])])])])]),e("div",Pe,[e("div",je,[e("div",Re,[e("h2",Ge,[n(o(t.$t("order.your_number"))+" ",1),e("span",Ue,o(c.value)+" "+o(s(r).number),1),e("button",{onClick:V,class:"ml-3 my-1 text-gray-400 hover:text-brand-primary focus:outline-none transition duration-200 cursor-pointer",title:t.$t("order.copied")},[l(d,{icon:s(ne),class:"text-lg"},null,8,["icon"])],8,We),l(L,{name:"bounce"},{default:N(()=>
1[h.value?(p(),m("span",Fe,o(t.$t("order.copied")),1)):k("",!0)]),_:1})])]),l(L,{name:"fade",mode:"out-in"},{default:N(()=>[s(r).order_status&&s(r).order_status.status=="WAITING"?(p(),m("div",Ke,[e("div",Ve,[l(d,{icon:s(le),class:"mr-2 text-lg flex-shrink-0"},null,8,["icon"]),e("h3",null,o(t.$t("order.waiting")),1),a[5]||(a[5]=e("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-current ml-3 flex-shrink-0"},null,-1))]),e("p",Je,o(t.$t("order.waiting_subtitle")),1),e("div",He,[e("p",ze,o(t.$t("order.waiting_steps_heading")),1),e("ol",Xe,[e("li",qe,[a[6]||(a[6]=e("span",{class:"flex-shrink-0 w-5 h-5 rounded-full bg-brand-primary text-white text-xs font-semibold inline-flex items-center justify-center mr-3 mt-0.5"},"1",-1)),e("span",null,o(t.$t("order.waiting_step_1")),1)]),e("li",Qe,[a[8]||(a[8]=e("span",{class:"flex-shrink-0 w-5 h-5 rounded-full bg-brand-primary text-white text-xs font-semibold inline-flex items-center justify-center mr-3 mt-0.5"},"2",-1)),e("span",null,[n(o(t.$t("order.waiting_step_2_pt1"))+" ",1),e("strong",Ye,o(s(r).service),1),a[7]||(a[7]=n("."))])]),e("li",Ze,[a[9]||(a[9]=e("span",{class:"flex-shrink-0 w-5 h-5 rounded-full bg-brand-primary text-white text-xs font-semibold inline-flex items-center justify-center mr-3 mt-0.5"},"3",-1)),e("span",null,o(t.$t("order.waiting_step_3")),1)])])]),e("p",et,o(t.$t("order.waiting_reassurance")),1),e("div",tt,[e("button",{onClick:a[1]||(a[1]=M=>A(s(r).id)),disabled:y.value,class:"w-full inline-flex items-center justify-center bg-white border border-gray-300 text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-400 font-medium py-2 px-4 rounded-md transition duration-200 ease-in-out disabled:opacity-60 disabled:cursor-not-allowed text-sm cursor-pointer"},[l(d,{icon:s(C),class:"mr-2 text-xs"},null,8,["icon"]),n(o(t.$t("order.skip_btn")),1)],8,rt)])])):s(r).order_status&&s(r).order_status.status!="WAITING"&&s(r).order_status.status!="COMPLETED"?(p(),m("div",st,[e("h3",ot,[l(d,{icon:s($),class:"mr-2 text-lg flex-shrink-0 text-red-500"},null,8,["icon"]),n(o(t.$t("order.sorry")),1)]),e("p",at,o(t.$t("order.order_failed")),1),e("button",{onClick:B,class:"inline-flex items-center bg-brand-primary hover:bg-brand-primary-dark text-white font-medium py-2 px-5 rounded-md shadow-sm transition duration-200 ease-in-out text-sm hover:-translate-y-px cursor-pointer"},[l(d,{icon:s(C),class:"mr-2 text-sm"},null,8,["icon"]),n(o(O(s(r).price))+" - "+o(t.$t("order.neworder_btn"))+" "+o(s(r).service),1)])])):(p(),m("div",nt,[e("h3",lt,[l(d,{icon:s(R),class:"mr-2 text-lg flex-shrink-0 text-brand-primary"},null,8,["icon"]),n(" "+o(t.$t("order.received_sms")),1)]),e("div",dt,[e("p",it,o(s(r).order_status&&s(r).order_status.message),1)]),e("p",ct,o(t.$t("order.received_sms_text")),1),e("p",ut,o(t.$t("order.received_sms_tos")),1),e("div",mt,[e("button",{onClick:a[2]||(a[2]=M=>J(s(r).id)),disabled:_.value,class:"inline-flex items-center bg-brand-primary hover:bg-brand-primary-dark text-white font-medium py-2 px-5 rounded-md shadow-sm transition duration-200 ease-in-out disabled:opacity-60 disabled:cursor-not-allowed text-sm hover:-translate-y-px cursor-pointer"},[l(d,{icon:s(C),class:"mr-2 text-sm"},null,8,["icon"]),n(o(O(s(r).country=="USA"&&s(r).service=="Google"?0:s(r).price/2))+" - "+o(t.$t("order.reuse_btn"))+" "+o(s(r).service),1)],8,pt),e("button",{onClick:B,class:"inline-flex items-center bg-brand-dark hover:opacity-90 text-white font-medium py-2 px-5 rounded-md shadow-sm transition duration-200 ease-in-out text-sm hover:-translate-y-px cursor-pointer"},[l(d,{icon:s(C),class:"mr-2 text-sm"},null,8,["icon"]),n(o(O(s(r).price))+" - "+o(t.$t("order.neworder_btn"))+" "+o(s(r).service),1)])])]))]),_:1})])])])])}}},xt=U(bt,[["__scopeId","data-v-84a36004"]]),ft={class:"bg-gray-100 py-8 border-b border-gray-200"},ht={class:"container mx-auto px-4"},yt={class:"text-3xl font-semibold text-gray-800"},_t={class:"text-gray-600"},gt={"aria-label":"breadcrumb",class:"mt-2"},vt={class:"flex space-x-2 text-sm text-gray-500"},wt={class:"container mx-auto px-4 py-12 md:py-16"},kt={__name:"Order",props:{orderData:Object,trustpilot:Boolean,admin:Boolean},setup(i){const b=I(()=>G().props.errors),r=I(()=>{const c=Object.keys(b.value);return c.length>0?b.value[c[0]]:null});return(c,u)=>{var h,y,_,x;return p(),m("div",null,[l(s(Z),{title:`${c.$t("order.title")} #${(y=(h=i.orderData)==null?void 0:h.data)==null?void 0:y.id}`},null,8,["title"]),e("section",ft,[e("div",ht,[e("h1",yt,o(c.$t("order.title"))+" "+o((x=(_=i.orderData)==null?void 0:_.data)==null?void 0:x.id),1),e("span",_t,o(c.$t("order.subtitle")),1),e("nav",gt,[e("ol",vt,[e("li",null,[l(s(P),{href:"/",class:"hover:text-gray-700 hover:underline"},{default:N(()=>[n(o(c.$t("order.header_nav_pt1")),1)]),_:1})]),u[0]||(u[0]=e("li",null,[e("span",{class:"mx-1"},"/")],-1)),e("li",null,[l(s(P),{href:c.route("myorders"),class:"hover:text-gray-700 hover:underline"},{default:N(()=>[n(o(c.$t("order.header_nav_pt2")),1)]),_:1},8,["href"])]),u[1]||(u[1]=e("li",null,[e("span",{class:"mx-1"},"/")],-1)),u[2]||(u[2]=e("li",{class:"font-medium text-gray-700","aria-current":"page"},"Order Details",-1))])])])]),e("div",wt,[l(xt,{orderdata:i.orderData,trustpilot:i.trustpilot,admin:i.admin,formerror:r.value},null,8,["orderdata","trustpilot","admin","formerror"])])])}}},Ot=U(kt,[["__scopeId","data-v-c55417ad"]]);export{Ot as default}; 2//# sourceMappingURL=Order-bJ10mLhT.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.