PageSourceSearch

https://dentaladelar.com.br/_next/static/chunks/pages/carrinho-de09edc0b56b7014.js

js dentaladelar.com.br collected 2026-09-30 15:23:55 UTC 53,826 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4561],{30864:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/carrinho",function(){return l(76410)}])},28980:function(e,t,l){"use strict";l.d(t,{n:function(){return s}});var i=l(12589),n=l(69283);async function s(e){let{products:t,cart:l,dentalId:s,onCheckComplete:o}=e;try{let e={},a={};null==t||t.forEach(t=>{if(t.priceOptions&&Array.isArray(t.priceOptions)){let o=t.priceOptions.filter(e=>"studentList"===e.ref&&e.refId).reduceRight((e,t)=>{let l=String(t.refId);return e.some(e=>String(e.refId)===l)||e.unshift(t),e},[]);if(o.length>0){var i,n;let r=(null===(n=l[s])||void 0===n?void 0:null===(i=n.products)||void 0===i?void 0:i[t.id])||0;a[t.id]||(a[t.id]={}),o.forEach(l=>{let i=l.refId;a[t.id][i]={useSpecialPrice:!1,priceOption:{price:l.price,formattedPrice:l.formattedPrice,ref:l.ref,refId:l.refId},listId:i},e[i]||(e[i]={listId:i,products:[]}),e[i].products.push({productId:t.id,quantity:r})})}}});let d=Object.keys(e);if(0===d.length)return o&&o({lists:[],products:{}}),{lists:[],products:{}};let c=[];for(let t of d)try{let l=await (0,n.v)("".concat(i.Y,"/getStudentList?listId=").concat(t,"&sellerId=").concat(s),{method:"GET",requestedTokenType:"guest"});if(200!==l.status){console.log("Erro ao buscar lista ".concat(t));continue}let o=await l.json();if(o.isValidListStudentDateRange&&o.showSpecialPricesForList){var r;let l=e[t].products.reduce((e,t)=>e+t.quantity,0),i=(null===(r=o.products)||void 0===r?void 0:r.reduce((e,t)=>{let l=Number(t.quantity)||0;return e+l},0))||0,n={};(o.products||[]).forEach(e=>{if(null==e?void 0:e.id){let t=Number(e.price)||0;n[e.id]=t}});let s=(o.products||[]).reduce((e,t)=>{let l=Number(t.quantity)||0,i=Number(t.price)||0;return e+l*i},0),d=0;e[t].products.forEach(e=>{let{productId:t,quantity:l}=e,i=n[t]||0;d+=i*l});let u=!0===o.useListValueForSpecialPriceThreshold?s>0?d/s*100:0:i>0?l/i*100:0,m=o.specialPricePercentage||0,v=u>=m;e[t].products.forEach(e=>{var l;let{productId:i}=e;(null===(l=a[i])||void 0===l?void 0:l[t])&&(a[i][t].useSpecialPrice=v)});let h={};e[t].products.forEach(e=>{var l;let{productId:i}=e;(null===(l=a[i])||void 0===l?void 0:l[t])&&(h[t]||(h[t]={}),h[t][i]=a[i][t])});let p={listId:t,title:"".concat(t,", disciplina ").concat(o.subject," - ").concat(o.school),showSpecialPricesForList:o.showSpecialPricesForList,salesManResponsible:o.salesManResponsible,specialPricePercentage:m,totalUnitsInList:i,totalUnitsInCart:l,percentage:u,useSpecialPrice:v,products:h};c.push(p)}else e[t].products.forEach(e=>{var l;let{productId:i}=e;(null===(l=a[i])||void 0===l?void 0:l[t])&&(a[i][t].useSpecialPrice=!1)}),c.push({listId:t,title:o.title||t,showSpecialPricesForList:!1,useSpecialPrice:!1})}catch(e){console.log("Erro ao processar lista ".concat(t,":"),e)}let u=Object.values(a).some(e=>Object.values(e).some(e=>e.useSpecialPrice)),m={lists:c,products:a,anyProductWithSpecialPrice:u};return o&&o(m),m}catch(e){return console.log("Erro ao verificar listas de estudantes:",e),o&&o({lists:[],products:{}}),{lists:[],products:{}}}}},86708:function(e,t,l){"use strict";l.d(t,{RN:function(){return a},eR:function(){return o}});var i=l(12589),n=l(69283);function s(e,t){let l=0;for(let i of e)t>1&&(l+=parseInt(i)*t--);let i=l%11;return i<2?0:11-i}function o(e){return((null==e?void 0:e.length)===14||(null==e?void 0:e.length)===18)&&((null==e?void 0:e.length)===14?function(e){var t,l;if(!e||11!==(e=e.replace(/\D/g,"")).length||(t=e).split("").every(e=>e===t[0]))return!1;let i=s(e,10),n=s(e,11);return(l=e).substring(l.length-2,l.length)=="".concat(i).concat(n)}(e):(null==e?void 0:e.length)===18?function(e){let t=e.replace(/[^\d]/g,"");if(14!==t.length||/^(\d)\1+$/.test(t))return!1;let l=0,i=[5,4,3,2,9,8,7,6,5,4,3,2];for(let e=0;e<12;e++)l+=parseInt(t[e])*i[e];let n=l%11,s=n<2?0:11-n;if(parseInt(t[12])!==s)return!1;l=0,i=[6,5,4,3,2,9,8,7,6,5,4,3,2];for(let e=0;e<13;e++)l+=parseInt(t[e])*i[e];let o=(n=l%11)<2?0:11-n;return parseInt(t[13])===o}(e):void 0)}async function r(e,t,l){try{var s;let o=await (0,n.v)("".concat(i.Y,"/docIsUnique"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc:e,appId:t,userId:l})});if(200!==o.status)return!0;return o=await o.json(),null!==(s=o.isUnique)&&void 0!==s&&s}catch(e){return console.log(">>> error"),console.log(e),!0}}async function a(e,t,l){return!!o(e)&&await r(e,t,l)}},76410:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return ej},default:function(){return ey}});var i=l(85893),n=l(67294),s=l(41664),o=l.n(s),r=l(9008),a=l.n(r),d=l(11163),c=l(14416),u=l(4298),m=l.n(u),v=l(16218),h=l(6253),p=l(51615),x=l(40782),g=l(98595),f=l(65881),j=l(17834),y=l(10267),b=l(51252),N=l(91121),C=l(97975),Z=l(609),w=l(70474),S=l(69618),L=l(26238),P=l(68103),O=l(36955),T=l(60357),k=l(45697),I=l.n(k);function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e}).apply(this,arguments)}
1var _=(0,n.forwardRef)(function(e,t){var l=e.color,i=e.size,s=void 0===i?24:i,o=function(e,t){if(null==e)return{};var l,i,n=function(e,t){if(null==e)return{};var l,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)l=s[i],t.indexOf(l)>=0||(n[l]=e[l]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)l=s[i],!(t.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}(e,["color","size"]);return n.createElement("svg",A({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:void 0===l?"currentColor":l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),n.createElement("polyline",{points:"18 15 12 9 6 15"}))});_.propTypes={color:I().string,size:I().oneOfType([I().string,I().number])},_.displayName="ChevronUp";var q=l(27434),E=l(31109),R=l(73973),F=l(7530),D=l(59092),M=l(76627),W=l.n(M),B=l(45046),z=l(32701),U=l(15538),J=l(10684),Q=l(82669),V=l(67954),Y=l(97985),G=l(28898),H=l.n(G),X=l(22143),$=l(12589),K=l(78058),ee=l(69283),et=l(86708),el=l(49573);let ei={tel:"",email:"",allow:"",cep:"",doc:"",internalSellers:"",salesMan:""};var en=(0,c.$j)(null,{clearCart:v.LL})(function(e){var t,l,s;let{clearCart:o,initialProps:r,...a}=e,{dental:d,themeSettings:c}=r||{},u=(null==d?void 0:d.countryRules)||{},m=null===K.nationalities||void 0===K.nationalities?void 0:K.nationalities.includes("br"),v=m?(null==u?void 0:u.countryCode)||"BR":(null==u?void 0:u.countryCode)&&"BR"!==u.countryCode?u.countryCode:(null===K.nationalities||void 0===K.nationalities?void 0:null===(t=K.nationalities[0])||void 0===t?void 0:t.toUpperCase())||"MX",{isOpen:h,handleToggle:p,handleSuccess:g,dataCart:f}=a,j=!((null==d?void 0:d.type)==="catalog"&&!m),N="7XF8n0Zg25eUWpNaOa2k"===d.id,S="OpP0CRJ2Etbb4g5LkaPy"===d.id,L="F6nDqiLKWdslz4XZi0v4"===d.id,[P,T]=(0,n.useState)(!1),[k,I]=(0,n.useState)(null),[A,_]=(0,n.useState)(null),[q,E]=(0,n.useState)([]),[R,F]=(0,n.useState)({contact:"WhatsApp",name:"",email:"",tel:"",note:"",allow:!1,salesMan:"",...S&&{uf:"",city:"",district:"",street:"",number:"",cep:"",complement:"",doc:"",cro:""},...L&&{doc:""},...N&&{city:"",uf:""}}),[D,M]=(0,n.useState)(!1),[G,en]=(0,n.useState)(ei),{t:es}=(0,el.$G)("common");function eo(){return R.tel||(null==A?void 0:A.value)||""}async function er(e){try{let t={createdAt:e,status:"new",total:{price:f.price,quantity:f.quantity,total:f.total,totalToShow:f.totalToShow},products:f.productsOnCart.map(e=>({id:e.id,internalId:e.internalId,price:e.price,quantity:e.quantity})),...S&&{address:{district:R.district,street:R.street,cep:R.cep,number:R.number,complement:R.complement}},customer:{name:R.name,email:R.email,tel:eo(),note:R.note,city:R.city,salesMan:R.salesMan,uf:R.uf,...S&&{doc:R.doc,cro:R.cro},...L&&{doc:R.doc}},contact:R.contact},l=await (0,ee.v)("".concat($.Y,"/setOldOrder?dentalId=").concat(null==d?void 0:d.id),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(200!==l.status)return x.Am.error(es("errorAction")),null;return l=await l.json()}catch(e){return console.log(e),null}}async function ea(e,t){let l={orderCode:t,createdAt:e,products:f.productsOnCart.map(e=>{var t;return{internalId:e.internalId,thumb:(null===(t=e.images)||void 0===t?void 0:t.length)>0?e.images[0]["100x100"]:"",title:e.title,brand:e.brand,quantity:e.quantity,price:function(e){var t,l,i,n;if(!e)return null;let s=(null==d?void 0:null===(l=d.countryRules)||void 0===l?void 0:null===(t=l.currency)||void 0===t?void 0:t.locale)||"pt-BR",o=(null==d?void 0:null===(n=d.countryRules)||void 0===n?void 0:null===(i=n.currency)||void 0===i?void 0:i.code)||"BRL";return new Intl.NumberFormat(s,{style:"currency",currency:o}).format(e)||null}(e.price)}}),total:{price:f.price,quantity:f.total},to:null==d?void 0:d.emailToBudget,isNotPriced:null==d?void 0:d.isNotPriced,...S&&{address:{district:R.district,street:R.street,cep:R.cep,number:R.number,complement:R.complement}},customer:{name:R.name,email:R.email,tel:eo(),note:R.note,city:R.city,uf:R.uf,salesMan:R.salesMan,...S&&{doc:R.doc,cro:R.cro}},contact:R.contact,sellerId:d.id};await (0,ee.v)("".concat($.Y,"/sendBudget"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})}async function ed(e){if(e.preventDefault(),function(){var e,t,l,i,n;if(en(ei),(null==q?void 0:q.active)&&(null==q?void 0:null===(e=q.sellers)||void 0===e?void 0:e.length)>0&&!(null===(t=R.salesMan)||void 0===t?void 0:t.length))return en({...ei,salesMan:es("informSalesMan")}),!1;if(S){let e=null===(l=R.cep)||void 0===l?void 0:l.split("-").join("").split("_").join("");if((null==e?void 0:e.length)!==8||!R.uf&&!R.city)return k.blur(),k.focus(),en({...ei,cep:es("invalidZipCode")}),!1;if(!(0,et.eR)(R.doc))return en({...ei,doc:"Informe um documento v\xe1lido"}),!1}return eo().split("(").join("").split(")").join("").split(" ").join("").split("_").join("").split("-").join("").length<(m?11:10)?(null==A||null===(i=A.blur)||void 0===i||i.call(A),null==A||null===(n=A.focus)||void 0===n||n.call(A),en({...ei,tel:es("invalidPhone")}),!1):R.email.split(".").filter(e=>e.length).length<2?(en({...ei,email:es("invalidEmail")}),!1):!!R.allow||(en({...ei,allow:es("allowAuthorization")}),!1)}()){M(!0);try{let e=new Date;e=e.getTime();let t=await er(e);t?(await ea(e,t),function(e){try{var t,l;let i=f.productsOnCart.map(e=>{var t,l,i,n,s,o;return{item_name:e.title,item_id:e.id,price:e.price,item_brand:e.brand,item_category:(null===(t=e.categoriesTitle)||void 0===t?void 0:t.join("~"))||"",item_category_id:(null===(l=e.categories)||void 0===l?void 0:l[0])||"",image_url:(null===(n=e.images)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i["300x300"])||(null===(o=e.images)||void 0===o?void 0:null===(s=o[0])||void 0===s?void 0:s["200x200"])||"",item_url:e.slug?"".concat(K.fixUrl,"/").concat(e.slug):"",item_variant:"",quantity:e.quantity}});i=JSON.stringify(i),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"purchase",ecommerce:{transaction_id:e,affiliation:"Online Store",value:f.price,tax:0,shipping:0,currency:(null==d?void 0:null===(l=d.countryRules)||void 0===l?void 0:null===(t=l.currency)||void 0===t?void 0:t.code)||"BRL",coupon:"",items:i}})}catch(e){console.log(e)}}(t),o(null==d?void 0:d.id),p(),g()):(console.log(error),x.Am.error(es("errorAction")),M(!1))}catch(e){console.log(e),x.Am.error(es("errorAction")),M(!1)}}}return(0,n.useEffect)(()=>{var e;if(!S)return;let t=null===(e=R.cep)||void 0===e?void 0:e.split("-").join("").split("_").join("");async function l(){try{let e=await fetch("https://viacep.com.br/ws/".concat(t,"/json/"),{method:"GET"});if((e=await e.json()).erro){en({...ei,cep:es("invalidZipCode")});return}en(ei),F({...R,uf:e.uf||"",city:e.localidade||"",district:e.bairro||"",street:e.logradouro||""})}catch(e){console.log(e)}}(null==t?void 0:t.length)===8&&l()},[S,R.cep]),(0,n.useEffect)(()=>{(async function(){try{let e=await fetch("/api/internalSellers/getSellers",{method:"GET"});if(200===e.status){let t=await e.json();E(t)}}catch(e){console.log(e)}})()},[]),(0,i.jsxs)(B.Z,{isOpen:h,toggle:p,className:"modal-dialog-centered",children:[(0,i.jsx)(z.Z,{toggle:p,children:(null==c?void 0:c.sendOrderActionText)||es("finishOrder")}),(0,i.jsxs)(U.Z,{onSubmit:ed,children:[(0,i.jsxs)(J.Z,{children:[(0,i.jsx)("p",{className:"mb-2",children:es("budgetContactIntro")}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"contact",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetContactMethod")})}),(0,i.jsxs)(Z.Z,{required:!0,type:"select",name:"select",id:"contact",onCh
1ange:e=>F({...R,contact:e.target.value}),children:[(0,i.jsx)("option",{value:"WhatsApp",children:es("budgetContactWhatsapp")}),(0,i.jsx)("option",{value:"Liga\xe7\xe3o",children:es("budgetContactCall")}),(0,i.jsx)("option",{value:"E-mail",children:es("budgetContactEmail")}),j&&(0,i.jsx)("option",{value:"Vai at\xe9 a loja",children:es("budgetContactVisitStore")})]})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"tel",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetPhoneLabel")})}),m?(0,i.jsx)(W(),{inputRef:e=>_(e),className:"form-control",required:!0,type:"tel",autoComplete:"off",id:"tel",mask:"(99) 99999-9999",value:R.tel,onChange:e=>F({...R,tel:e.target.value})}):(0,i.jsx)(X.ZP,{maxLength:(null==u?void 0:null===(l=u.phone)||void 0===l?void 0:l.maxLength)||12,id:"tel",className:"form-control",country:v,international:!1,value:R.tel,ref:e=>_(e),onChange:e=>F({...R,tel:e||""})}),G.tel&&(0,i.jsx)(w.Z,{className:"d-block",children:G.tel})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"email",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetEmailLabel")})}),(0,i.jsx)(Z.Z,{required:!0,type:"email",id:"email",value:R.email,onChange:e=>F({...R,email:e.target.value})}),G.email&&(0,i.jsx)(w.Z,{className:"d-block",children:G.email})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"name",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetNameLabel")})}),(0,i.jsx)(Z.Z,{required:!0,type:"text",id:"name",value:R.name,onChange:e=>F({...R,name:e.target.value})})]}),L&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"doc",className:"mb-25",children:(0,i.jsx)("strong",{children:"CPF/CNPJ:"})}),(0,i.jsx)(H(),{id:"doc",className:"form-control",value:R.doc,onChange:e=>F({...R,doc:e.target.value})}),G.doc&&(0,i.jsx)(w.Z,{className:"d-block",children:G.doc})]})}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"name",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetNotesLabel")})}),(0,i.jsx)(Z.Z,{type:"text",id:"name",value:R.note,onChange:e=>F({...R,note:e.target.value})})]}),(null==q?void 0:q.active)&&(null==q?void 0:null===(s=q.sellers)||void 0===s?void 0:s.length)>0?(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"salesMan",className:"mb-25",children:(0,i.jsx)("strong",{children:es("budgetSalesManLabel")})}),(0,i.jsxs)("select",{className:"form-control",type:"select",name:"salesMan",id:"salesMan",value:R.salesMan,onChange:e=>F({...R,salesMan:e.target.value}),children:[(0,i.jsx)("option",{value:"",children:es("select")}),(0,i.jsx)("option",{value:"Nenhum",children:es("none")}),q.sellers.map(e=>(0,i.jsx)("option",{value:e.name,children:e.name},e.id))]}),G.salesMan&&(0,i.jsx)(w.Z,{className:"d-block",children:G.salesMan})]}):"",N&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Q.Z,{className:"mb-2 mt-2",children:[(0,i.jsx)(V.Z,{for:"city",className:"mb-25",children:(0,i.jsx)("strong",{children:"Cidade:"})}),(0,i.jsx)(Z.Z,{type:"text",id:"city",value:R.city,onChange:e=>F({...R,city:e.target.value})})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"uf",className:"mb-25",children:(0,i.jsx)("strong",{children:"UF:"})}),(0,i.jsx)(Z.Z,{type:"text",id:"uf",value:R.uf,onChange:e=>F({...R,uf:e.target.value})})]})]}),S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"cep",className:"mb-25",children:(0,i.jsx)("strong",{children:"CPF/CNPJ:"})}),(0,i.jsx)(H(),{id:"doc",className:"form-control",value:R.doc,onChange:e=>F({...R,doc:e.target.value})}),G.doc&&(0,i.jsx)(w.Z,{className:"d-block",children:G.doc})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"cep",className:"mb-25",children:(0,i.jsx)("strong",{children:"CRO:"})}),(0,i.jsx)(Z.Z,{className:"form-control",type:"text",value:R.cro,onChange:e=>F({...R,cro:e.target.value})})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"cep",className:"mb-25",children:(0,i.jsx)("strong",{children:"CEP:"})}),(0,i.jsx)(W(),{inputRef:e=>I(e),className:"form-control",type:"tel",autoComplete:"off",id:"cep",mask:"99999-999",value:R.cep,onChange:e=>F({...R,cep:e.target.value})}),G.cep&&(0,i.jsx)(w.Z,{className:"d-block",children:G.cep})]}),(0,i.jsxs)(y.Z,{children:[(0,i.jsx)(b.Z,{xs:12,sm:6,children:(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"uf",className:"mb-25",children:(0,i.jsx)("strong",{children:"Estado:"})}),(0,i.jsx)(Z.Z,{type:"text",id:"uf",value:R.uf,disabled:!0})]})}),(0,i.jsx)(b.Z,{xs:12,sm:6,children:(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"city",className:"mb-25",children:(0,i.jsx)("strong",{children:"Cidade:"})}),(0,i.jsx)(Z.Z,{type:"text",id:"city",value:R.city,disabled:!0})]})})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"district",className:"mb-25",children:(0,i.jsx)("strong",{children:"Bairro:"})}),(0,i.jsx)(Z.Z,{required:!0,minLength:2,type:"text",id:"district",value:R.district,onChange:e=>F({...R,district:e.target.value})})]}),(0,i.jsxs)(y.Z,{children:[(0,i.jsx)(b.Z,{xs:12,sm:6,children:(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"street",className:"mb-25",children:(0,i.jsx)("strong",{children:"Rua/Avenida:"})}),(0,i.jsx)(Z.Z,{required:!0,minLength:2,type:"text",id:"street",value:R.street,onChange:e=>F({...R,street:e.target.value})})]})}),(0,i.jsx)(b.Z,{xs:12,sm:6,children:(0,i.jsxs)("div",{children:[(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsx)(V.Z,{for:"number",className:"mb-25",children:(0,i.jsx)("strong",{children:"N\xfamero:"})}),(0,i.jsx)(Z.Z,{required:!0,type:"text",id:"number",value:R.number,disabled:P,onChange:e=>F({...R,number:e.target.value})})]}),(0,i.jsxs)(V.Z,{for:"noNumber",check:!0,className:"py-25",children:[(0,i.jsx)(Z.Z,{className:"mr-50",type:"checkbox",id:"noNumber",checked:P,name:"specialty",onChange:function(){let e=!P;return T(e),F({...R,number:e?"SN":""})}}),(0,i.jsx)("span",{className:"font-small-3",children:es("noAddressNumber")})]})]})})]}),(0,i.jsxs)(Q.Z,{className:"mb-2",children:[(0,i.jsxs)(V.Z,{for:"complement",className:"mb-25",children:[(0,i.jsx)("strong",{children:"Complemento"})," (opcional):"]}),(0,i.jsx)(Z.Z,{type:"text",id:"complement",value:R.complement,onChange:e=>F({...R,complement:e.target.value})})]})]}),(0,i.jsxs)(Q.Z,{check:!0,children:[(0,i.jsxs)(V.Z,{check:!0,children:[(0,i.jsx)(Z.Z,{type:"checkbox",defaultChecked:!1,onChange:e=>F({...R,allow:e.target.checked})})," ",(0,i.jsxs)("span",{className:"font-small-2",children:[es("labelAllowContact0")," ",null==d?void 0:d.name," ",es("labelAllowContact1"),"."]}
1)]}),G.allow&&(0,i.jsx)(w.Z,{className:"d-block",children:G.allow})]})]}),(0,i.jsx)(Y.Z,{children:(0,i.jsx)(C.Z,{type:"submit",color:"success",disabled:D,children:D?(0,i.jsx)(O.Z,{color:"secondary"}):(null==c?void 0:c.sendOrderActionText)||es("finishOrder")})})]})]})}),es=l(72929),eo=l(70087),er=l.n(eo),ea=l(33299),ed=l(56392),ec=l(77489),eu=l(6555),em=l(28980),ev=l(36895),eh=l(30913),ep=l(13152),ex=l(40054);function eg(e,t,l){return{...e,[t]:{...null==e?void 0:e[t],...l&&{studentListId:l}}}}var ef=l(14972),ej=!0,ey=(0,c.$j)(e=>({cart:e.cart,discounts:e.discounts,sessionData:e.sessionData}),{changeQuantityOnCart:v.Od,removeProductOnCart:v.Dr,setDiscounts:h.h})(function(e){var t,l,s,r,c,u,v,h,k,I,A,M,W,B,z,U;let{changeQuantityOnCart:J,removeProductOnCart:Q,setDiscounts:V,initialProps:Y,...G}=e,{dental:H,themeSettings:X,paymentMethods:{methods:et=[]}={}}=Y||{},[ei,eo]=(0,n.useState)(()=>{var e;return(0,ed.D)(null==H?void 0:null===(e=H.google)||void 0===e?void 0:e.gtmId)});(0,n.useEffect)(()=>{ei||(0,ed.w)().then(e=>{let{gtmId:t}=e;return eo((0,ed.D)(t))})},[]);let{cart:ej,discounts:ey,sessionData:eb}=G,eN=(0,d.useRouter)(),{cupom:eC}=eN.query,{data:eZ,status:ew}=(0,ea.useSession)(),[eS,eL]=(0,n.useState)([]),[eP,eO]=(0,n.useState)([]),[eT,ek]=(0,n.useState)(!1),[eI,eA]=(0,n.use
1State)(!1),[e_,eq]=(0,n.useState)(!1),[eE,eR]=(0,n.useState)(""),[eF,eD]=(0,n.useState)(!1),eM={code:""},[eW,eB]=(0,n.useState)(eM),[ez,eU]=(0,n.useState)({items:[],discounts:{},total:{}}),[eJ,eQ]=(0,n.useState)(null),[eV,eY]=(0,n.useState)(0),[eG,eH]=(0,n.useState)({}),[eX,e$]=(0,n.useState)(!1),[eK,e0]=(0,n.useState)(""),[e1,e2]=(0,n.useState)([]),{t:e9}=(0,el.$G)("common"),[e5,e3]=(0,n.useState)([]),[e8,e4]=(0,n.useState)([]),[e6,e7]=(0,n.useState)([]),te=(0,ex.qd)(null==H?void 0:null===(t=H.countryRules)||void 0===t?void 0:t.currency),tt=(0,ex.jK)(te);async function tl(e){try{var t;if(null===(t=ey.data)||void 0===t?void 0:t.length)return V([]);if(eB(eM),(null==e||!e.length)&&(eB({...eM,code:e9("enterCode")}),1))return eD(!1);return V([{code:e}])}catch(e){return eB({...eM,code:"C\xf3digo expirado ou n\xe3o encontrado."}),eD(!1)}}function ti(e){let t=(0,ex.Yz)(te.locale),l=(0,ex.uP)(e,te),i=l.toFixed(2);return"."!==t&&(i=i.replace(".",t)),{parsedDiscount:l,formatted:i}}function tn(e,t){let l=eS.find(t=>t.id===e);if(!l)return null;let i=l.price;(null==X?void 0:X.discountLimitFromSeller)&&(i=Math.round(100*(i=l.price*(X.discountLimitFromSeller/100)))/100);let n=t;(0,ex.uP)(t,te)>i&&(n=ti(i).formatted);let s=(0,ex.uP)(n,te),o=l.price-s;return{unitDiscount:n,priceWithUnitDiscount:{raw:o,formatted:(0,ex.xG)(o,te)},wasChanged:s>0&&o!==l.price}}function ts(e){var t,l;if(!e)return 0;let i=e.saleWithoutStock?99:null!==(t=e.units)&&void 0!==t?t:0;return(null==H?void 0:H.useStockReservation)&&e.reservedUnits?Math.max(0,i-(null!==(l=e.reservedUnits)&&void 0!==l?l:0)):i}async function to(e){let{productId:t,listId:l}=e,i=await (0,ee.v)("".concat($.Y,"/removeToCart"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:eZ.user.id,sellerId:H.id,...t&&{productId:t},...l&&{listId:l}})});return await i.json()}async function tr(e){try{var t,l;let i=eP.find(t=>t.id===e),n=(null==ez?void 0:null===(t=ez.subtotal)||void 0===t?void 0:t.raw)-i.price.raw;eO(eP.filter(t=>t.id!==e));let s=null,o=null===(l=ej[null==H?void 0:H.id])||void 0===l?void 0:l.studentListId;if((null==H?void 0:H.type)==="ecommerce"){let t=await to({listId:e});s=eg(t,null==H?void 0:H.id,o)}Q({dentalId:null==H?void 0:H.id,listId:e,price:n,cartUpdated:s})}catch(e){console.log(e),x.Am.error(e9("errorAction"))}}async function ta(e){try{var t,l;let i=0;eS.filter(t=>t.id!==e).map(e=>i+=parseInt(e.quantity)*e.price);let n=eS.find(t=>t.id===e);eL(eS.filter(t=>t.id!==e));let s=null,o=null===(t=ej[null==H?void 0:H.id])||void 0===t?void 0:t.studentListId;if((null==H?void 0:H.type)==="ecommerce"&&(null==eZ?void 0:null===(l=eZ.user)||void 0===l?void 0:l.id)){let t=await to({productId:e});s=eg(t,null==H?void 0:H.id,o)}Q({dentalId:null==H?void 0:H.id,productId:e,price:i,cartUpdated:s}),function(e){try{if(!ei)return;let t=JSON.stringify({event:"remove_from_cart",ecommerce:{items:[{item_name:e.title,item_id:e.id,item_brand:e.brand,index:1,quantity:e.quantity}]}});e0("\n              dataLayer.push({ ecommerce: null });\n              dataLayer.push(".concat(t,");\n            "))}catch(e){console.log(e)}}(n),function(){try{var e,t;if(!(0,ef.pV)(H))return;(0,ef.L9)(H,"remove_from_cart",{currency:(null==H?void 0:null===(t=H.countryRules)||void 0===t?void 0:null===(e=t.currency)||void 0===e?void 0:e.code)||"BRL",value:itemToRemove.quantity*itemToRemove.price,items:[{item_id:itemToRemove.id,item_name:itemToRemove.title,item_brand:itemToRemove.brand,price:itemToRemove.price,quantity:itemToRemove.quantity}]})}catch(e){console.log(e)}}(n)}catch(e){console.log(e),x.Am.error(e9("errorAction"))}}async function td(e){let{productId:t,quantity:l}=e,i=await (0,ee.v)("".concat($.Y,"/changeQuantityToCart"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:eZ.user.id,sellerId:H.id,productId:t,quantity:l})});return await i.json()}async function tc(e,t,l){var i,n;let s=t||1,o=0,r=eS.map(t=>{if(t.id!==e)return t;{let l=ts(t);return{...t,quantity:t.id===e?s:t.quantity,beyondOfQuantity:parseInt(s)>l}}});r.map(e=>o+=parseInt(e.quantity)*e.price),eL(r);let a=null,d=null;d=null===(i=ej[null==H?void 0:H.id])||void 0===i?void 0:i.studentListId,(null==H?void 0:H.type)==="ecommerce"&&(null==eZ?void 0:null===(n=eZ.user)||void 0===n?void 0:n.id)&&(a=eg(await td({productId:e,quantity:s||1}),null==H?void 0:H.id,d)),J({dentalId:null==H?void 0:H.id,productId:e,newQuantity:s,price:o,cartUpdated:a,studentListId:d})}function tu(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0;return!!t||(null===(e=eG[l])||void 0===e?void 0:e.unitDiscount)>0}return(0,n.useEffect)(()=>
1{if((null==H?void 0:H.type)!=="ecommerce"||!ew||"loading"===ew||eZ||(null==H?void 0:H.allowsCartWithoutLogin))return;let e="/login?destino=carrinho";eC&&(e="".concat(e,"?cupom=").concat(eC)),eN.push(e)},[ew,H,eZ,eN,eC]),(0,n.useEffect)(()=>{eC&&tl(eC)},[eC]),(0,n.useEffect)(()=>{try{var e,t,l,i;if(!(0,ef.pV)(H)||!(null==eS?void 0:eS.length)||!(null==ez?void 0:null===(e=ez.total)||void 0===e?void 0:e.raw))return;(0,ef.L9)(H,"view_cart",{currency:(null==H?void 0:null===(l=H.countryRules)||void 0===l?void 0:null===(t=l.currency)||void 0===t?void 0:t.code)||"BRL",value:null==ez?void 0:null===(i=ez.total)||void 0===i?void 0:i.raw,items:eS.map((e,t)=>({index:t,item_id:e.id,item_name:e.title,item_brand:e.brand,price:e.price,quantity:e.quantity}))})}catch(e){console.log(e)}},[eS,ez]),(0,n.useEffect)(()=>{(null==H?void 0:H.type)==="ecommerce"&&V(JSON.parse(window.localStorage.getItem("discounts"))||[])},[]),(0,n.useEffect)(()=>{var e,t,l,i;if((null==H?void 0:H.id)&&ej.isLoaded&&ej[null==H?void 0:H.id]){if(!((null===(e=Object.keys((null===(t=ej[null==H?void 0:H.id])||void 0===t?void 0:t.products)||{}))||void 0===e?void 0:e.length)>0||(null===(l=Object.keys((null===(i=ej[null==H?void 0:H.id])||void 0===i?void 0:i.productsFromStudentListWithPricesHidden)||{}))||void 0===l?void 0:l.length)>0))return ek(!0);(async function(){try{var e,t,l,i,n,s,o;let r=await (0,ee.v)("".concat($.Y,"/getShoppingCartProducts"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({dentalId:null==H?void 0:H.id,dentalType:null==H?void 0:H.type,products:Object.keys((null===(e=ej[null==H?void 0:H.id])||void 0===e?void 0:e.products)||{}),productsFromStudentListWithPricesHidden:null===(t=ej[null==H?void 0:H.id])||void 0===t?void 0:t.productsFromStudentListWithPricesHidden,isLoggedAsCustomer:null==eb?void 0:eb.isLoggedAsCustomer,userId:null==eZ?void 0:null===(l=eZ.user)||void 0===l?void 0:l.id,...K.nationalities&&{nationalities:K.nationalities}})});if(200!==r.status)return console.log("ANY ERROR");r=await r.json();let a=await (0,em.n)({products:null==r?void 0:r.products,cart:ej,dentalId:null==H?void 0:H.id});a=a.lists.find(e=>{var t;return e.listId==(null===(t=ej[null==H?void 0:H.id])||void 0===t?void 0:t.studentListId)}),e7(a);let d=(null==a?void 0:null===(n=a.products)||void 0===n?void 0:n[null===(i=ej[null==H?void 0:H.id])||void 0===i?void 0:i.studentListId])||{};eL(null==r?void 0:null===(s=r.products)||void 0===s?void 0:s.map(e=>{var t,l,i;let n=null!==(i=null===(l=ej[null==H?void 0:H.id])||void 0===l?void 0:null===(t=l.products)||void 0===t?void 0:t[e.id])&&void 0!==i?i:0,s=ts(e),o=e.price,r=e.formattedPrice;if(null==a?void 0:a.useSpecialPrice){let t=d[e.id];t&&t.useSpecialPrice&&(o=t.priceOption.price||e.price,r=t.priceOption.formattedPrice||e.formattedPrice)}return{...e,quantity:n,price:o,formattedPrice:r,beyondOfQuantity:n>s,...(!e.available||!e.active)&&!e.saleWithoutStock&&{unavailable:!0}}})),eO(null!==(o=r.studentListWithPricesHidden)&&void 0!==o?o:[]),eH((null==r?void 0:r.orderChangesByAdmin)||{})}catch(e){console.log(e)}finally{ek(!0)}})()}},[H,ej]),(0,n.useEffect)(()=>{var e;if(!eS.length&&!eP.length&&!(null==ey?void 0:null===(e=ey.data)||void 0===e?void 0:e.length)||(null==H?void 0:H.type)==="ecommerce"&&!ey.isLoaded)return;let t=setTimeout(async()=>{var e,t,l,i,n,s,o;let r=(null==e6?void 0:e6.showSpecialPricesForList)&&(null==e6?void 0:e6.useSpecialPrice),a=await (0,ee.v)("".concat($.Y,"/getShoppingCartPricesV2"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:null==eZ?void 0:null===(e=eZ.user)||void 0===e?void 0:e.id,sellerId:null==H?void 0:H.id,discountsCode:(null==ey?void 0:null===(t=ey.data)||void 0===t?void 0:t.length)?[null===(l=ey.data[0].code)||void 0===l?void 0:l.toLowerCase()]:[],paymentMethods:et,shippingPrice:eJ,items:eS.filter(e=>!e.isGift).map(e=>{var t,l,i,n;let s=null===(t=eG[e.id])||void 0===t?void 0:t.wasChanged,o=Number(null===(l=eG[e.id])||void 0===l?void 0:l.unitDiscount),a=null===(n=eG[e.id])||void 0===n?void 0:null===(i=n.priceWithUnitDiscount)||void 0===i?void 0:i.raw,d=s?r?e.price-o:a:e.price;return{id:e.id,type:e.type,fatherId:e.fatherId,price:d,quantity:e.quantity,categories:e.categories,brand:e.brand}}),studentListWithPricesHidden:eP,...K.nationalities&&{nationalities:K.nationalities}})});if(200!==a.status)return console.log("error");eU(a=await a.json()),eY((null===(i=a.discounts)||void 0===i?void 0:i.reduce((e,t)=>
1{var l;return e+(null==t?void 0:null===(l=t.total)||void 0===l?void 0:l.raw)},0))||0),e4(a.totalWithPaymentDiscount),n=a.discountsFeedback,eB({...eW,code:null!==(o=null===(s=n.find(e=>e.code))||void 0===s?void 0:s.message)&&void 0!==o?o:""}),function(e){if(!e.some(e=>{var t;return(null===(t=e.gifts)||void 0===t?void 0:t.length)>0}))return e2([]);let t=e.filter(e=>{var t;return(null===(t=e.gifts)||void 0===t?void 0:t.length)>0});e2(t=Array.from(new Set((t=t.map(e=>e.gifts)).flat())))}(a.discounts)},500);return()=>clearTimeout(t)},[eS,eP,ey,eJ,eG]),(0,n.useEffect)(()=>{var e;if((null===(e=Object.keys(eG))||void 0===e?void 0:e.length)===0)return;let t=setTimeout(async()=>{try{let e={};Object.keys(eG).map(t=>{var l,i;e[t]={unitDiscount:parseFloat((null===(i=eG[t])||void 0===i?void 0:null===(l=i.unitDiscount)||void 0===l?void 0:l.replace(",","."))||0)}});let t=await (0,ee.v)("".concat($.Y,"/setOrderChangesByAdmin"),{method:"POST",requestedTokenType:"user",headers:{"Content-Type":"application/json"},body:JSON.stringify({sellerId:null==H?void 0:H.id,items:e})});if(200!==t.status)return console.log("error")}catch(e){console.log(e)}},500);return()=>clearTimeout(t)},[eG]),(0,n.useEffect)(()=>{e$(!H.isNotPriced)},[H]),(0,i.jsxs)(p.Z,{initialProps:Y,children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:[e9("cartPageTitle")," - ",null==H?void 0:H.name]}),(0,i.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,i.jsxs)(g.Z,{className:"ecommerce-application customCheckout mt-3",children:[(0,i.jsxs)("div",{className:"d-flex align-items-center mb-2",children:[(0,i.jsx)("h2",{className:"customContentTitle content-header-title mb-0 mr-2",children:e9("cart")}),(0,i.jsx)("div",{className:"globalDivBreadcrumb",children:(0,i.jsxs)(F.Z,{initialProps:Y,className:"mb-0",children:[(0,i.jsx)(f.Z,{children:(0,i.jsx)(o(),{legacyBehavior:!0,href:"/",className:"text-body",children:" Home "})}),(0,i.jsx)(f.Z,{active:!0,children:(0,i.jsx)("span",{children:e9("cart")})})]})})]}),(null==e6?void 0:e6.showSpecialPricesForList)&&(null==e6?void 0:e6.useSpecialPrice)&&(0,i.jsx)(j.Z,{color:"primary",className:"mb-2",children:(0,i.jsx)("p",{className:"mb-0",children:(0,i.jsxs)("strong",{children:["Voc\xea est\xe1 utilizando os pre\xe7os especiais da lista ",e6.title,"!"]})})},e6.listId),(null==e6?void 0:e6.showSpecialPricesForList)&&!(null==e6?void 0:e6.useSpecialPrice)&&(0,i.jsx)(j.Z,{color:"primary",className:"mb-2",children:(0,i.jsx)("p",{className:"mb-0",children:(0,i.jsxs)("strong",{children:["Voc\xea tem no seu carrinho ",null===(l=e6.percentage)||void 0===l?void 0:l.toFixed(1),"% da lista ",e6.title,", voc\xea precisa ter ",e6.specialPricePercentage,"% para utilizar os pre\xe7os especiais da lista!"]})})},e6.listId),eS.some(e=>e.beyondOfQuantity)&&(0,i.jsx)(j.Z,{color:"danger",children:e9("messageProductExceededStockQuantity")}),eS.some(e=>e.unavailable)&&(0,i.jsx)(j.Z,{color:"danger",children:"H\xe1 um ou mais produtos indispon\xedveis no carrinho."}),eT&&(0,i.jsxs)(y.Z,{className:"ecommerce-application",children:[(0,i.jsx)(b.Z,{xl:"9",children:!e_&&eT&&(eS.length>0||eP.length>0||e1.length>0)?(0,i.jsxs)(i.Fragment,{children:[null==eP?void 0:eP.map(e=>(0,i.jsx)(D.Z,{initialProps:Y,style:{borderColor:"var(--textPrice)",borderStyle:"dotted"},className:"ecommerce-card mb-1 mb-sm-2",children:(0,i.jsxs)(N.Z,{className:"p-1",children:[(0,i.jsxs)(y.Z,{className:"align-items-sm-center",children:[(0,i.jsx)(b.Z,{xs:"12",md:"1",lg:"2",className:"d-flex justify-content-center",children:(0,i.jsx)(T.Z,{color:"#CCC"})}),(0,i.jsxs)(b.Z,{xs:"12",md:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"7",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"5",className:"mb-50 mb-md-0",children:[(0,i.jsx)("div",{className:"item-name mb-25",children:(0,i.jsx)(o(),{legacyBehavior:!0,href:"".concat((0,ec.route)("students"),"/lista/").concat(e.id),className:"text-body",children:"Lista ".concat(e.title)})}),(0,i.jsx)("p",{className:"text-muted mb-0",children:e.description}),(0,i.jsxs)(C.Z,{className:"mt-50",outline:!0,size:"small",color:"secondary",onClick:()=>(function(e){if(null==e5?void 0:e5.includes(e))return e3(e5.filter(t=>t!==e));e3([...e5,e])})(e.id),children:[(null==e5?void 0:e5.includes(e.id))?(0,i.jsx)(_,{size:16}):(0,i.jsx)(q.Z,{size:16}),(0,i.jsx)("span",{className:"ml-50 font-small-2",children:e.products.length>1?(0,i.jsxs)(i.Fragment,{children:[e.products.length," produtos"]}):(0,i.jsxs)(i.Fragment,{children:[e.products.length," produto"]})})]})]}),(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"1":"2",className:"d-flex flex-md-column align-items-end align-items-md-center mb-1 mb-md-0",children:(0,i.jsxs)("div",{className:"mr-1 mr-md-0 d-flex flex-column align-items-md-center",children:[(0,i.jsx)("p",{className:"font-small-1 mb-25",children:"Quantidade:"}),(0,i.jsx)(Z.Z,{disabled:!0,className:"customQtd",type:"number",min:"1",max:"99",name:"number",value:e.quantity}),(0,i.jsx)(C.Z,{onClick:()=>tr(e.id),className:"mt-md-50",color:"flat-secondary",size:"sm",children:"Remover"})]})}),(0,i.jsxs)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"2":"3",className:"d-md-flex flex-md-column text-md-center ".concat((null==eb?void 0:eb.isLoggedAsCustomer)?"mb-1 mb-md-0":""),children:[(0,i.jsx)("p",{className:"mb-0 font-small-1",children:"Valor unit\xe1rio:"}),(0,i.jsx)("p",{className:"mb-0",children:e.price.formatted})]})]}),(null==e5?void 0:e5.includes(e.id))&&e.products.map(e=>(0,i.jsx)("div",{className:"mt-50",children:(0,i.jsxs)(y.Z,{className:"align-items-sm-center m-25 mt-1 py-md-1 py-lg-0",style:{backgroundColor:"var(--bg)",borderRadius:"0.375rem"},children:[(0,i.jsx)(b.Z,{xs:"12",md:"1",lg:"2",className:"d-flex justify-content-center",children:(null==e?void 0:e.thumb)&&(0,i.jsxs)("div",{className:er().globalImg,children:[(0,i.jsx)("img",{src:e.thumb,alt:e.title}),(0,i.jsx)("div",{})]})}),(0,i.jsxs)(b.Z,{xs:"12",md:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"7",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"5",className:"mb-50 mb-md-0",children:[(0,i.jsx)("div",{className:"font-small-2 mb-25",children:(0,i.jsx)("strong",{children:e.title})}),(0,i.jsx)("p",{className:"text-muted font-small-2 mb-0",children:e.brand})]}),(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"1":"2",className:"d-flex flex-md-column align-items-end align-items-md-center mb-1 mb-md-0",children:(0,i.jsx)("div",{className:"mr-1 mr-md-0 d-flex flex-column align-items-md-center",children:(0,i.jsx)("p",{className:"font-small-1 mb-0",children:e.quantity})})}),(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"2":"3",className:"d-md-flex flex-md-column text-md-center ".concat((null==eb?void 0:eb.isLoggedAsCustomer)?"mb-1 mb-md-0":"")}
1)]})},e.id))]})},e.id)),eS.map(e=>{var t,l,n,s,r;return(0,i.jsx)(D.Z,{initialProps:Y,className:"ecommerce-card mb-1 mb-sm-2 ".concat((null==e?void 0:e.unavailable)&&"border border-danger"),children:(0,i.jsx)(N.Z,{className:"p-1",children:(0,i.jsxs)(y.Z,{className:"align-items-sm-center",children:[(0,i.jsx)(b.Z,{xs:"12",md:"1",lg:"2",className:"d-flex justify-content-center",children:(null===(t=e.images)||void 0===t?void 0:t.length)>0&&(0,i.jsxs)("div",{className:er().globalImg,children:[(0,i.jsx)("img",{src:e.images[0]["100x100"],alt:e.title}),(0,i.jsx)("div",{})]})}),(0,i.jsxs)(b.Z,{xs:"12",md:tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id)?"3":"7",lg:tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id)?"3":"5",className:"mb-50 mb-md-0",children:[(0,i.jsx)("div",{className:"item-name mb-25",children:(0,i.jsx)(o(),{legacyBehavior:!0,href:"/".concat(e.slug),className:"text-body",children:e.title})}),(0,i.jsx)("p",{className:"text-muted mb-0",children:e.brand})]}),!eX&&(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:"3"}),(0,i.jsxs)(b.Z,{xs:"12",md:"2",lg:tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id)?"1":"2",className:"d-flex flex-md-column align-items-end align-items-md-center mb-1 mb-md-0",children:[(0,i.jsxs)("div",{className:"mr-1 mr-md-0 d-flex flex-column align-items-md-center",children:[(0,i.jsxs)("p",{className:"font-small-1 mb-25",children:[e9("quantity"),":"]}),(0,i.jsx)(Z.Z,{className:"customQtd ".concat(e.beyondOfQuantity?"border-danger":""),type:"number",min:"1",max:null!==(s=ts(e))&&void 0!==s?s:"99",name:"number",value:e.quantity,onChange:t=>{var l;return tc(e.id,t.target.value,null!==(l=ts(e))&&void 0!==l?l:0)},disabled:null==e?void 0:e.unavailable})]}),e.beyondOfQuantity&&(0,i.jsx)(w.Z,{className:"d-block font-small-2 text-center",children:(0,i.jsx)("strong",{children:e9("messageUnitsAvailableInStock",{units:null!==(r=ts(e))&&void 0!==r?r:0})})}),(0,i.jsx)(C.Z,{onClick:()=>ta(e.id,e.quantity),className:"mt-md-50",color:"flat-secondary",size:"sm",children:e9("actionRemove")})]}),eX&&(0,i.jsxs)(b.Z,{xs:"12",md:"2",lg:tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id)?"2":"3",className:"d-md-flex flex-md-column text-md-center ".concat(tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id)?"mb-1 mb-md-0":""),children:[(0,i.jsx)("p",{className:"mb-0 font-small-1",children:"Valor unit\xe1rio:"}),(0,i.jsx)("p",{className:"mb-0",children:e.formattedPrice})]}),((null==eb?void 0:eb.isLoggedAsCustomer)||tu(null==eb?void 0:eb.isLoggedAsCustomer,e.id))&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.Z,{xs:"12",md:"2",className:"d-flex flex-md-column align-items-end align-items-md-center mb-1 mb-md-0",children:(0,i.jsxs)("div",{className:"".concat(er().adminPrice," d-flex flex-column align-items-center"),style:{width:"100%",maxWidth:"130px"},children:[(0,i.jsx)("p",{className:"font-small-1 mb-25",children:"Desconto unit\xe1rio:"}),(0,i.jsx)(Z.Z,{type:"text",name:"unitDiscount",inputMode:"decimal",disabled:!(null==eb?void 0:eb.isLoggedAsCustomer),value:function(e){if(null==e||""===e)return"";let t=(0,ex.Yz)(te.locale);return String(e).replace(".",t)}(null===(l=eG[e.id])||void 0===l?void 0:l.unitDiscount),onChange:(null==eb?void 0:eb.isLoggedAsCustomer)?t=>(function(e,t){var l;let i=function(e){let t=(0,ex.Yz)(te.locale),l=String(null!=e?e:"");tt&&(l=l.split(tt).join(""));let i=","===t?",":".";l=(l=l.replace(/\s/g,"")).split(","===i?".":",").join("");let n=!1;return l.split("").filter(e=>e>="0"&&e<="9"||e===i&&!n&&(n=!0,!0)).join("")}(t);if(i===(null===(l=eG[e])||void 0===l?void 0:l.unitDiscount))return;let n=tn(e,i);n&&eH({...eG,[e]:n})})(e.id,t.target.value):void 0,onBlur:(null==eb?void 0:eb.isLoggedAsCustomer)?()=>(function(e){var t,l,i,n;let s=null===(t=eG[e])||void 0===t?void 0:t.unitDiscount,{formatted:o}=ti(s),r=tn(e,o);if(r){if(r.unitDiscount===s&&(null===(l=r.priceWithUnitDiscount)||void 0===l?void 0:l.raw)===(null===(n=eG[e])||void 0===n?void 0:null===(i=n.priceWithUnitDiscount)||void 0===i?void 0:i.raw))return;eH({...eG,[e]:r})}})(e.id):void 0,placeholder:"0,00"})]})}),(0,i.jsxs)(b.Z,{xs:"12",md:"2",className:"d-md-flex flex-md-column text-md-center ".concat((null===(n=eG[e.id])||void 0===n?void 0:n.wasChanged)?"text-danger":""),children:[(0,i.jsx)("p",{className:"mb-0 font-small-1",children:"Novo valor unit\xe1rio:"}),(0,i.jsx)("p",{className:"mb-0",children:function(e,t){var l,i,n,s;if(!((null==e6?void 0:e6.showSpecialPricesForList)&&(null==e6?void 0:e6.useSpecialPrice)))return null===(i=eG[e])||void 0===i?void 0:null===(l=i.priceWithUnitDiscount)||void 0===l?void 0:l.formatted;let o=t-Number(null===(n=eG[e])||void 0===n?void 0:n.unitDiscount);return(0,ex.xG)(o,te)}(e.id,e.price)})]})]})]})})},e.id)}),e1.map(e=>{var t,l;return(0,i.jsx)(D.Z,{initialProps:Y,style:{borderColor:"var(--textPrice)",borderStyle:"dotted"},className:"ecommerce-card mb-1 mb-sm-2",children:(0,i.jsx)(N.Z,{className:"p-1",children:(0,i.jsxs)(y.Z,{className:"align-items-sm-center",children:[(0,i.jsx)(b.Z,{xs:"12",md:"1",lg:"2",className:"d-flex justify-content-center",children:(null===(t=e.images)||void 0===t?void 0:t.length)>0&&(0,i.jsxs)("div",{className:er().globalImg,children:[(0,i.jsx)("img",{src:e.images[0]["100x100"],alt:e.title}),(0,i.jsx)("div",{})]})}),(0,i.jsxs)(b.Z,{xs:"12",md:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"7",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"3":"5",className:"mb-50 mb-md-0",children:[(0,i.jsx)("div",{className:"item-name mb-25",children:e.title}),(0,i.jsx)("p",{className:"text-muted mb-0",children:e.brand})]}),!eX&&(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:"3"}),(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"1":"2",className:"d-flex flex-md-column align-items-end align-items-md-center mb-1 mb-md-0",children:(0,i.jsxs)("div",{className:"mr-1 mr-md-0 d-flex flex-column align-items-md-center",children:[(0,i.jsxs)("p",{className:"font-small-1 mb-25",children:[e9("quantity"),":"]}),(0,i.jsx)(Z.Z,{disabled:!0,className:"customQtd ".concat(e.beyondOfQuantity?"border-danger":""),type:"number",min:"1",max:null!==(l=ts(e))&&void 0!==l?l:"99",name:"number",value:e.quantity})]})}),eX&&(0,i.jsx)(b.Z,{xs:"12",md:"2",lg:(null==eb?void 0:eb.isLoggedAsCustomer)?"2":"3",className:"d-md-flex flex-md-column text-md-center ".concat((null==eb?void 0:eb.isLoggedAsCustomer)?"mb-1 mb-md-0":""),children:(0,i.jsx)("p",{className:"mb-0",style:{color:"var(--textPrice)"},children:e9("gift")})})]})})},e.id)}
1),H.showSendCartInWhatsappButton&&(0,i.jsx)(y.Z,{className:"mb-2",children:(0,i.jsx)(b.Z,{children:(0,i.jsxs)(C.Z,{color:"secondary",className:"trigger-gtm-whats",onClick:function(){var e,t;let l=(0,eh.I)(H);if(l){window.open(l,"_blank","noopener");return}let i=(0,ev.Z)(null==H?void 0:H.whats,null==H?void 0:null===(t=H.countryRules)||void 0===t?void 0:null===(e=t.phone)||void 0===e?void 0:e.countryCodePrefix),n="".concat(e9("messageSendMessageSellerWhatsapp"),"\n\n");eS.forEach(e=>{let t=(0,ex.xG)(e.price,te),l=H.isNotPriced?"":"".concat(t);n+="- ".concat(e.quantity,"x ").concat(e.title," (C\xf3d: ").concat(e.internalId,") ").concat(l," \n")});let s=(0,ep.mq)({dental:H,message:n});window.open("https://wa.me/".concat(i,"?text=").concat(encodeURIComponent(s)))},children:[(0,i.jsx)("svg",{className:er().svgWhats,width:"25",height:"25",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3038 3.61584C14.6199 1.92988 12.3803 1.00099 9.9944 1C5.07801 1 1.07679 5.00111 1.07482 9.91881C1.07416 11.4908 1.48483 13.0254 2.26541 14.3781L1 19L5.72841 17.7596C7.03127 18.4703 8.49806 18.8449 9.99077 18.8453H9.99451C14.9103 18.8453 18.912 14.8439 18.9139 9.92595C18.9149 7.54258 17.9879 5.3017 16.3038 3.61584ZM9.9944 17.339H9.99132C8.6611 17.3384 7.35647 16.9809 6.21807 16.3056L5.94747 16.1449L3.14157 16.881L3.8905 14.1453L3.71417 13.8648C2.97205 12.6844 2.58016 11.3201 2.58082 9.91936C2.58236 5.8319 5.90814 2.50645 9.99736 2.50645C11.9775 2.5071 13.839 3.27922 15.2386 4.68053C16.6383 6.08184 17.4086 7.94446 17.408 9.9254C17.4062 14.0132 14.0807 17.339 9.9944 17.339V17.339ZM14.0609 11.7866C13.8381 11.675 12.7423 11.136 12.538 11.0615C12.3338 10.9871 12.1851 10.9501 12.0366 11.1731C11.888 11.3961 11.461 11.8982 11.3309 12.0469C11.2008 12.1956 11.0709 12.2143 10.848 12.1027C10.6251 11.9912 9.90706 11.7557 9.05573 10.9965C8.39325 10.4055 7.946 9.67568 7.81592 9.45266C7.68606 9.22942 7.81482 9.12043 7.9137 8.99783C8.15496 8.69823 8.39655 8.38413 8.47081 8.23549C8.54519 8.08673 8.50795 7.95654 8.45214 7.84503C8.39655 7.73352 7.95083 6.63654 7.76516 6.19016C7.58411 5.75576 7.40052 5.81443 7.26364 5.80762C7.13378 5.80114 6.98513 5.79982 6.83649 5.79982C6.68795 5.79982 6.44647 5.85552 6.24213 6.07876C6.03789 6.30189 5.46221 6.84099 5.46221 7.93798C5.46221 9.03496 6.2608 10.0947 6.3722 10.2435C6.48361 10.3922 7.9438 12.6433 10.1794 13.6086C10.7111 13.8384 11.1262 13.9754 11.45 14.0781C11.9839 14.2478 12.4696 14.2238 12.8537 14.1665C13.2819 14.1024 14.1722 13.6272 14.3581 13.1067C14.5437 12.5861 14.5437 12.1399 14.4879 12.0469C14.4323 11.9539 14.2837 11.8982 14.0609 11.7866V11.7866Z"})}),(0,i.jsx)("span",{style:{marginLeft:"2px"},children:H.sendCartInWhatsappButtonText||"".concat(e9("actionSendCartToSeller")," ").concat(null==H?void 0:H.name)})]})})})]}):(0,i.jsx)(D.Z,{initialProps:Y,children:(0,i.jsxs)(N.Z,{className:"text-center py-3",children:[(0,i.jsx)("p",{children:e9("noProductsInCart")}),(0,i.jsx)(C.Z,{color:"success",onClick:()=>eN.push("/"),children:e9("actionSeeProducts")})]})})}),(0,i.jsxs)(b.Z,{xl:"3",children:[(null==H?void 0:H.type)==="ecommerce"&&(0,i.jsx)(D.Z,{initialProps:Y,className:"mb-2",children:(0,i.jsxs)(N.Z,{children:[(0,i.jsxs)("h4",{className:"font-small-4 mb-1",children:[(0,i.jsx)(E.Z,{className:"mr-25"})," ",(0,i.jsx)("strong",{children:e9("offerTicket")})]}),(0,i.jsxs)(S.Z,{children:[(0,i.jsx)(Z.Z,{type:"text",placeholder:e9("placeholderOfferTicket"),value:(null==ey?void 0:null===(r=ey.data)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:s.code)||eE,onChange:e=>eR(e.target.value),disabled:null===(c=ey.data)||void 0===c?void 0:c.length}),(0,i.jsx)(C.Z,{color:"secondary",onClick:()=>tl(eE),disabled:eF,children:(null===(u=ey.data)||void 0===u?void 0:u.length)?e9("actionRemove"):e9("actionApply")})]}),eW.code&&(0,i.jsx)(w.Z,{className:"d-block",children:eW.code})]})}),(null==H?void 0:H.type)==="ecommerce"&&ez.total.raw>0&&(0,i.jsx)("div",{className:"mb-2",children:(0,i.jsx)(es.Z,{initialProps:Y,productsOnCart:eS,totalInDiscounts:eV,callbackChange:e=>eQ(e)})}),(0,i.jsx)(D.Z,{initialProps:Y,className:"customCheckout__total",children:(0,i.jsxs)(N.Z,{children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,i.jsx)("span",{children:e9("subtotal")}),eX?(0,i.jsx)("span",{children:(null==ez?void 0:null===(v=ez.subtotal)||void 0===v?void 0:v.formatted)||"-"}):(0,i.jsx)("span",{children:"A confirmar"})]}),(null==ez?void 0:null===(h=ez.discounts)||void 0===h?void 0:h.length)>0&&(null==ez?void 0:null===(k=ez.discounts)||void 0===k?void 0:k.filter(e=>{var t;return(null==e?void 0:null===(t=e.total)||void 0===t?void 0:t.raw)>0}).map(e=>{var t;return(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,i.jsx)("span",{className:"text-success",children:(null==e?void 0:e.name)||"De
1sconto"}),(0,i.jsx)("h3",{className:"text-success mb-0",children:(null==e?void 0:null===(t=e.total)||void 0===t?void 0:t.formatted)||"-"})]},e.id)})),(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,i.jsx)("span",{children:e9("freight")}),(null==H?void 0:H.type)==="ecommerce"?(0,i.jsx)("span",{children:(null==ez?void 0:null===(I=ez.shipping)||void 0===I?void 0:I.formatted)||e9("toCalc")}):(0,i.jsx)("span",{children:e9("toCalc")})]}),(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,i.jsx)("span",{children:e9("total")}),eX?(0,i.jsx)("h3",{className:"mb-0",children:(null==ez?void 0:null===(A=ez.total)||void 0===A?void 0:A.formatted)||"-"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("h3",{id:"PopoverToConfirm",className:"mb-0",children:["A confirmar ",(0,i.jsx)(R.Z,{className:"d-inline-flex"})]}),(0,i.jsx)(L.Z,{trigger:"hover",placement:"bottom",target:"PopoverToConfirm",children:(0,i.jsx)(P.Z,{children:e9("totalToConfirmHint")})})]})]}),!!eX&&Array.isArray(e8)&&e8.length>0&&(0,i.jsx)(i.Fragment,{children:null===(M=e8.filter(e=>(null==e?void 0:e.id)!=="creditCard"&&((null==e?void 0:e.showConditionStimulusCheckout)===!0||void 0===(null==e?void 0:e.showConditionStimulusCheckout)&&e.discount)))||void 0===M?void 0:M.map(e=>(0,i.jsx)("div",{className:"d-flex justify-content-between align-items-center text-success mb-1",children:(null==e?void 0:e.discount)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{children:[(0,i.jsxs)("strong",{children:[e.discount,"% OFF"]})," ","no ",e.title]}),(0,i.jsx)("span",{className:"font-medium-3 text-end",children:(0,i.jsx)("strong",{children:(null==e?void 0:e.formatted)||"-"})})]})},e.id))}),(0,i.jsx)(C.Z,{className:"w-100",block:!0,color:"success",onClick:()=>{if((null==H?void 0:H.type)==="ecommerce"){var e;(null==eZ?void 0:null===(e=eZ.user)||void 0===e?void 0:e.id)?eN.push((0,ec.route)("checkout")):eN.push("/login?destino=carrinho")}else eA(!0)},disabled:null==eS?void 0:eS.some(e=>e.beyondOfQuantity||e.unavailable),children:(null==H?void 0:H.type)!=="ecommerce"||null==H||!H.allowsCartWithoutLogin||(null==eZ?void 0:null===(U=eZ.user)||void 0===U?void 0:U.id)?(null==X?void 0:X.sendOrderActionText)||((null==H?void 0:H.type)==="ecommerce"?e9("actionSendOrder"):e9("finishOrder")):e9("actionNeedLogin")})]})})]})]}),(null==H?void 0:H.type)==="ecommerce"&&!(null==H?void 0:H.allowsCartWithoutLogin)&&!(null==eZ?void 0:null===(W=eZ.user)||void 0===W?void 0:W.id)&&(0,i.jsx)(D.Z,{initialProps:Y,children:(0,i.jsxs)(N.Z,{className:"text-center py-3",children:[(0,i.jsx)("p",{children:e9("messageNeedsLoginToSeeCart")}),(0,i.jsx)(C.Z,{color:"success",onClick:()=>eN.push("/login?destino=carrinho"),children:e9("actionSignInOrSignUp")})]})}),(null==H?void 0:H.type)!=="ecommerce"&&!eT&&(0,i.jsx)(O.Z,{color:"success"}),(null==H?void 0:H.type)==="ecommerce"&&((null==eZ?void 0:null===(B=eZ.user)||void 0===B?void 0:B.id)||(null==H?void 0:H.allowsCartWithoutLogin))&&!eT&&(0,i.jsx)(O.Z,{color:"success"}),e_&&(0,i.jsx)(D.Z,{initialProps:Y,children:(0,i.jsxs)(N.Z,{className:"text-center py-3",children:[(0,i.jsx)("h2",{className:"text-success",children:e9("budgetSuccessTitle")}),(0,i.jsx)("p",{children:e9("budgetSuccessMessage")}),(0,i.jsx)(C.Z,{color:"success",onClick:()=>eN.push("/"),children:e9("seeMoreProducts")})]})}),eI&&(0,i.jsx)(en,{isOpen:eI,handleToggle:()=>eA(!1),handleSuccess:()=>eq(!0),dataCart:{productsOnCart:eS,quantity:ej[null==H?void 0:H.id].total,total:ej[null==H?void 0:H.id].price,totalToShow:(null==ez?void 0:null===(z=ez.total)||void 0===z?void 0:z.formatted)||null,price:(0,ex.xG)(ej[null==H?void 0:H.id].price||0,te)},initialProps:Y})]}),(0,i.jsx)(eu.Z,{sellerId:null==H?void 0:H.id,initialProps:Y,pageType:"cart"}),eK&&(0,i.jsx)(m(),{dangerouslySetInnerHTML:{__html:eK}})]})})},6253:function(e,t,l){"use strict";l.d(t,{h:function(){return i}});let i=e=>(window.localStorage.setItem("discounts",JSON.stringify(e)),t=>{t({type:"CHANGE_SESSION_DISCOUNTS",isLoaded:!0,data:e})})},70087:function(e){e.exports={globalImg:"Cart_globalImg__mWydo",svgWhats:"Cart_svgWhats__anJjd",adminPrice:"Cart_adminPrice__z_hy8"}},60357:function(e,t,l){"use strict";var i=l(67294),n=l(45697),s=l.n(n);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e}).apply(this,arguments)}var r=(0,i.forwardRef)(function(e,t){var l=e.color,n=e.size,s=void 0===n?24:n,r=function(e,t){if(null==e)return{};var l,i,n=function(e,t){if(null==e)return{};var l,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)l=s[i],t.indexOf(l)>=0||(n[l]=e[l]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)l=s[i],!(t.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}(e,["color","size"]);return i.createElement("svg",o({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:void 0===l?"currentColor":l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},r),i.createElement("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),i.createElement("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),i.createElement("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),i.createElement("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),i.createElement("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),i.createElement("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"}))});
1r.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},r.displayName="List",t.Z=r}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,2143,9194,571,953,7644,4113,2888,9774,179],function(){return e(e.s=30864)}),_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.