PageSourceSearch

https://americanminute.com/cdn/shopifycloud/checkout-web/assets/c1/413b21e2.Bib5DUlj.js

js americanminute.com collected 2026-10-02 10:02:10 UTC 4,406 bytes, 1 lines download raw bytes

1import{C as e}from"./app.CepNJbvh.js";import{io as n}from"./4c290a1e.C6TDJ9Fn.js";const t={id:"21821ce8045ac8c9039907679be78fa2e313ef8ddc074e46680820689ec0aed4",type:"query",name:"ActivatedExtensionMetafields",source:""};function o(e){const n=[],t=e.fields.merchandiseLines.value,o=e.fields.buyerIdentity.value;return t?.lines.forEach(e=>{e.variantId&&n.push(e.variantId),e.productId&&n.push(e.productId)}),o?.customerProfile&&(n.push(o.customerProfile.id),o.purchasingCompany&&(n.push(o.purchasingCompany.location.id),n.push(o.purchasingCompany.company.id))),n.sort()}function i({withCache:e=!0,coreGraphql:n,resourceIds:o,checkoutProfileId:i}){return n.staticQuery(t,{variables:{resourceIds:o,checkoutProfileId:i},cache:e})}const r=/^3[Aa]?[Mm]?[Pp]?[Ss]?\.[Aa]?[Mm]?[Pp]?[Ss]?$/,s=["a","m","p","s"],d=Object.freeze({allowedProcessing:Object.freeze({analytics:!1,marketing:!1,preferences:!1,saleOfData:!1}),visitorConsent:Object.freeze({analytics:e.NO_VALUE,marketing:e.NO_VALUE,preferences:e.NO_VALUE,sale_of_data:e.NO_VALUE})});function a(e){if(!e)return;const n=e.indexOf("_"),t=n>=0?e.slice(0,n):e;if(!r.test(t))return;const o=t.indexOf("."),i=t.slice(1,o).toLowerCase(),d=t.slice(o+1).toLowerCase();return s.some(e=>i.includes(e)&&d.includes(e))?void 0:t}function c(n){const t=a(n);if(!t)return d;const o=function(e){const n=e.slice(1).replace(".","");return{analytics:n.includes("A"),marketing:n.includes("M"),preferences:n.includes("P"),saleOfData:n.includes("S")}}(t),i=t.indexOf("."),r=t.slice(1,i),s=(n,t)=>r.includes(n)?e.ACCEPTED:r.includes(t)?e.DECLINED:e.NO_VALUE,c=s("A","a"),u=s("M","m"),p=s("P","p"),m=s("S","s");return Object.freeze({allowedProcessing:Object.freeze(o),visitorConsent:Object.freeze({analytics:c,marketing:u,preferences:p,sale_of_data:m})})}function u(e){if(e)return 2===e.length?{countryCode:e}:e.length>2?{countryCode:e.slice(0,2),provinceCode:e.slice(2)}:void 0}function p(n){return n===e.ACCEPTED||n!==e.DECLINED&&void 0}function m({consented:n,providedAt:t,isExpired:o}){return void 0===n||void 0===t||Number.isNaN(t.getTime())||!1!==o?e.NO_INTERACTION:n?e.ACCEPTED:e.DECLINED}function l({analytics:e,marketing:n}){return{analytics:f(e),marketing:f(n)}}function f(n){return!0===n.isExpired||void 0!==n.providedAt?m(n)===e.ACCEPTED:void 0===n.consented&&(n.defaultConsented??!1)}function C({analytics:n,marketing:t,displayBanner:o,trackingConsentHeader:i}){return!!o&&(!a(i)||m(n)===e.NO_INTERACTION&&m(t)===e.NO_INTERACTION)}function A(e){if(!e)return;const n=e.consent.analytics.providedAt,t=e.consent.marketing.providedAt;return{analytics:{consented:e.consent.analytics.consented??void 0,providedAt:n?new Date(n):void 0,isExpired:e.consent.analytics.isExpired??void 0,defaultConsented:e.consent.analytics.defaultConsented},marketing:{consented:e.consent.marketing.consented??void 0,providedAt:t?new Date(t):void 0,isExpired:e.consent.marketing.isExpired??void 0,defaultConsented:e.consent.marketing.defaultConsented},saleOfData:!e.dataSharingOptOut,displayBanner:e.consent.displayBanner,trackingConsentHeader:e.trackingConsentHeader??void 0}}function y(e,...[t]){const o=(()=>{switch(e.redemptionSource){case"SHOP_CASH":{const n=e.redemptionContent,o=n.billingAddress?.streetAddress,i=Boolean(o?.address1||o?.extendedFields)&&o?o:t;return{shopCashRedemptionContent:{redemptionId:n.redemptionId,billingAddress:{streetAddress:i},destinationAmount:n.destinationAmount,sourceAmount:n.sourceAmount,redemptionPaymentOptionKind:n.redemptionPaymentOptionKind,details:n.details?.map(e=>({redemptionId:e.redemptionId,destinationAmount:{amount:e.destinationAmount.amount,currencyCode:e.destinationAmount.currencyCode},sourceAmount:e.sourceAmount?{amount:e.sourceAmount.amount,currencyCode:e.sourceAmount.currencyCode}:null,redemptionType:e.redemptionType}))}}}case"STORE_CREDIT":return{storeCreditRedemptionContent:{storeCreditAccountId:e.redemptionContent.storeCreditAccountId}};case"CUSTOM":{const n=e.redemptionContent;return{customRedemptionContent:{paymentMethodIdentifier:n.paymentMethodIdentifier,redemptionAttributes:n.redemptionAttributes,maskedIdentifier:n.maskedIdentifier}}}default:throw new n(`Redemption source ${e.redemptionSource} not implemented`)}})();return{redemptionSource:e.redemptionSource,redemptionContent:o}}function E(e){return{paymentMethod:y(e.paymentMethod)}}export{y as a,o as b,p as c,c as d,A as e,E as g,u as p,i as q,C as s,l as t,a as v};

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.