PageSourceSearch

https://store.sixshooterrecords.com/cdn/shopifycloud/checkout-web/…ated-findSelectedDeliveryMethod.CuanKoea.js

js sixshooterrecords.com collected 2026-09-24 18:39:33 UTC 2,824 bytes, 1 lines download raw bytes

1import{ks as F,p as x,bE as l,eI as v,W as E,fx as b,a7 as G,T as B,ai as Q}from"./addresses-is-address-empty.BB1pvxM5.js";import{f as W,q as S}from"./esnext-vendor.DQ9BNaJe.js";import{eW as I,i2 as k}from"./hydrate.D4A9Cb0p.js";function q({address1:e="",address2:t,city:n="",company:i,countryCode:a,firstName:o,lastName:r="",postalCode:s,zoneCode:d,phone:f="",oneTimeUse:p=!1,coordinates:u,district:m,line2:h,streetName:y,streetNumber:P,subdistrict:g},A){const{extendedFields:L,...C}=F({address1:e,address2:t,countryCode:a,fields:{district:m,line2:h,streetName:y,streetNumber:P,subdistrict:g},extendedAddressMode:A?.extendedAddressMode});return{...C,city:n??"",countryCode:a||"ZZ",postalCode:s,company:i,firstName:o,lastName:r,zoneCode:d,phone:f,oneTimeUse:p,coordinates:u?c(u):void 0,extendedFields:L}}function D({handle:e=""}){return{handle:e}}function c(e){return{latitude:e.latitude,longitude:e.longitude}}function H(e,t,n,i,a=!1){const o=x(e),r=e?.[0]?.method?.type==="deferred"&&n==="custom"&&!a;if(!o&&r)return null;const s=!!t.address1;return o||s?{streetAddress:l(t,i)}:null}function T(e,t){return e.coordinates?{geolocation:{coordinates:c(e.coordinates),countryCode:v(e.countryCode),zoneCode:e.zoneCode,postalCode:e.postalCode}}:{streetAddress:l(e,t)}}function w({deliveryMethodHandle:e,deliveryMethodOptions:t,isCustomRate:n,isPointOfSale:i,retailLocationId:a,isPointOfSaleShipToHome:o,customDeliveryStrategy:r}={}){return i&&a&&!o?{deliveryStrategyMatchingConditions:{shipments:{any:!0}},options:t,originLocationId:a,autoFulfill:!0}:e?{deliveryStrategyByHandle:{handle:e,customDeliveryRate:n??!1},options:t}:r?{customDeliveryStrategy:{title:r.title,price:{value:r.price},code:r.code,source:r.source},options:t}:{deliveryStrategyMatchingConditions:{estimatedTimeInTransit:{any:!0},shipments:{any:!0}},options:t}}function Z(e){return e.some(t=>t.deliveryPredictionEligible)}function _({selectedMethods:e,deliveryExpectationLines:t,deliveryPromiseText:n}){const i=new Map;for(const s of t){const{deliveryStrategyHandle:d}=s;d&&i.set(d,s)}const o=e.flatMap(s=>{if(!s.deliveryPredictionEligible)return[];const d=i.get(s.handle);return d?.brandedPromise?.handle==="shop_promise"?[d]:[]})[0];if(!o)return;const r=o.brandedPromise;if(r&&n)return{brandedPromise:r,deliveryPromiseText:n}}function N(){const e=E().paymentLines;return W(()=>{const[t]=b(e.value,[G.BuyWithPrime]);return t})}function j(){const e=B().checkout.latestReceipt.value?.id,{persistedAmazonSignal:t}=Q(),n=S(()=>{I(t,{receiptIdForAupError:e,receiptIdForPaymentDecline:e})},[t,e]);return k({shouldResetCustomerInfo:!0,onClick:n})}function J(e){for(const t of e)if(t.status!=="not_required"){for(const n of t.methods)if(n.handle===t.selectedDeliveryMethodHandle)return n}}export{D as a,N as b,T as c,q as d,H as e,J as f,_ as g,Z as h,w as s,j 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.