PageSourceSearch

https://www.rem-fit.co.uk/cdn/shopifycloud/checkout-web/assets/c1/hooks-useShowShopPayOptin.COfgoH5j.js

js rem-fit.co.uk collected 2026-09-29 09:32:39 UTC 3,048 bytes, 1 lines download raw bytes

1import{u as f,f as m,l as h,A as E}from"./esnext-vendor.7EcvH7tF.js";import{u as H}from"./AddressPresenter.mAxMJOkn.js";import{S as u,Q as T,a2 as P,ci as Y,c4 as M,b1 as V,aq as y,cr as x}from"./utilities-previous.BNOUhCqt.js";import{eD as z,c$ as B,n as W,ba as q,hF as D}from"./hydrate.CvWSYK3c.js";const j=e=>f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47 20",...e,children:f("path",{d:"m9.095 6.766-2.33 1.186C6.233 7.035 5.5 6.565 4.48 6.565q-1.665 0-1.665 1.007c0 .716.821.873 2.663 1.275 1.842.403 3.931.985 3.931 3.29 0 2.238-1.73 3.58-4.593 3.58-2.308 0-4.02-.984-4.816-2.73l2.33-1.163c.488 1.077 1.331 1.633 2.486 1.633 1.198 0 1.797-.335 1.797-1.052 0-.716-.823-.872-2.668-1.275C2.101 10.727.02 10.145.02 7.84c0-2.17 1.709-3.536 4.46-3.536 2.153 0 3.773.873 4.615 2.462M11.05.5h2.884v5.102c.754-.828 1.842-1.298 3.085-1.298 2.485 0 4.26 1.925 4.26 4.655v6.646h-2.884V8.959c0-1.275-.932-2.216-2.22-2.216-1.287 0-2.24.962-2.24 2.216v6.646h-2.886zm12.116 4.61c.954-.671 2.33-1.14 3.795-1.14 3.906 0 6.746 2.663 6.746 6.311 0 3.401-2.441 5.774-5.837 5.774-2.907 0-4.992-1.97-4.992-4.61 0-1.79 1.067-3.111 2.574-3.626l1.22 2.082c-.82.38-1.13.94-1.13 1.633 0 1.14.955 1.947 2.33 1.947 1.687 0 3.018-1.343 3.018-3.155 0-2.127-1.664-3.737-3.927-3.737a4.5 4.5 0 0 0-2.508.738zm15.024 9.22v5.17h-2.885V4.417h2.818V5.78c.866-.94 2.086-1.477 3.462-1.477 3.04 0 5.415 2.484 5.415 5.707s-2.375 5.707-5.415 5.707c-1.354 0-2.53-.515-3.395-1.388m5.947-4.341c0-1.858-1.287-3.223-3.04-3.223-1.731 0-3.04 1.388-3.04 3.223s1.309 3.223 3.04 3.223c1.753 0 3.042-1.366 3.042-3.223z"})});function X(){const{shippingAddress:e,billingAddress:s}=u();return m(()=>e.fields.countryCode.value||s.fields.countryCode.value||"")}function Z(e){const s=h(H().validatePhoneNumber),o=h(e),{shippingAddress:a,billingAddress:r}=u();return m(()=>{const l=a.fields.phone.value,t=r.fields.phone.value,n=l||t;return n&&s.value(n,o.value)?n:null})}function ee(e){const s=E(e);return s.current=e,s}function G(){const e=z();if(e)return{...e.shopAppLinksAndResources}}function se(){const{checkout:e,embed:s,mobileCheckoutSdk:o,router:a,shop:r,shopPay:l}=T(),t=P(),n=P().buyerIdentity.value?.purchasingCompany,v=t.buyerIdentity.value?.customerProfile,S=B().value,g=e.configuration.layout.isOnePage.value,A=G(),i=u(),b=i.paymentLines.value,{value:c}=t.paymentLines,{value:C}=t.paymentMethods,{currentDetour:d}=W().value,L=q(),I=!r.hasFlagEnabled(Y),O=D(),_=!!M(t.paymentMethods.value).length,k=e.proposal.negotiated.fields.mustSelectProvidedAddress.value,F=a.currentUrl.value,N=V(F.searchParams),w=C?.some(p=>p.type==="wallet"&&p.name==="SHOP_PAY"),R=y(b,"SHOPIFY_INSTALLMENTS")!=null;return i.phone.value||L?.shopPayOptInEnabled===!1||n||!O.value||v?.__typename==="CustomerProfile"&&S&&(!g||!_)||l.userIdentified.value||e.identity.current.value==="shopPay"||x(e.identity.current.value)||N||k||s||o.enabled||I&&A?.shopPayOrder||!w&&d?.type!=="thankYou"?!1:d?.type==="thankYou"?c?!y(c.lines,"SHOPIFY_INSTALLMENTS"):!1:!R}export{j as S,X as a,Z as b,se as c,G as d,ee 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.