1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[692],{3397:function(t,e,a){a.d(e,{EP:function(){return o}});let o={ApiEndpoint:"https://magento.bss-prd.directvgo.com/graphql",mseEcommerceHandler:"https://kong-api.bss-prd.directvgo.com/api/msecommercehandler/global",HOME_CAROUSELS_API:"https://hub.directvgo.com/br/v2/carousel",HOME_CAROUSELS_API_KEY:"wP3VaMzuB226xddKvynnO215Sy7TXl5A3KjCZC4G",KONG_BASE_URL_BUYFLOW:"https://kong-api.bss-prd.directvgo.com/api/msbuyflowmw/global",RECAPTCHA_KEY:"6Ld4D2QqAAAAACULmY0oldk_aaszqyWwZTzDfHgB",DNI_VALIDATION_ARG:"https://api.app.directvla.com/ecommerce/v2/identityValidatorDniCheck",CPF_VALIDATION_BR:"https://api.bss-stg.directvgo.com/document/v1/statusdocumentbr",PAYMENT_METHOD_VIEW_KEY:"tZOEqFyfgV39EUXO5XVIf3cN57Y6XOgea8DAYAW7",POSTCODE_ARG:"https://api.app.directvla.com/ecommerce/v2/address/validation",POSTCODE_API_KEY:"tZOEqFyfgV39EUXO5XVIf3cN57Y6XOgea8DAYAW7",CC_IFRAME_BASE_URL:"https://iframe.prod-cc.pe.grpw.io",OTP_GENERATE_API:"https://api.bss-prd.directvgo.com/otp/v1/generate",OTP_VALIDATE_API:"https://api.bss-prd.directvgo.com/otp/v1/validate",API_MQTT_AUTH:"https://api.directvgo.com/mqttauth/v1/auth",API_BSS_DIRECTVGO_BASE_URL:"https://api.bss-prd.directvgo.com",ACCOUNT_STATUS_API_KEY:"x3N27XCvtC7Wvtxcr1Qz043Cl9WIl1JM55B47R7P",API_PIX_FLOW_SUBSCRIPTION_UPDATE_DISPATCHER:"https://api.bss-prd.directvgo.com/account/v2/subscription/update/dispatcher",API_PIX_FLOW_CHANGE_PLAN_DISPATCHER:"https://api.bss-prd.directvgo.com/account/v2/change/plan/dispatcher",API_PIX_FLOW_UNPAID_INVOICES:"https://api.bss-prd.directvgo.com/account/v2/unpaid-invoices",BSS_API_KEY:"sWRXU89TrM2tU3GKV1vKb8m7r9x5pdzwUwSlDES2",DEVICES_BASE_URL:"https://api.directvgo.com",API_DIRECTVGO_BASE_URL:"https://api.bss-prd.directvgo.com",ECOMMERCE_GRAPHQL:"https://api-ecom.bss-stg.directvgo.com/graphql",API_GLOBAL_DIRECTVGO_BASE_URL:"https://global.digital.directvgo.com",INVOICE_STATUS_API_KEY:"yrCOnl8gop5dNqsu7BI6Z7fNcjY4TBIVaodxNE9c",SUBSCRIPTION_ENTITLEMENTS_API_KEY:"sWRXU89TrM2tU3GKV1vKb8m7r9x5pdzwUwSlDES2",STATUS_PRIME_VIDEO_API_KEY:"JIhlDcbNqU75zn0nHwoalajcPCczJ7m16pueEwIX"}},1093:function(t,e,a){a.d(e,{L:function(){return l}});var o=a(3513),r=a(4529),n=a(782),d=a(4838),s=a(9071);let c=t=>Object.fromEntries(Object.entries(t).filter(t=>{let[,e]=t;return null!=e&&""!==e})),m=(t,e)=>{let a={...t};return Object.keys(e).forEach(o=>{let r=e[o],n=t[o];"object"!=typeof r||null===r||Array.isArray(r)?a[o]=r:a[o]=m(n||{},r)}),a},p=()=>!0,i=()=>({country:null,personalInfo:{},billingAddress:{},paymentMethod:{hasCoupon:!1,hasCard:!1,totalCoveredByAccountBalance:!1,paymentData:{hasCard:!1}},meta:{cartId:p()&&sessionStorage.getItem(s.sO.CART_ID)?sessionStorage.getItem(s.sO.CART_ID):""},_hasHydrated:!1}),l=(0,r.Ue)()((0,n.tJ)((0,n.mW)((t,e)=>{var a,r,n,p,l,_,u;let A=d.k.getAuthFromStorage();return{...i(),country:["BR","AR"].includes(null!==(l=null===(a=A.user)||void 0===a?void 0:a.country)&&void 0!==l?l:"")?null===(r=A.user)||void 0===r?void 0:r.country:"SSLA",personalInfo:{firstname:null!==(_=null===(n=A.user)||void 0===n?void 0:n.givenName)&&void 0!==_?_:"",lastname:null!==(u=null===(p=A.user)||void 0===p?void 0:p.familyName)&&void 0!==u?u:""},setHasHydrated:e=>t({_hasHydrated:e}),setCountry:e=>t((0,o.Uy)(t=>{t.country=e,"AR"===e&&(t.paymentMethod.paymentData=m(t.paymentMethod.paymentData||{},{dni:{verifiedUserComplete:"false"}}))})),setPersonalInfo:e=>t((0,o.Uy)(t=>{t.personalInfo=m(t.personalInfo,c(e))})),setBillingAddress:e=>t((0,o.Uy)(t=>{t.billingAddress=m(t.billingAddress,c(e))})),setPaymentMethod:e=>t((0,o.Uy)(t=>{t.paymentMethod=m(t.paymentMethod,c(e))})),removePaymentMethod:()=>t((0,o.Uy)(t=>{t.paymentMethod={hasCard:!1,hasCoupon:!1,totalCoveredByAccountBalance:!1,paymentData:{hasCard:!1}}})),updateCartId:e=>t((0,o.Uy)(t=>{t.meta.cartId=e})),updateDocumentId:e=>t((0,o.Uy)(t=>{t.meta.documentId=e})),updateBirthDate:e=>t((0,o.Uy)(t=>{t.meta.birthDate=e})),setLyraData:e=>t((0,o.Uy)(t=>{t.paymentMethod.paymentData=m(t.paymentMethod.paymentData||{},c(e))})),setCheckoutData:e=>t((0,o.Uy)(t=>{t.paymentMethod.paymentData=m(t.paymentMethod.paymentData||{},c(e))})),getOrderPayload:()=>{let t=e(),a=null;if(!t.meta.cartId||"SSLA"!==t.country&&!t.meta.documentId)return null;try{let t=window.localStorage.getItem(s.dA.UTM_PARAMS);t&&(a=JSON.parse(t))}catch(t){console.error("Error reading UTM params from localStorage:",t)}return{...s.sx,cartId:t.meta.cartId,documentId:t.meta.documentId,setBillingAddressOnCart:{...t.personalInfo,...t.billingAddress},setPaymentMethodOnCart:{...t.paymentMethod,paymentData:{...t.paymentMethod.paymentData,...a?{utmCampaign:a.utm_campaign,utmContent:a.utm_c
1ontent,utmMedium:a.utm_medium,utmSource:a.utm_source,utmTerm:a.utm_term}:{}}}}},reset:()=>t(i())}}),{name:"create-order-payload",storage:(0,n.FL)(()=>sessionStorage),onRehydrateStorage:()=>t=>{null==t||t.setHasHydrated(!0)}}))}}]); 2//# sourceMappingURL=692.67c8a0c478c74e52.js.map
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.