PageSourceSearch

https://procaccini.com/cdn/shopifycloud/checkout-web/assets/c1/f1968089.DLi6Kihi.js

js procaccini.com collected 2026-10-06 19:16:57 UTC 3,150 bytes, 1 lines download raw bytes

1import{ah as n}from"./2c1ab0fe.Bywc2Brn.js";import{aI as e}from"./9dba8418.DInoCEzY.js";const o="SHOP_CASH",t="SHOP_CASH_BALANCE",a="SHOP_DISCOUNT_OFFER",i="SHOP_PROMOTION",r=[t,a,i],d={SHOP_CASH_BALANCE:null,SHOP_DISCOUNT_OFFER:null,SHOP_PROMOTION:[]};var u=(n=>(n.ShopCashMerchantNotSupported="SHOP_CASH_MERCHANT_NOT_SUPPORTED",n.ShopCashInvalidShippingAddress="SHOP_CASH_INVALID_SHIPPING_ADDRESS",n.ShopCashInvalidBillingAddress="SHOP_CASH_INVALID_BILLING_ADDRESS",n.ShopCashInsufficientFundingLedgerBalance="INSUFFICIENT_FUNDING_LEDGER_BALANCE",n.ShopCashCheckoutNotReadyToFetch="SHOP_CASH_CHECKOUT_NOT_READY_TO_FETCH",n.ShopCashCreditCardVaultedRequired="CREDIT_CARD_VAULT_REQUIRED",n.ShopCashNotAvailable="SHOP_CASH_NOT_AVAILABLE",n))(u||{});const s=(n,e=2)=>Math.round(n*10**e)/10**e,c=e=>({...e,amount:s(e.amount,n(e.currencyCode))}),S={USD:.5,AED:2,ARS:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,COP:.5,CZK:15,DKK:2.5,EUR:.5,GBP:.3,HKD:4,HUF:175,IDR:.5,ILS:.5,INR:.5,JPY:50,KRW:50,MXN:10,MYR:2,NOK:3,NZD:.5,PHP:.5,PLN:2,RON:2,RUB:.5,SEK:3,SGD:.5,THB:10,ZAR:.5},l=n=>n?S[n]??.5:.5;function _(e,o){if(!o)return e;const t=[];let a=o;for(const n of e){if(a.amount<=0)break;const e=n.availableBalance;if(!e||e.amount<=0)continue;const o=e.amount>=a.amount?{...n,availableBalance:a}:n;t.push(o),a=c({amount:a.amount-o.availableBalance.amount,currencyCode:a.currencyCode})}return function(e,o){const t=l(o.currencyCode);if(o.amount<=0||o.amount>=t)return e;const a=n(o.currencyCode),i=[...e];let r=s(t-o.amount,a);for(;r>0;){const n=i.pop();if(!n)break;const e=n.availableBalance;e.amount>r?(i.push({...n,availableBalance:c({amount:e.amount-r,currencyCode:e.currencyCode})}),r=0):r=s(r-e.amount,a)}return i}(t,a)}function A(n,e){return n&&e?_([n],e)[0]??null:n}var C=(n=>(n.Unknown="unknown",n.Rejected="rejected",n.Errored="errored",n.InvalidTermsCount="invalid_terms_count",n.InvalidRepaymentsCount="invalid_repayments_count",n.UserUnsynchronized="user_unsynchronized",n.InvalidShippingAddress="invalid_shipping_address",n))(C||{});const f=/Shop App\/[^/]+\/(?:iOS|Android)\//i;function p(n){return/Android/i.test(n)?"android":"ios"}function h(n=("undefined"==typeof window?"":window.navigator.userAgent),e,o){return o&&"web"!==o?p(n):e&&"WEB"!==e?/android/i.test(e)?"android":"ios":f.test(n)||"undefined"!=typeof window&&window.ReactNativeWebView?p(n):"web"}function O(n){return/iPad/i.test(n)||/Android/i.test(n)&&!/Mobile/i.test(n)||function(n){if(!/Macintosh/i.test(n))return!1;if("undefined"==typeof window||!window.navigator)return!1;const e=window.navigator.maxTouchPoints;return"number"==typeof e&&e>1}(n)}function m(n=("undefined"==typeof window?"":window.navigator.userAgent),e,o){return"web"!==h(n,e,o)?function(n){return/iPad|Macintosh|Linux; Android/i.test(n)}(n)&&O(n)?"tablet":"mobile":O(n)?"tablet":function(n){return/iPhone|iPod/i.test(n)||/Android/i.test(n)&&/Mobile/i.test(n)}(n)?"mobile":"desktop"}function I(n,o,t,a={}){const{embedPlatform:i,shopAppSurface:r}=a;return{...e(n,o,t),platform:h(void 0,i,r),deviceType:m(void 0,i,r)}}export{d as E,C as I,u as S,o as a,a as b,i as c,A as d,t as e,r as f,I as g,l as h,c as i,_ as j,s as r};

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.