1import{bE as i,bk as E,I as _,e as n,E as p,cd as b,bV as g,Z as c,bb as y,be as r,bf as D,bu as M}from"./BPlt5jNJ.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="2371a2a5-7065-4fb7-9e2a-44170a88404f",s._sentryDebugIdIdentifier="sentry-dbid-2371a2a5-7065-4fb7-9e2a-44170a88404f")}catch{}{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[new s.Error().stack]=Object.assign({},s._sentryModuleMetadata[new s.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}function w(s,e){const a={};e.hasOptionalEmail||(a.email=p()),e.hasZipcode&&(e.isSweepstakes||e.isGiftWithPurchase)&&(a.zip_code=b([c,y("")]),e.isGiftWithPurchase&&!e.isInstantFulfillment&&(a.zip_code=i(a.zip_code,n()))),(e.isB2B||e.hasMailingAddress)&&((e.hasNames||e.hasMailingAddress)&&(a.first_name=i(n(),r(255,"^MAX_STRING_EXCEEDED")),a.last_name=i(n(),r(255,"^MAX_STRING_EXCEEDED"))),e.hasMailingAddress&&(a.address=i(n(),r(1024,"^MAX_STRING_EXCEEDED")),a.city=i(n(),r(1024,"^MAX_STRING_EXCEEDED")),a.state=i(n(),r(2,"^MAX_STRING_EXCEEDED"))),(e.hasZipcode&&!e.b2bFieldsOptional||e.hasMailingAddress)&&(a.zip_code=i(n(),c)),e.hasStore&&!e.b2bFieldsOptional&&(a.store=i(n(),r(255,"^MAX_STRING_EXCEEDED")))),e.hasCustomDropdown&&(a.custom_dropdown=i(n(),r(255,"^MAX_STRING_EXCEEDED"))),(e.hasRetailer||e.hasOtherRetailer)&&(e.hasRetailer&&(a.retailer=i(n())),e.hasOtherRetailer&&(a.other_retailer=i(n()))),e.hasTransactionNumber&&(a.transaction_number=i(n())),e.hasPurchaseDate&&(a.purchase_date=i(n(),_,E(u(),"^PURCHASE_DATE_TOO_EARLY"),D(new Date,"^PURCHASE_DATE_TOO_LATE")));function u(){const l=new Date().getFullYear();return new Date(`${l-1}-01-01`)}function h(l){return l.map(function(t){let d=t.path[0].key.charAt(0).toUpperCase()+t.path[0].key.slice(1).replaceAll("_"," "),f=t.message;return t.message.includes("^")&&(d=t.message.split("^")[1],f=t.message.split("^")[1]),{message:f,context:{key:t.path[0].key,limit:t.type==="max_length"?t.requirement:void 0,label:d}}})}const o=g(M(a),s);if(!o.success)return h(o.issues)}export{w as f};
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.