1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1761],{3308:(e,o,r)=>{r.d(o,{A:()=>a});var n=r(37876);r(14232);var t=r(91329),l=r(50295);let i=({handleClose:e,onOpen:o,isOpen:r,title:i,anchor:a,children:c,...s})=>(0,n.jsx)(l.Q$,{onClose:e,open:r,anchor:a,onOpen:o,...s,children:(0,n.jsx)(t.A,{title:i,handleClose:e,children:c})});i.defaultProps={anchor:"bottom"};let a=i},11761:(e,o,r)=>{r.r(o),r.d(o,{default:()=>i});var n=r(37876),t=r(3308);r(14232);var l=r(27922);let i=({handleClose:e,isOpen:o,sellerList:r,onSelectionConfirm:i})=>(0,n.jsx)(t.A,{open:o,handleClose:e,onClose:e,disableSwipeToOpen:!0,onOpen:()=>o,title:"Filial",children:(0,n.jsx)(l.A,{handleClose:e,sellerList:r,onSelectionConfirm:i})})},27922:(e,o,r)=>{r.d(o,{A:()=>f});var n=r(37876),t=r(14232),l=r(29868),i=r(43802),a=r(97642),c=r(29148),s=r(67610),d=r(70632),u=r(95857),h=r(46245),p=r(20126);let m=({sellerItem:e,isLast:o,branchSelectionKey:r})=>{let t=(0,h.A)(e.status,16),l=(0,p.al)();return(0,n.jsx)(c.v9,{$isLast:o,children:(0,n.jsx)(d.A,{control:(0,n.jsx)(s.A,{}),label:(0,n.jsxs)(i.A,{direction:"column",wrap:"nowrap",container:!0,children:[(0,n.jsx)(i.A,{item:!0,children:(0,n.jsxs)(i.A,{container:!0,children:[(0,n.jsx)(i.A,{item:!0,children:(0,n.jsxs)(c.FL,{children:["VENDIDO POR ",(0,n.jsxs)("b",{children:[" ",e.sellerName?.toUpperCase()]})]})}),(0,n.jsx)(i.A,{item:!0,children:(0,n.jsxs)(c.FL,{children:[l?"":"/"," FATURADO POR"," ",(0,n.jsxs)("b",{children:[" ",e.billName?.toUpperCase()]})]})})]})}),(0,n.jsxs)(i.A,{item:!0,children:[t.Icon,(0,n.jsx)(c.a6,{$color:t.color,children:(e.isComboPromotion?u.Mp[e.status]:u.Yb[e.status])||u.Yb[u.cG.NOT_STARTED]})]})]}),value:r})})};var x=r(89099);let f=({onSelectionConfirm:e,sellerList:o})=>{let{query:r}=(0,x.useRouter)(),s=(e,o,r)=>e?.billingCode?.toString()===o?.toString()&&e?.expeditionCode?.toString()===r?.toString(),[d,u]=(0,t.useState)(o?.find(e=>s(e,r.billingCode,r.expeditionCode))||o?.[0]),h=e=>`${e?.id}-${e?.billingCode}-${e?.expeditionCode}`;return(0,n.jsxs)(i.A,{container:!0,direction:"column",wrap:"nowrap",spacing:2,children:[(0,n.jsx)(i.A,{item:!0,children:(0,n.jsx)(c.uE,{children:"Selecione a filial para visualizar as ofertas dispon\xedveis:"})}),(0,n.jsx)(i.A,{item:!0,children:(0,n.jsx)(c.u7,{children:(0,n.jsx)(a.A,{onChange:(e,r)=>(e=>{let[r,n,t]=e?.split("-");u(o.find(e=>e.id?.toString()===r&&s(e,n,t)))})(r),"aria-label":"Filtro Segmento",value:h(d),children:(0,n.jsx)(i.A,{container:!0,direction:"column",wrap:"nowrap",children:o.map((e,r)=>(0,n.jsx)(i.A,{item:!0,children:(0,n.jsx)(m,{sellerItem:e,branchSelectionKey:h(e),isLast:r+1===o.length})},h(e)))})})})}),(0,n.jsx)(i.A,{item:!0,children:(0,n.jsx)(l.q2,{fullWidth:!0,color:"primary",disableElevation:!0,onClick:()=>e(d),disabled:!d?.id,children:"Selecionar"})})]})}},29148:(e,o,r)=>{r.d(o,{FL:()=>a,KY:()=>h,a6:()=>i,h0:()=>u,u7:()=>s,uE:()=>d,v9:()=>c});var n=r(68403),t=r(76891),l=r(21626);let i=(0,l.Ay)(n.A).withConfig({componentId:"sc-a242ed08-0"})(["font-weight:500;font-size:12px;color:",";padding:0px 6px;"],e=>e.$color?e.$color===e.theme.colors.neutral?e.theme.colors.neutralRange[500]:e.$color:e.theme.colors.textMedium),a=(0,l.Ay)(t.S).withConfig({componentId:"sc-a242ed08-1"})(["font-weight:400;font-size:12px;color:",";display:flex;line-height:unset;b{padding:0 3px;}"],e=>e.theme.colors.neutralRange[700]),c=l.Ay.div.withConfig({componentId:"sc-a242ed08-2"})(["border-top:1px solid ",";border-bottom:","px solid ",";padding:6px 12px;"],e=>e.theme.colors.neutral,e=>+!!e.$isLast,e=>e.theme.colors.neutral),s=l.Ay.div.withConfig({componentId:"sc-a242ed08-3"})(["max-height:150px;height:150px;overflow-y:auto;"]),d=(0,l.Ay)(t.S).withConfig({componentId:"sc-a242ed08-4"})(["font-weight:400;font-size:14px;color:",";"],e=>e.theme.colors.neutralRange[700]),u=l.Ay.div.withConfig({componentId:"sc-a242ed08-5"})(["padding:0 0 24px 16px;overflow:hidden;"]),h=l.Ay.div.withConfig({componentId:"sc-a242ed08-6"})(["padding:14px 0 0 14px;"])},41528:(e,o,r)=>{r.d(o,{A:()=>s});var n=r(44501),t=r(8972),l=r(14232),i=r(49995),a=r(55814),c=l.forwardRef(function(e,o){var r=e.classes,a=e.className,c=e.row,s=(0,t.A)(e,["classes","className","row"]);return l.createElement("div",(0,n.A)({className:(0,i.default)(r.root,a,void 0!==c&&c&&r.row),ref:o}
1,s))});let s=(0,a.A)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(c)},46245:(e,o,r)=>{r.d(o,{A:()=>s});var n=r(37876),t=r(95857),l=r(49866),i=r(82774),a=r(96980);r(14232);var c=r(21626);let s=(e,o=24)=>{let r=(0,c.DP)();switch(e){case t.cG.COMBO_MISSING:case t.cG.MISSING:{let e=r.colors.bemOrange;return{Icon:(0,n.jsx)(i.p,{size:o,color:r.colors.warning}),color:e}}case t.cG.REACHED:{let e=r.colors.success;return{Icon:(0,n.jsx)(l.N,{size:o,color:r.colors.success}),color:e}}case t.cG.NOT_STARTED:default:{let e=r.colors.neutral;return{Icon:(0,n.jsx)(a.b,{size:o,color:r.colors.infoText}),color:e}}}}},49866:(e,o,r)=>{r.d(o,{N:()=>i});var n=r(44501),t=r(14232),l=r(36914),i=t.forwardRef(function(e,o){return t.createElement(l.y,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:o}),t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}))});i.displayName="CheckCircleOutline"},82774:(e,o,r)=>{r.d(o,{p:()=>i});var n=r(44501),t=r(14232),l=r(36914),i=t.forwardRef(function(e,o){return t.createElement(l.y,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:o}),t.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))});i.displayName="ErrorOutline"},96980:(e,o,r)=>{r.d(o,{b:()=>i});var n=r(44501),t=r(14232),l=r(36914),i=t.forwardRef(function(e,o){return t.createElement(l.y,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:o}),t.createElement("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}))});i.displayName="RemoveCircleOutline"},97642:(e,o,r)=>{r.d(o,{A:()=>h});var n=r(44501),t=r(12906),l=r(8972),i=r(14232),a=r(41528),c=r(76475),s=r(60172),d=r(40261),u=r(31642);let h=i.forwardRef(function(e,o){var r=e.actions,h=e.children,p=e.name,m=e.value,x=e.onChange,f=(0,l.A)(e,["actions","children","name","value","onChange"]),A=i.useRef(null),g=(0,s.A)({controlled:m,default:e.defaultValue,name:"RadioGroup"}),v=(0,t.A)(g,2),w=v[0],C=v[1];i.useImperativeHandle(r,function(){return{focus:function(){var e=A.current.querySelector("input:not(:disabled):checked");e||(e=A.current.querySelector("input:not(:disabled)")),e&&e.focus()}}},[]);var j=(0,c.A)(o,A),b=(0,u.A)(p);return i.createElement(d.A.Provider,{value:{name:b,onChange:function(e){C(e.target.value),x&&x(e,e.target.value)},value:w}},i.createElement(a.A,(0,n.A)({role:"radiogroup",ref:j},f),h))})}}]);
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.