PageSourceSearch

https://secure-static.schutz.com.br/_next/static/chunks/pages/my-account/my-credits-2304fc909141d81e.js

js schutz.com.br collected 2026-10-01 14:37:13 UTC 9,866 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2075],{34762:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/my-credits",function(){return t(72423)}])},58675:function(e,n,t){"use strict";t.d(n,{_:function(){return LinkUnderline}});var o=t(85893),r=t(37340),c=t(20256);function _templateObject(){let e=(0,r._)(["\n  font-size: ","px;\n  font-family: inherit;\n  text-decoration: underline;\n  color: ",";\n  letter-spacing: 0.7px;\n  cursor: pointer;\n  margin-bottom: 10px;\n  border: 0;\n  background-color: transparent;\n"]);return _templateObject=function(){return e},e}let i=c.ZP.a.withConfig({componentId:"sc-f14fa469-0"})(_templateObject(),e=>e.size||"12",e=>e.color||e.theme.colors.linkUnderline.text);function LinkUnderline(e){let{children:n,...t}=e;return(0,o.jsx)(i,{...t,children:n})}},97577:function(e,n,t){"use strict";t.d(n,{Z:function(){return o},m:function(){return r}});let o={dateStyle:"short"},r={dateStyle:"short",timeStyle:"short"}},31650:function(e,n,t){"use strict";t.d(n,{P:function(){return MyCreditsPage}});var o=t(85893),r=t(67294),c=t(20256),i=t(32878),a=t(85519),s=t(23883),l=t(18585),d=t(97577),m=t(42048),u=t(69183),p=t(38538),x=t(68705),f=t(83516),_=t(44170),h=t(85413),j=t(73866),b=t(19839),g=t(37340);function _templateObject(){let e=(0,g._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 20px;\n\n  @media only screen and (min-width: 768px) {\n    gap: 30px;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,g._)(["\n  display: flex;\n  margin-top: 0.3rem;\n\n  a {\n    font-size: 13px;\n    color: ",";\n  }\n\n  @media only screen and (min-width: 768px) {\n    justify-content: start;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,g._)(["\n  background-color: ",";\n  padding-top: 28px;\n  margin-bottom: 10px;\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  padding: 1.5rem;\n\n  @media only screen and (min-width: 768px) {\n    padding: 3.12rem;\n    gap: 20px;\n    flex-direction: column;\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,g._)(["\n  height: 1px;\n  width: 100%;\n  background-color: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,g._)(["\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  margin-top: 0.3rem;\n\n  span {\n    font-size: 15px;\n  }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,g._)(["\n  font-size: 1.12rem;\n  color: ",";\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,g._)(["\n  display: flex;\n  flex-direction: column;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,g._)(["\n  display: flex;\n  justify-content: space-between;\n  padding: 1.5rem;\n  margin-top: 1rem;\n  border: 1px solid ",";\n\n  @media only screen and (max-width: 768px) {\n    padding: 1.2rem;\n    & > div:first-child {\n      width: 38%;\n    }\n  }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,g._)(["\n  display: flex;\n  gap: 3rem;\n\n  @media only screen and (max-width: 768px) {\n    align-items: flex-end;\n    flex-direction: column;\n    flex-direction: column-reverse;\n    gap: 0.2rem;\n  }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,g._)(["\n  color: ",";\n  width: 100px;\n  text-align: end;\n\n  @media only screen and (max-width: 768px) {\n    width: auto;\n  }\n"]);return _templateObject9=function(){return e},e}c.ZP.div.withConfig({componentId:"sc-5e00550-0"})(_templateObject());let y=c.ZP.div.withConfig({componentId:"sc-5e00550-1"})(_templateObject1(),e=>e.theme.colors.font),v=c.ZP.div.withConfig({componentId:"sc-5e00550-2"})(_templateObject2(),e=>e.theme.colors.myAccount.box.background),O=c.ZP.div.withConfig({componentId:"sc-5e00550-3"})(_templateObject3(),e=>e.theme.colors.gainsBoro),N=c.ZP.div.withConfig({componentId:"sc-5e00550-4"})(_templateObject4()),C=c.ZP.span.withConfig({componentId:"sc-5e00550-5"}
1)(_templateObject5(),e=>(null==e?void 0:e.color)||"inherit"),w=c.ZP.div.withConfig({componentId:"sc-5e00550-6"})(_templateObject6()),A=c.ZP.div.withConfig({componentId:"sc-5e00550-7"})(_templateObject7(),e=>e.theme.colors.gainsBoro),E=c.ZP.div.withConfig({componentId:"sc-5e00550-8"})(_templateObject8()),T=c.ZP.div.withConfig({componentId:"sc-5e00550-9"})(_templateObject9(),e=>e.color||"inherit");function MyCreditsPage(e){let{slots:n,...t}=e,{toast:g}=(0,u.pm)(),{isMobile:P}=(0,p.k)(),D=(0,c.Fg)(),{getUserCredits:R,hasErrorUserCredits:S,isLoadingUserCredits:I,userCreditsListData:M}=(0,x.O)();function renderDebitTransaction(e){return(0,o.jsx)(T,{color:D.colors.myAccount.myCredits.debit,className:"transaction-amount transaction-amount--debit",children:(0,o.jsxs)(i._,{as:"span",children:["- ",e]})})}return(0,r.useEffect)(()=>{M||I||R()},[]),(0,r.useEffect)(()=>{S&&(g.error(l.Dl),j.vU({title:l.Dl}))},[S]),(0,o.jsx)(f.R,{slots:n,...t,children:(0,o.jsxs)("div",{className:"my-credits-page",children:[(0,o.jsx)(_.v,{iconColor:D.colors.myAccount.customTitle.icon.custom,iconName:"dollarCircle",iconSize:15,title:"Cr\xe9ditos"}),(0,o.jsxs)(v,{className:"my-credits__content",children:[(0,o.jsxs)("span",{className:"my-credits__content--description",children:["Voc\xea possui cr\xe9ditos ",h.T.BRAND_SURNAME," apenas quando ocorre estorno de valores de pedidos, como por exemplo: devolu\xe7\xe3o de produto."]}),(0,o.jsx)("span",{className:"my-credits__content--description",children:"Veja como us\xe1-lo:"}),(0,o.jsxs)("span",{className:"my-credits__content--description",children:["Para utiliz\xe1-lo, voc\xea deve efetuar sua compra normalmente e ao concluir, selecionar a op\xe7\xe3o *Cr\xe9dito ",h.T.BRAND_SURNAME,"* como forma de pagamento."]}),(0,o.jsxs)("span",{className:"my-credits__content--description",children:["Caso ocorra diferen\xe7a de valores, a compra pode ser paga atrav\xe9s da op\xe7\xe3o *Cr\xe9dito ",h.T.BRAND_SURNAME," + Cart\xe3o de Cr\xe9dito* ou *Cr\xe9dito ",h.T.BRAND_SURNAME," + boleto banc\xe1rio*. E, se o valor do produto for menor que o cr\xe9dito, o restante do valor permanece em sua conta para futuras compras."]}),(0,o.jsx)("span",{className:"my-credits__content--description my-credits__content--emphasis",children:"Os cr\xe9ditos s\xe3o v\xe1lidos apenas nas modalidades de entrega por frete expresso ou econ\xf4mico. O cr\xe9dito n\xe3o \xe9 v\xe1lido para as modalidades de retire na loja ou entrega pela loja."}),(0,o.jsx)(y,{className:"my-credits__container-link",children:(0,o.jsx)(s._,{href:m.Z.TERMS_OF_USE,children:"Saiba mais sobre as pol\xedticas de devolu\xe7\xf5es"})}),(0,o.jsx)(O,{}),(0,o.jsx)(w,{children:I?(0,o.jsxs)(N,{children:[(0,o.jsx)(i._,{className:"current-balance-label",as:"span",children:"Saldo atual:"}),(0,o.jsx)("div",{children:(0,o.jsx)(a.$,{})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N,{className:"my-credits__container-current-balance",children:[(0,o.jsx)(i._,{className:"my-credits__current-balance-label",as:"span",children:"Saldo atual:"}),(0,o.jsx)(C,{color:D.colors.successLight,children:(0,o.jsx)(i._,{as:"span",className:"my-credits__current-balance",children:null==M?void 0:M.formattedCurrentAccountTotalAmount})})]}),M&&M.customerAccount.length>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"transaction-list-label",children:"Movimenta\xe7\xe3o dos seus cr\xe9ditos:"}),null==M?void 0:M.customerAccount.map(e=>{var n;return(0,o.jsxs)(A,{children:[(0,o.jsx)("div",{className:"transaction-name",children:(null==e?void 0:e.otherReasons)||(null==e?void 0:null===(n=e.expenseReason)||void 0===n?void 0:n.name)}),(0,o.jsxs)(E,{className:"my-credits__transaction-balance",children:[function(e){let{transactionDateString:n,transactionDate:t}=e;return P?n:(0,b.p6)(t,d.m).replace(" "," - ")}(e),function(e){var n;let{formattedAmount:t,type:{code:r}}=e,c={CREDIT:()=>(0,o.jsx)(T,{className:"transaction-amount transaction-amount--credit",color:D.colors.myAccount.myCredits.credit,children:(0,o.jsxs)(i._,{as:"span",children:["+ ",t]})}),DEBIT:()=>renderDebitTransaction(t),RESERVED_AMOUNT:()=>renderDebitTransaction(t),PURCHASE:()=>renderDebitTransaction(t),DEFAULT:()=>(0,o.jsx)(T,{className:"transaction-amount",children:(0,o.jsx)(i._,{as:"span",children:t})})};return(null===(n=c[r])||void 0===n?void 0:n.call(c))||c.DEFAULT()}(e)]})]},e.transactionDate)})]}):null]})})]})]})})}},44170:function(e,n,t){"use strict";t.d(n,{v:function(){return MyAccountCustomTitle}});var o=t(85893);t(67294);var r=t(20256),c=t(57207),i=t(37340);
1function _templateObject(){let e=(0,i._)(["\n  display: flex;\n  margin-bottom: 8px;\n\n  .custom {\n    &__title {\n      font-size: 13px;\n      font-weight: 300;\n      text-transform: uppercase;\n      margin-left: 8px;\n    }\n  }\n"]);return _templateObject=function(){return e},e}let a=r.ZP.div.withConfig({componentId:"sc-4687bfe7-0"})(_templateObject());function MyAccountCustomTitle(e){let{iconName:n,iconSize:t,iconColor:i,title:s,className:l,...d}=e,m=(0,r.Fg)();return(0,o.jsxs)(a,{className:l,...d,children:[(0,o.jsx)(c.X,{name:n,size:t,fillColor:i||m.colors.myAccount.customTitle.icon.default}),(0,o.jsx)("h3",{className:"custom__title",children:s})]})}},72423:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return s},default:function(){return MyCredits}});var o=t(85893),r=t(39451),c=t(85413),i=t(9008),a=t.n(i),s=!0;function MyCredits(e){let{slots:n}=e,t="Cr\xe9ditos | ".concat(c.T.PAGE_TITLE_BRAND_NAME);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a(),{children:(0,o.jsx)("title",{children:t})}),(0,o.jsx)(r.P,{slots:n})]})}}},function(e){e.O(0,[2422,741,3985,8597,3445,4607,3516,9774,2888,179],function(){return e(e.s=34762)}),_N_E=e.O()}]);

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.