PageSourceSearch

https://dash-rh.swile.com.br/_next/static/chunks/pages/orders/new/detached-9f49e376669ac8c6.js

js swile.com.br collected 2026-10-04 20:55:49 UTC 19,639 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5189],{10452:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/orders/new/detached",function(){return t(71817)}])},27010:(e,a,t)=>{"use strict";t.d(a,{n:()=>o});var r=t(34957),l=t(4319),s=t(16131);let n={product:null,amount:0,totalEmployees:0,errors:{amount:"",product:""}},i=(0,s.D)(e=>({...n,updateAmount:a=>{e(e=>{e.amount=a})},updateErrors:a=>{e(e=>{e.errors=a})},updateProduct:a=>{e(e=>{e.product=a})},updateTotalEmployees:a=>{e(e=>{e.totalEmployees=a})},resetAmount:()=>{e(e=>{e.amount=n.amount})},resetErrors:()=>{e(e=>{e.errors=n.errors})},resetProduct:()=>{e(e=>{e.product=n.product})},resetTotalEmployees:()=>{e(e=>{e.totalEmployees=n.totalEmployees})},resetAllData:()=>{e(()=>({...n}))}})),o=(0,r.vt)()((0,l.Zr)(i,{name:"@SwileCorporates:Order-detached",storage:(0,l.KU)(()=>sessionStorage),partialize:e=>e}))},32383:()=>{},53355:(e,a,t)=>{"use strict";t.d(a,{F:()=>n});var r=t(82961),l=t(18482);async function s(e){let[,a]=e,{data:t}=await l.r.getPaginated("private/workgroup-module",{...a});return t}function n(e){return(0,r.Ay)(["getWorkGroups",e],s,{keepPreviousData:!0,shouldRetryOnError:!1})}},71817:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>eT});var r=t(37876),l=t(58175),s=t(77328),n=t.n(s),i=t(53242),o=t(97660),d=t(89997),c=t(91769),u=t(95894),m=t(25449),x=t(7513),h=t(30238),v=t(89099),p=t(58174),g=t(4133),j=t(58937),f=t(8792),b=t(10832),w=t(18482),N=t(34333);async function S(e,a){let{arg:t}=a,{data:r}=await w.r.post("private/order/summary/detached",{data:t});return r}var E=t(14232),C=t(79363),y=t(70516),A=t(27010),P=t(45525),z=t(69830),I=t(49722),T=t(99342),k=t(9264),D=t(12239),F=t(37255),L=t(53233),M=t(63280),O=t(53347),G=t(29434),_=t(185),V=t(58192),B=t(53355),U=t(10553),W=t(50529);let R=e=>{let{defaultAmount:a,flexibleEnabled:t,employees:s,onClose:n,readonly:i=!1}=e,[o,d]=(0,E.useState)(""),[c,u]=(0,E.useState)({page:1,size:10}),m=(e=>{let a=(0,C.a)(e=>e.selected);return null!=e?e:a})(s),[x,h]=(0,E.useState)([]),v=(0,E.useCallback)(e=>{h(m.filter(a=>{var t;return[a.name,a.document,null!=(t=a.externalId)?t:"",a.workgroupName].map(e=>e.toLowerCase()).some(a=>a.includes(e.toLowerCase()))}))},[m]);(0,E.useEffect)(()=>{v(o)},[o,v]),(0,E.useEffect)(()=>{h(m.slice(0,c.size))},[m,c.size]);let p=(0,E.useMemo)(()=>{let e=["name-email","document","group"];return t&&e.push("flexible-wallet"),i||(e.push("selection"),e.push("amount")),e},[t,i]);return(0,r.jsxs)(W._,{isOpen:!0,onClose:n,title:"Colaboradores",width:"100%",maxWidth:"1000px",actionLabels:{close:"Fechar"},children:[(0,r.jsx)(D.c,{mb:32}),(0,r.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,r.jsx)(l.o,{variant:"h3",children:"Colaboradores selecionados"}),(0,r.jsx)(M.vj,{initialValue:o,placeholder:"Busque por Nome, CPF, matr\xedcula ou grupo",cta:d}),(0,r.jsx)(L.Q,{data:x,columnsVisible:p,isLoading:!1,area:"new-order-detached",saveMode:"SELECTED",defaultAmount:a,avoidReset:!0}),!o&&(0,r.jsx)(O.x,{currentPage:c.page,totalPages:Math.ceil(m.length/c.size),handleSizeChange:e=>{u({page:1,size:e}),h(m.slice(0,e))},handlePageChange:e=>{u(a=>({...a,page:e})),h(m.slice((e-1)*c.size,e*c.size))},limit:c.size})]})]})},q=()=>{var e,a,t;let[s,n]=(0,E.useState)(!1),{product:i,updateTotalEmployees:o,updateAmount:d,amount:c}=(0,A.n)(e=>e),[u,m]=(0,E.useReducer)((e,a)=>({...e,...a}),{q:"",size:10,page:0,status:"active"}),{data:x}=(0,B.F)({eligibleForOrders:!0,ignore:!0}),{data:h}=(0,U.useSession)(),v=null==h||null==(e=h.user.corporate)?void 0:e.data.flexibleEnabled,{data:p,isLoading:g}=(0,G.n)(u),j=(0,C.a)(e=>e.selected.length),f=null==p?void 0:p.totalElements,b=null==p?void 0:p.content.map(e=>{var a,t;return{...e,belongsToAFlexibleGroup:!!v&&function(e){var a;let{employee:t,workGroups:r,cardType:l}=e,s=r.find(e=>e.idWorkGroup===t.idWorkGroup);return!!(null!=(a=null==s?void 0:s.benefitConfigs.reduce((e,a)=>[...e,a.code],[]))?a:[]).includes(l)}({employee:e,workGroups:null!=(a=null==x?void 0:x.content)?a:[],cardType:null!=(t=null==i?void 0:i.code)?t:""})}});(0,E.useEffect)(()=>{!u.q&&f&&o(f)},[o,f,u.q]);let w=null!=(a=null==p?void 0:p.totalPages)?a:1,N=1!==j,S=(null!=(t=u.page)?t:0)+1;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-16 lg:grid md:grid-cols-[1fr_2fr] lg:items-center lg:gap-32",children:[(0,r.jsxs)(l.o,{variant:"headline",children:["Quanto voc\xea ir\xe1 carregar em ",null==i?void 0:i.name,"?"]}),(0,r.jsx)(k.A,{id:"amount",label:"Valor da carga",value:(0,_.v)({amount:c}),onChange:e=>{d((0,V.NX)(e.currentTarget.value))},"data-testid":"amount-field"})]}),(0,r.jsx)(D.c,{my:32}),(0,r.jsxs)("div",{className:"flex flex-col gap-32",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(l.o,{variant:"headline",weight:"strong",children:"Escolha os colaboradores"}),(0,r.jsx)("div",{children:(0,r.jsxs)(l.o,{variant:"caption",className:"text-content-subdued",children:["Voc\xea tamb\xe9m pode definir os valores individualmente para os colaboradores selecionados no campo"," ",(0,r.jsx)("strong",{children:"valor da carga individual"})," na tabela abaixo."]})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,r.jsxs)("div",{className:"flex flex-wrap flex-col gap-8 md:flex-row md:justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-8",children:[(0,r.jsx)(l.o,{variant:"headline",children:"Meus colaboradores"}
1),(0,r.jsx)(F.v,{colorSet:"primary",label:"".concat(j.toString()," ").concat("selecionado".concat(N?"s":"")),onClick:()=>{0!==j&&n(!0)},className:0===j?"cursor-default":"cursor-pointer underline"})]}),(0,r.jsx)(M.vj,{initialValue:u.q,placeholder:"Busque por Nome, CPF, matr\xedcula ou grupo",cta:e=>m({q:e})})]}),(0,r.jsx)(L.Q,{avoidReset:!0,data:null!=b?b:[],columnsVisible:["selection","name-email","document","group","kyc-status","amount",...v?["flexible-wallet"]:[]],isLoading:g,area:"new-order-detached",saveMode:"SELECTED",defaultAmount:c,disableDeniedKycSelection:!0}),(0,r.jsx)(O.x,{currentPage:S,totalPages:w||1,handleSizeChange:e=>{m({...u,size:e})},handlePageChange:e=>{m({...u,page:e-1})},limit:u.size})]})]}),s&&(0,r.jsx)(R,{defaultAmount:c,flexibleEnabled:!!v,onClose:()=>n(!1)})]})};var H=t(27174);let X=()=>(0,r.jsx)(H.s,{});var Y=t(30005);let K=()=>(0,r.jsx)(Y.O,{});var Q=t(64501);let Z=()=>(0,r.jsx)(Q.p,{});var $=t(35284);function J(){return(0,r.jsx)($.l,{})}var ee=t(17380),ea=t(67951);let et=()=>{let{preProcessedOrder:e,controlFlags:a}=(0,y.F)(),t=!!(null==e?void 0:e.warnings),l=a.userHasAcknowledgedWarnings;return t&&!l?(0,r.jsx)(ee.y,{matchBy:"userId"}):(0,r.jsx)(ea.B,{})};var er=t(23089),el=t(53214),es=t(3144),en=t(30121),ei=t(13326),eo=t(65087),ed=t(85639),ec=t(22446),eu=t(41856),em=t(70405),ex=t(16996),eh=t(19101);let ev=e=>{let{onChange:a,handleIsSelectedValidation:t,selectedWalletCode:s,omitList:n}=e,[i,o]=(0,E.useState)(!1),{data:d,mutate:c,isLoading:u}=(0,ex.i)(),m=(0,E.useMemo)(()=>{var e;let a=null==d||null==(e=d.filter(e=>!(null==n?void 0:n.includes(e.code))))?void 0:e.map(e=>(0,eh.T)(e));return null==a||a.sort((e,a)=>e&&a?e.globalSortPriority-a.globalSortPriority:0),a},[d,n]);return u?(0,r.jsx)("div",{className:"flex justify-center p-16",children:(0,r.jsx)(en.F,{size:48})}):(null==m?void 0:m.length)&&(null==d?void 0:d.length)?(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(em.A,{onClose:()=>o(!1),currentWallets:d,onFinish:()=>{c(),o(!1)}}),(0,r.jsx)(eu.i,{selectorProps:{type:"radio"},isSelectedValidation:t,onSelectorChange:e=>{let t=null==d?void 0:d.find(a=>a.code===e);t&&a(t)},children:(0,r.jsx)("div",{className:"grid gap-24 mb-32 p-16 border border-solid border-border-default rounded-lg md:p-32",children:(0,r.jsxs)("div",{className:"flex flex-col gap-24 max-w-[816px]",children:[(0,r.jsxs)("div",{className:"flex w-full justify-between gap-16",children:[(0,r.jsxs)("div",{className:"flex items-center gap-8",children:[(0,r.jsx)(ei.g,{colorSet:"contrast",size:32,icon:"star"}),(0,r.jsx)(l.o,{variant:"headline",weight:"medium",children:"Minhas carteiras"})]}),(0,r.jsx)(eo.$,{variant:"alternativeText",width:"auto",size:32,className:"text-content-primary underline font-content",onClick:()=>o(!0),children:"alterar"})]}),(0,r.jsx)(ed.z6,{"aria-label":"Suas carteiras favoritas",value:s,children:(0,r.jsx)("div",{className:"grid gap-24",children:m.map(e=>e?(0,r.jsx)(ec.E,{wallet:e},e.code):null)})})]})})})]}):null};var ep=t(82961);async function eg(e){let[a]=e,{data:t}=await w.r.get("private/order/last-codes",{params:{creationType:a}});return t}var ej=t(94363);let ef=e=>{var a;let{onChange:t,handleIsSelectedValidation:s,selectedWalletCode:n,omitList:i}=e,{data:o}=(0,ej.S)(),{data:d}=(0,ep.Ay)(["SINGLE"],eg,{...void 0,revalidateOnFocus:!1}),c=(0,E.useMemo)(()=>{var e,a;return(null==d||null==(e=d.codes)?void 0:e.length)?null==d||null==(a=d.codes)?void 0:a.reduce((e,a)=>{if(null==i?void 0:i.includes(a))return e;let t=null==o?void 0:o.find(e=>e.code===a),r=t&&(0,eh.T)(t);return r?[...e,r]:e},[]):[]},[o,d,i]);return c.length&&(null==d||null==(a=d.codes)?void 0:a.length)?(0,r.jsx)(eu.i,{selectorProps:{type:"radio"},isSelectedValidation:s,onSelectorChange:e=>{let a=null==o?void 0:o.find(a=>a.code===e);a&&t(a)},children:(0,r.jsx)("div",{className:"grid gap-24 mb-32 p-16 border border-solid border-border-default rounded-lg md:p-32",children:(0,r.jsxs)("div",{className:"flex flex-col gap-24 max-w-[816px]",children:[(0,r.jsxs)("div",{className:"flex items-center gap-8",children:[(0,r.jsx)(ei.g,{colorSet:"contrast",size:32,icon:"update"}),(0,r.jsx)(l.o,{variant:"headline",weight:"medium",children:"Seu \xfaltimo pedido avulso"})]}),(0,r.jsx)(ed.z6,{"aria-label":"\xdaltima carteira utilizada",value:n,children:(0,r.jsx)("div",{className:"grid gap-24",children:c.map(e=>e?(0,r.jsx)(ec.E,{wallet:e},e.code):null)})})]})})}):null};var eb=t(25770),ew=t(92491);let eN=["v502","v104","v131"],eS=e=>{let{onChange:a,handleIsSelectedValidation:t,selectedWalletCode:s}=e,{data:n}=(0,ej.S)(),i=(0,E.useMemo)(()=>eN.reduce((e,a)=>{let t=null==n?void 0:n.find(e=>e.code===a),r=t&&(0,eh.T)(t);return r?[...e,r]:e},[]),[n]);return i.length?(0,r.jsx)(eu.i,{selectorProps:{type:"radio"},isSelectedValidation:t,onSelectorChange:e=>{let t=null==n?void 0:n.find(a=>a.code===e);t&&a(t)},children:(0,r.jsx)("div",{id:"celebratory-wallets-container",children:(0,r.jsx)(eb.o,{borderColor:"rainbow",className:"grid gap-24 mb-32 p-16 rounded-lg md:p-32",children:(0,r.jsxs)("div",{className:"flex flex-col gap-24 max-w-[816px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-8",children:[(0,r.jsx)(ei.g,{colorSet
1:"contrast",size:32,icon:"christmas-tree"}),(0,r.jsx)(l.o,{variant:"headline",weight:"medium",children:"Carteiras comemorativas"})]}),(0,r.jsx)("div",{children:(0,r.jsx)(l.o,{variant:"body",className:"text-content-subdued",children:"Espalhe a alegria natalina com a Swile \uD83D\uDDA4"})})]}),(0,r.jsx)(ew.F,{severity:"warning",p:8,children:(0,r.jsxs)(l.o,{variant:"caption",className:"text-content-subdued",children:[(0,r.jsx)("strong",{children:"Aviso:"})," As carteiras comemorativas n\xe3o permitem transfer\xeancias (TED / Pix) ou saques, o saldo carregado nelas se utiliza exclusivamente atrav\xe9s do cart\xe3o Swile."]})})]}),(0,r.jsx)(ed.z6,{"aria-label":"Carteiras comemorativas",value:s,children:(0,r.jsx)("div",{className:"grid gap-24",children:i.map(e=>e?(0,r.jsx)(ec.E,{wallet:e},e.code):null)})})]})})})}):null};var eE=t(70091);let eC=e=>{let{setNeedConfirmation:a}=e,[t,s]=(0,E.useState)(!1),{product:n,updateProduct:i}=(0,A.n)(),o=eE.Nt?void 0:eN,d=e=>(null==n?void 0:n.code)===e,c=e=>{a(!0),i(e),m.vz.sendEvent({label:"order detached wallet selected",metadata:{wallet:e.name}})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.o,{variant:"h3",className:"mb-24",children:"Selecione uma carteira para fazer o pedido de carga"}),(0,r.jsx)(ev,{onChange:c,handleIsSelectedValidation:d,selectedWalletCode:(null==n?void 0:n.code)||"",omitList:o}),(0,r.jsx)(ef,{onChange:c,handleIsSelectedValidation:d,selectedWalletCode:(null==n?void 0:n.code)||"",omitList:o}),eE.Nt&&(0,r.jsx)(eS,{onChange:c,handleIsSelectedValidation:d,selectedWalletCode:(null==n?void 0:n.code)||""}),(0,r.jsxs)("button",{"aria-label":"show-all-wallets",onClick:()=>s(!t),className:"flex mb-32 gap-16 items-center",children:[(0,r.jsx)(l.o,{variant:"h3",children:"Todas as carteiras"}),(0,r.jsx)(el.I,{name:"chevron-right",size:20,className:(0,es.cn)("transition-transform duration-300 ease-in-out",t?"rotate-90":"")})]}),t&&(0,r.jsx)(er.d,{selectorProps:{type:"radio",value:null==n?void 0:n.code},isSelectedValidation:d,onChange:c,omitList:o})]})},ey=["Wallet Selection","Data","Summary","Payment","Scheduling","Fiscal Note Benefit","Fiscal Note Incentive"];var eA=function(e){return e[e.PRODUCTS=1]="PRODUCTS",e[e.DATA=2]="DATA",e[e.SUMMARY=3]="SUMMARY",e[e.PAYMENT=4]="PAYMENT",e[e.SCHEDULING=5]="SCHEDULING",e[e.FISCAL_NOTE=6]="FISCAL_NOTE",e}(eA||{});let eP=()=>{let{product:e,resetAllData:a,amount:t}=(0,A.n)(),{renewJourneyId:l}=(0,x.X)(),{savePreProcessResult:s,fiscalNote:n,payment:i,resetAllData:w,preProcessedOrder:k,validatePaymentStep:D,validateSchedulingStep:F,controlFlags:L,updateControlFlags:M}=(0,y.F)(),[O,G]=(0,E.useState)(),[_,V]=(0,E.useState)(!1),{user:{corporate:B}}=(0,P.B)(),[U,W,R]=(0,C.a)(e=>[e.selected,e.resetAllData,e.individualAmounts]),[H,Y]=(0,E.useState)(null!==e),{isMutating:Q,execute:$}=(0,p.o)({onError:e=>{let{errorCode:a,message:t}=e;(0,h.R)({title:null!=a?a:"Aten\xe7\xe3o!",message:t,variant:"error"})},onSuccess:()=>{Y(!1),G(0===i.total?"detached/success/swile-credit":"detached/success")}}),{push:ee,back:ea}=(0,v.useRouter)(),{resetStepper:er,current:el,updateStep:es}=(0,z.I)(),{trigger:en,isMutating:ei}=function(){let{trigger:e,error:a,isMutating:t}=(0,N.A)(["preProcessDetached"],S);return{trigger:e,error:a,isMutating:t}}(),eo=async()=>{try{if(!e)throw Error("O benef\xedcio n\xe3o foi selecionado!");let a={corporateId:String(null==B?void 0:B.data.corporateId),data:U.map(a=>{var r;let l={};if(l[e.code]=null!=(r=null==R?void 0:R[a.idEmployee])?r:t,!a.userId)throw Error("Foi detectado um erro ao processar o pedido avulso por falta da ID de um ou mais colaboradores. Por favor, tente novamente ou contacte o suporte.");return{userId:a.userId,cardValues:l}})},r=await en(a);if(!r.valueCredit)throw new I.X("O valor total do pedido n\xe3o pode ser zero",{requestData:a,responseData:r});return s(r),!0}catch(e){return m.vz.sendEvent({label:"order detached pre process error",metadata:{orderType:"SINGLE",errorMessage:e.message}}),(0,b.x)({error:e,loggerMessage:"Error preprocessing detached order",toastFallbackMessage:"Erro ao preprocessar pedido avulso"}),!1}};async function ed(){if(m.vz.sendEvent({label:"order detached next step",metadata:{orderType:"SINGLE",currentStep:ey[el-1]}}),2===el)return m.vz.sendEvent({label:"order detached data setted",metadata:{amount:t,selectedEmployees:U.length,orderType:"SINGLE"}}),await eo();if(3===el){let e=null==k?void 0:k.warnings,a=L.userHasAcknowledgedWarnings;return e&&!a?M({userHasAcknowledgedWarnings:!0}):V(!0),!1}return!0}let ec=(null==e?void 0:e.category)==="CAMPAIGN",eu=(0,E.useMemo)(()=>{switch(el){case 1:return!!e;case 2:return U.length>0;case 6:if(ec)return!i.swileCreditIncentiveAmount||0===(0,T.H)({num1:n.incentive.swileCreditUsed,num2:i.swileCreditIncentiveAmount,decimalPlaces:2});return!i.swileCreditBenefitAmount||0===(0,T.H)({num1:n.benefit.swileCreditUsed,num2:i.swileCreditBenefitAmount,decimalPlaces:2});case 4:return D();case 5:return F();default:return!0}}
1,[el,e,U.length,n.incentive.swileCreditUsed,n.benefit.swileCreditUsed,i,ec,D,F]);async function em(){await $("SINGLE")}return(0,E.useEffect)(()=>{O&&ee(O)},[O,ee]),(0,E.useEffect)(()=>{1===el&&(l(),m.vz.sendEvent({label:"order create initiated",metadata:{orderType:"SINGLE"}}))},[]),(0,r.jsxs)(o.a,{children:[(0,r.jsxs)(c.A,{area:"create-order-detached-area",onBeforeNext:ed,onBeforePrevious:()=>(m.vz.sendEvent({label:"order detached previous step",metadata:{orderType:"SINGLE",currentStep:ey[el-1]}}),!0),onSubmit:em,isNextDisabled:!eu,isLoading:!1,saveState:!0,goToNextOnKeydown:!1,onExitStepper:()=>{ea()},showProgressTrackerDivider:!0,marginSize:"small",children:[(0,r.jsx)(u.A,{title:"Carteiras",children:(0,r.jsx)("div",{id:"create-order-detached-product-step",children:(0,r.jsx)(eC,{setNeedConfirmation:Y})})}),(0,r.jsx)(u.A,{title:"Dados",children:(0,r.jsx)("div",{id:"create-order-detached-data-step",children:(0,r.jsx)(q,{})})}),(0,r.jsx)(u.A,{title:"Resumo",children:(0,r.jsx)("div",{id:"create-order-detached-summary-step",children:(0,r.jsx)(et,{})})}),(0,r.jsx)(u.A,{title:"Pagamento",children:(0,r.jsx)("div",{id:"create-order-detached-payment-step",children:(0,r.jsx)(Z,{})})}),(0,r.jsx)(u.A,{title:"Agendamento",children:(0,r.jsx)(J,{})}),e&&ec?(0,r.jsx)(u.A,{title:"Nota Fiscal Pagamentos e premia\xe7\xf5es",children:(0,r.jsx)("div",{id:"create-order-detached-nf-campaign-step",children:(0,r.jsx)(K,{})})}):(0,r.jsx)(u.A,{title:"Nota Fiscal Benef\xedcio",children:(0,r.jsx)("div",{id:"create-order-detached-nf-flexible-step",children:(0,r.jsx)(X,{})})})]}),(0,r.jsx)(g.s,{orderType:"SINGLE",isOpen:ei}),(0,r.jsx)(j.w,{totalEmployees:null==k?void 0:k.totalEmployees,isOpen:Q}),(0,r.jsx)(f.x,{isOpen:_,description:"Voc\xea selecionou a seguinte carteira em seu pedido avulso:",wallets:e?[e]:void 0,onClose:()=>V(!1),onConfirmButtonClick:()=>{V(!1),es(4,"create-order-detached-area")}}),H&&(0,r.jsx)(d.y,{unsavedChanges:H,setUnsavedChanges:Y,screenName:"cria\xe7\xe3o de pedido avulso",onLeavePage:()=>{er(),a(),W(),w()}})]})};var ez=t(27335),eI=t(44703);let eT=()=>(0,r.jsxs)(ez.r,{children:[(0,r.jsx)(n(),{children:(0,r.jsx)("title",{children:"Swile - Pedido avulso"})}),(0,r.jsxs)(i.n,{children:[(0,r.jsx)(l.o,{variant:"h2",children:"Pedido avulso"}),(0,r.jsx)(eP,{})]}),(0,r.jsx)(eI.S,{})]})},83686:()=>{},97642:(e,a,t)=>{"use strict";t.d(a,{X:()=>u});var r=t(37876);t(14232);var l=t(58175),s=t(53214),n=t(48230),i=t.n(n),o=t(47137),d=t(3144);let c=(0,o.F)(["flex gap-4"],{variants:{hasAction:{true:"cursor-pointer",false:"cursor-default"},state:{current:"text-content-default font-medium",done:"text-content-subdued",disabled:"text-content-placeholder cursor-not-allowed"}},defaultVariants:{hasAction:!1,state:"disabled"}}),u=e=>{let{steps:a,currentStep:t,orientation:n="horizontal"}=e;return(0,r.jsx)("nav",{className:(0,d.cn)("grid grid-cols-1 gap-16","horizontal"===n?"md:flex md:flex-wrap md:gap-24":""),children:a.map((e,a)=>{let n=(e=>{let a="disabled";return t===e+1?a="current":t>e+1&&(a="done"),a})(a),o=!!(e.onClick||e.href);return(0,r.jsx)("div",{title:e.label,"data-state":n,children:e.href?(0,r.jsx)(i(),{href:e.href,children:(0,r.jsxs)(l.o,{variant:"callout",className:c({state:n,hasAction:o}),children:["".concat(a+1,". "),(0,r.jsx)("span",{className:"relative",children:e.label})," ",t>a?(0,r.jsx)(s.I,{name:"done"===n?"check":"edit",size:20}):null]})}):(0,r.jsx)("button",{type:"button",onClick:null==e?void 0:e.onClick,children:(0,r.jsxs)(l.o,{variant:"callout",className:(0,d.cn)(c({state:n,hasAction:o})),children:["".concat(a+1,". "),(0,r.jsx)("span",{className:"relative",children:e.label})," ",t>a?(0,r.jsx)(s.I,{name:"done"===n?"check":"edit",size:20}):null]})})},e.label)})})}}},e=>{e.O(0,[5654,2745,9509,6463,9354,6630,1802,8278,5598,6718,3794,7342,3313,1284,4342,19,3353,3058,5905,7290,8457,1283,8028,7554,636,6593,8792],()=>e(e.s=10452)),_N_E=e.O()}]);
2//# sourceMappingURL=detached-9f49e376669ac8c6.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.