1"use strict";(self.webpackChunkeh4u=self.webpackChunkeh4u||[]).push([[4530],{8995:function(e,t,a){a.d(t,{D:function(){return c},default:function(){return s}});var r=a(41594);let n;function o(){const[e,t]=(0,r.useState)(!1),[a,n]=(0,r.useState)(!1);return{hasFocus:e,setHasFocus:t,hasError:a,setHasError:n}}function c(e,t){const a=o(),n=o(),c=o(),[s,l]=(0,r.useState)(""),[i,u]=(0,r.useState)("");return(0,r.useMemo)(()=>({ccn:a,exp:n,cvv:c,setProcessErrors:e,cardType:s,setCardType:l,token:i,setToken:u,onError:t}),[a,n,c,e,s,l,i,u,t])}function s(e){return new Promise((t,a)=>{const r=fetch("/payments/bluesnap/hpf/",{mode:"cors",credentials:"include"}).then(e=>e.text());window.loadScript("https://pay.bluesnap.com/web-sdk/5/bluesnap.js",()=>{window.bs_init=!0,function(e,t){const a={"3DS":!0,onFieldEventHandler:{onFocus:function(t){"ccn"!==t&&"exp"!==t&&"cvv"!==t||e[t].setHasFocus(!0)},onBlur:function(){["ccn","exp","cvv"].forEach(t=>e[t].setHasFocus(!1))},onError:function(t,a,r,n,o){"ccn"===t||"exp"===t||"cvv"===t?e[t].setHasError(!0):14100===a?console.log("3-D Secure is not enabled"):14101===a?(console.log("3-D Secure authentication failed"),e.setProcessErrors([React.createElement("div",null,"3DS Failed")])):14102===a?console.log("3-D Secure object is missing required fields"):14102===a?console.log("3-D Secure client error"):(console.error("Bluesnap.onError",t,a,r,n,o),e.setProcessErrors([React.createElement("div",null,"Error processing transaction",r?": "+r:"",". Check your"," ",React.createElement("a",{href:"/account/logs/payments/",target:"_blank"},"billing history"))])),e.onError?.()},onType:function(t,a){e.setCardType(a)},onValid:function(t){"ccn"!==t&&"exp"!==t&&"cvv"!==t||e[t].setHasError(!1)}},style:{input:{"font-size":"14px","font-family":"Helvetica Neue,Helvetica,Arial,sans-serif","line-height":"1.42857143",color:"#000","background-color":"white"}},ccnPlaceHolder:"1234 5678 9012 3456",expPlaceHolder:"MM YY",expDropDownSelector:!1};return t.then(t=>(n&&clearInterval(n),e.setToken(t),a.token=t,window.bluesnap.hostedPaymentFieldsCreate(a),a))}(e,r).then(t).catch(a)})})}},24007:function(e,t,a){function r(e){return{address:{country:e.country.value,state:e.state.value,city:e.city.value,address1:e.adrl1.value,address2:e.adrl2.value,zip:e.zip.value,phone:e.phone.value},firstName:e.first_name.value,lastName:e.last_name.value}}a.d(t,{U:function(){return r}})},24098:function(e,t,a){a.d(t,{A:function(){return l}});var r=a(95420),n=a(39708),o=a(41594),c=a.n(o),s=a(77654);function l(e){const[t,a]=(0,o.useState)(e.value),[l,i]=(0,o.useState)(e.list??[]),u=(0,o.useRef)(t);u.current=t;const d=(0,o.useRef)(l);d.current=l,(0,o.useEffect)(()=>{i(e.list??[])},[e.list]);const[m,{loading:p}]=(0,r.n)(n.J1` 2 mutation HideCC($id: ID!) { 3 payments { 4 cc(id: $id) { 5 hide { 6 ok 7 errors 8 warnings 9 data { 10 id 11 hidden 12 } 13 } 14 } 15 } 16 } 17 `);(0,o.useEffect)(()=>{a(e.value)},[e.value]);const y=(0,o.useCallback)(()=>{const t=u.current;m({variables:{id:(0,s._d)("UsersCc",parseInt(t+"",10))}}).then(({data:r})=>{if(r?.payments.cc?.hide.ok){const r=d.current.filter(e=>e.id!==t),n=r.length?r[0].id:"";i(r),a(n),"function"==typeof e.onChange&&e.onChange(n)}}).catch(e=>{console.log(e)})},[e.onChange]),f=(0,o.useCallback)(t=>{const r=t.target.value;"function"==typeof e.onChange&&e.onChange(r),a(r)},[e.onChange]),h=l.find(e=>e.id==t);return c().createElement("div",null,c().createElement("select",{name:"cc_i
17d",className:"cc_select",value:h?t:"",onChange:f},e.canAdd&&c().createElement("option",{value:""},"New credit card"),l.map(e=>c().createElement("option",{value:e.id,key:e.id},"Credit Card ****",e.cc4))),"Â ",h&&(p?c().createElement(s.aH,null):c().createElement("span",{className:"dashed alink remove-card",onClick:y},"Remove this card")))}},40714:function(e,t,a){function r(){return React.createElement("div",{className:"comodo"},React.createElement("div",{className:"text"},"We use the highest standard of encryption technology to create a secure environment for the transfer of sensitive information between your browser and our secured server using the latest TSL version of Secured Socket Layers (SSL)."))}a.d(t,{A:function(){return r}})},41837:function(e,t,a){a.d(t,{o:function(){return T},A:function(){return D}});var r=a(41594),n=a.n(r),o=a(61225),c=a(77654),s=a(88053),l=a(86676);const i={PAP:"blue",SAP:"purple",SUAP:"brown",default:"green"},u=e=>{switch(e.product){case"SP":return React.createElement("span",null,"Start Pages");case"P":case"PO":case"U":case"UO":return React.createElement("span",null,e.quantity," month",e.quantity>1?"s":""," ","U"===e.product||"UO"===e.product?"Ultimate":"Premium"," membership","PO"===e.product||"UO"===e.product?" (One Time Offer)":"");case"SR":return React.createElement("span",null,e.quantity," month",e.quantity>1?"s":""," EasyHits4U Tools+");default:return React.createElement("span",{"data-option-value":e.quantity},e.quantity>1?(0,c.ob)((0,s.W)(e.quantity,e.couponBonus,e.couponInPercent),!0):""," ",e.productName||l.KR[e.product]||e.product)}},d=e=>React.createElement("div",{className:"order"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",{style:{width:"35px"}},React.createElement("div",{className:"type "+(i[e.product]||i.default)})),React.createElement("td",{className:"title"},React.createElement(u,e)),e.period&&e.period.length>0&&e.periodLength?React.createElement("td",{className:"renew"},"auto renew every"," ",e.periodLength>1?e.periodLength+" "+e.period+"s":e.period):null,React.createElement("td",{className:"sum"},React.createElement("sup",null,"$"),React.createElement("span",null,(0,c.ob)((0,s.w)(parseFloat(e.price+""),e.couponDiscount,e.couponInPercent).toFixed(2))))))));var m=a(94227),p=a(49658),y=a(40714),f=a(24098),h=a(45694),g=a(71364),E=a(8995),v=a(84758);function b({price:e,period:t,periodLength:a}){return React.createElement("section",{className:"widget"},React.createElement("p",null,"You will be billed $",e.toFixed(2)," every"," ",a>1?a+" "+t+"s":t," starting today. You may update or cancel your subscription on the ",React.createElement("a",{href:"/account/subscriptions/"},"Current subscriptions page")," at any time. Please refer to the Refund Policy and Subscription Cancellation Policy sections of the"," ",React.createElement("a",{href:"/terms.html"},"Terms of Service")," below:"),React.createElement("article",null,React.createElement("header",null,"Subscription Cancellation Policy"),React.createElement("p",null,"You may cancel this subscription on the"," ",React.createElement("a",{href:"/account/subscriptions/"},"Current subscriptions page")," at any time."),React.createElement("p",null,"Should you decide to cancel the recurring subscription, the service will expire at the end of your prepaid period, but the subscription fees will not be refunded.")),React.createElement("article",null,React.createElement("header",null,"Refund Policy"),React.createElement("p",null,"Since EasyHits4U.com offers non-tangible digital goods and services, we do not issue refunds once the services are rendered."),React.createElement("p",null,"We realize that exceptional circumstances can take a place with regard to the type of the product or service we supply. Refunds for any products or services offered by EasyHits4U.com will only be considered for a refund if any of the following conditions apply:"),React.createElement("ul",null,React.createElement("li",null,"Major technical defects: We perform regular system tests but unexpected errors may occur. If any deficiency is approved and we fail to correct it within 72 hours from the date of the initial complaint letter or any other notification provided by a customer, the refund may be issued to the customer in full without any compensations or reimbursements. Alternatively, at customer's choice, replacement of the product or service of the same or around the same value can be offered."),React.createElement("li",null,"Product not-as-described: such issue should be reported to our Technical Support Team within 7 days from the date of your order. Clear evidence must be provided proving that the purchased product or service is not as it is described on the website. Complaints which are based on the customer's false expectations or wishes are not honored. We don't guarantee that our products or services are fully compatible with any third-party programs and we do not provide support for third-party applications. Therefore, we do not satisfy any refund requests caused by such incompatibility of our products or services.")),React.createElement("p",null,"Please allow 48-72 hours not including weekends for our Support Team to get back to you regarding the problem. Thank y
17ou for purchasing our products and services."),React.createElement("p",null,"Requests for a refund are accepted at ",React.createElement("a",{href:"/contact.html"},"www.easyhits4u.com/contact.html")," ","within the period of 7 calendar days after the order is placed. Please accompany your refund request with detailed and grounded reasons why you apply for a refund. Please make sure your request does not contradict our Terms of Service. All refunds will only be issued to the transaction ID related to the sale of the EasyHits4U.com.")))}var R=a(41965),S=a(39708),N=a(95420),C=a(3518),w=a(53135),k=a(73915),P=a(24007);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},I.apply(null,arguments)}const _={AR:!0,BR:!0,CA:!0,CN:!0,ID:!0,IN:!0,JP:!0,MX:!0,TH:!0};function T(e,t){console.log({form:e});const a=e.cc_id?.value;if((a??0)>0)return!0;const r=e.first_name?.value,n=e.last_name?.value,o=e.adrl1?.value,c=e.zip?.value,s=e.phone?.value,l=e.city?.value,i=e.country?.value,u=e.state?.value;e.exp_month,e.cvv2;let d=!1;const m=r?.replace(/[^A-Za-z ']/g,""),p=n?.replace(/[^A-Za-z ']/g,"");return m&&r==m?t("first_name",!1):(t("first_name",!0),d=!0),p&&n==p?t("last_name",!1):(t("last_name",!0),d=!0),o?t("adrl1",!1):(t("adrl1",!0),d=!0),c?t("zip",!1):(t("zip",!0),d=!0),s?t("phone",!1):(t("phone",!0),d=!0),l?t("city",!1):(t("city",!0),d=!0),_[i]&&(console.log("Need state",i,u,!u),"All regions"!==u&&u?t("state",!1):(t("state",!0),d=!0)),!d}function $(e){const t=e.ccId,a=(0,o.wA)(),c=(0,r.useRef)(null);return(0,r.useEffect)(()=>{e.processErrors.length>0&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"center"})},[e.processErrors,c.current]),n().createElement("table",{className:"block ccinfo",style:e.hidden?{display:"none"}:void 0},n().createElement("thead",null,n().createElement("tr",null,n().createElement("td",{colSpan:2},n().createElement("div",{className:"block-head"},"Credit card information"),e.processErrors.length>0&&n().createElement("div",null,n().createElement("div",{id:"all_errors",ref:c},e.processErrors),n().createElement("br",null),n().createElement("br",null)),n().createElement(h.A,{visaDisabled:e.visaDisabled,visaErrorMessage:e.visaErrorMessage,price:parseFloat(e.finalPrice+""),gpaySubmitForm:e.gpaySubmitForm}),n().createElement(f.A,{value:t,list:e.cc_list,onChange:function(e){a({type:"SET_CC_ID",value:e})},canAdd:!0})))),n().createElement(p.A,I({},e,{errors:e.errors,type:"bluesnap",subscription:(e.period_length??0)>0,visible:!t})))}function x(e){if("PO"===e.product||"UO"===e.product)return null;const t=parseInt(""+(e.order?.coupon?.valid??"0"),10)>0;return n().createElement("div",{className:"buy-box credits"},n().createElement(g.P,{fixed:t,product:e.product,productQuantity:e.productQuantity,value:e.value||(e.order?.coupon?.code??""),onValid:e.onCouponValid,onReset:e.onCouponReset,onError:e.onCouponError}))}const A={ccId:(0,c.q)("SET_CC_ID",0)},F=(0,r.createContext)(0);function U(e){return{system:"cc",coupon:e.coupon.value,geo:{name:e.geo.value,lat:parseFloat(e.geo_lat.value),lon:parseFloat(e.geo_lon.value)},period:e.period.value,periodLength:parseInt(e.period_length.value,10),product:e.product.value,quantity:parseInt(e.quantity.value,10)}}function D(){(0,c.X)();const e=new URLSearchParams(location.search),t=(0,r.useRef)(),l=(0,r.useRef)();t.current||(t.current=new Promise(e=>{l.current=e}));const[i]=(0,R.N)(S.J1` 18 query CardpayPage($request: CardpayInput!) { 19 geo { 20 ...OwnerInfoGeo 21 } 22 me { 23 id 24 name 25 creditCards { 26 id 27 cc4 28 } 29 lastPayment { 30 id 31 payerLastName 32 payerFirstName 33 ...OwnerInfoPayment 34 } 35 } 36 payments { 37 bluesnap { 38 visaKey 39 visaEncryptionKey 40 } 41 cardpay(request: $request) { 42 disabled 43 price 44 productName 45 product 46 quantity 47 orderId 48 period 49 periodLength 50 } 51 } 52 } 53 ${m.A.fragments.geo} 54 ${m.A.fragments.paymentInfo} 55 `,{variables:{request:{orderId:parseInt(e.get("order_id")??"0",10),product:e.get("product")??"C",quantity:e.get("quantity")?parseInt(e.get("quantity"),10):0,period:e.get("period"),periodLength:e.get("period_length")?parseInt(e.get("period_length"),10):void 0,price:parseFloat(e.get("price")??"0")}},onCompleted(e){l.current?.(e)}});(0,c.Ze)("page",A);const u=(0,o.wA)(),f=(0,r.useCallback)(e=>u({type:"SET_CC_ID",value:e}
55),[u]),[h,g]=(0,r.useState)(e.get("coupon")||e.get("COUPON")||""),[_,D]=(0,r.useState)(0),[O,q]=(0,r.useState)(0),[V,B]=(0,r.useState)(!1),L=(0,o.d4)(e=>e.page.ccId),[H,M]=(0,r.useState)(),[Y,j]=(0,r.useState)(),z=(0,r.useCallback)(e=>{g(e.data.code),"bonus"===e.data.type?(D(e.data.amount),q(0),B(e.data.in_percent>0)):"discount"===e.data.type?(D(0),q(e.data.amount),B(e.data.in_percent>0)):(D(0),q(0))},[]),J=(0,r.useCallback)(()=>{g(""),D(0),q(0)},[]),W=(0,s.w)(parseFloat(""+i?.payments.cardpay?.price),O,V).toFixed(2),[K,G]=(0,r.useState)(!1),[Z,Q]=(0,r.useState)(!0),X=(0,r.useRef)(null),[ee,te]=(0,r.useState)({first_name:!1,last_name:!1,adrl1:!1,zip:!1,phone:!1,city:!1,exp_month:!1,cvv2:!1,state:!1});(0,r.useEffect)(()=>{const e=p.c.find(e=>ee[e]);e&&X.current?.[e]?.scrollIntoView({behavior:"smooth",block:"center"}),console.log({formErrors:ee,firstError:e})},[ee]);const ae=(0,r.useCallback)((e,t=!1)=>te(a=>({...a,[e]:t})),[te]),[re,ne]=(0,r.useState)([]),oe=(0,E.D)(ne,()=>G(!1));function ce(e,t){console.error({error:e,clientOptions:t}),Q(!0),ne(e=>e.concat(n().createElement("div",null,"Server communication error. Check your"," ",n().createElement("a",{href:"/account/logs/payments/",target:"_blank"},"billing history"),".")))}(0,r.useEffect)(()=>{t.current&&i?.payments&&t.current.then(()=>{Promise.resolve().then(a.bind(a,8995)).then(e=>e.default(oe))})},[i?.payments,t.current]);const[se,{data:le,loading:ie}]=(0,N.n)(S.J1` 56 mutation SubmitCCNN( 57 $address: AddressInput! 58 $firstName: String! 59 $lastName: String! 60 $order: NewOrderInput! 61 $bsToken: String! 62 $store: Boolean! 63 $cc4: String! 64 $type: String! 65 ) { 66 payments { 67 newOrder(order: $order) { 68 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 69 newCard(bsToken: $bsToken, store: $store, last4Digits: $cc4, cardType: $type) { 70 ok 71 errors { 72 code 73 message 74 } 75 completed 76 } 77 } 78 } 79 } 80 } 81 `,{onError:ce}),[ue,{data:de,loading:me}]=(0,N.n)(S.J1` 82 mutation SubmitCCNE( 83 $address: AddressInput! 84 $firstName: String! 85 $lastName: String! 86 $order: NewOrderInput! 87 $cardId: Int! 88 ) { 89 payments { 90 newOrder(order: $order) { 91 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 92 existingCard(cardId: $cardId) { 93 ok 94 errors { 95 code 96 message 97 } 98 completed 99 } 100 } 101 } 102 } 103 } 104 `,{onError:ce}),[pe,{data:ye,loading:fe}]=(0,N.n)(S.J1` 105 mutation SubmitCCEN( 106 $address: AddressInput! 107 $firstName: String! 108 $lastName: String! 109 $orderId: Int! 110 $bsToken: String! 111 $store: Boolean! 112 $cc4: String! 113 $type: String! 114 ) { 115 payments { 116 order(orderId: $orderId) { 117 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 118 newCard(bsToken: $bsToken, store: $store, last4Digits: $cc4, cardType: $type) { 119 ok 120 errors { 121 code 122 message 123 } 124 completed 125 } 126 } 127 } 128 } 129 } 130 `,{onError:ce}),[he,{data:ge,loading:Ee}]=(0,N.n)(S.J1` 131 mutation SubmitCCEE( 132 $address: AddressInput! 133 $firstName: String! 134 $lastName: String! 135 $orderId: Int! 136 $cardId: Int! 137 ) { 138 payments { 139 order(orderId: $orderId) { 140 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 141 existingCard(cardId: $cardId) { 142 ok 143 errors { 144 code 145 message 146 } 147 completed 148 } 149 } 150 } 151 } 152 } 153 `,{onError:ce}),[ve,{data:be,loading:Re}]=(0,N.n)(S.J1` 154 mutation SubmitVisaCheckout( 155 $address: AddressInput! 156 $callId: String! 157 $firstName: String! 158 $lastName: String! 159 $order: NewOrderInput! 160 $cc4: String! 161 $type: String! 162 ) { 163 payments { 164 newOrder(order: $order) { 165 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 166 visaCheckout(callId: $callId, last4Digits: $cc4, cardType: $type) { 167 ok 168 errors { 169 code 170 message 171 } 172 completed 173 } 174 } 175 } 176 } 177 } 178 `,{onError:ce}),[Se,{data:Ne,loading:Ce}]=(0,N.n)(S.J1` 179 mutation SubmitVisaCheckoutExisting( 180 $address: AddressInput! 181 $callId: String! 182 $firstName: String! 183 $lastName: String! 184 $orderId: Int! 185 $cc4: String! 186 $type: String! 187 ) { 188 payments { 189 order(orderId: $orderId) { 190 card(customer: { address: $address, firstName: $firstName, lastName: $lastName }) { 191 visaCheckout(callId: $callId, last4Digits: $cc4, cardType: $type) { 192 ok 193 errors { 194 code 195 message 196 } 197 completed 198 } 199 } 200 } 201 } 202 } 203 `,{onError:ce}),[we,{data:ke,loading:Pe}]=(0,N.n)(S.J1` 204 mutation SubmitGooglePay( 205 $address: AddressInput! 206 $token: String! 207 $firstName: String! 208 $lastName: String! 209 $order: NewOrderInput! 210 ) { 211 payments { 212 newOrder(order: $order) { 213 googlePay( 214 token: $token 215 customer: { address: $address, firstName: $firstName, lastName: $lastName } 216 ) { 217 ok 218 errors { 219 code 220 message 221 } 222 completed 223 } 224 } 225 } 226 } 227 `,{onError:ce}),[Ie,{data:_e,loading:Te}]=(0,k.q)();function $e(e){if(ne([]),e)if(e.errors&&e.errors.length){Q(!0);const t=[];for(let a in e.errors)"12"===e.errors[a].code&&"General decline"===e.errors[a].message&&(e.errors[a].message="Please check the credit card number, expiration date, and transaction information to make sure they were entered correctly. If this does not resolve the problem, please try other credit card or alternative payment method."),t.pu
227sh(n().createElement("div",null,e.errors[a].message));t.length&&ne(e=>e.concat(...t)),Q(!0),window.bs_init||console.error("bluesnap is not loaded")}else{let t="";i&&(i.payments.cardpay.orderId&&(t=t+"&order_id="+i.payments.cardpay.orderId),i.payments.cardpay.product&&(t=t+"&product="+i.payments.cardpay.product),i.payments.cardpay.quantity&&(t=t+"&quantity="+i.payments.cardpay.quantity),i.payments.cardpay.period&&(t=t+"&period="+i.payments.cardpay.period),i.payments.cardpay.periodLength&&(t=t+"&period_length="+i.payments.cardpay.periodLength)),document.location.href="/account/payment-successful/?system=cc"+t+(e.completed?"":"&pending=1")}else;}const xe=(0,r.useRef)(()=>{});xe.current=(e,t)=>{if(!H)return void ne([n().createElement("div",null,"Visa Checkout is not ready")]);const a=(0,P.U)(X.current);(i?.payments.cardpay.orderId?Se({variables:{...a,callId:H,cc4:e??"0000",type:t??"visa",orderId:i.payments.cardpay.orderId}}):ve({variables:{...a,callId:H,cc4:e??"0000",type:t??"visa",order:U(X.current)}})).then(({data:e})=>{$e(e?.payments?"newOrder"in e.payments?e.payments.newOrder.card.visaCheckout:e.payments.order.card.visaCheckout:null)})};if((0,r.useEffect)(()=>{!e.get("new")&&i?.me?.creditCards.length&&f((0,C.bC)(i.me.creditCards[i.me.creditCards.length-1].id)),window.onVisaCheckoutReady=()=>{t.current?.then(e=>{(0,v.B)({price:e.payments.cardpay.price,visa_key:e.payments.bluesnap.visaKey??"",visa_encryption_key:e.payments.bluesnap.visaEncryptionKey??"",onSubmit:(e,t)=>{xe.current(e,t)},setLoading:G,setVCCallId:M,setErrorMessage:j})()})},window.loadScript("https://assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js")},[]),(0,r.useEffect)(()=>{i?.me?.creditCards.length&&!L&&f((0,C.bC)(i.me.creditCards[0].id))},[i?.me?.creditCards]),!i)return n().createElement(w.A,null);const Ae={couponBonus:_,couponDiscount:O,couponInPercent:V,finalPrice:W,ccId:L,setCoupon:z,removeCoupon:J,onSubmit:()=>X.current?.submit(),geo:{name:e.get("geo")??void 0,lat:e.get("geo_lat")?parseFloat(e.get("geo_lat")):void 0,lon:e.get("geo_lon")?parseFloat(e.get("geo_lon")):void 0},coupon:h,productName:i.payments.cardpay.productName,product:i.payments.cardpay.product,quantity:i.payments.cardpay.quantity,price:i.payments.cardpay.price,period:i.payments.cardpay.period??void 0,period_length:i.payments.cardpay.periodLength??void 0,order_id:i.payments.cardpay.orderId??void 0},Fe=Ae.errors?Ae.errors.filter(e=>!e.field):[];function Ue(e,t){if(e.preventDefault(),t.current&&!K)if(G(!0),console.log("handleSubmit",L,t.current),L||T(t.current,ae)){const e=!L;console.log({new_card:e});const t=(0,P.U)(X.current);if(e)(function(e){if(console.log("processBluesnap",X.current),!X.current)return Promise.reject();if(e)return alert("Please check your card info"),Promise.reject();{let e=null;const t=new Promise((t,a)=>{e=setTimeout(()=>{console.log("Long hostedPaymentFieldsSubmitData"),ne(e=>e.concat(n().createElement("div",null,"3-D Secure check is taking a long time. Please wait or try again later. Check your"," ",n().createElement("a",{href:"/account/logs/payments/",target:"_blank"},"billing history"),"."))),a()},3e4);const r={amount:parseFloat(parseFloat(X.current?.getAttribute("data-price")??"").toFixed(2)),currency:"USD"};console.log({threeDSecureObj:r}),window.bluesnap.hostedPaymentFieldsSubmitData(e=>{if(console.log("window.bluesnap.hostedPaymentFieldsSubmitData callback",{callback:e}),!e.cardData)return ne([n().createElement("div",null,e.error?.map((e,t)=>n().createElement(n().Fragment,null,t>0&&n().createElement("br",null),e.errorDescription)))]),a();if(e.threeDSecure)switch(console.log(e.threeDSecure.authResult),e.threeDSecure.authResult){case"AUTHENTICATION_FAILED":return console.log("3DS Failed"),ne([n().createElement("div",null,"3DS Failed")]),a();case"AUTHENTICATION_SUCCEEDED":case"AUTHENTICATION_BYPASSED":case"AUTHENTICATION_UNAVAILABLE":break;default:console.log("unknown",e.threeDSecure.authResult)}const r=e.cardData,o=(0,P.U)(X.current);(i?.payments.cardpay.orderId?pe({variables:{...o,bsToken:X.current.bs_token.value,cc4:r.last4Digits,type:r.ccType,store:X.current.store.checked,orderId:i?.payments.cardpay.orderId}}):se({variables:{...o,bsToken:X.current.bs_token.value,cc4:r.last4Digits,type:r.ccType,store:X.current.store.checked,order:U(X.current)}})).then(({data:e})=>{$e(e?.payments?"newOrder"in e.payments?e.payments.newOrder.card.newCard:e.payments.order.card.newCard:null)}
227).then(t).catch(a).finally(()=>G(!1))},r)});return console.log("window.bluesnap.hostedPaymentFieldsSubmitData sent",{result:t}),t.finally(()=>e&&clearTimeout(e)),t}})(oe.ccn.hasError||oe.exp.hasError||oe.cvv.hasError).finally(()=>G(!1)),console.log("waiting for processBluesnap");else{(i?.payments.cardpay.orderId?he({variables:{...t,cardId:L,orderId:i?.payments.cardpay.orderId}}):ue({variables:{...t,cardId:L,order:U(X.current)}})).then(({data:e})=>{$e(e?.payments?"newOrder"in e.payments?e.payments.newOrder.card.existingCard:e.payments.order.card.existingCard:null)}).finally(()=>G(!1))}}else G(!1)}return n().createElement(F.Provider,{value:L},n().createElement(n().Fragment,null,n().createElement("h1",{id:"htitle"},"Credit Card Payment"),n().createElement("div",{className:"pcart"+(Ae.disabled?" disabled":"")},n().createElement(d,{product:Ae.product,productName:Ae.productName,quantity:Ae.quantity,period:Ae.period,periodLength:Ae.period_length,price:Ae.price,couponBonus:Ae.couponBonus,couponDiscount:Ae.couponDiscount,couponInPercent:Ae.couponInPercent}),n().createElement("form",{action:"https://www.easyhits4u.com/payments/cc/",method:"post",className:"pp_direct cardpay",id:"cardpay_form",ref:X,"data-price":Ae.finalPrice,onSubmit:e=>{console.log("cardpay submit",{e:e,loading:K,form:X}),K?(e.preventDefault(),e.stopPropagation(),console.log("Form submit blocked",{event:e,loading:K})):(G(!0),Ue(e,X))}},n().createElement("input",{type:"hidden",name:"product",className:"product info",value:Ae.product}),!!Ae.order_id&&n().createElement("input",{type:"hidden",name:"order_id",className:"order_id info",value:Ae.order_id}),n().createElement("input",{type:"hidden",name:"quantity",className:"quantity info",value:Ae.quantity}),n().createElement("input",{type:"hidden",name:"period",className:"period info",value:Ae.period}),n().createElement("input",{type:"hidden",name:"period_length",className:"period_length info",value:Ae.period_length}),n().createElement(x,{product:Ae.product,productQuantity:Ae.quantity,order:Ae.order,value:Ae.coupon,onCouponValid:Ae.setCoupon,onCouponReset:Ae.removeCoupon,onCouponError:Ae.removeCoupon}),Fe.length>0&&n().createElement("div",null,n().createElement("div",{className:"error_message"},Fe.map(e=>e.message&&n().createElement("span",{key:e.message,dangerouslySetInnerHTML:{__html:e.message}})))),i?.geo?n().createElement(m.A,{geoSettings:i?.geo,paymentInfo:i.me?.lastPayment,errors:ee,geo:Ae.geo}):n().createElement(c.aH,null),K&&n().createElement("div",{style:{margin:"2em",fontSize:"150%"}},n().createElement(c.aH,{delay:50})," Processing..."),n().createElement($,I({},Ae,{cc_list:i.me?.creditCards.map(e=>({...e,ID:e.id,id:(0,C.bC)(e.id)})),info:{payer_first_name:i?.me?.lastPayment?.payerFirstName??i?.me?.name??void 0,payer_last_name:i?.me?.lastPayment?.payerLastName??void 0},vcCallId:H,visaDisabled:!!Y,visaErrorMessage:Y,ccn:oe.ccn,cvv:oe.cvv,exp:oe.exp,bsToken:oe.token,cardType:oe.cardType,setCardType:oe.setCardType,errors:ee,processErrors:re,ccId:L,gpaySubmitForm:(e,t)=>{if(e.preventDefault(),e.stopPropagation(),!t)return void ne([n().createElement("div",null,"Google pay is not ready")]);G(!0);const a=(0,P.U)(X.current);(i?.payments.cardpay.orderId?Ie({variables:{...a,token:t,orderId:i.payments.cardpay.orderId},onError:ce}):we({variables:{...a,token:t,order:U(X.current)}})).then(({data:e})=>{$e(e?.payments?"newOrder"in e.payments?e.payments.newOrder.googlePay:e.payments.order.googlePay:null)}).finally(()=>G(!1))},hidden:!Z}))),n().createElement("div",{className:"total"},n().createElement("span",{className:"sum"},"Total price: ",n().createElement("span",null,"$"),(0,c.ob)(parseFloat(Ae.finalPrice+"").toFixed(2))),n().createElement("button",{type:"submit","data-bluesnap":"asubmitButton",className:"ok middle-btn submit_cc"+(K?" loading grey":" green"),disabled:K,onClick:e=>{G(!0),Ue(e,X)}},"Submit Order")),Ae.period&&n().createElement(b,{price:parseFloat(Ae.finalPrice+""),period:Ae.period,periodLength:Ae.period_length}),n().createElement(y.A,null))))}},41965:function(e,t,a){a.d(t,{N:function(){return s},g:function(){return c}});var r=a(1723),n=a(41594),o=a(61225);function c(e,t){const a=(0,r.IT)(e,t??{fetchPolicy:"cache-and-network"});return[a.data,a]}function s(e,t){const a=(0,o.wA)(),c=(0,n.useMemo)(()=>e,[]);t&&!t.fetchPolicy&&(t.fetchPolicy="cache-and-network");const s=(0,r.IT)(c,t??{fetchPolicy:"cache-and-network"});return(0,n.useEffect)(()=>{a({type:"FETCH_STATE",state:s.data?s.loading?"cached":"finished":"init"})},[s.loading]),console.log("usePageQuery",s.data??s.previousData,s),[s.data,s]}},43999:function(e,t){t.A={price:{ultimate_oto:{6:69.95,12:129.95,3:37.95},superadpackage:{1:59.95},credits:{1e5:449.95,25e3:119.95,100:.95,1e4:49.95,5e3:27.95,5e4:229.95,1e3:5.95,15e3:74.95,500:3.95,7e3:37.95,2500:13.95},premium:{6:41.95,12:79.95,3:21.95,1:7.95},premium_oto:{6:34.95,3:17.95,12:59.95},startpage:{2:48,1:51,discount:{7:5},3:45},banners:{1e4:7,25e4:119,15e4:74,5e3:3.5,2e4:12,75e3:41,5e4:29,2e5:95,1e5:54,3e4:19},ultimate:{6:99.95,3:54.95,12:189.95,1:19.95},esbrotator:{1:7.45,3:19.95,12:64.95,6:34.95},proadpackage:{1:34.95},textads:{5e4:22,7e4:29,2e5:70,1e5:39,3e4:14,1e4:5,25e4:85,15e4:55,2e4:10,5e5:159},startadpackage:{1:9.95}},productName:{SP2:"Second Start Page",SP:"Start Pages",R:"month(s) Easy Rotator",U:"month(s) ultimate",SAP:"Super Package",PO:"month(s) premium (OTO)",S:"month(s) ESB",T:"text ad impressions",P:"month(s) premium",SP1:"First Start Page",PAP:"Pro Package",SR:"month(s) ESB+Rotator",C:"credits",SUAP:"Start-Up Package",SP3:"Third Start Page",B:"impressions",UO:"month(s) ultimate (OTO)"}}},45694:function(e,t,a){a.d(t,{A:function(){return n}});var r=a(73915);function n({price:e,gpaySubmitForm:t,visaDisabled:a,visaErrorMessage:n}){return React.createElement(React.Fragment,null,React.createElement("p",null,"Use credit card or select alternative options:"),React.createElement("div",{className:"card-checkout",style:{margin:"2em",display:"flex",alignItems:"center"}},React.createElement("img",{alt:"Visa Checkout",className:"v-button",role:"button",src:"https://secure.checkout.visa.com/wallet-services-web/xo/button.png",style:a?{margin:"0 2em",visibility:"visible",cursor:"default",filter:"grayscale(50%) brightness(70%)"}:{margin:"0 2em"},title:a&&n?n:void 0}),React.createElement(r.A,{price:e,submitForm:t})))}},49658:function(e,t,a){a.d(t,{A:function(){return y},c:function(){return p}});var r=a(41594),n=a(46942),o=a.n(n);function c(e){return o()({"hosted-field-focus":e.hasFocus,"hosted-field-error":e.hasError})}function s(e){return React.createElement(l,{errorFields:e.errorFields,NumberField:React.createElement(React.Fragment,null,React.createElement(i,{token:e.token}),React.createElement("input",{type:"hidden",name:"ccn",value:"","data-brick":"card-number"}),React.createElement("input",{type:"hidden",name:"cc_type",value:"",id:"cc_type"}),React.createElement("div",{"data-bluesnap":"ccn",id:"bs-cnn",className:c(e.ccn)})),ExpiresField:React.createElement("div",{"data-bluesnap":"exp",id:"bs-exp",title:"Correct format: MM/YY. For example, 01/23",className:c(e.exp)}),CVVField:React.createElement("div",{"data-bluesnap":"cvv",id:"bs-cvv",className:c(e.cvv)})})}function l({errorFields:e,NumberField:t,ExpiresField:a,CVVField:r}){return React.createElement(React.Fragment,null,React.createElement("tr",null,React.createElement("td",null,"Card number:"),React.createElement("td",null,t)),React.createElement("tr",null,React.createElement("td",null,React.createElement("div",{className:"top-m"},"Expires on:")),React.createElement("td",null,React.createElement("ul",{className:"card-expires"},React.createElement("li",{className:e?.exp_month?"error":""},e&&e.exp_month&&React.createElement("div",{className:"error_message"},React.createElement("span",null,Array.isArray(e.exp_month)?e.exp_month.map(e=>e.message).join("; "):e.exp_month.message)),a),React.createElement("li",{className:"top-m cvv-header",style:{textAlign:"right",color:"#2578b3"},"data-tip":'<img src="/images/CVV2.png" align="left"/> \t\t\t\t\t\t\tThe CVV number (Card Verification Value) is the three-digit number printed in the signature space on the back of most credit cards, such as Visa, Mastercard, and Discover cards. \t\t\t\t\t\t\tThe CVV2 number is always the last group of numbers in the signature space on the back of the card. It is NOT part of your regular credit American Express cards: \t\t\t\t\t\t\tIt is a four-digit number on the front of Amex cards. It is printed (flat), not embossed like the card number.'},React.createElement("span",{className:"dash"},"CVV2 Code:")),React.createElement("li",{className:"top-m"},r)))))}function i({token:e}){return React.createElement("input",{type:"hidden",name:"bs_token",defaultValue:e,id:"bs_token"})}const u={mastercard:"master",discover:"discovery"};const d=["visa","master","discovery","amex","jcb"],m={AMEX:"amex",DISCOVER:"discovery",JCB:"jcb",MASTERCARD:"master",VISA:"visa"},p=["first_name","last_name","adrl1","zip","phone","city","exp_month","cvv2","state"];function y(e){const t=(0,r.useCallback)(t=>{return e.setCardType((a=t)in u?u[a]:a);var a},[]);return React.createElement("tbody",{className:"cc_info",style:{display:e.visible?"block":"none"}},React.createElement("tr",null,React.createElement("td",{style:{minWidth:"100px"}},"First name:"),React.createElement("td",{className:o()({error:e.errors.first_name})},React.createElement("input",{type:"text",name:"first_name",defaultValue:e.info.payer_first_name,"data-tip":"As it appears on your credit/debit card.","data-place":"right"}))),React.createElement("tr",null,React.createElement("td",null,"Last name:"),React.createElement("td",{className:o()({error:e.errors.last_name})},React.createElement("input",{type:"text",name:"last_name",defaultValue:e.info.payer_last_name,"data-tip":"As it appears on your credit/debit card.","data-place":"right"}))),React.createElement("tr",null,React.createElement("td",{style:{minWidth:"100px"}},"Card type:"),React.createElement("td",null,React.createElement("ul",{className:"card-type"},d.map(a=>React.createElement("li",{className:a+(a===e.cardType||a===m[e.cardType]?" active":""),key:a,onClick:()=>t(a)},React.createElement("div",null)))),"bluesnap"===e.type&&React.createElement("span",null,React.createElement("input",{type:"hidden",name:"device_session",value:e.device_session}),React.createElement("iframe",{width:"1",height:"1",frameBorder:"0",scrolling:"no",src:"https://www.bluesnap.com/servlet/logo.htm?s="+e.device_session,title:"bluesnap"},React.createElement("img",{width:"1",height:"1",src:"https://www.bluesnap.com/servlet/logo.gif?s="+e.device_session,alt:""}))))),"bluesnap"===e.type&&React.createElement(s,{ccn:e.ccn,cvv:e.cvv,exp:e.exp,errorFields:e.errorFields,token:e.bsToken}),"bluesnap"===e.type&&React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("label",null,e.subscription?React.createElement("span",null,React.createElement("input",{type:"hidden",name:"store",value:"1",checked:!0}),React.createElement("input",{type:"checkbox",name:"",style:{width:"auto",height:"auto"},checked:!0,disabled:!0})," ","By purchasing a subscription you agree to securely "):React.createElement("span",null,React.createElement("input",{type:"checkbox",name:"store",style:{width:"auto",height:"auto"},value:"1"})," ","Securely"," "),"store card type and last 4 digits of your card for future purchases"))))}},71364:function(e,t,a){a.d(t,{P:function(){return y},k:function(){return d}});var r=a(41594),n=a.n(r),o=a(77654),c=a(39708);const s={credits:"C",banners:"B",textads:"T",proad:"PAP",supad:"SAP",startup:"SUAP"};function l(e){switch(e){case"C":return"credits";case"B":case"banners":return"banner impressions";case"T":case"textads":return"text ad impressions";case"SP":case"startpages":return"Start Pages";case"P":case"PO":case"premium":return"Premium Membership";case"U":case"UO":case"ultimate":return"Ultimate Membership";default:return e}}const i={currency:{C:!0,B:!0,T:!0},account:{P:!0,U:!0},month:{P:!0,U:!0,esb:!0},package:{PAP:!0,SAP:!0,SUAP:!0}};const u={currency:"This coupon is available for purchases of credits, text and banner impressions only",C:"This coupon is available for purchases of credits only",B:"This coupon is available for purchases of Banner impressions only",package:"This coupon is available for purchases of Packages only",SUAP:"This coupon is available for purchases of Start-Up Package only",PAP:"This coupon is available for purchases of Pro Package only",SAP:"This coupon is available for purchases of Super Package only",account:"This coupon is available for purchases of Premium or Ultimate only",P:"This coupon is available for purchases of Premium only",PO:"This coupon is available for purchases of Premium (OTO) only",U:"This coupon is available for purchases of Ultimate only",UO:"This coupon is available for purchases of Ultimate (OTO) only",paid:"This coupon is available for purchases of Premium, Ultimate and ESB only",SR:"This coupon is available for purchases of ESB+Rotator only",SP:"This coupon is available for purchases of Start Pages only",default:"Coupon is not available for this product"};function d(e,t){const a="in_percent"in e?e:{...e,in_percent:e.inPercent},r=a.in_percent>0?"%":"";switch(a.type){case"reward_level":return{html:n().createElement("span",{className:"value"},"Your current Reward Level will be increased by one level"),text:"Reward Level will be increased to one level"};case"discount":return a.in_percent>0?{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount,"% discount")),text:a.amount+"% discount"}:{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},"$",a.amount," discount")),text:"$"+parseFloat(""+a.amount).toFixed(2)+" discount"};case"bonus":const e=t?l(t):"";return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount,r," bonus ",e)),text:a.amount+r+" bonus "+e};case"C":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount,r," bonus credits")),text:a.amount+r+" bonus credits"};case"B":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount,r," bonus banner impressions")),text:a.amount+r+" bonus banner impressions"};case"T":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount,r," bonus text ad impressions")),text:a.amount+r+" bonus text ad impressions"};case"SR":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},"bonus EasyHits4U+ Tools month")),text:"EasyHits4U+ Tools month"};case"SUAP":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},"bonus Start-Up Package")),text:"Start-Up Package"};case"SAP":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},"bonus Super Package")),text:"Super Package"};case"PAP":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},"bonus Pro Package")),text:"Pro Package"};case"P":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount," month of Premium membership")),text:a.amount+" month of Premium membership"};case"U":return{html:n().createElement(n().Fragment,null,n().createElement("span",{className:"title"},"You will receive"),n().createElement("span",{className:"value"},a.amount," month of Ultimate membership")),text:a.amount+" month of Ultimate membership"};default:return{}}}function m(e,t,a){switch(e.error){case"code":return"Co
227upon code is incorrect";case"expired":return"This coupon has already expired";case"params":return"Something went wrong";case"account":switch(e.account_type){case"ultimate":return n().createElement(n().Fragment,null,"Coupon is available only for Ultimate accounts. ",n().createElement("a",{href:"/upgrade"},"Upgrade your account"));case"premium":return n().createElement(n().Fragment,null,"Coupon is available only for Premium accounts. ",n().createElement("a",{href:"/upgrade"},"Upgrade your account"));case"esb":return n().createElement(n().Fragment,null,"Coupon is available only for Tools+ accounts."," ",n().createElement("a",{href:"/account/esb/"},"Upgrade your account"));case"paid":return n().createElement(n().Fragment,null,"Coupon is available only for Paid accounts. ",n().createElement("a",{href:"/upgrade"},"Upgrade your account"));case"upgraded":return n().createElement(n().Fragment,null,"Coupon is available only for Upgraded accounts. ",n().createElement("a",{href:"/upgrade"},"Upgrade your account"));default:return n().createElement(n().Fragment,null,"Coupon is not available for this account")}case"product":return o=s[t]||t,"all"===(c=e.available_product)||o===c||i[c]&&i[c]?.[o]?a&&a>=parseInt(""+e.min_quantity,10)?"Coupon is not available for this product":"P"===e.available_product||"premium"===t||"P"===t?`This coupon is available for purchases of ${e.min_quantity}+ months of Premium membership.`:"U"===e.available_product||"ultimate"===t||"U"===t?`This coupon is available for purchases of ${e.min_quantity}+ months of Ultimate membership.`:n().createElement(n().Fragment,null,"This coupon is available for ",e.min_quantity,"+"," ",t?l(t):"unknown"," purchases."):(r=e.available_product,u[r]||u.default);case"price":return`Coupon is available for purchases of $${e.min_price} minimum`;case"used":return"This coupon has already been used";case"promo":return"This coupon is not available now";default:return""}var r,o,c}function p(e){10!==e.keyCode&&13!==e.keyCode||e.preventDefault()}function y({id:e,value:t,coupon:a,active:c,orderId:l,product:i,productQuantity:u,fixed:y,onReset:f,onValid:h,onError:g}){const[E,v]=(0,r.useState)(t||a||""),[b,R]=(0,r.useState)(!1),[S,N]=(0,r.useState)(null),[C,w]=(0,r.useState)(null),[k,P]=(0,r.useState)(!!c||!!t||!!a);(0,r.useEffect)(()=>{t&&t.length&&I(null,t,!0)},[t,i,u]);const I=(e,t,a=!1)=>{e&&e.preventDefault();const r=t||E;if(w(null),a||"function"!=typeof f||f(),!r||"null"===r)return;const o=s[i]||i;let c="/coupon/?code="+r;if(y)c+="&fixed=1";else{const e="object"==typeof l?l.current:l;e&&e>0&&(c=c+"&order_id="+e),o&&(c=c+"&type="+o),u&&u>0&&(c=c+"&quantity="+u)}R(!0),fetch(c,{mode:"cors",credentials:"include"}).then(e=>e.json()).then(e=>{if(e.error){const t=m(e,i,parseInt(""+u,10)||0);w(t),N(!1),"function"==typeof g&&g({info:t,data:e})}else{const t=d(e,i);w(t.html?n().createElement("div",{className:"pseudo-icon "+e.type+("bonus"===e.type?" "+i:"")},n().createElement("div",null,t.html)):null),N(!0),"function"!=typeof h||y||h({message:t.html,text:t.text,data:e})}R(!1)}).catch(e=>{console.log(e),R(!1)})};return n().createElement(n().Fragment,null,n().createElement("div",{className:"field coupon"+(y?" entered":"")+(k?" active":"")+(S?" valid":"")+(b?" loading":"")+(!1===S?" error":""),id:e},n().createElement("input",{type:"hidden",name:"coupon",className:"coupon",value:E,onKeyPress:p}),n().createElement("div",{className:"coupon_container"},b&&n().createElement(o.aH,null),k?S?n().createElement("div",{className:"coupon-info"},C):n().createElement("div",{className:"coupon_enter"},"Coupon:",n().createElement("div",{className:"coupon_input"},n().createElement("input",{type:"text",disabled:y,className:"coupon",value:E,onChange:e=>v(e.target.value.replace(/^\s+/,"").replace(/\s+$/,"")),onKeyPress:p,placeholder:"Enter coupon code"})),n().createElement("div",{className:"o",onClick:I},n().createElement("button",{type:"button",className:"ok"},"Apply"))):n().createElement("div",{className:"coupon-text",onClick:()=>P(!0)},"Use coupon")),k&&n().createElement("div",{className:"x",onClick:()=>{R(!1),N(null),w(null),v(""),P(!1),"function"==typeof f&&f()}})),!1===S&&C&&n().createElement("div",{className:"coupon-info error"},C))}d.fragments={item:c.J1` 228 fragment CouponRewardInfo on Coupon { 229 id 230 type 231 amount 232 inPercent 233 } 234 `}},84758:function(e,t,a){function r(e){return function(){console.log("VISA init",e.visa_key,e.visa_encryption_key),window.V.init({apikey:e.visa_key,encryptionKey:e.visa_encryption_key,settings:{displayName:"EasyHits4U.com",logoUrl:"/images/favicon-32x32.png"},payment:{cardBrands:["VISA","MASTERCARD","AMEX","DINERS","DISCOVER"]},paymentRequest:{currencyCode:"USD",subtotal:e.price},shipping:{collectShipping:!1},dataLevel:"NONE"}),window.V.on("payment.success",function(t){console.log("VISA Checkout payment.success",{payment:t,props:e}),e.setLoading(!0),e.setVCCallId((t.callid||t.callId)??""),console.log("VISA onSubmit"),e.onSubmit(t.partialPaymentInstrument?.lastFourDigits,t.partialPaymentInstrument?.paymentType?.cardBrand)}),window.V.on("payment.cancel",function(e){}),window.V.on("payment.error",function(t,a){console.log(t,a),401===a.code?setTimeout(function(){e.setErrorMessage(
234a.message)},10):alert(a.message)})}}a.d(t,{B:function(){return r}})},88053:function(e,t,a){function r(e,t=0,a=!1){return t>0?a?e*(1-t/100):e-t:e}function n(e,t=0,a=!1){return t>0?a?e*(1+t/100):e+t:e}a.d(t,{W:function(){return n},w:function(){return r}})},94227:function(e,t,a){a.d(t,{A:function(){return y}});var r=a(1723),n=a(39708),o=a(57986),c=a(58363),s=a(46942),l=a.n(s),i=a(41594),u=a(77654);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},d.apply(null,arguments)}const m={};function p(e){const[t,a]=(0,i.useState)(e),r=(0,i.useCallback)(e=>{a(e.currentTarget.value)},[]);return(0,i.useEffect)(()=>{a(e)},[e]),{value:t,onChange:r}}function y(e){console.log("OwnerInfo",{props:e});const[t,a]=(0,i.useState)(e.paymentInfo?.addressCountry),s=(0,i.useCallback)(e=>a(e.target.value),[]),[y,f]=(0,i.useState)([]),[h,g]=(0,i.useState)(e.paymentInfo?.addressState),[E,v]=e.paymentInfo?.addressStreet?.split(/\n/,2)??[void 0,void 0],b=p(E),R=p(v),S=p(e.paymentInfo?.addressCity??void 0),N=p(e.paymentInfo?.addressZip??void 0),C=p(e.paymentInfo?.phone??void 0),[w,k]=(0,i.useState)(!E),P=(0,i.useCallback)(()=>k(!0),[]),{data:I}=(0,r.IT)(n.J1` 235 query OwnerInfoGeo { 236 geo { 237 countries { 238 label 239 value 240 } 241 } 242 } 243 `);return(0,i.useEffect)(()=>{a(e.paymentInfo?.addressCountry)},[e.paymentInfo?.addressCountry]),(0,i.useEffect)(()=>{if(e.paymentInfo?.addressCountry!==t&&g(""),!m[t]){f([]);const e=(0,u.uS)("/index.cgi?f=get_regions&country="+t);return e.request.then(e=>e.json()).then(({regions:e})=>{m[t]=e,f(e)}),e.abort}f(m[t])},[t]),(0,i.useEffect)(()=>{g(e.paymentInfo?.addressState)},[e.paymentInfo?.addressState]),React.createElement("div",null,React.createElement("input",{type:"hidden",name:"geo",value:e.geo.name||""}),React.createElement("input",{type:"hidden",name:"geo_lat",value:e.geo.lat||""}),React.createElement("input",{type:"hidden",name:"geo_lon",value:e.geo.lon||""}),React.createElement("table",{className:"block billing"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("div",{className:"block-head"},"Billing address")))),!w&&React.createElement("tbody",null,React.createElement("tr",{className:"billing-string"},React.createElement("td",{colSpan:2},React.createElement("div",{className:"billing-info",onClick:P},E,v?" "+v:"",", ",e.paymentInfo?.addressCity,","," ",e.paymentInfo?.addressZip,", ",e.paymentInfo?.phone),React.createElement("div",{className:"edit-pencil",onClick:P}),React.createElement("span",{className:"edit-str dashed alink",onClick:P},"Edit")))),React.createElement("tbody",{style:w?void 0:{display:"none"}},React.createElement("tr",null,React.createElement("td",{style:{minWidth:"100px"}},"Address Line 1:"),React.createElement("td",{className:l()({error:e.errors.adrl1})},React.createElement("input",d({type:"text",name:"adrl1"},b)))),React.createElement("tr",null,React.createElement("td",null,"Address Line 2:"),React.createElement("td",null,React.createElement("input",d({type:"text",name:"adrl2",placeholder:"optional"},R)))),React.createElement("tr",null,React.createElement("td",null,"City:"),React.createElement("td",{className:l()({error:e.errors.city})},React.createElement("input",d({type:"text",name:"city"},S)))),React.createElement("tr",null,React.createElement("td",null,"Country:"),React.createElement("td",null,React.createElement(o.A,{className:"form",name:"country",id:"country",value:t,onChange:s,displayEmpty:!0},I?.geo.countries.map((e,t)=>React.createElement(c.A,{value:e.value,key:"US"===e.value?"US"+t:e.value},e.label))))),React.createElement("tr",null,React.createElement("td",null,"State or province:"),React.createElement("td",{className:l()({error:e.errors.state})},React.createElement(o.A,{className:"form",name:"state",id:"region",disabled:!y?.length,value:h,displayEmpty:!0,onChange:e=>g(e.target.value)},React.createElement(c.A,{value:""},"â"),y?.map(e=>React.createElement(c.A,{value:e.code,key:e.code},e.name))))),React.createElement("tr",null,React.createElement("td",null,"US"===t?"Zip":"Postal"," Code: "),React.createElement("td",{className:l()({error:e.errors.zip})},React.createElement("div",{className:"zip"},React.createElement("input",d({type:"text",name:"zip"},N))))),React.createElement("tr",null,React.createElement("td",null,"Phone:"),React.createElement("td",{className:l()({error:e.errors.phone})},React.createElement("input",d({type:"tel",name:"phone"},C)))))))}y.fragments={geo:n.J1` 244 fragment OwnerInfoGeo on GeoRoot { 245 countries { 246 label 247 value 248 } 249 } 250 `,paymentInfo:n.J1` 251 fragment OwnerInfoPayment on Payment { 252 addressCountry 253 addressState 254 addressCity 255 addressStreet 256 addressZip 257 phone 258 } 259 `}}}]);
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.