PageSourceSearch

https://pharma.extendeal.com/_next/static/chunks/8450-ad2fe9e497601c7f.js

js extendeal.com collected 2026-10-08 08:27:03 UTC 81,573 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{21906:function(e,r,t){"use strict";t.d(r,{O:function(){return ExAvatarConnections_ExAvatarConnections}});var a=t(85893);t(67294);var o=t(8362),n=t(18197),i=t.n(n),s=t(56255),ExAvatarConnections_ExAvatarConnections=e=>{let r,{status:t,initialsName:n,style:l}=e,{user:c}=(0,s.xJ)();switch(t){case"extendeal":r=(null==c?void 0:c.EX10629)?"".concat(i()["extendeal-style"]," ").concat(i()["extendeal-style--transfers"]):i()["extendeal-style"];break;case"connected":r=i()["connected-style"];break;case"error":r=i()["error-style"];break;case"disconnected":r=i()["disconnected-style"];break;default:r=""}return(0,a.jsx)(o.Z,{circle:!0,className:"".concat(i()["base-avatar-style"]," ").concat(r),style:l,children:n})}},95906:function(e,r,t){"use strict";t.r(r),t.d(r,{DrawerBody:function(){return DrawerBody_DrawerBody},DrawerCart:function(){return DrawerCart_DrawerCart},DrawerFooter:function(){return DrawerFooter_DrawerFooter},DrawerHeader:function(){return DrawerHeader_DrawerHeader}});var a=t(85893),o=t(67294),n=t(15902),i=t(78524),s=t(24888),l=t(28613),c=t(31339),d=t(50472),u=t.n(d),p=t(11163),_=t(45325),h=t(46334),m=t(56255),C=t(86927),x=t(67421),g=t(21400),w=t(35160),v=t(89957);let setWalkthrough=e=>{let r=localStorage.getItem("walkthrough_complete"),t=r?JSON.parse(r):[];t.includes(null==e?void 0:e.id)||(null==e?void 0:e.is_walkthrough_completed)||(t.push(null==e?void 0:e.id),localStorage.setItem("walkthrough_complete",JSON.stringify(t)))};var f=t(88976);let D=[{id:12720,cart_id:2211,barcode:"7791824112743",description:"Ibupirac 800mg x 20 comp. Pfizer",is_recommended:1,is_included:2,quantity:30,is_unknown:!1},{id:12721,cart_id:2211,barcode:"7795314026213",description:"Halopidol 2 Mg/ml Sol.oral X 30 Ml",is_recommended:1,is_included:2,quantity:6,is_unknown:!1},{id:12722,cart_id:2211,barcode:"7795345120393",description:"Frenaler Cort Jbe.x 60 Ml",is_recommended:1,is_included:2,quantity:15,is_unknown:!1},{id:12723,cart_id:2211,barcode:"7798029233754",description:"Dramamine Comp.x 24",is_recommended:1,is_included:2,quantity:12,is_unknown:!1},{id:12724,cart_id:2211,barcode:"7792183487879",description:"Gadopril 10 Mg Comp.ran.x 60",is_recommended:1,is_included:2,quantity:10,is_unknown:!1},{id:12725,cart_id:2211,barcode:"7795345122809",description:"Lidil Cort Plus Spray Nasal X 120",is_recommended:1,is_included:2,quantity:7,is_unknown:!1}];var DrawerCart_DrawerCart=()=>{let[e,r]=(0,o.useState)(!1),{visibility:t,toggle:d,isExpanded:b,expand:j,quantityCart:y,productsList:E,openModalDelete:F,setOpenModalDelete:N,animation:B,updateProduct:L,fetching:P,initComparation:M,animationInProduct:A,setVisibility:k,setProductsList:I,replenishmentSnackbar:H}=(0,i.o)(),{isFetching:Z}=(0,s.I)(),{user:T,mutateUser:U}=(0,m.aF)({}),{pointOfSale:R}=(0,n.g)(),{counterStep:S,continueStatus:O}=(0,g.L)(),{showFooterContext:V}=(0,f.Y)(),{isAutomaticPurchase:z,totalOrdersProcessing:W}=(0,c.K)(),q=(0,p.useRouter)();q.pathname,q.pathname;let{t:Y}=(0,x.$G)(),{setOpenModalYoutube:G}=(0,l.F)(),X=(0,h.l)(Y)[0];(0,o.useEffect)(()=>{let e=document.getElementById("drawer-body");e.scrollHeight>e.clientHeight?r(!0):r(!1)},[E.length]);let Q=(null==q?void 0:q.pathname)==="/[clientId]/efficient-purchase/[posId]/search-results",fetchCompletedWalkthrough=async()=>{setWalkthrough(T),G(!0);try{let e="api/users/".concat(null==T?void 0:T.id,"/walkthrough/completed"),r=await w.Xl.post(e);(null==r?void 0:r.status)===200&&U();return}catch(e){}};return(0,o.useEffect)(()=>{"#step2"===S&&(k(!0),I(D)),("finished"===O||"skipped"===O||"paused"===O)&&(k(!1),I([]),(0,v.k)(T)&&fetchCompletedWalkthrough())},[S,O]),(0,a.jsxs)(a.Fragment,{children:["#step3"===S&&(0,a.jsx)("div",{className:u()["backdrop-step3"]}),(0,a.jsxs)("div",{id:"step3",className:"".concat(u()["drawer-wrapper"]," \n                ").concat(b&&!Q&&u()["is-expanded"],"\n                ").concat(b&&!!Q&&u()["is-expanded-results"],"\n                ").concat(t&&u()["drawer-fade-in"],"\n                ").concat(B&&u()["drawer-fade-out"],"\n                ").concat(u()["drawer-position-transition"]),style:{position:"/[clientId]/efficient-purchase/[posId]"===q.pathname?"fixed":"initial",top:("/[clientId]/efficient-purchase/[posId]"!==q.pathname||V)&&V?"auto":void 0,bottom:"/[clientId]/efficient-purchase/[posId]"===q.pathname&&V&&"auto",transition:V?"bottom 0.3s ease-out, top 0.3s ease-out":"top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[(0,a.jsx)(DrawerHeader_DrawerHeader,{toggle:d,expand:j,isExpanded:b,quantityCart:y(),setOpenModalDelete:()=>N(!F),fetching:P,allowExpand:!(0,C.H)(q.pathname),handlePushRouter:()=>{(0,_.L)(X.href,q,T,R)},pointOfSaleName:null==R?void 0:R.name}),(0,a.jsx)(DrawerBody_DrawerBody,{products:E,quantityCart:y(),handleUpdateProduct:L,pointOfSale:R,fetching:P,animationInProduct:A}),!P&&(0,a.jsx)(DrawerFooter_DrawerFooter,{initComparation:()=>M(),hasScroll:e,isFetching:Z})]})]})},b=t(16398),j=t.n(b),y=t(93627),E=t(53130),F=t(28301),N=t(17596),B=t(36609),DrawerHeader_DrawerHeader=e=>{let{toggle:r,expand:t,isExpanded:o,quantityCart:n,setOpenModalDelete:s,fetching:l,allowExpand:c,handlePushRouter:d,pointOfSaleName:u}=e,{user:p}=(0,m.aF)({}),{replenishmentSnackbar:_}=(0,i.o)(),h=_.visible;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:j().c
1ontainer,style:{border:!n&&"none"},children:[(0,a.jsxs)("div",{className:j()["wrapper-title"],children:[(0,a.jsx)("div",{className:j()["wrapper-left"],children:(0,a.jsxs)("p",{className:j().cart,children:[(0,B.t)("shoppingCart.shoppingCart_Seven")," ",!!n&&!l&&(0,a.jsx)("span",{className:j().quantity,children:"(".concat(n,")")})]})}),(0,a.jsx)("div",{className:"link__empty-cart ".concat(j()["wrapper-empty-text"]),children:!!n&&!l&&(0,a.jsx)("p",{className:"link__empty-cart ".concat(j()["empty-text"]),onClick:s,children:(0,B.t)("shoppingCart.shoppingCart_Seventeen")})})]}),(0,a.jsx)("div",{children:c?(0,a.jsx)(y.Z,{onClick:r,appearance:"link",icon:(0,a.jsx)(F.Z,{color:"rgba(64, 67, 91, 1)"}),style:{paddingTop:0},className:"icon__close-cart"}):(0,a.jsx)(y.Z,{onClick:d,appearance:"link",className:j()["go-to-back"],children:(0,a.jsxs)("div",{className:j()["wrapper-button-content"],children:[(0,a.jsx)(N.Z,{style:{background:"none",minWidth:16,fontWeight:600},color:"rgba(1, 113, 230, 1)"}),(0,a.jsx)("p",{className:j()["drugManufacturer-name"],children:u})]})})})]}),!h&&!!n&&!l&&(0,a.jsx)(E.Z,{style:{margin:"0 16px"}}),h&&(0,a.jsx)("div",{className:j()["replenishment-snackbar"],children:(0,a.jsxs)("p",{className:j()["replenishment-snackbar-text"],children:[_.count," ",1===_.count?(0,B.t)("replenishmentAddedSingular"):(0,B.t)("replenishmentAddedPlural")]})})]})},L=t(25675),P=t.n(L),M=t(51745),A=t(62222),k=t(68811);t(55486);var I=t(98168),H=t(83136),Z=t.n(H),T=t(45965),DrawerFooter_DrawerFooter=e=>{var r;let{initComparation:t,hasScroll:n,isFetching:l}=e,[d,u]=(0,o.useState)(!1),[_,h]=(0,o.useState)(!1);(0,o.useRef)(null);let C=(0,o.useRef)(null),x=(0,o.useRef)(!1),g=(0,o.useRef)(null),[w,v]=(0,o.useState)(!1),f=(0,o.useRef)(null);(0,o.useRef)(null);let{user:D}=(0,m.aF)({}),{openModal:b,isModalOpen:j,isAutomaticPurchase:y,setIsAutomaticPurchase:E,totalOrdersProcessing:F,fetchAutomaticPurchaseSettings:N}=(0,c.K)(),{runCreateOrderByCart:L,fileResults:H,status:U,isFetching:R}=(0,s.I)(),{productsList:S,getCart:O,quantityCart:V,showAutomaticPurchase:z}=(0,i.o)(),{query:{posId:W}}=(0,p.useRouter)(),q=null==D?void 0:null===(r=D.pointsOfSale)||void 0===r?void 0:r.find(e=>(null==e?void 0:e.id)===+W),Y=(0,k.B)(q);(0,o.useEffect)(()=>{let e="automaticPurchaseBadgeFirstSeen";(z||0===V())&&(()=>{let r=localStorage.getItem(e),t=new Date().getTime();if(r){let e=(t-parseInt(r))/864e5;e<5?u(!0):u(!1)}else localStorage.setItem(e,t.toString()),u(!0)})()},[z,V]),(0,o.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,o.useEffect)(()=>{var e,r,t,a,o,n,i,s;if(U!==m.qb.Resolved||!H||(null==H?void 0:H.status)!==200)return;let l=(null==H?void 0:null===(t=H.data)||void 0===t?void 0:null===(r=t.data)||void 0===r?void 0:null===(e=r.order)||void 0===e?void 0:e.id)||(null==H?void 0:null===(o=H.data)||void 0===o?void 0:null===(a=o.order)||void 0===a?void 0:a.id)||(null==H?void 0:null===(n=H.order)||void 0===n?void 0:n.id)||(null==H?void 0:null===(s=H.data)||void 0===s?void 0:null===(i=s.data)||void 0===i?void 0:i.id);if(C.current===H||l&&C.current===l)return;if(j){C.current=H,x.current=!1,v(!1),g.current=null;return}let c=x.current||w;C.current=H,c?(x.current=!1,v(!1),g.current=null,b(),N(),setTimeout(()=>{W&&O&&O(+W)},200)):(x.current=!1,v(!1),g.current=null)},[U,H,b,j,W,O,N]);let G=!0===z;return(0,a.jsx)("div",{className:"".concat(Z().container," ").concat(n&&Z()["has-scroll"]),children:G?(0,a.jsx)(a.Fragment,{children:y?(0,a.jsx)(()=>{let[e,r]=(0,o.useState)(!1);return(0,a.jsxs)("button",{className:Z().automaticPurchaseButton,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:()=>{if(!R&&(null==S?void 0:S.length)>0){var e;I.B({action:"button__auto-purchase-buy",category:"efficient-purchase",label:"button__auto-purchase-buy",value:0,client_id:null==D?void 0:null===(e=D.client)||void 0===e?void 0:e.id,user_role:(0,T.xQ)(null==D?void 0:D.role_id)}),x.current=!0,v(!0),g.current=S[0].cart_id,L(S[0].cart_id,!0)}},disabled:Y||!V(),children:[(0,a.jsx)("div",{className:Z().automaticPurchaseButtonBackground}),(0,a.jsx)("div",{className:"".concat(Z().automaticPurchaseButtonBorder," ").concat(e?Z().automaticPurchaseButtonBorderAnimated:""),"aria-hidden":"true"}),(0,a.jsxs)("span",{className:Z().automaticPurchaseContent,children:[(0,a.jsx)("div",{className:"".concat(Z().automaticPurchaseIconWrapper," ").concat(e?Z().automaticPurchaseIconGlow:""),children:(0,a.jsx)(P(),{className:Z().automaticPurchaseIcon,alt:"lightning",src:"/assets/images/electric.svg",width:24,height:24})}),(0,a.jsx)("span",{className:Z().automaticPurchaseText,children:(0,B.t)("home.automatic-purchase.button-purchase")}),R&&(0,a.jsx)(A.Z,{style:{marginLeft:5}})]})]})},{}):(0,a.jsx)("button",{className:"".concat(Z().button),onClick:()=>
1{if(!R&&!l){var e;I.B({action:"button__start-comparison-1",category:"efficient-purchase",label:"button__start-comparison-1",value:0,client_id:null==D?void 0:null===(e=D.client)||void 0===e?void 0:e.id,user_role:(0,T.xQ)(null==D?void 0:D.role_id)}),t()}},disabled:Y||!V(),children:(0,a.jsxs)("span",{className:"".concat(Z().text),children:[(0,a.jsx)("span",{children:M.$f?(0,B.t)("shoppingCart.shoppingCart_Sixteen"):"Iniciar comparativa"}),R||l?(0,a.jsx)(A.Z,{style:{marginLeft:5}}):(0,a.jsx)(P(),{className:"".concat(Z().arrow),alt:"arrow",src:"/assets/images/arrow_forward.svg",width:24,height:24})]})})}):(0,a.jsx)("button",{className:"".concat(Z().button),onClick:()=>{if(!R){var e;I.B({action:"button__start-comparison-1",category:"efficient-purchase",label:"button__start-comparison-1",value:0,client_id:null==D?void 0:null===(e=D.client)||void 0===e?void 0:e.id,user_role:(0,T.xQ)(null==D?void 0:D.role_id)}),t()}},disabled:Y,children:(0,a.jsxs)("span",{className:"".concat(Z().text),children:[(0,a.jsx)("span",{children:M.$f?(0,B.t)("shoppingCart.shoppingCart_Sixteen"):"Iniciar comparativa"}),R?(0,a.jsx)(A.Z,{style:{marginLeft:5}}):(0,a.jsx)(P(),{className:"".concat(Z().arrow),alt:"arrow",src:"/assets/images/arrow_forward.svg",width:24,height:24})]})})})},U=t(27484),R=t.n(U),S=t(57976),O=t(57447),V=t(6468),z=t.n(V),W=t(340);let formatDraftDate=()=>{let e=R()();return"".concat(e.format("DD/MM/YYYY")," \xb7 ").concat(e.format("HH.mm"),"hs")},formatDraftDateFromApi=e=>{if(!e)return"";let r=R()(e);return r.isValid()?"".concat(r.format("DD/MM/YYYY")," \xb7 ").concat(r.format("HH.mm"),"hs"):e};var DrawerBody_DrawerBody=e=>{var r;let{products:t,quantityCart:n,handleUpdateProduct:i,pointOfSale:s,fetching:l,animationInProduct:c}=e,{user:d}=(0,m.aF)({}),u=null==d?void 0:d.EX8691,[p,_]=(0,o.useState)(!1),[h,C]=(0,o.useState)(null),x=(0,o.useRef)(null),handleDownloadDraftCsv=async()=>{if(!u||!(null==s?void 0:s.id)){_(!1);return}try{var e,r;let t=await (0,O.hu)(s.id),a=new Blob([null==t?void 0:t.data],{type:(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.type)||"text/csv"}),o=null==t?void 0:null===(r=t.headers)||void 0===r?void 0:r["content-disposition"],n=o?o.split("filename=")[1]:"comparacion-borrador.csv",i=document.createElement("a");i.href=window.URL.createObjectURL(a),i.download=n,i.click(),i.remove()}catch(e){}finally{_(!1)}},handleDeleteDraft=async()=>{if(!u||!(null==s?void 0:s.id)){_(!1);return}try{await (0,O.YC)(s.id),C(null)}catch(e){}finally{_(!1)}};return(0,o.useEffect)(()=>{if(!u||!p)return;let handleClickOutside=e=>{x.current&&!x.current.contains(e.target)&&_(!1)};return document.addEventListener("mousedown",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside)}},[p]),(0,o.useEffect)(()=>{let fetchComparisonDraft=async()=>{if(null==s?void 0:s.id)try{let e=await (0,O.xd)(s.id);e?C(e):C(null)}catch(e){C(null)}};u?fetchComparisonDraft():C(null)},[null==s?void 0:s.id,u]),(0,a.jsx)("div",{id:"drawer-body",className:"".concat(z()["drawer-body"]," ").concat(z()["scrollbar-new-style"]),children:l?(0,a.jsx)(W.Z,{}):n?(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("div",{className:z()["draft-container"],children:(0,a.jsxs)("div",{className:z()["draft-content"],children:[(0,a.jsx)("div",{className:z()["draft-icon"],children:(0,a.jsx)(P(),{src:"/assets/images/inventory.svg",alt:"borrador de comparativa",width:24,height:24,draggable:!1})}),(0,a.jsxs)("div",{className:z()["draft-text"],children:[(0,a.jsx)("p",{className:z()["draft-title"],children:"Borrador de comparativa"}),(0,a.jsxs)("p",{className:z()["draft-subtitle"],children:[(0,a.jsxs)("span",{className:z()["draft-products"],children:[(0,a.jsx)("span",{className:z()["draft-products-quantity"],children:null!==(r=null==h?void 0:h.items_count)&&void 0!==r?r:n})," ",(0,a.jsx)("span",{className:z()["draft-products-label"],children:"productos"})]}),(0,a.jsx)("span",{className:z()["draft-separator"]}),(0,a.jsx)("span",{className:z()["draft-date"],children:h?formatDraftDateFromApi(h.created_at):formatDraftDate()})]})]}),(0,a.jsxs)("div",{className:z()["draft-menu-wrapper"],ref:x,children:[(0,a.jsx)("button",{type:"button",className:z()["draft-menu-button"],onClick:()=>{u&&_(!p)},children:(0,a.jsx)(S.Z,{style:{width:20,height:20,color:"#0171e6"}})}),p&&(0,a.jsxs)("div",{className:z()["draft-menu"],children:[(0,a.jsxs)("button",{type:"button",className:z()["draft-menu-item"],onClick:handleDownloadDraftCsv,children:[(0,a.jsx)("span",{className:z()["draft-menu-icon-download"],children:(0,a.jsx)(P(),{src:"/assets/images/download_file.svg",alt:"descargar borrador",width:20,height:20})}),(0,a.jsx)("span",{className:z()["draft-menu-label-primary"],children:"Descargar .csv"})]}),(0,a.jsxs)("button",{type:"button",className:"".concat(z()["draft-menu-item"]," ").concat(z()["draft-menu-item-danger"]),onClick:handleDeleteDraft,children:[(0,a.jsx)("span",{className:z()["draft-menu-icon-delete"],children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6C4.71667 6 4.47917 5.90417 4.2875 5.7125C4.09583 5.52083 4 5.28333 4 5C4 4.71667 4.09583 4.47917 4.2875 4.2875C4.47917 4.09583 4.71667 4 5 4H9C9 3.71667 9.09583 3.47917 9.2875 3.2875C9.47917 3.09583 9.71667 3 10 3H14C14.2833 3 14.5208 3.09583 14.7125 3.2875C14.9042 3.47917 15 3.71667 15 4H19C19.2833 4 19.5208 4.09583 19.7125 4.2875C19.9042 4.47917 20 4.71667 20 5C20 5.28333 19.9042 5.52083 19.7125 5.7125C19.5208 5.90417 19.2833 6 19 6V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",fill:"#E22E2E"})})}),(0,a.jsx)("span",{className:z()["draft-menu-label-danger"],children:"Eliminar"})]})]})]})]})}),(0,a.jsx)(DrawerRow_DrawerRow,{products:t,handleUpdateProduct:i,pointOfSale:s,animationInProduct:c})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:z()["empty-cart"],children:[(0,a.jsx)("div",{children:(0,a.jsx)(P(),{src:"/assets/images/rocket-extendeal.svg",alt:"cohete",width:157,height:160})}),(0,a.jsxs)("div",{className:z()["empty-cart-text"],children:[(0,a.jsx)("div",{children:(0,a.jsx)("p",{children:(0,B.t)("shoppingCart.shoppingCart_TwentyEight")})}),(0,a.jsx)("div",{children:(0,a.jsx)("p",{children:(0,B.t)("shoppingCart.shoppingCart_TwentyThree")})})]})]})})})},q=t(73406),Y=t(48187),G=t.n(Y),X=t(68243),Q=t(91864),J=t.n(Q),K=t(49720),DrawerDescription_DrawerDescription=e=>{let{product:r}=e,{user:t}=(0,m.aF)({}),{isShowEllipsis:o,handleMouseEnter:n,handleMouseLeave:i}=(0,m.M6)(null==r?void 0:r.description),s=(0,K.M)(r.description),l=null===r.description&&!!(null==r?void 0:r.is_unknown),c=l?null==r?void 0:r.barcode:s;return(0,a.jsxs)("div",{className:J()["wrapper-description"],children:[l&&(0,a.jsx)(P(),{src:"/assets/images/frame_inspect.svg",width:16,height:16,alt:"frame_inspect",draggable:!1,
1className:J().icon}),o?(0,a.jsx)(X.D,{trigger:"hover",placement:"bottomEnd",text:r.description,children:(0,a.jsx)("p",{className:J()["product-name"],onMouseEnter:n,onMouseLeave:i,id:"".concat(r.description),children:c})}):(0,a.jsx)("p",{className:J()["product-name"],onMouseEnter:n,onMouseLeave:i,id:"".concat(r.description),children:c})]})},DrawerRow_DrawerRow=e=>{let{products:r,handleUpdateProduct:t,pointOfSale:o,animationInProduct:n}=e,{removeProductInState:s,animationQueue:l}=(0,i.o)(),{user:c}=(0,m.aF)({}),d=(0,p.useRouter)(),u="/[clientId]/pending-replenishments/[posId]"===d.pathname,renderFromComparisonTag=e=>{let r=(null==e?void 0:e.is_from_comparison)===!0||(null==e?void 0:e.is_included)===6;return r?(0,a.jsx)("span",{className:G()["from-comparison-tag"],children:(0,B.t)("shoppingCart.labelSavedFromComparison")}):null};return(0,a.jsx)(a.Fragment,{children:r.sort((e,r)=>r.id-e.id).map((e,r)=>{var i;let c=null===e.description&&!!(null==e?void 0:e.is_unknown),d=l.indexOf(null==e?void 0:e.barcode),p=-1!==d,_=p?u?G()["row-entry-replenishment"]:G()["row-entry"]:"";return null==n||n.barcode.includes(null==e?void 0:e.barcode),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"".concat(G().container," ").concat(_),style:p?{animationDelay:"".concat(350*d,"ms")}:{},children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:16},children:[(0,a.jsx)(q.Z.Slide,{in:!0,placement:"left",className:G().icon,children:(0,a.jsx)(y.Z,{className:"icon__remove-cart",value:"",disabled:!1,onClick:()=>s(e),style:{color:"rgba(226, 46, 46, 1)",minWidth:24,padding:0,background:"none"},children:(0,a.jsx)("span",{className:"icon__remove-cart",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6C4.71667 6 4.47917 5.90417 4.2875 5.7125C4.09583 5.52083 4 5.28333 4 5C4 4.71667 4.09583 4.47917 4.2875 4.2875C4.47917 4.09583 4.71667 4 5 4H9C9 3.71667 9.09583 3.47917 9.2875 3.2875C9.47917 3.09583 9.71667 3 10 3H14C14.2833 3 14.5208 3.09583 14.7125 3.2875C14.9042 3.47917 15 3.71667 15 4H19C19.2833 4 19.5208 4.09583 19.7125 4.2875C19.9042 4.47917 20 4.71667 20 5C20 5.28333 19.9042 5.52083 19.7125 5.7125C19.5208 5.90417 19.2833 6 19 6V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",fill:"#E22E2E"})})})})}),(0,a.jsxs)("div",{className:G().description,children:[(0,a.jsx)(DrawerDescription_DrawerDescription,{product:e}),(0,a.jsx)(X.D,{text:"Vas a ver el producto en la comparativa",trigger:"hover",placement:"bottom",disabled:!c,children:(0,a.jsx)("div",{className:G()["wrapper-description"],children:(0,a.jsx)("p",{className:G().barcode,children:c?"Vas a ver el producto en la comparativa":e.barcode})})}),renderFromComparisonTag(e)]})]})}),(0,a.jsx)("div",{className:G().button,children:(0,a.jsx)(DrawerCounter_DrawerCounter,{idx:r,product:e,quantity:e.quantity,handleUpdateProduct:t,pointOfSale:o})})]}),(0,a.jsx)(E.Z,{style:{margin:0}})]},null!==(i=e.barcode)&&void 0!==i?i:r)})})},$=t(18587);let handleOperation=(e,r,t)=>t(e,"number"!=typeof r?1:r),handleChangeMomentary=(e,r)=>r(e);var ee=t(73361),er=t.n(ee),DrawerCounter_DrawerCounter=e=>{let{idx:r,product:t,quantity:n,handleUpdateProduct:i,pointOfSale:s}=e,[l,c]=(0,o.useState)(n),[d,u]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(d||n!==l)&&c(n),u(!1)},[n,t.id]),(0,a.jsx)($.n,{idx:r,value:l,handleWriting:e=>handleChangeMomentary(e,c),handleInput:e=>{if(n!==+e)return u(!0),handleOperation(t,+e,i)},handleMinus:e=>(u(!0),handleOperation(t,e,i)),handlePlus:e=>(u(!0),handleOperation(t,e,i)),hasError:!1,isFetching:d,styles:er(),min:0,tabOrigin:"cart"})}},86273:function(e,r,t){"use strict";t.d(r,{IX:function(){return AutomaticPurchaseActive_AutomaticPurchaseActive},Uj:function(){return LoaderDragDropFile_LoaderDragDropFile},Q8:function(){return MessagesDragDropUploader_MessagesDragDropUploader},zQ:function(){return DragDropUploader}});var a,o,n,i,s=t(85893),l=t(36609),c=t(11163),d=t(50594),u=t(67421),p=t(31339);let _=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 
113.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"#1A66FC"})});var h=t(56255),m=t(62415),C=t.n(m),CartHaveProductsAlert_CartHaveProductsAlert=function(){let{t:e}=(0,u.$G)(),{userLocaleCountryCode:r}=(0,h.aF)({}),{isAutomaticPurchase:t}=(0,p.K)();return(0,s.jsxs)("div",{className:C().container,style:{top:20},children:[_,(0,s.jsx)("span",{className:C().text,style:{color:"#40435B",fontWeight:400},children:e(t?"home.automatic-purchase.drozponeMessageCart":"efficientPurchasing.fileUpload.textHasCart")})]})},x=t(38386),g=t(51745),w=t(90928),v=t(95322),f=t(65957),D=t.n(f),b=t(45856),FreeTrialFinished_FreeTrialFinished=()=>{var e;let{user:r,userLocaleCountryCode:t}=(0,h.aF)({}),{query:{posId:a}}=(0,c.useRouter)(),o=null==r?void 0:null===(e=r.pointsOfSale)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.id)===+a),n=(0,v.i1)(o),i=n?(0,l.t)("home.timerTrial.alert.title.finish"):o.access_status_id===b.e.DisabledNonPayment?(0,l.t)("home.alert.disabledPos.title.payment"):(0,l.t)("home.alert.disabledPos.title.other"),d=n?(0,l.t)("home.timerTrial.alert.subTitle.finish"):(0,l.t)("home.alert.disabledPos.subtitle"),u="AR"===t?g.WN:"MX"===t?g.Yp:g.ON,p=[b.e.DisabledNonPayment,b.e.DisabledOther].includes(null==o?void 0:o.access_status_id)?"Hola, estoy usando Extendeal y quiero hacer una consulta.":"INICIANDO CHAT CON EXTENDEAL";return(0,s.jsxs)("div",{className:D().freetrial_finished,children:[(0,s.jsx)("img",{src:"/assets/images/cancel.svg",draggable:!1,alt:"cancel icon"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{style:{width:n?"323px":"346px"},children:i}),(0,s.jsx)("p",{style:{width:n?"323px":"320px"},children:d})]}),(0,s.jsx)("a",{className:D().assistantBtn,href:"https://wa.me/".concat(u,"?text=").concat(encodeURIComponent(p)),target:"_blank",rel:"noopener noreferrer",onClick:e=>null==e?void 0:e.stopPropagation(),style:{textDecoration:"none"},children:(0,s.jsxs)(w.j,{children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M8.03353 0C3.64259 0 0.0684557 3.55648 0.0665929 7.9277C0.0661272 9.32499 0.433087 10.6889 1.13022 11.8911L0 16L4.2233 14.8975C5.38704 15.5291 6.69701 15.8619 8.03027 15.8624H8.03353C12.424 15.8624 15.9981 12.3054 16 7.93419C16.0009 5.81578 15.1729 3.82389 13.6688 2.32557C12.1646 0.826787 10.1645 0.000926892 8.03353 0ZM8.03353 14.5235H8.03074C6.84277 14.5235 5.67716 14.2051 4.66057 13.6049L4.41888 13.4622L1.91303 14.1166L2.58176 11.6849L2.42436 11.4355C1.76169 10.3863 1.41149 9.17344 1.41196 7.92863C1.41335 4.29522 4.38396 1.33936 8.03632 1.33936C9.805 1.33982 11.4675 2.02618 12.7174 3.27193C13.9678 4.51721 14.6556 6.1731 14.6551 7.93373C14.6537 11.5671 11.6831 14.5235 8.03353 14.5235ZM11.6654 9.58823C11.4666 9.48905 10.4877 9.00985 10.3051 8.94358C10.1226 8.8773 9.98987 8.8444 9.85715 9.04275C9.72443 9.24111 9.34304 9.68741 9.22708 9.81949C9.11112 9.95203 8.9947 9.96825 8.79586 9.86908C8.59701 9.7699 7.95529 9.56042 7.1953 8.88564C6.60341 8.36056 6.20385 7.71174 6.0879 7.51338C5.97194 7.31503 6.07533 7.20797 6.17545 7.10926C6.26486 7.02074 6.37429 6.878 6.47395 6.76214C6.57361 6.64628 6.60667 6.56378 6.6728 6.43124C6.73892 6.29915 6.70586 6.18329 6.65603 6.08412C6.6062 5.98494 6.20805 5.00985 6.04226 4.61314C5.88067 4.22709 5.71675 4.27899 5.59427 4.27297C5.47832 4.26694 5.3456 4.26602 5.21288 4.26602C5.08016 4.26602 4.86454 4.31561 4.682 4.51396C4.49945 4.71232 3.98533 5.19152 3.98533 6.16661C3.98533 7.1417 4.69876 8.08388 4.79795 8.21597C4.89761 8.34805 6.20152 10.3492 8.19838 11.207C8.67338 11.411 9.04407 11.5328 9.33326 11.6241C9.81012 11.7748 10.2441 11.7534 10.5869 11.7025C10.9692 11.6455 11.7646 11.2233 11.9304 10.7603C12.0962 10.2978 12.0962 9.90106 12.0463 9.8181C11.9965 9.73561 11.8638 9.68602 11.6649 9.58684L11.6654 9.58823Z",fill:"white"})}),(0,s.jsx)("p",{children:"Hablar con un asesor"})]})})]})},j=t(67294),y=t(81955),E=t(14182),F=t(98168),N=t(50532),B=t.n(N),L=t(45965),FooterButtons_FooterButtons=e=>{let{hasDuplicateBarcode:r,blockButton:t,isLoadingFileWithErrors:a,onHandlerClick:o}
1=e,[n,i]=(0,j.useState)(""),{user:c}=(0,h.aF)({});return(0,s.jsx)("div",{className:B()["container-buttons"],children:(0,s.jsxs)(E.Z,{className:B()["buttons-toolbar"],children:[r&&!t&&(0,s.jsx)(w.j,{fullWidth:!0,appearance:"primary",size:"lg",onClick:e=>{if(!t){var r;F.B({action:"button__add-and-continue",category:"efficient-purchase",label:"button__add-and-continue",value:0,client_id:null==c?void 0:null===(r=c.client)||void 0===r?void 0:r.id,user_role:(0,L.xQ)(null==c?void 0:c.role_id)}),i("continue_with_duplicate"),o(e,!0)}},disabled:!!a,children:(0,s.jsx)("span",{children:a&&"continue_with_duplicate"===n?(0,s.jsx)(y.v,{size:"sm"}):(0,l.t)("home.dropzone.errors.review.button.continueWithAdd")})}),!t&&(0,s.jsx)(w.j,{fullWidth:!0,appearance:r?"alternative":"primary",size:"lg",onClick:e=>{var t;F.B({action:r?"button__continue-without-add":"button__move-forward-1",category:"efficient-purchase",label:r?"button__continue-without-add":"button__move-forward-1",value:0,client_id:null==c?void 0:null===(t=c.client)||void 0===t?void 0:t.id,user_role:(0,L.xQ)(null==c?void 0:c.role_id)}),i("continue_without_duplicate"),o(e,!1)},disabled:!!a,children:(0,s.jsx)("span",{className:"button__move-forward-1",children:a&&"continue_without_duplicate"===n?(0,s.jsx)(y.v,{size:"sm"}):r?(0,l.t)("home.dropzone.errors.review.button.continueWithoutAdd"):(0,l.t)("uploadFile.labelFinishOrder")})}),(0,s.jsxs)(w.j,{fullWidth:!0,className:"".concat(t?"":B()["button-transparent"]),appearance:t?"primary":"alternative",size:"lg",disabled:!!a,onClick:()=>{var e;F.B({action:"button__upload-new-file-1",category:"efficient-purchase",label:"button__upload-new-file-1",value:0,client_id:null==c?void 0:null===(e=c.client)||void 0===e?void 0:e.id,user_role:(0,L.xQ)(null==c?void 0:c.role_id)})},children:[!t&&(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M11 14.825V18C11 18.2833 11.0958 18.5208 11.2875 18.7125C11.4792 18.9042 11.7167 19 12 19C12.2833 19 12.5208 18.9042 12.7125 18.7125C12.9042 18.5208 13 18.2833 13 18V14.825L13.9 15.725C14 15.825 14.1125 15.9 14.2375 15.95C14.3625 16 14.4875 16.0208 14.6125 16.0125C14.7375 16.0042 14.8583 15.975 14.975 15.925C15.0917 15.875 15.2 15.8 15.3 15.7C15.4833 15.5 15.5792 15.2667 15.5875 15C15.5958 14.7333 15.5 14.5 15.3 14.3L12.7 11.7C12.6 11.6 12.4917 11.5292 12.375 11.4875C12.2583 11.4458 12.1333 11.425 12 11.425C11.8667 11.425 11.7417 11.4458 11.625 11.4875C11.5083 11.5292 11.4 11.6 11.3 11.7L8.7 14.3C8.5 14.5 8.40417 14.7333 8.4125 15C8.42083 15.2667 8.525 15.5 8.725 15.7C8.925 15.8833 9.15833 15.9792 9.425 15.9875C9.69167 15.9958 9.925 15.9 10.125 15.7L11 14.825ZM6 22C5.45 22 4.97917 21.8042 4.5875 21.4125C4.19583 21.0208 4 20.55 4 20V4C4 3.45 4.19583 2.97917 4.5875 2.5875C4.97917 2.19583 5.45 2 6 2H13.175C13.4417 2 13.6958 2.05 13.9375 2.15C14.1792 2.25 14.3917 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60833 19.75 7.82083 19.85 8.0625C19.95 8.30417 20 8.55833 20 8.825V20C20 20.55 19.8042 21.0208 19.4125 21.4125C19.0208 21.8042 18.55 22 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8Z",fill:a?"rgba(172, 174, 196, 1)":"#0171E6"})}),(0,s.jsx)("span",{children:(0,l.t)("efficientPurchasing.fileUpload.efficientPurchasing_fileUploadSixteen")})]})]})})},Icon_Icon=e=>{let{blockButton:r}=e;return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",children:(0,s.jsx)("path",{d:"M20.4997 28.333C20.9719 28.333 21.3677 28.1733 21.6872 27.8538C22.0066 27.5344 22.1663 27.1386 22.1663 26.6663C22.1663 26.1941 22.0066 25.7983 21.6872 25.4788C21.3677 25.1594 20.9719 24.9997 20.4997 24.9997C20.0275 24.9997 19.6316 25.1594 19.3122 25.4788C18.9927 25.7983 18.833 26.1941 18.833 26.6663C18.833 27.1386 18.9927 27.5344 19.3122 27.8538C19.6316 28.1733 20.0275 28.333 20.4997 28.333ZM20.4997 21.6663C20.9719 21.6663 21.3677 21.5066 21.6872 21.1872C22.0066 20.8677 22.1663 20.4719 22.1663 19.9997V13.333C22.1663 12.8608 22.0066 12.465 21.6872 12.1455C21.3677 11.8261 20.9719 11.6663 20.4997 11.6663C20.0275 11.6663 19.6316 11.8261 19.3122 12.1455C18.9927 12.465 18.833 12.8608 18.833 13.333V19.9997C18.833 20.4719 18.9927 20.8677 19.3122 21.1872C19.6316 21.5066 20.0275 21.6663 20.4997 21.6663ZM20.4997 36.6663C18.1941 36.6663 16.0275 36.2288 13.9997 35.3538C11.9719 34.4788 10.208 33.2913 8.70801 31.7913C7.20801 30.2913 6.02051 28.5275 5.14551 26.4997C4.27051 24.4719 3.83301 22.3
1052 3.83301 19.9997C3.83301 17.6941 4.27051 15.5275 5.14551 13.4997C6.02051 11.4719 7.20801 9.70801 8.70801 8.20801C10.208 6.70801 11.9719 5.52051 13.9997 4.64551C16.0275 3.77051 18.1941 3.33301 20.4997 3.33301C22.8052 3.33301 24.9719 3.77051 26.9997 4.64551C29.0275 5.52051 30.7913 6.70801 32.2913 8.20801C33.7913 9.70801 34.9788 11.4719 35.8538 13.4997C36.7288 15.5275 37.1663 17.6941 37.1663 19.9997C37.1663 22.3052 36.7288 24.4719 35.8538 26.4997C34.9788 28.5275 33.7913 30.2913 32.2913 31.7913C30.7913 33.2913 29.0275 34.4788 26.9997 35.3538C24.9719 36.2288 22.8052 36.6663 20.4997 36.6663Z",fill:"#E22E2E"})}):(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",children:(0,s.jsx)("path",{d:"M20.4997 28.333C20.9719 28.333 21.3677 28.1733 21.6872 27.8538C22.0066 27.5344 22.1663 27.1386 22.1663 26.6663C22.1663 26.1941 22.0066 25.7983 21.6872 25.4788C21.3677 25.1594 20.9719 24.9997 20.4997 24.9997C20.0275 24.9997 19.6316 25.1594 19.3122 25.4788C18.9927 25.7983 18.833 26.1941 18.833 26.6663C18.833 27.1386 18.9927 27.5344 19.3122 27.8538C19.6316 28.1733 20.0275 28.333 20.4997 28.333ZM20.4997 21.6663C20.9719 21.6663 21.3677 21.5066 21.6872 21.1872C22.0066 20.8677 22.1663 20.4719 22.1663 19.9997V13.333C22.1663 12.8608 22.0066 12.465 21.6872 12.1455C21.3677 11.8261 20.9719 11.6663 20.4997 11.6663C20.0275 11.6663 19.6316 11.8261 19.3122 12.1455C18.9927 12.465 18.833 12.8608 18.833 13.333V19.9997C18.833 20.4719 18.9927 20.8677 19.3122 21.1872C19.6316 21.5066 20.0275 21.6663 20.4997 21.6663ZM20.4997 36.6663C18.1941 36.6663 16.0275 36.2288 13.9997 35.3538C11.9719 34.4788 10.208 33.2913 8.70801 31.7913C7.20801 30.2913 6.02051 28.5275 5.14551 26.4997C4.27051 24.4719 3.83301 22.3052 3.83301 19.9997C3.83301 17.6941 4.27051 15.5275 5.14551 13.4997C6.02051 11.4719 7.20801 9.70801 8.70801 8.20801C10.208 6.70801 11.9719 5.52051 13.9997 4.64551C16.0275 3.77051 18.1941 3.33301 20.4997 3.33301C22.8052 3.33301 24.9719 3.77051 26.9997 4.64551C29.0275 5.52051 30.7913 6.70801 32.2913 8.20801C33.7913 9.70801 34.9788 11.4719 35.8538 13.4997C36.7288 15.5275 37.1663 17.6941 37.1663 19.9997C37.1663 22.3052 36.7288 24.4719 35.8538 26.4997C34.9788 28.5275 33.7913 30.2913 32.2913 31.7913C30.7913 33.2913 29.0275 34.4788 26.9997 35.3538C24.9719 36.2288 22.8052 36.6663 20.4997 36.6663Z",fill:"#FFC700"})})})},P=t(53130);let traslateToSpanishPossibleErrors_traslateToSpanishPossibleErrors=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?void 0:e.map(e=>{let t;switch(e){case"DUPLICATE_BARCODE":t=(0,l.t)("home.dropzone.errors.review.duplicatedProducts.title");break;case"QUANTITY_TOO_HIGH":t=(0,l.t)("home.dropzone.errors.review.moreDigits",{value:3});break;case"EXCEEDED_PRODUCTS":t=(0,l.t)("home.dropzone.errors.review.exceededLimit",{value:r,limit:1500});break;case"MISSING_PRODUCTS":t="Productos en falta";break;case"MISSING_PROPERTY_CODE":case"INVALID_CODE_LENGTH":case"MISSING_PROPERTY_EXTERNAL_CODE":case"INVALID_EXTERNAL_CODE_LENGTH":case"INVALID_LINE_FORMAT":case"ZERO_BARCODE":case"ZERO_QUANTITY":t=(0,l.t)("efficientPurchasing.fileUpload.errorUnknowFormat")}return t})};var M=t(19996),A=t.n(M),ListErrors_ListErrors=e=>{let{errors:r}=e,{errors:t,exceeded_lines:a}=r,o=t.filter(e=>"DUPLICATE_BARCODE"!==e),n=(e=>{let r=["ZERO_BARCODE","INVALID_LINE_FORMAT","ZERO_QUANTITY"],t=e.find(e=>r.includes(e));return t?[t,...e.filter(e=>!r.includes(e))]:e})(o),i=traslateToSpanishPossibleErrors_traslateToSpanishPossibleErrors(n,a),c=t.filter(e=>"DUPLICATE_BARCODE"===e),d=traslateToSpanishPossibleErrors_traslateToSpanishPossibleErrors(c);return(0,s.jsxs)("div",{className:A()["container-errors"],children:[(null==i?void 0:i.length)>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:A()["list-errors"],children:(0,s.jsx)("ul",{children:null==i?void 0:i.map(e=>(0,s.jsxs)("li",{children:[e,(0,s.jsx)("span",{children:(0,l.t)("home.dropzone.errors.review.disclaimer")})]},e))})})}),(null==i?void 0:i.length)>0&&(null==d?void 0:d.length)>0&&(0,s.jsx)(P.Z,{className:A().divider}),(null==d?void 0:d.length)>0&&(0,s.jsx)("div",{className:A()["box-duplicate"],children:(0,s.jsx)("ul",{children:d.map(e=>(0,s.jsxs)("li",{children:[e,(0,s.jsx)("span",{children:(0,l.t)("home.dropzone.errors.review.duplicatedProducts.subtitle")})]}))})})]})},k=t(87066);let handlerDownloadErrors_handlerDownloadErrors=async(e,r,t)=>{let a=e.split("/").slice(-1);if(r){var o;F.B({action:"link__download-errors-1",category:"efficient-purchase",label:"link__download-errors-1",value:0,client_id:null==t?void 0:null===(o=t.client)||void 0===o?void 0:o.id,user_role:(0,L.xQ)(null==t?void 0:t.role_id)})}await k.Z.get(e,{responseType:"blob"}).then(e=>{let r=new Blob([e.data],{type:"application/text"}),t=document.createElement("a");t.href=window.URL.createObjectURL(r),t.download=a.toString(),t.click(),t.remove()})};var I=t(50977),H=t.n(I),PresentationText_PresentationText=e=>{let{errors:r}=e,{errors:t=[],exceeded_lines:a=0,invalid_lines:o=0,requested_products:n=0}=r||{},{user:i}=(0,h.aF)({}),c=t.includes("EXCEEDED_PRODUCTS"),d=o+a;return(0,s.jsxs)("div",{className:H()["box-title"],children:[(0,s.jsx)("p",{className:H().title,children:(0,l.t)("home.dropzone.errors.review.title")}),(0,s.jsx)("p",{className:H().subtitle,children:(()=>{let e=t.every(e=>"DUPLICATE_BARCODE"===e),r=t.some(e=>"DUPLICATE_BARCODE"===e);return e?(0,s.jsxs)("p",{className:H()["text-title"],children:[(0,l.t)("home.dropzone.errors.review.subtitle.one"),(0,s.jsxs)("span",{className:H()["text-number"],children:[" ",(0,l.t)("home.dropzone.errors.review.subtitle.second",{firstNumber:d,secondNumber:n})," "]}),(0,l.t)("home.dropzone.errors.review.subtitle.four")]}):r?(0,s.jsxs)("p",{className:H()["text-title"],children:[(0,l.t)("home.dropzone.errors.review.subtitle.one"),(0,s.jsxs)("span",{className:H()["text-number"],children:[" ",(0,l.t)("home.dropzone.errors.review.subtitle.second",{firstNumber:d,secondNumber:n})," "]}),(0,l.t)("home.dropzone.errors.review.subtitle.three")]}):r?void 0:(0,s.jsxs)("p",{className:H()["text-title"],children:[(0,l.t)("home.dropzone.errors.review.subtitle.one"),(0,s.jsxs)("span",{className:H()["text-number"],children:[" ",(0,l.t)("home.dropzone.errors.review.subtitle.second",{firstNumber:d,secondNumber:n})," "]}),(0,l.t)("home.dropzone.errors.review.subtitle.five")]})})()}),(0,s.jsxs)("div",{className:H()["wrapper-download-actions"],children:[r&&(null==r?void 0:r.errors_file_url)&&(0,s.jsxs)("div",{className:"".concat(H()["download-container"]),onClick:e=>{e.stopPropagation(),handlerDownloadErrors_handlerDownloadErrors(null==r?void 0:r.errors_file_url,!0,i)},children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M8.00033 10.3837C7.91144 10.3837 7.8281 10.3698 7.75033 10.342C7.67255 10.3142 7.60033 10.267 7.53366 10.2003L5.13366 7.80033C5.00033 7.66699 4.93644 7.51144 4.94199 7.33366C4.94755 7.15588 5.01144 7.00033 5.13366 6.86699C5.26699 6.73366 5.42533 6.66421 5.60866 6.65866C5.79199 6.6531 5.95033 6.71699 6.08366 6.85033L7.33366 8.10033V3.33366C7.33366 3.14477 7.39755 2.98644 7.52533 2.85866C7.6531 2.73088 7.81144 2.66699 8.00033 2.66699C8.18921 2.66699 8.34755 2.73088 8.47533 2.85866C8.6031 2.98644 8.66699 3.14477 8.66699 3.33366V8.10033L9.91699 6.85033C10.0503 6.71699 10.2087 6.6531 10.392 6.65866C10.5753 6.66421 10.7337 6.73366 10.867 6.86699C10.9892 7.00033 11.0531 7.15588 11.0587 7.33366C11.0642 7.51144 11.0003 7.66699 10.867 7.80033L8.46699 10.2003C8.40033 10.267 8.3281 10.3142 8.25033 10.342C8.17255 10.3698 8.08921 10.3837 8.00033 10.3837ZM4.00033 13.3337C3.63366 13.3337 3.31977 13.2031 3.05866 12.942C2.79755 12.6809 2.66699 12.367 2.66699 12.0003V10.667C2.66699 10.4781 2.73088 10.3198 2.85866 10.192C2.98644 10.0642 3.14477 10.0003 3.33366 10.0003C3.52255 10.0003 3.68088 10.0642 3.80866 10.192C3.93644 10.3198 4.00033 10.4781 4.00033 10.667V12.0003H12.0003V10.667C12.0003 10.4781 12.0642 10.3198 12.192 10.192C12.3198 10.0642 12.4781 10.0003 12.667 10.0003C12.8559 10.0003 13.0142 10.0642 13.142 10.192C13.2698 10.3198 13.3337 10.4781 13.3337 10.667V12.0003C13.3337 12.367 13.2031 12.6809 12.942 12.942C12.6809 13.2031 12.367 13.3337 12.0003 13.3337H4.00033Z",fill:"#0171E6"})}),(0,s.jsx)("p",{children:(0,l.t)("efficientPurchasing.fileUpload.efficientPurchasing_fileUploadFifteen")})]}),c&&(0,s.jsxs)("div",{className:"".concat(H()["download-container"]),onClick:e=>{e.stopPropagation(),handlerDownloadErrors_handlerDownloadErrors(null==r?void 0:r.exceeded_file_url,!1,i)},children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M8.00033 10.3837C7.91144 10.3837 7.8281 10.3698 7.75033 10.342C7.67255 10.3142 7.60033 10.267 7.53366 10.2003L5.13366 7.80033C5.00033 7.66699 4.93644 7.51144 4.94199 7.33366C4.94755 7.15588 5.01144 7.00033 5.13366 6.86699C5.26699 6.73366 5.42533 6.66421 5.60866 6.65866C5.79199 6.6531 5.95033 6.71699 6.08366 6.85033L7.33366 8.10033V3.33366C7.33366 3.14477 7.39755 2.98644 7.52533 2.85866C7.6531 2.73088 7.81144 2.66699 8.00033 2.66699C8.18921 2.66699 8.34755 2.73088 8.47533 2.85866C8.6031 2.98644 8.66699 3.14477 8.66699 3.33366V8.10033L9.91699 6.85033C10.0503 6.71699 10.2087 6.6531 10.392 6.65866C10.5753 6.66421 10.7337 6.73366 10.867 6.86699C10.9892 7.00033 11.0531 7.15588 11.0587 7.33366C11.0642 7.51144 11.0003 7.66699 10.867 7.80033L8.46699 10.2003C8.40033 10.267 8.3281 10.3142 8.25033 10.342C8.17255 10.3698 8.08921 10.3837 8.00033 10.3837ZM4.00033 13.3337C3.63366 13.3337 3.31977 13.2031 3.05866 12.942C2.79755 12.6809 2.66699 12.367 2.66699 12.0003V10.667C2.66699 10.4781 2.73088 10.3198 2.85866 10.192C2.98644 10.0642 3.14477 10.0003 3.33366 10.0003C3.52255 10.0003 3.68088 10.0642 3.80866 10.192C3.93644 10.3198 4.00033 10.4781 4.00033 10.667V12.0003H12.0003V10.667C12.0003 10.4781 12.0642 10.3198 12.192 10.192C12.3198 10.0642 12.4781 10.0003 12.667 10.0003C12.8559 10.0003 13.0142 10.0642 13.142 10.192C13.2698 10.3198 13.3337 10.4781 13.3337 10.667V12.0003C13.3337 12.367 13.2031 12.6809 12.942 12.942C12.6809 13.2031 12.367 13.3337 12.0003 13.3337H4.00033Z",fill:"#0171E6"})}),(0,s.jsx)("p",{children:(0,l.t)("home.dropzone.errors.review.download.exceededLimit")})]})]})]})},Z=t(79054),T=t.n(Z),FileWithErrors_FileWithErrors=e=>{let{errors:r,onHandlerClick:t,isLoadingFileWithErrors:a}=e,{errors:o=[],invalid_lines:n=0,requested_products:i=0}=r,l=o.includes("DUPLICATE_BARCODE"),c=(!g.Rd||!l)&&n===i;return(0,s.jsxs)("div",{className:T().wrapper,children:[(0,s.jsx)(Icon_Icon,{blockButton:c}),(0,s.jsxs)("div",{className:T()["container-list-errors"],children:[(0,s.jsx)(PresentationText_PresentationText,{errors:r}),(0,s.jsx)(ListErrors_ListErrors,{errors:r}),(0,s.jsx)(FooterButtons_FooterButtons,{blockButton:c,hasDuplicateBarcode:l,isLoadingFileWithErrors:a,onHandlerClick:t})]})]})},U=t(35014),R=t(93627),S=t(12906),O=t(15902),V=t(78524),z=t(24888),W=t(48671),q=t(21400),Y=t(94828),G=t(13057),hooks_useDragDropUploader=()=>{let{handleUpload:e,blockerFormat:r,errors:t,dataWithError:a,isFetching:o,formatFile:n,handlerUploadWithErrors:i,setErrors:s,isLoadingFileWithErrors:l,setBlockerFormat:c,setDataWithError:d,setUploadSource:u,initOrderFromModalAutoMode:_,setIsAutomaticOrder:m,resetStore:C}=(0,z.I)(),{isAutomaticPurchase:x,showDropzoneModal:g,setShowDropzoneModal:w}=(0,p.K)(),{quantityCart:f,visibility:D,isExpanded:b,handleResetVisibility:y}=(0,V.o)(),{isOpen:E}=(0,W.Q)(),{handleDragLeave:F,setVisibleDragDrop:N,isDragging:B,visibleDragDrop:L,setIsDragging:P}=(0,Y.Y)(),{setDisplayModalOnBoarding:M,displayModalOnBoarding:A}=(0,q.L)(),{pointOfSale:k}=(0,O.g)(),{statusHubspot:I}=(0,G.G)(),{userLocaleCountryCode:H,user:Z}=(0,h.aF)({}
1),[T,U]=(0,j.useState)([]),R=(0,v.dE)(k),S=(0,v.HR)(k),X=(0,j.useRef)(o);(0,j.useEffect)(()=>{X.current=o},[o]);let handleKeyDown=e=>{let r=(null==e?void 0:e.key)||(null==e?void 0:e.keyCode);(null==X?void 0:X.current)||"Escape"!==r&&27!==r||(w(e=>!1),m(e=>!1),R||S||N(!1),s(!1),c(!1),d([]))},resetDragDropState=()=>{(null==Z?void 0:Z.EX10155)&&(P(!1),U([]),s(!1),c(!1),d([]),w(!1),m(!1),u(null))};return(0,j.useEffect)(()=>{let handleResetDragDrop=()=>{resetDragDropState()};return window.addEventListener("resetDragDrop",handleResetDragDrop),()=>{window.removeEventListener("resetDragDrop",handleResetDragDrop)}},[c,d,s,m,P,w,u,null==Z?void 0:Z.EX10155]),(0,j.useEffect)(()=>{let handleDragLeaveWindow=e=>{(e.clientX<=0||e.clientY<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight)&&(y(),F(e))};return window.addEventListener("keydown",handleKeyDown),window.addEventListener("dragleave",handleDragLeaveWindow),()=>{window.removeEventListener("keydown",handleKeyDown),window.removeEventListener("dragleave",handleDragLeaveWindow)}},[R,S,Z]),{handleUpload:e,blockerFormat:r,errors:t,dataWithError:a,isFetching:o,formatFile:n,handlerUploadWithErrors:i,setErrors:s,isLoadingFileWithErrors:l,handleDragLeave:F,setVisibleDragDrop:N,visibleDragDrop:L,isDragging:B,setDisplayModalOnBoarding:M,displayModalOnBoarding:A,pointOfSale:k,userLocaleCountryCode:H,files:T,setFiles:U,isZetti:R,handleCloseIcon:()=>{R||S||N(!1),s(!1),c(!1),d([]),C()},setDataWithError:d,setBlockerFormat:c,resetErrorsWhenHaveFormatError:()=>{d([]),s(!1)},isOpen:E,quantityCart:f,visibility:D,isExpanded:b,isGestorERP:S,statusHubspot:I,setUploadSource:u,isAutomaticPurchase:x,initOrderFromModalAutoMode:_,showDropzoneModal:g,setShowDropzoneModal:w}};(a=n||(n={})).BLUE="#0171E6",a.YELLOW="#FFC700",a.RED="#E22E2E",a.DEFAULT="#0171E6";let getBorderColor=function(e,r,t,a){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o?"#E22E2E":e?"#0171E6":t?"#FFC700":r?"#E22E2E":a?"#E22E2E":"#0171E6"};(o=i||(i={})).BLUE="#EDF6FF",o.YELLOW="#FFF9E6",o.RED="#FFEBEB",o.DEFAULT="#fff";let getBackgroundColor=function(e,r,t,a,o){let n=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return n?"#FFEBEB":e?"#EDF6FF":t?"#FFF9E6":r||o?"#FFEBEB":a?"#EDF6FF":"#fff"};var X=t(5151),Q=t(68811),J=t(14874),K=t.n(J),DragDropUploader=e=>{var r;let{showPanel:t}=e,{user:a}=(0,h.aF)({}),{query:{posId:o}}=(0,c.useRouter)(),{visibleDragDrop:n,handleUpload:i,blockerFormat:u,errors:p,dataWithError:_,isFetching:m,formatFile:C,handlerUploadWithErrors:w,isLoadingFileWithErrors:v,isDragging:f,setDisplayModalOnBoarding:D,displayModalOnBoarding:b,files:j,setFiles:y,handleCloseIcon:E,isZetti:F,setBlockerFormat:N,resetErrorsWhenHaveFormatError:B,isOpen:L,quantityCart:P,visibility:M,isExpanded:A,isGestorERP:k,statusHubspot:I,setUploadSource:H,isAutomaticPurchase:Z,initOrderFromModalAutoMode:T,showDropzoneModal:O,setShowDropzoneModal:V}=hooks_useDragDropUploader(),z=Array.isArray(_)?{}:_,W=Array.isArray(null==z?void 0:z.errors)&&z.errors.includes("DUPLICATE_BARCODE"),q=!!g.Rd&&!!W||(null==z?void 0:z.hasOwnProperty("invalid_lines"))&&(null==z?void 0:z.hasOwnProperty("requested_products"))&&z.invalid_lines!==z.requested_products,Y=null==a?void 0:null===(r=a.pointsOfSale)||void 0===r?void 0:r.find(e=>(null==e?void 0:e.id)===+o),G=(0,Q.B)(Y);return(0,s.jsxs)("div",{className:"".concat(K().wrapper," drag-and-drop__file-comparative"),style:F||k?{top:24,padding:"0px 0px 24px ".concat(t?0:8,"px"),left:0}:{top:56,padding:"24px 49px"},children:[(0,s.jsx)("div",{className:"".concat(K()["container-panel-uploader-v2"]," drag-and-drop__file-comparative"),style:{transition:"opacity 0.18s ease, visibility 0.18s ease",opacity:1,visibility:"visible",width:M?A?"52vw":"64vw":"100%"},children:(0,s.jsxs)(U.Z,{style:{cursor:"pointer",borderRadius:8,border:"1px dashed var(--primary, #0171E6)",borderColor:getBorderColor(m||O,u,q,p,G)},children:[(0,s.jsx)("div",{className:K()["cancel-button"],children:!F&&(0,s.jsx)(R.Z,{size:"xs",className:K()["icon-button-close"],icon:(0,s.jsx)(d.Z,{}),onClick:E,disabled:m})}),(0,s.jsx)(S.Z,{name:"file",accept:"text/plain/*",multiple:!1,autoUpload:!G,fileListVisible:!1,action:"",draggable:!0,onUpload:e=>{G||(X.a3.test(e.blobFile.type)?(V(e=>!1),i(e.blobFile),y(e)):(B(),N(!0)))},disabled:m,className:"drag-and-drop__file-comparative",onDragEnter:()=>{H("drag")},onDrop:()=>{H("drag")},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||H(null)},children:(0,s.jsx)("div",{className:"drag-and-drop__file-comparative",style:{border:"none",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:getBackgroun
1dColor(m||O,u,q,f,p,G)},children:m?(0,s.jsx)(LoaderDragDropFile_LoaderDragDropFile,{filename:C,isAutomaticPurchase:Z}):u?(0,s.jsx)(MessagesDragDropUploader_MessagesDragDropUploader,{text:(0,l.t)("shoppingCart.shoppingCart_TwentyFive"),subtitle:(0,l.t)("uploadFile.labelErrorExtensionAllowed"),src:"/assets/images/cancel.svg",blockerFormat:u,flag:!1}):p?(0,s.jsx)(FileWithErrors_FileWithErrors,{isLoadingFileWithErrors:v,errors:_,onHandlerClick:(e,r)=>{e.stopPropagation(),w(j.blobFile,r)}}):f?Z&&O?(0,s.jsx)(AutomaticPurchaseActive_AutomaticPurchaseActive,{onStartComparative:()=>T(j.blobFile,!1),onContinueAutomatic:()=>T(j.blobFile,!0),quantityCart:P}):(0,s.jsxs)(s.Fragment,{children:[b&&D&&D(!1),G?(0,s.jsx)(FreeTrialFinished_FreeTrialFinished,{}):(0,s.jsx)(MessagesDragDropUploader_MessagesDragDropUploader,{text:Z?(0,l.t)("home.automatic-purchase.drozponeMessageDragging"):(0,l.t)("efficientPurchasing.fileUpload.efficientPurchasing_fileUploadThirtyTwo"),blockerFormat:u,flag:!1,isDragging:!0,isAutomaticPurchase:Z})]}):(0,s.jsxs)(s.Fragment,{children:[b&&D&&D(!1),P()?(0,s.jsx)(CartHaveProductsAlert_CartHaveProductsAlert,{}):null,G?(0,s.jsx)(FreeTrialFinished_FreeTrialFinished,{}):(0,s.jsx)(MessagesDragDropUploader_MessagesDragDropUploader,{text:Z?(0,l.t)("home.automatic-purchase.drozponeMessage"):(0,l.t)("shoppingCart.shoppingCart_TwentySix"),src:Z?"/assets/images/icons_automatic_purchase.svg":"/assets/images/cloud_orange.svg",blockerFormat:u,flag:!0,isInitMessage:!0,isAutomaticPurchase:Z})]})})})]})}),n&&M&&(0,s.jsx)("div",{className:K()["container-cart"],style:{zIndex:L?1100:0,width:M?A?"38vw":"26vw":0},children:(0,s.jsx)(x.A,{})})]})},BlueIcon_BlueIcon=()=>(0,s.jsxs)("svg",{width:"56",height:"56",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"fadeGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,s.jsx)("stop",{offset:"0%","stop-color":"white","stop-opacity":"0"}),(0,s.jsx)("stop",{offset:"30%","stop-color":"white","stop-opacity":"1"}),(0,s.jsx)("stop",{offset:"70%","stop-color":"white","stop-opacity":"1"}),(0,s.jsx)("stop",{offset:"100%","stop-color":"white","stop-opacity":"0"})]}),(0,s.jsx)("mask",{id:"movingMask",children:(0,s.jsx)("rect",{y:"56",width:"56",height:"40",fill:"url(#fadeGradient)",children:(0,s.jsx)("animate",{attributeName:"y",from:"56",to:"-40",dur:"1.5s",repeatCount:"indefinite"})})})]}),(0,s.jsx)("path",{d:"M15.1666 46.6666C11.6277 46.6666 8.60409 45.4417 6.09575 42.9916C3.58742 40.5416 2.33325 37.5472 2.33325 34.0083C2.33325 30.975 3.24714 28.2722 5.07492 25.9C6.9027 23.5278 9.29436 22.0111 12.2499 21.35C13.2221 17.7722 15.1666 14.875 18.0833 12.6583C20.9999 10.4416 24.3055 9.33331 27.9999 9.33331C32.5499 9.33331 36.4096 10.918 39.5791 14.0875C42.7485 17.2569 44.3333 21.1166 44.3333 25.6666C47.0166 25.9778 49.243 27.1347 51.0124 29.1375C52.7819 31.1403 53.6666 33.4833 53.6666 36.1666C53.6666 39.0833 52.6458 41.5625 50.6041 43.6041C48.5624 45.6458 46.0833 46.6666 43.1666 46.6666H15.1666Z",fill:"#0171E6"}),(0,s.jsx)("path",{d:"M15.1666 46.6666C11.6277 46.6666 8.60409 45.4417 6.09575 42.9916C3.58742 40.5416 2.33325 37.5472 2.33325 34.0083C2.33325 30.975 3.24714 28.2722 5.07492 25.9C6.9027 23.5278 9.29436 22.0111 12.2499 21.35C13.2221 17.7722 15.1666 14.875 18.0833 12.6583C20.9999 10.4416 24.3055 9.33331 27.9999 9.33331C32.5499 9.33331 36.4096 10.918 39.5791 14.0875C42.7485 17.2569 44.3333 21.1166 44.3333 25.6666C47.0166 25.9778 49.243 27.1347 51.0124 29.1375C52.7819 31.1403 53.6666 33.4833 53.6666 36.1666C53.6666 39.0833 52.6458 41.5625 50.6041 43.6041C48.5624 45.6458 46.0833 46.6666 43.1666 46.6666H15.1666Z",fill:"rgba(255,255,255,0.45)",mask:"url(#movingMask)"}),(0,s.jsx)("path",{d:"M30.3333 29.9833L32.4333 32.025C32.861 32.4528 33.3958 32.6666 34.0374 32.6666C34.6791 32.6666 35.2333 32.4333 35.6999 31.9666C36.1277 31.5389 36.3416 30.9944 36.3416 30.3333C36.3416 29.6722 36.1277 29.1278 35.6999 28.7L29.6333 22.6333C29.1666 22.1666 28.6221 21.9333 27.9999 21.9333C27.3777 21.9333 26.8333 22.1666 26.3666 22.6333L20.2999 28.7C19.8721 29.1278 19.6485 29.6625 19.6291 30.3041C19.6096 30.9458 19.8333 31.5 20.2999 31.9666C20.7277 32.3944 21.2624 32.618 21.9041 32.6375C22.5458 32.6569 23.0999 32.4528 23.5666 32.025L25.6666 29.9833V46.6666H30.3333Z",fill:"#FFFFFF"})]}),OrangeIcon=()=>(0,s.jsxs)("svg",{width:"56",height:"56",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"fadeGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,s.jsx)("stop",{offset:"0%","stop-color":"white","stop-opacity":"0"}),(0,s.jsx)("stop",{offset:"30%","stop-color":"white","stop-opacity":"1"}),(0,s.jsx)("stop",{offset:"70%","stop-color":"white","stop-opacity":"1"}),(0,s.jsx)("stop",{offset:"100%","stop-color":"white","stop-opacity":"0"})]}),(0,s.jsx)("mask",{id:"movingMask",children:(0,s.jsx)("rect",{y:"56",width:"56",height:"40",fill:"url(#fadeGradient)",children:(0,s.jsx)("animate",{attributeName:"y",from:"56",to:"-40",dur:"1.5s",repeatCount:"indef
1inite"})})})]}),(0,s.jsx)("path",{d:"M15.1666 46.6666C11.6277 46.6666 8.60409 45.4417 6.09575 42.9916C3.58742 40.5416 2.33325 37.5472 2.33325 34.0083C2.33325 30.975 3.24714 28.2722 5.07492 25.9C6.9027 23.5278 9.29436 22.0111 12.2499 21.35C13.2221 17.7722 15.1666 14.875 18.0833 12.6583C20.9999 10.4416 24.3055 9.33331 27.9999 9.33331C32.5499 9.33331 36.4096 10.918 39.5791 14.0875C42.7485 17.2569 44.3333 21.1166 44.3333 25.6666C47.0166 25.9778 49.243 27.1347 51.0124 29.1375C52.7819 31.1403 53.6666 33.4833 53.6666 36.1666C53.6666 39.0833 52.6458 41.5625 50.6041 43.6041C48.5624 45.6458 46.0833 46.6666 43.1666 46.6666H30.3333V29.9833L32.4333 32.025C32.861 32.4528 33.3958 32.6666 34.0374 32.6666C34.6791 32.6666 35.2333 32.4333 35.6999 31.9666C36.1277 31.5389 36.3416 30.9944 36.3416 30.3333C36.3416 29.6722 36.1277 29.1278 35.6999 28.7L29.6333 22.6333C29.1666 22.1666 28.6221 21.9333 27.9999 21.9333C27.3777 21.9333 26.8333 22.1666 26.3666 22.6333L20.2999 28.7C19.8721 29.1278 19.6485 29.6625 19.6291 30.3041C19.6096 30.9458 19.8333 31.5 20.2999 31.9666C20.7277 32.3944 21.2624 32.618 21.9041 32.6375C22.5458 32.6569 23.0999 32.4528 23.5666 32.025L25.6666 29.9833V46.6666H15.1666Z",fill:"#FF7A18"}),(0,s.jsx)("path",{d:"M15.1666 46.6666C11.6277 46.6666 8.60409 45.4417 6.09575 42.9916C3.58742 40.5416 2.33325 37.5472 2.33325 34.0083C2.33325 30.975 3.24714 28.2722 5.07492 25.9C6.9027 23.5278 9.29436 22.0111 12.2499 21.35C13.2221 17.7722 15.1666 14.875 18.0833 12.6583C20.9999 10.4416 24.3055 9.33331 27.9999 9.33331C32.5499 9.33331 36.4096 10.918 39.5791 14.0875C42.7485 17.2569 44.3333 21.1166 44.3333 25.6666C47.0166 25.9778 49.243 27.1347 51.0124 29.1375C52.7819 31.1403 53.6666 33.4833 53.6666 36.1666C53.6666 39.0833 52.6458 41.5625 50.6041 43.6041C48.5624 45.6458 46.0833 46.6666 43.1666 46.6666H30.3333V29.9833L32.4333 32.025C32.861 32.4528 33.3958 32.6666 34.0374 32.6666C34.6791 32.6666 35.2333 32.4333 35.6999 31.9666C36.1277 31.5389 36.3416 30.9944 36.3416 30.3333C36.3416 29.6722 36.1277 29.1278 35.6999 28.7L29.6333 22.6333C29.1666 22.1666 28.6221 21.9333 27.9999 21.9333C27.3777 21.9333 26.8333 22.1666 26.3666 22.6333L20.2999 28.7C19.8721 29.1278 19.6485 29.6625 19.6291 30.3041C19.6096 30.9458 19.8333 31.5 20.2999 31.9666C20.7277 32.3944 21.2624 32.618 21.9041 32.6375C22.5458 32.6569 23.0999 32.4528 23.5666 32.025L25.6666 29.9833V46.6666H15.1666Z",fill:"rgba(255,255,255,0.45)",mask:"url(#movingMask)"})]}),$=t(42044),ee=t.n($),UploadImage_UploadImage=e=>{let{src:r}=e,{isAutomaticPurchase:t}=(0,p.K)();return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)("div",{children:(0,s.jsx)("img",{src:r,className:ee().image,alt:""})}):t?(0,s.jsxs)("div",{className:ee().automaticPurchaseIcon,children:[(0,s.jsx)(BlueIcon_BlueIcon,{}),(0,s.jsx)("div",{className:ee().boltBadge,children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M8.66671 1.33331L3.33337 9.33331H8.00004L7.33337 14.6666L12.6667 6.66665H8.00004L8.66671 1.33331Z",fill:"#FFFFFF"})})})]}):(0,s.jsx)(OrangeIcon,{})})},er=t(37479),et=t.n(er),ea=t(76461),eo=t(30441),en=t(68243),ei=t(55486),es=t(94592),el=t.n(es),PurchaseMode_PurchaseMode=()=>{let{user:e}=(0,h.aF)({}),{isAutomaticPurchase:r,setIsAutomaticPurchase:t}=(0,p.K)(),{query:{posId:a}}=(0,c.useRouter)(),[o,n]=(0,j.useState)(!1),i=(0,j.useCallback)(async i=>{if(o)return;let s="automatic"===i;if(s!==r){n(!0);try{var l;let r=s?"radio__purchase_mode-dropzone-automatic":"radio__purchase_mode-dropzone-comparative";F.B({action:r,category:"efficient-purchase",label:r,value:0,client_id:null==e?void 0:null===(l=e.client)||void 0===l?void 0:l.id,user_role:(0,L.xQ)(null==e?void 0:e.role_id)}),t(s),await (0,ei.jE)(+a,s)}catch(e){t(r)}finally{n(!1)}}},[r,t,a,o]);return(0,s.jsxs)("div",{className:el().container,onClick:e=>{e.stopPropagation()},children:[(0,s.jsxs)("div",{className:el().header,children:[(0,s.jsx)("h3",{className:el().title,children:(0,l.t)("initText.Dropzone.seven")}),(0,s.jsx)("span",{className:el().badge,children:(0,l.t)("home.automatic-purchase.cart-two")})]}),(0,s.jsxs)(ea.Z,{value:r?"automatic":"comparative",onChange:i,className:el()["radio-group"],children:[(0,s.jsx)(eo.Z,{value:"comparative",className:"".concat(el()["radio-item"]," ").concat(r?"":el()["radio-selected"]),children:(0,s.jsx)("span",{className:el()["radio-label"],children:(0,l.t)("home.automatic-purchase.modal-cart.title")})}),(0,s.jsxs)(eo.Z,{value:"automatic",className:"".concat(el()["radio-item"]," ").concat(r?el()["radio-selected"]:""),children:[(0,s.jsxs)("div",{className:el()["label-container"],children:[(0,s.jsx)("span",{className:"".concat(el()["radio-label"]," ").concat(el()["radio-label-automatic"]),children:(0,l.t)("home.automatic-purchase.cart-one")}),(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:(0,s.jsx)("path",{d:"M4.52843 8.33333L0.578431 7.83333C0.300654 7.8 0.120098 7.65 0.0367647 7.38333C-0.0465686 7.11667 0.0117647 6.88889 0.211765 6.7L7.02843 0.166667C7.08399 0.111111 7.15065 0.0694444 7.22843 0.0416667C7.30621 0.0138889 7.41177 0 7.5451 0C7.76732 0 7.93676 0.0944444 8.05343 0.283333C8.1701 0.472222 8.17288 0.666667 8.06176 0.866667L5.86176 5L9.81176 5.5C10.0895 5.53333 10.2701 5.
168333 10.3534 5.95C10.4368 6.21667 10.3784 6.44444 10.1784 6.63333L3.36176 13.1667C3.30621 13.2222 3.23954 13.2639 3.16176 13.2917C3.08399 13.3194 2.97843 13.3333 2.8451 13.3333C2.62288 13.3333 2.45343 13.2389 2.33676 13.05C2.2201 12.8611 2.21732 12.6667 2.32843 12.4667L4.52843 8.33333Z",fill:"#0171E6"})})]}),(0,s.jsx)(en.D,{placement:"top",trigger:"hover",text:(0,l.t)("home.automatic-purchase.modal-cart.twoText"),width:"200px",minWidth:"200px",customStyle:{padding:"4px 12px",fontSize:"14px",fontWeight:"400",lineHeight:"18px"},marginTop:-8,textAlign:"left",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,s.jsx)("path",{d:"M6.63333 10.6667C6.86667 10.6667 7.06389 10.5861 7.225 10.425C7.38611 10.2639 7.46667 10.0667 7.46667 9.83333C7.46667 9.6 7.38611 9.40278 7.225 9.24167C7.06389 9.08056 6.86667 9 6.63333 9C6.4 9 6.20278 9.08056 6.04167 9.24167C5.88056 9.40278 5.8 9.6 5.8 9.83333C5.8 10.0667 5.88056 10.2639 6.04167 10.425C6.20278 10.5861 6.4 10.6667 6.63333 10.6667ZM6.66667 13.3333C5.74444 13.3333 4.87778 13.1583 4.06667 12.8083C3.25556 12.4583 2.55 11.9833 1.95 11.3833C1.35 10.7833 0.875 10.0778 0.525 9.26667C0.175 8.45556 0 7.58889 0 6.66667C0 5.74444 0.175 4.87778 0.525 4.06667C0.875 3.25556 1.35 2.55 1.95 1.95C2.55 1.35 3.25556 0.875 4.06667 0.525C4.87778 0.175 5.74444 0 6.66667 0C7.58889 0 8.45556 0.175 9.26667 0.525C10.0778 0.875 10.7833 1.35 11.3833 1.95C11.9833 2.55 12.4583 3.25556 12.8083 4.06667C13.1583 4.87778 13.3333 5.74444 13.3333 6.66667C13.3333 7.58889 13.1583 8.45556 12.8083 9.26667C12.4583 10.0778 11.9833 10.7833 11.3833 11.3833C10.7833 11.9833 10.0778 12.4583 9.26667 12.8083C8.45556 13.1583 7.58889 13.3333 6.66667 13.3333ZM6.66667 12C8.15556 12 9.41667 11.4833 10.45 10.45C11.4833 9.41667 12 8.15556 12 6.66667C12 5.17778 11.4833 3.91667 10.45 2.88333C9.41667 1.85 8.15556 1.33333 6.66667 1.33333C5.17778 1.33333 3.91667 1.85 2.88333 2.88333C1.85 3.91667 1.33333 5.17778 1.33333 6.66667C1.33333 8.15556 1.85 9.41667 2.88333 10.45C3.91667 11.4833 5.17778 12 6.66667 12ZM6.73333 3.8C7.01111 3.8 7.25278 3.88889 7.45833 4.06667C7.66389 4.24444 7.76667 4.46667 7.76667 4.73333C7.76667 4.97778 7.69167 5.19444 7.54167 5.38333C7.39167 5.57222 7.22222 5.75 7.03333 5.91667C6.77778 6.13889 6.55278 6.38333 6.35833 6.65C6.16389 6.91667 6.06667 7.21667 6.06667 7.55C6.06667 7.70556 6.125 7.83611 6.24167 7.94167C6.35833 8.04722 6.49444 8.1 6.65 8.1C6.81667 8.1 6.95833 8.04444 7.075 7.93333C7.19167 7.82222 7.26667 7.68333 7.3 7.51667C7.34444 7.28333 7.44444 7.075 7.6 6.89167C7.75556 6.70833 7.92222 6.53333 8.1 6.36667C8.35556 6.12222 8.575 5.85556 8.75833 5.56667C8.94167 5.27778 9.03333 4.95556 9.03333 4.6C9.03333 4.03333 8.80278 3.56944 8.34167 3.20833C7.88056 2.84722 7.34444 2.66667 6.73333 2.66667C6.31111 2.66667 5.90833 2.75556 5.525 2.93333C5.14167 3.11111 4.85 3.38333 4.65 3.75C4.57222 3.88333 4.54722 4.025 4.575 4.175C4.60278 4.325 4.67778 4.43889 4.8 4.51667C4.95556 4.60556 5.11667 4.63333 5.28333 4.6C5.45 4.56667 5.58889 4.47222 5.7 4.31667C5.82222 4.15 5.975 4.02222 6.15833 3.93333C6.34167 3.84444 6.53333 3.8 6.73333 3.8Z",fill:"#0171E6"})})})]})]})]})},ec=t(23059),MessagesDragDropUploader_MessagesDragDropUploader=e=>{let{icon:r,src:t,text:a,linkText:o,subtitle:n,blockerFormat:i,playerRef:c,flag:d,isInitMessage:u=!1,isDragging:p=!1,isAutomaticPurchase:_=!1}=e,{user:m}=(0,h.aF)({}),{canSelectPurchaseMode:C}=(0,ec.f)();return(0,s.jsxs)("div",{className:et().container,style:p?{gap:8}:{},children:[(0,s.jsx)("div",{className:et()["icon-or-image-cotainer"],children:r?(0,s.jsx)(s.Fragment,{children:r}):(0,s.jsx)("div",{className:et()["container-img-icon"],children:(0,s.jsx)(UploadImage_UploadImage,{src:t})})}),(0,s.jsxs)("div",{style:{width:i?"310px":"100%",gap:56},className:et()["container-text-message"],children:[(0,s.jsxs)("p",{className:et()["text-messages"],style:u?{color:"#40435B",marginBottom:0}:p?{fontWeight:400,color:"#40435B",marginBottom:0}:{},children:[p?_?(0,l.t)("initText.Dropzone.six"):(0,l.t)("initText.Dropzone.five"):_?(0,l.t)("initText.Dropzone.three"):(0,l.t)("initText.Dropzone.one")," ",(0,s.jsx)("span",{style:{color:_?"#0171E6":"#FF6300",fontWeight:600},children:_?(0,l.t)("initText.Dropzone.four"):(0,l.t)("initText.Dropzone.two")})]}),o&&(0,s.jsx)("p",{className:et()["link-text-messages"],children:o}),u?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:et()["container-purchase-mode-and-button"],children:[C&&
1(0,s.jsx)(PurchaseMode_PurchaseMode,{}),!!d&&(0,s.jsx)(w.j,{fullWidth:!0,appearance:"alternative",size:"lg",onClick:()=>{var e;F.B({action:"button__upload-file-2",category:"efficient-purchase",label:"button__upload-file-2",value:0,client_id:null==m?void 0:null===(e=m.client)||void 0===e?void 0:e.id,user_role:(0,L.xQ)(null==m?void 0:m.role_id)})},children:(0,s.jsx)("span",{children:(0,l.t)("shoppingCart.shoppingCart_Four")})}),n&&(0,s.jsx)("p",{className:et()["subtitle-text-message"],style:u?{color:"#40435B"}:{},children:n})]})}):(0,s.jsxs)(s.Fragment,{children:[!!d&&(0,s.jsx)(w.j,{className:et()["button-upload-file"],appearance:"alternative",size:"lg",onClick:()=>{var e;F.B({action:"button__upload-file-2",category:"efficient-purchase",label:"button__upload-file-2",value:0,client_id:null==m?void 0:null===(e=m.client)||void 0===e?void 0:e.id,user_role:(0,L.xQ)(null==m?void 0:m.role_id)})},children:(0,s.jsx)("span",{children:(0,l.t)("shoppingCart.shoppingCart_Four")})}),n&&(0,s.jsx)("p",{className:et()["subtitle-text-message"],style:u?{color:"#40435B"}:{},children:n})]})]})]})},ed=t(31256),eu=t.n(ed),LoaderDragDropFile_LoaderDragDropFile=e=>{let{filename:r,isAutomaticPurchase:t}=e;return(0,s.jsxs)("div",{className:eu().container,children:[(0,s.jsx)("div",{className:eu()["wrapper-image"],children:t?(0,s.jsx)(BlueIcon_BlueIcon,{}):(0,s.jsx)(OrangeIcon,{})}),r&&(0,s.jsx)("p",{className:eu()["filename-text"],children:r})]})},ep=t(72085),e_=t.n(ep);let InfoIcon=()=>(0,s.jsx)("svg",{className:e_()["toast-icon"],xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,s.jsx)("path",{d:"M6.66667 10C6.85556 10 7.01389 9.93611 7.14167 9.80833C7.26944 9.68055 7.33333 9.52222 7.33333 9.33333V6.66667C7.33333 6.47778 7.26944 6.31944 7.14167 6.19167C7.01389 6.06389 6.85556 6 6.66667 6C6.47778 6 6.31944 6.06389 6.19167 6.19167C6.06389 6.31944 6 6.47778 6 6.66667V9.33333C6 9.52222 6.06389 9.68055 6.19167 9.80833C6.31944 9.93611 6.47778 10 6.66667 10ZM6.66667 4.66667C6.85556 4.66667 7.01389 4.60278 7.14167 4.475C7.26944 4.34722 7.33333 4.18889 7.33333 4C7.33333 3.81111 7.26944 3.65278 7.14167 3.525C7.01389 3.39722 6.85556 3.33333 6.66667 3.33333C6.47778 3.33333 6.31944 3.39722 6.19167 3.525C6.06389 3.65278 6 3.81111 6 4C6 4.18889 6.06389 4.34722 6.19167 4.475C6.31944 4.60278 6.47778 4.66667 6.66667 4.66667ZM6.66667 13.3333C5.74444 13.3333 4.87778 13.1583 4.06667 12.8083C3.25556 12.4583 2.55 11.9833 1.95 11.3833C1.35 10.7833 0.875 10.0778 0.525 9.26667C0.175 8.45556 0 7.58889 0 6.66667C0 5.74444 0.175 4.87778 0.525 4.06667C0.875 3.25556 1.35 2.55 1.95 1.95C2.55 1.35 3.25556 0.875 4.06667 0.525C4.87778 0.175 5.74444 0 6.66667 0C7.58889 0 8.45556 0.175 9.26667 0.525C10.0778 0.875 10.7833 1.35 11.3833 1.95C11.9833 2.55 12.4583 3.25556 12.8083 4.06667C13.1583 4.87778 13.3333 5.74444 13.3333 6.66667C13.3333 7.58889 13.1583 8.45556 12.8083 9.26667C12.4583 10.0778 11.9833 10.7833 11.3833 11.3833C10.7833 11.9833 10.0778 12.4583 9.26667 12.8083C8.45556 13.1583 7.58889 13.3333 6.66667 13.3333Z",fill:"#1A66FC"})}),ElectricBoltIcon=e=>{let{size:r=24,color:t="white"}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 24 24",fill:t,children:(0,s.jsx)("path",{d:"M14.69 2.21L4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.05l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02z"})})};var AutomaticPurchaseActive_AutomaticPurchaseActive=e=>{let{onContinueAutomatic:r,onStartComparative:t,quantityCart:a}=e;return(0,s.jsxs)("div",{className:e_().container,children:[(0,s.jsx)("div",{className:e_()["icon-wrapper"],children:(0,s.jsx)(ElectricBoltIcon,{size:24,color:"white"})}),(0,s.jsxs)("div",{className:e_().modal,children:[(0,s.jsxs)("div",{className:e_().content,children:[(0,s.jsx)("h3",{className:e_().title,children:(0,l.t)("home.automatic-purchase.drozponeMessageModalTitle")}),(0,s.jsx)("p",{className:e_().description,children:(0,l.t)("home.automatic-purchase.drozponeMessageModalInfo")}),a()>0&&(0,s.jsxs)("div",{className:e_().toast,children:[(0,s.jsx)(InfoIcon,{}),(0,s.jsxs)("p",{className:e_()["toast-text"],children:[(0,l.t)("home.automatic-purchase.drozponeMessageModalInfoCart"),"."]})]})]}),(0,s.jsxs)("div",{className:e_()["cta-container"],children:[(0,s.jsxs)(w.j,{className:e_()["button-primary"],appearance:"primary",size:"lg",onClick:e=>{e.stopPropagation(),r()},children:[(0,s.jsx)(ElectricBoltIcon,{size:16,color:"white"}),(0,s.jsx)("span",{children:(0,l.t)("home.automatic-purchase.drozponeMessageModalContinue")})]}),(0,s.jsx)(w.j,{className:e_()["button-secondary"],appearance:"ghost",size:"lg",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)("span",{children:(0,l.t)("shoppingCart.shoppingCart_Sixteen")})})]})]})]})}},38386:function(e,r,t){"use strict";t.d(r,{A:function(){return Cart_Cart}});var a=t(85893),o=t(95906),Cart_Cart=()=>(0,a.jsx)(o.DrawerCart,{})},340:function(e,r,t){"use strict";t.d(r,{Z:function(){return LoadingBody_LoadingBody}});var a=t(85893),o=t(84418),n=t(84117),i=t(82206),s=t(53130),l=t(19295),c=t.n(l),d=t(82289),u=t(66821),p=t.n(u),SearchResultsLoader_SearchResultsLoader=()=>(0,a.jsx)(n.Z,{xs:22,children:(0,a.jsxs)(o.Z,{style:{padding:"3px 16px"},children:[(0,a.jsx)(n.Z,{xs:2,children:(0,a.jsx)(d.Z,{graph:"image",className:p().paragraphLoaderImage,rows:0})}),(0,a.jsxs)(n.Z,{xs:22,children:[(0,a.jsx)(d.Z,{rows:1,rowHeight:15,active:!0}),(0,a.jsx)(d.Z,{rows:1,rowHeight:15,active:!0})]})]})}),DrawerBodyLoader_DrawerBodyLoader=()=>(0,a.jsx)(n.Z,{xs:17,children:(0,a.jsx)(o.Z,{children:(0,a.jsxs)(n.Z,{xs:24,children:[(0,a.jsx)(d.Z,{rows:1,rowHeight:15,active:!0}),(0,a.jsx)(d.Z,{rows:1,rowHeight:15,active:!0})]})})}),LoadingBody_LoadingBody=e=>{let{isSearchResults:r,rows:t=5}=e,l=r?2:7,d=r?"search-results-container":"container";return(0,a.jsx)(a.Fragment,{children:Array.from({length:t},(e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsxs)(o.Z,{className:c()[d],children:[r?(0,a.jsx)(SearchResultsLoader_SearchResultsLoader,{}):(0,a.jsx)(DrawerBodyLoader_DrawerBodyLoader,{}),(0,a.jsx)(n.Z,{className:c().button,xs:l,children:(0,a.jsx)(i.Z.Graph,{style:{marginTop:6,height:45},active:!0})})]}),!r&&(0,a.jsx)(s.Z,{style:{margin:0}})]},t+1))})}},82289:function(e,r,t){"use strict";var a=t(85893),o=t(82206),n=t(31567),i=t.n(n);r.Z=e=>(0,a.jsx)("div",{className:i()["wrapper-paragraph"],children:(0,a.jsx)(o.Z.Paragraph,{...e})})},28613:function(e,r,t){"use strict";t.d(r,{C:function(){return ModalYoutubeProvider},F:function(){return useModalYoutubeContext}});var a=t(85893),o=t(67294);let n={openModalYoutube:!1,setOpenModalYoutube:e=>{}},i=(0,o.createContext)(n),ModalYoutubeProvider=e=>{let{children:r}=e,[t,s]=(0,o.useState)(n.openModalYoutube),l=(0,o.useMemo)(()=>({openModalYoutube:t,setOpenModalYoutube:s}),[t]);return(0,a.jsx)(i.Provider,{value:l,children:r})},useModalYoutubeContext=()=>(0,o.useContext)(i)},5151:function(e,r,t){"use strict";t.d(r,{$W:function(){return a},a3:function(){return o}});let a=/^(|application\/x-godot-resource|text\/plain|application\/vnd\.(ms-excel|openxmlformats-officedocument\.spreadsheetml\.sheet|ms-excel\.sheet\.binary\.macroEnabled\.12|ms-excel\.sheet\.macroEnabled\.12)|text\/csv|image\/x-dds|image\/vnd\.ms-dds|image\/dds)$/,o=/^(|application\/x-godot-resource|text\/plain|application\/vnd\.(ms-excel|openxmlformats-officedocument\.spreadsheetml\.sheet|ms-excel\.sheet\.binary\.macroEnabled\.12|ms-excel\.sheet\.macroEnabled\.12)|text\/csv|application\/pdf|image\/x-dds|image\/vnd\.ms-dds|image\/dds)$/},18197:function(e){e.exports={"base-avatar-style":"ExAvatarConnections_base-avatar-style___aGxG","extendeal-style":"ExAvatarConnections_extendeal-style__jDuyh","extendeal-style--transfers":"ExAvatarConnections_extendeal-style--transfers__TMYj0","connected-style":"ExAvatarConnections_connected-style__DrcLK","error-style":"ExAvatarConnections_error-style__6wS86","disconnected-style":"ExAvatarConnections_disconnected-style__wAJIV"}},6468:function(e){e.exports={"drawer-body":"DrawerBody_drawer-body__a9ut2","scrollbar-new-style":"DrawerBody_scrollbar-new-style__p4bZL","empty-cart":"DrawerBody_empty-cart__8Zc6_","empty-cart-text":"DrawerBody_empty-cart-text__tI6Q8","draft-container":"DrawerBody_draft-container__D49ZE","draft
1-content":"DrawerBody_draft-content__uCZkK","draft-icon":"DrawerBody_draft-icon__eyLf6","draft-icon-mark":"DrawerBody_draft-icon-mark__vZ_1g","draft-text":"DrawerBody_draft-text__qzIwK","draft-title":"DrawerBody_draft-title__GS74B","draft-subtitle":"DrawerBody_draft-subtitle__ivzg8","draft-products":"DrawerBody_draft-products__Ixu2x","draft-products-quantity":"DrawerBody_draft-products-quantity__7GD3J","draft-products-label":"DrawerBody_draft-products-label__zLed7","draft-separator":"DrawerBody_draft-separator__FAaSV","draft-date":"DrawerBody_draft-date__lkg4q","draft-menu-button":"DrawerBody_draft-menu-button__O__8Z","draft-menu-dot":"DrawerBody_draft-menu-dot__A1S0y","draft-menu-wrapper":"DrawerBody_draft-menu-wrapper__o_1B7","draft-menu":"DrawerBody_draft-menu__rYG0a","draft-menu-item":"DrawerBody_draft-menu-item__3nq8B","draft-menu-item-danger":"DrawerBody_draft-menu-item-danger__fjXIX","draft-menu-label-primary":"DrawerBody_draft-menu-label-primary__kChJ6","draft-menu-label-danger":"DrawerBody_draft-menu-label-danger__erqiC","draft-menu-icon-download":"DrawerBody_draft-menu-icon-download__dRPu2","draft-menu-icon-delete":"DrawerBody_draft-menu-icon-delete__0hU4x"}},73361:function(e){e.exports={"custom-input-number":"DrawerCounter_custom-input-number__a3rUO","custom-input-number-complete":"DrawerCounter_custom-input-number-complete__hFenr","wrapper-counter":"DrawerCounter_wrapper-counter__gnZv7","wrapper-loader":"DrawerCounter_wrapper-loader__jedpH","wrapper-counter-error":"DrawerCounter_wrapper-counter-error__59_cX","wrapper-counter-buttons":"DrawerCounter_wrapper-counter-buttons__Ik5Xb"}},91864:function(e){e.exports={"wrapper-description":"DrawerDescription_wrapper-description__olq0g","product-name":"DrawerDescription_product-name__JCwLX",icon:"DrawerDescription_icon__VWSt4"}},48187:function(e){e.exports={container:"DrawerRow_container__YNkJo",icon:"DrawerRow_icon__w93a1",description:"DrawerRow_description__1adSQ","wrapper-description":"DrawerRow_wrapper-description__UMEsP",barcode:"DrawerRow_barcode__zA2Ya","from-comparison-tag":"DrawerRow_from-comparison-tag__fUbMr",button:"DrawerRow_button__DRI32","row-entry":"DrawerRow_row-entry__pOXJJ","row-entry-replenishment":"DrawerRow_row-entry-replenishment__cyonv"}},50472:function(e){e.exports={"drawer-wrapper":"DrawerCart_drawer-wrapper__EjcrH","is-expanded":"DrawerCart_is-expanded__jLPLd","is-expanded-results":"DrawerCart_is-expanded-results__VBwXn","drawer-fade-in":"DrawerCart_drawer-fade-in__opcjd",slideInRight:"DrawerCart_slideInRight__WsMzw","drawer-fade-out":"DrawerCart_drawer-fade-out__CK5zQ",slideOutRight:"DrawerCart_slideOutRight__gUM_X","backdrop-step3":"DrawerCart_backdrop-step3__3mDHT",visible:"DrawerCart_visible__ZCDaD","drawer-position-transition":"DrawerCart_drawer-position-transition__p4Z5n","drawer-to-sticky":"DrawerCart_drawer-to-sticky__hsSU2",pushedUpByFooter:"DrawerCart_pushedUpByFooter__DGEhA","drawer-to-fixed":"DrawerCart_drawer-to-fixed__yLF8D",slideToFixed:"DrawerCart_slideToFixed___OnVR"}},83136:function(e){e.exports={container:"DrawerFooter_container__SW9Bf",button:"DrawerFooter_button__VBqwB",arrow:"DrawerFooter_arrow__oThwM",text:"DrawerFooter_text__gHFLG","has-scroll":"DrawerFooter_has-scroll__habd4",automaticPurchaseButton:"DrawerFooter_automaticPurchaseButton__zYYYM",automaticPurchaseButtonBorderAnimated:"DrawerFooter_automaticPurchaseButtonBorderAnimated__ffzwF",automaticPurchaseButtonBackground:"DrawerFooter_automaticPurchaseButtonBackground__jDIHe",automaticPurchaseButtonBorder:"DrawerFooter_automaticPurchaseButtonBorder__gFEt0",borderAnimation:"DrawerFooter_borderAnimation__E7anD",automaticPurchaseContent:"DrawerFooter_automaticPurchaseContent__kVH2I",automaticPurchaseIconWrapper:"DrawerFooter_automaticPurchaseIconWrapper__ZJfHd",automaticPurchaseIconGlow:"DrawerFooter_automaticPurchaseIconGlow__nAwzX",iconGlow:"DrawerFooter_iconGlow__eY4qt",automaticPurchaseIcon:"DrawerFooter_automaticPurchaseIcon__xboZ6",automaticPurchaseText:"DrawerFooter_automaticPurchaseText__trGs_",toggleContainer:"DrawerFooter_toggleContainer__qzvqE",toggleLabel:"DrawerFooter_toggleLabel__Ewjyo",toggle:"DrawerFooter_toggle__Evuvd",infoButton:"DrawerFooter_infoButton__6NVus",infoIcon:"DrawerFooter_infoIcon__trBzp",badge:"DrawerFooter_badge__wwzfq",popoverContent:"DrawerFooter_popoverContent__FcDJe",popoverContainer:"DrawerFooter_popoverContainer__fnAHq",popoverHeader:"DrawerFooter_popoverHeader__dqpc3",popoverBadge:"DrawerFooter_popoverBadge__4qAdr",popoverIcon:"DrawerFooter_popoverIcon__Hh5d8",popoverTitle:"DrawerFooter_popoverTitle__Xskd7",popoverText:"DrawerFooter_popoverText__3Jr4x",popoverButton:"DrawerFooter_popoverButton__1uQUV",changeColor:"DrawerFooter_changeColor__6JL06"}},16398:function(e){e.exports={container:"DrawerHeader_container__VK8u6","wrapper-title":"DrawerHeader_wrapper-title__nV_kX","wrapper-left":"DrawerHeader_wrapper-left__giKAR","button-expanded":"DrawerHeader_button-expanded__xeBgF","wrapper-empty-text":"DrawerHeader_wrapper-empty-text__l7wxR","empty-text":"DrawerHeader_empty-text__DMxnD",cart:"DrawerHeader_cart__mh10V",quantity:"DrawerHeader_quantity__8XS8J","go-to-back":"DrawerHeader_go-to-back___Afe4","wrapper-button-content":"DrawerHeader_wrapper-button-content__8HOrw","drugManufacturer-name":"DrawerHeader_drugManufacturer-name__Ra0ak","replenishment-snackbar":"DrawerHeader_replenishment-snackbar__xHLca","replenishment-snackbar-text":"DrawerHeader_replenishment-snackbar-text__HdAx5"}},72085:function(e){e.exports={container:"AutomaticPurchaseActive_container__OLqVh","icon-wrapper":"AutomaticPurchaseActive_icon-wrapper__slSa4",modal:"AutomaticPurchaseActive_modal__XxPVf",content:"AutomaticPurchaseActive_content__rQPyB",title:"AutomaticPurchaseActive_title__5w5Ua",description:"AutomaticPurchaseActive_description__d0N7b",toast:"AutomaticPurchaseActive_toast__GYw8i","toast-icon":"AutomaticPurchaseActive_toast-icon__Ppdfe","toast-text":"AutomaticPurchaseActive_toast-text__KZMJJ","cta-container":"AutomaticPurchaseActive_cta-container__VzWtS","button-primary":"AutomaticPurchaseActive_button-primary__ZPru9","button-secondary":"AutomaticPurchaseActive_button-secondary__42ttg"}},14874:function(e){e.exports={"container-panel-uploader":"DragDropUploader_container-panel-uploader__u7fwK","icon-cloud":"DragDropUploader_icon-cloud__NvDb5","icon-cloud-error":"DragDropUploader_icon-cloud-error__5RFck","cancel-button":"DragDropUploader_cancel-button__AHsmt","icon-button-close":"DragDropUploader_icon-button-close__QpG86",wrapper:"DragDropUploader_wrapper__P2iRY","container-panel-uploader-v2":"DragDropUploader_container-panel-uploader-v2__UGK0j","container-cart":"DragDropUploader_container-cart__grCL0"}},79054:function(e){e.exports={wrapper:"FileWithErrors_wrapper__bzEqg","container-list-errors":"FileWithErrors_container-list-errors__Ce_xl"}},50532:function(e){e.exports={"container-buttons":"FooterButtons_container-buttons__DJJ8T","buttons-toolbar":"FooterButtons_buttons-toolbar__gWaNI","button-transparent":"FooterButtons_button-transparent__ZdZ79"}},19996:function(e){e.exports={"container-errors":"ListErrors_container-errors__bOd8y","list-errors":"ListErrors_list-errors__nW4VG","discarded-section":"ListErrors_discarded-section___WoNl","discarded-title":"ListErrors_discarded-title__79ltg","list-errors-new":"ListErrors_list-errors-new__O4ngS","bullet-list":"ListErrors_bullet-list__2sSrt",divider:"ListErrors_divider__fEnaY","box-duplicate":"ListErrors_box-duplicate__Nqrhe"}},50977:function(e){e.exports={"box-title":"PresentationText_box-title__INJOf",title:"PresentationText_title__AD5WA",subt
1itle:"PresentationText_subtitle___tIqA","wrapper-download-actions":"PresentationText_wrapper-download-actions__Daa2E","download-container":"PresentationText_download-container__PhHce","text-title":"PresentationText_text-title__4XeO2","text-number":"PresentationText_text-number__RuezI"}},65957:function(e){e.exports={freetrial_finished:"FreeTrialFinished_freetrial_finished__05J92"}},31256:function(e){e.exports={"filename-text":"LoaderDragDropFile_filename-text__fpKYc",container:"LoaderDragDropFile_container__YD1ZO","wrapper-image":"LoaderDragDropFile_wrapper-image__kc9JJ"}},62415:function(e){e.exports={container:"CartHaveProductsAlerts_container__SAlSv",text:"CartHaveProductsAlerts_text__b76_B"}},37479:function(e){e.exports={container:"MessagesDragDropUploader_container__GWCcQ","text-messages":"MessagesDragDropUploader_text-messages__nqPcW","link-text-messages":"MessagesDragDropUploader_link-text-messages__IblLS","container-text-message":"MessagesDragDropUploader_container-text-message__0jcjT","icon-or-image-cotainer":"MessagesDragDropUploader_icon-or-image-cotainer__3ruRe",image:"MessagesDragDropUploader_image__7SumX",AnimationName:"MessagesDragDropUploader_AnimationName__NE2mg","container-img-icon":"MessagesDragDropUploader_container-img-icon__GqvN7","container-icon":"MessagesDragDropUploader_container-icon__nYEnS","subtitle-text-message":"MessagesDragDropUploader_subtitle-text-message__O3FnR","button-upload-file":"MessagesDragDropUploader_button-upload-file__sAUmS","message-icon":"MessagesDragDropUploader_message-icon__yj9m7","container-purchase-mode-and-button":"MessagesDragDropUploader_container-purchase-mode-and-button__AeaTm","separator-line":"MessagesDragDropUploader_separator-line__2IvvM"}},42044:function(e){e.exports={image:"UploadImage_image__GxDOc",AnimationName:"UploadImage_AnimationName__5mjxL",automaticPurchaseIcon:"UploadImage_automaticPurchaseIcon__8yPqx",boltBadge:"UploadImage_boltBadge__bZ1FQ"}},94592:function(e){e.exports={container:"PurchaseMode_container__ViysF",header:"PurchaseMode_header__ZQiCV",title:"PurchaseMode_title__4MLbY",badge:"PurchaseMode_badge__WSkoz","radio-group":"PurchaseMode_radio-group__06g0L","radio-item":"PurchaseMode_radio-item__5tiRC","radio-selected":"PurchaseMode_radio-selected__M_rnL","radio-label":"PurchaseMode_radio-label___oH9m","radio-label-automatic":"PurchaseMode_radio-label-automatic___xQGa","label-container":"PurchaseMode_label-container__pq7rf"}},19295:function(e){e.exports={"search-results-container":"LoadingBody_search-results-container__sPMxT",container:"LoadingBody_container__pIKl_","wrapper-paragraph":"LoadingBody_wrapper-paragraph__KRcFe",button:"LoadingBody_button__CaHAh"}},31567:function(e){e.exports={"wrapper-paragraph":"ParagraphLoader_wrapper-paragraph__9kU9N"}},66821:function(e){e.exports={paragraphLoaderImage:"SearchResults_paragraphLoaderImage__XPdRA"}}}]);

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.