PageSourceSearch

https://comeme.com.mx/cdn/shopifycloud/checkout-web/assets/c1/0e9ee714.CUvblzuU.js

js comeme.com.mx collected 2026-10-02 00:24:05 UTC 13,670 bytes, 1 lines download raw bytes

1import{u as h,S as N,g as m,q as g,T as I,m as w}from"./2c1ab0fe.BqEHHmaW.js";import{P as x,n as q,e2 as K,a0 as J,B as k,e3 as Y,bW as U,e4 as $,e5 as V,e6 as X,e7 as L,e as j,K as H,h as Q,br as Z}from"./164ad2e3.BA-GikTU.js";import{O as c,cB as z,P as ee,Q as A,dr as F,cA as te,dn as O,ds as ne,bJ as se,S as oe,dt as re,a6 as B,X as ae,aq as ie,du as le,ar as ue,b9 as ce,dv as v,dw as pe}from"./4c290a1e.FJVsH4yi.js";import{S as de}from"./39921a74.BrTHyyCQ.js";import{u as he,c as ye,d as Pe,e as me}from"./e3e348f2.CzOvkbpO.js";import{E as T}from"./5587f402.CiejVPa1.js";import{s as ge}from"./ccdf3592.B7Ukng27.js";import{a as fe}from"./app.D2gvVyTR.js";import{g as _e,a as Se,b as ve}from"./8599b02a.DjDpxYLZ.js";import{v as be,a as Ee,u as ke}from"./0c0ad074.RgO7-3qK.js";import{u as Ce}from"./53bbdad9.6B8LHIua.js";import{u as Ie,a as D}from"./ec391382.K2o3oZbF.js";function It({line:e}){const{i18n:t,source:s}=c(),n=s.type==="paymentCollection",{title:o,lineAmount:r}=e,a=r.amount===0?t.translate("shipping.free_rate_label"):t.formatCurrency(r.amount,{currency:r.currencyCode,form:"short"}),i=r.amount===0?"uppercase":void 0;return h(x,{children:[o,n?null:h(N,{children:[" · ",h(q,{type:"strong",letterCase:i,children:a})]})]},o)}const C="shop-pay-hsa-details",M=`${C}-description`;function Ae(){const{checkout:e,shop:t,shopPay:s}=c(),n=ee().paymentMethods,{paymentLines:o}=A();return m(()=>{const r=F(n.value);if(!(t.hasFlagEnabled(te)&&Be({identity:e.identity})&&(r==="ELIGIBLE"||r==="MIXED_CART"))||s.session.isInstallmentsSelected.value)return!1;const i=s.session.selectedPaymentMethod.value;if(i)return i.paymentMethod==="CREDIT_CARD";const u=o.value[0]?.method,l=u?.type==="wallet"&&u.name==="SHOP_PAY"?u.walletContent:void 0,p=l!=null&&"paymentMethod"in l&&l.paymentMethod==="CREDIT_CARD";return u?.type==="direct"||p})}function Be({identity:e}){return e.current.value==="shopPay"}function At(){const{checkout:e,shopPay:t}=c(),s=Ae();return m(()=>s.value&&z(e.proposal.negotiated.fields.paymentMethods.value)&&t.session.hsaRequested.value)}function Bt(){const{i18n:e,shopPay:t,checkout:s}=c(),n=m(()=>F(s.proposal.negotiated.fields.paymentMethods.value)),o=m(()=>n.value!=="ELIGIBLE"),r=n.value==="MIXED_CART",a=m(()=>!o.value&&t.session.hsaRequested.value),i=r?e.translate("payment.shop_pay_hsa.mixed_cart_description"):e.translate("payment.shop_pay_hsa.description"),u=g(l=>{o.value||t.session.unstable_setHsaRequested(l)},[o,t.session]);return h(k,{background:"base",colorLayer:"control",border:"base",borderRadius:"base",children:[h("span",{id:M,hidden:!0,children:i}),h(K,{id:C,open:r||a.value,summary:h(k,{padding:"base",children:h(de,{label:e.translate("payment.shop_pay_hsa.label"),checked:a.value,disabled:o.value,onChange:u,icon:"none","aria-controls":`${C}-content`,"aria-describedby":M})}),content:h(N,{children:[h(J,{}),h(k,{padding:"base",children:h(x,{type:"small",color:"subdued",children:i})})]})})]})}function Rt(e){return I(()=>e.some(t=>{if(t.kind==="customField")return O(t).required.peek();const s=O(t);return s.behaviors.peek().blockProgress&&s.capabilities.blockProgress}),[e])}function Re(){const{shop:e,shopPay:{user:t}}=c();return e.hasFlagEnabled(ne)?!1:t.getExperimentAssignment(T)===T.variants.treatment}function G(){const e=c(),{shop:t}=e,s=he(),n=se(),o=t.hasFlagEnabled(oe);return m(()=>re(e.checkout,{showPayWithApplePayButton:s.value,paymentFullyCoveredByRedeemablesAndGiftCards:n.value,isApplePayInShopPayKillswitched:o}))}function we(){return Y()?.config?.payActionType==="NATIVE"}function Oe(){const{persistedGooglePaySignal:e}=B(),{checkout:t}=c();return m(()=>{const s=e.value?.receiptIdForPaymentFailure,n=t.latestReceipt.value;return!!(n?.status==="failed"&&n?.failure?.type==="payment"&&s&&n?.id===s)})}function Te(){const{checkout:{identity:e}}=c(),{paymentLines:t}=A(),{inMemoryGooglePayParts:{paymentSheetOpenPromise:s}}=B(),n=Oe();return m(()=>e.current.value!=="googlePay"||!ae(t.value,"GOOGLE_PAY")?!1:s?.value!==void 0?!0:n.value)}function Me(){const e=c(),{checkout:t,shopPay:s}=e,n=t.identity.current.value==="shopPay",o=ye().value,r=Te().value,a=Pe().value,i=!n&&o&&!a,u=!n&&r,{showApplePay:l,isApplePayInShopPay:p}=G().value,P=me(),d=we(),f=Re();return{kind:ge(t,{showPayWithPayPal:i,showApplePay:l&&!a,showPayWithGooglePay:u,isEmbeddedCheckout:P,shouldRenderCheckoutProtocolButton:d,isInstallmentsSupported:e.checkout.installments.isSupported.value,isInstallmentsSelected:s.session.isInstallmentsSelected.value,isInstallmentsUkHoldoutTreatment:f}),showPayWithPayPal:i,isApplePayInShopPay:p,shouldDeferWalletToReview:a}}function Ne(e){return Promise.resolve().then(()=>e())}function xe({existing:e,scope:t,next:s}){return[...e.filter(n=>!Ue(n.target,t)),...s]}function Ue(e,t){return e?e===t||e.startsWith(`${t}.`):!1}var y=(e=>(e.BlankEmail="blank_email",e.BlankPhone="blank_phone",e.InvalidEmail="invalid_email",e.InvalidPhone="invalid_phone",e.ShopAccountsInvali
1dEmail="shop_accounts_invalid_email",e.ShopAccountsInvalidPhone="shop_accounts_invalid_phone",e.ShopAccountsPhoneLimitReached="shop_accounts_phone_limit_reached",e))(y||{});function Le(){const{email:e}=A(),{shopPay:t}=c();return m(()=>{const s=e.value.trim(),n=t.userVerification.value,o=be(s,y.BlankEmail),r=Ee(s,y.InvalidEmail),a=n.status==="invalid"&&n.email===s?y.InvalidEmail:void 0;return{email:s,emailError:o||r||a}})}const He=()=>{const{shopPay:e}=c(),t=e.signup.phoneNumber,s=e.signup.phoneCountryCode,n=Ce(),o=w(n.isPhoneNumberUtilLoaded),r=w(n.validatePhoneNumber),a=e.user.isAuthenticatedUser;return m(()=>({missingRequiredMobilePhoneNumber:!!(!a.value&&(!t.value||o.value&&!r.value(t.value,s.value,!0)))}))},Fe="Mobile phone number is missing or invalid";function De(){const e=Le(),{source:{checkoutSessionIdentifier:t},url:s,shopPay:n}=c(),o=n.user.phoneNumber,r=n.user.unstable_setPhoneNumber,{transactionParams:a}=n.config,i=n.user.isAuthenticatedUser,u=He(),l=g(async(p=!0)=>{const{email:P,emailError:d}=e.value;if(i.value||o.value)return{status:"skipped"};if(!a)return{status:"failed",errors:[{field:[],code:"missing_content",message:"Transaction params are missing"}]};const f=[];if(d&&f.push({field:["email"],code:d,message:"email is blank or invalid"}),u.value.missingRequiredMobilePhoneNumber&&f.push({field:["phone"],code:y.InvalidPhone,message:Fe}),f.length>0)return{status:"failed",errors:f};let b=p?n.signup.hcaptchaToken.value:void 0;if(!b)try{const R=await n.signup.captchaRef.value?.execute({async:!0});R&&(b=R.response)}catch(S){return S==="challenge-closed"?{status:"failed",errors:[]}:{status:"failed",errors:[{field:["hcaptcha"],code:String(S),message:"A captcha error was caught and handled"}]}}let E=null;try{const S=n.signup.phoneNumber.value||"";E=await fetch(s.shopPayCreateUnverifiedUser(),{method:"POST",body:JSON.stringify({email:P,phone:S,hcaptcha_token:b,origin:"c1_unverified_user_signup",checkout_token:t,transaction_params:a}),headers:{"Content-Type":"application/json",accept:"application/json"}})}catch{return{status:"failed",errors:[{field:[],code:"unknown_error",message:"An error was caught and handled during API request"}]}}const _=await E.json();return E.status!==200?Array.isArray(_?.errors)&&_?.errors.length===1&&_?.errors[0].code==="further_authorization_required"&&p?(n.signup.unstable_setHcaptchaToken(void 0),l(!1)):{status:"failed",errors:_?.errors||[{field:[],code:`response_with_http_error_${E.status}`,message:"Failed to create user"}]}:(r(_.parsed_phone),n.user.unstable_setEmail(P),n.user.unstable_updateFlow("authenticated_user"),{status:"success"})},[i,o,a,e,u,r,n,s,t]);return{createUnverifiedUser:l}}function Ge(){const{i18n:e,shopPay:t,checkout:{validation:{contactErrors:{emailInputError:s}}}}=c(),n=U(),{openModal:o}=ke(),r={[y.BlankEmail]:e.translate("field_errors.email_blank"),[y.InvalidEmail]:e.translate("field_errors.email_invalid"),[y.ShopAccountsInvalidEmail]:e.translate("field_errors.email_invalid")},a={[y.BlankPhone]:e.translate("mobile_phone_number.mobile_phone_invalid"),[y.InvalidPhone]:e.translate("mobile_phone_number.mobile_phone_invalid"),[y.ShopAccountsInvalidPhone]:e.translate("mobile_phone_number.mobile_phone_invalid"),[y.ShopAccountsPhoneLimitReached]:e.translate("mobile_phone_number.phone_limit_reached")};return{handleCreateUnverifiedUserErrors:u=>{if(u.length===0)return;const l=u.map(d=>d.code),p=r[l.find(d=>d in r)],P=a[l.find(d=>d in a)];return p||P?(s.value=p,t.signup.unstable_setPhoneError(P)):o({type:$.Generic}),Promise.resolve().then(()=>n())}}}function W(){const{progressContinueWithResult:e}=We();return{progressContinue:g(async()=>await e()==="continue",[e])}}function We(){const{source:e,observability:t,shopPay:{progressInterceptor:s}}=c(),n=ie(),{createUnverifiedUser:o}=De(),{handleCreateUnverifiedUserErrors:r}=Ge(),a=U(),i=g(async()=>{try{const u=await o(),l=await s.runInterceptors();n.validationErrors.value=xe({existing:n.validationErrors.value,scope:V,next:_e(l)});const p=Se(l);if(!p){const P=ve(l);t.log("shop_pay_progress_interceptor_error_reported","Shop Pay progress interceptor reported an error in useShopPayProgressContinue",{interceptorErrors:P})}if(u?.status==="failed")return r(u.errors),"blocked";if(!p)return Ne(a),"blocked"}catch(u){const l=u;return le(l.message)||Je(l)?t.log("shop_pay_progress_continue_unactionable_error","Shop Pay progress continue swallowed an unactionable error in useShopPayProgressContinue",{errorName:l.name,errorMessage:Ke(l.message),sourceType:e.type}):t.error(l,{errorClass:X.ShopPayProgressIntercept,severity:"error",metadata:{source:{type:e.type},checkout:{token:e.checkoutSessionIdentifier??"checkout_identifier_undefined"}}}),"errored"}return"continue"},[o,a,r,s,n,t,e]);return I(()=>({progressContinueWithResult:i}),[i])}const qe=200;function Ke(e){return e?.slice(0,qe)}function Je(e){return fe.includes(e.name)}function Ye(){const{source:e,checkout:t,shop:s,shopPay:n,observability:o,userEvents:r}=c(),a=n.installments,i=n.user.installments;return g(()=>{i.isRejected.value&&!i.isRetryable.value||(a.unstable_setModalOpen(!0,"checkout_button"),o.log("installments_modal_opened","[Installments] Modal opened"),r.monorailEvent({schemaId:"shopify_pay_payment_page_ui_interaction/1.2",payload:{...ue(e,t,s
1),action:"continue_with_installments"}}))},[a,i,o,r,e,t,s])}function $e(){const{checkout:{identity:e},shopPay:t,observability:s}=c(),n=L(),{progressContinue:o}=W(),r=Ye(),a=g(async()=>{t.session.unstable_setButtonProgressing(!0),s.log("installments_cta_clicked","[Installments] Continue to purchase button clicked");try{await o()&&r()}finally{t.session.unstable_setButtonProgressing(!1)}},[t.session,s,o,r]);return n||e.current.value!=="shopPay"||!t.session.isInstallmentsSelected.value?null:a}function Ve(){const{observability:e,source:t,router:s}=c(),{currentDetour:n,currentPage:o}=j().value,{nextPage:r,previousPage:a}=H();return I(()=>({ensureShopPayURL:()=>{o||s.navigate("/shoppay",{replace:!0})},logError:(i,{result:u}={})=>{e.error(new ce(i,{groupingHash:"ShopPayError::InvalidPageLogger"}),{severity:"error",metadata:{source:{type:t.type},checkout:{token:t.checkoutSessionIdentifier||t.sourceId},event:{currentDetour:JSON.stringify(n),currentPage:JSON.stringify(o),nextPage:JSON.stringify(r),previousPage:JSON.stringify(a),result:JSON.stringify(u)}}})}}),[n,o,e,r,a,s,t.checkoutSessionIdentifier,t.sourceId,t.type])}function Xe(){const{checkout:{identity:e},observability:t,shopPay:s}=c(),n=L(),{nextPage:o}=H(),{progress:r}=Q(),{progressContinue:a}=W(),i=Ve(),u=Z(),l=Ie(),p=D({breadcrumbPrefix:v}),P=g(async()=>{if(p()){l();try{s.session.unstable_setButtonProgressing(!0),await a()?(t.leaveErrorBreadcrumb(`${v} - progress`),await r("shop-pay-progress-button-press",d=>{t.leaveErrorBreadcrumb(`${v} - progression`,{status:d.status,nextPageId:o.id}),o.id!=="thankYou"&&i.logError("Shop Pay button triggered progression when next page is not `thankYou`",{result:d})},{onProgressBlocked:()=>{t.leaveErrorBreadcrumb(`${v} - progress blocked`,{nextPageId:o.id}),i.ensureShopPayURL()}}),u.notify({checkout_in_progress:!0})):(t.leaveErrorBreadcrumb(`${v} - progress continue failed`,{nextPageId:o.id}),o.id!=="thankYou"&&(i.logError("Shop Pay button is pressed when next page is not `thankYou`"),i.ensureShopPayURL()))}finally{s.session.unstable_setButtonProgressing(!1)}}},[p,l,s.session,a,t,r,o,i,u]);return e.current.value!=="shopPay"||n?null:P}function je(){const{showApplePay:e}=G().value,s=B().applePaySessionHandler.value?.onClickHandler??null,n=D({breadcrumbPrefix:pe,isApplePay:!0}),o=g(()=>{s?.({validateButtonPress:n})},[s,n]);return e&&s?o:null}function wt(e){const{kind:t}=Me(),s=je(),n=Xe(),o=$e();return t==="applePay"&&s?s:t==="installments"&&o?o:(t==="default"||t==="checkoutProtocol")&&n?n:e}const Qe="liLqL",Ze="b71fw",Ot={Button:Qe,Sparkles:Ze},ze="OJbFq",et="wNUaA",Tt={Button:ze,"Button-prefersDarkMode":"LhoYl",WalletLogoContainer:et},tt="XR3sZ",nt="_4fPUS",st="_5FRe7",ot="ZDqoP",rt="zANgR",at="_3A6oJ",it="K8y4t",lt="_7S3NK",ut="SdyJr",Mt={StickyFooter:tt,StickyFooterExperiment:nt,StickyFooterAtBottom:st,StickyFooterBuffer:ot,SDKStickyFooterBuffer:rt,EmbedStickyFooterBuffer:at,ButtonContainer:it,SDKButtonContainer:lt,EmbedButtonContainer:ut},ct="GsMGr",pt="eDhAI",dt="P0xJW",ht="COpTB",Nt={Wrapper:ct,Container:pt,Section:dt,"Container-fixed":"iRlFp","Container-fixed-entering":"_24aJk","Container-fixed-exiting":"ktbnR","Container-fixed-enter":"PCKgT","Container-fixed-exited":"DvZWz",Shadow:ht,"Shadow-enter":"_0hDB9","Shadow-exiting":"P1NPi","Shadow-exited":"lQN1j"};export{It as D,Bt as H,Re as a,Ae as b,Tt as c,Mt as d,At as e,W as f,Ye as g,Ne as h,Me as i,G as j,We as k,Rt as l,Nt as m,xe as r,Ot as s,wt as u};

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.