1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62649],{1131:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(36303),n=r(40170),a=r(42152),l=r(76180);function o(e){let{selectable:t=!1,selected:r=!1,onSelect:o=()=>null,title:s="",subTitle:d="",message:c="",loading:u=!1,className:m="",disabled:h,imgSrc:p,imgOnly:f=!1}=e;return u?(0,i.FD)("div",{className:"bg-theme-3 p-3 text-white text-center rounded-2xl "+m,children:[(0,i.Y)(n.A,{className:"mx-auto w-full max-w-[150px]",sx:{bgcolor:"#686868"}}),(0,i.Y)(n.A,{className:"mx-auto w-full max-w-[200px]",sx:{bgcolor:"#686868"}}),(0,i.Y)(n.A,{className:"mx-auto mt-2 w-full max-w-[300px]",sx:{bgcolor:"#686868"}}),(0,i.Y)(n.A,{className:"mx-auto w-full max-w-[300px]",sx:{bgcolor:"#686868"}})]}):(0,i.FD)("div",{onClick:h?void 0:o,className:["bg-theme-3 p-3 text-white text-center rounded-2xl",t?"border border-transparent hover:border-primary cursor-pointer":"",r?"!border-green-500 scale-105":"",m,h&&"opacity-50 cursor-not-allowed hover:border-transparent"].join(" "),children:[!f&&(0,i.FD)(i.FK,{children:[(0,i.Y)("h2",{className:"text-yellow-400 text-xl font-[500] uppercase font-russoone",dangerouslySetInnerHTML:{__html:s}}),(0,i.Y)("h2",{className:"text-green-500 font-russoone text-xl py-2",dangerouslySetInnerHTML:{__html:d}}),(0,i.Y)("h2",{dangerouslySetInnerHTML:{__html:c},className:"theme-body-md-normal"})]}),p&&(0,i.Y)(a.E,{src:p,alt:"Imagem referente ao produto ".concat(s),className:(0,l.Q)("w-auto rounded-md mt-5 max-w-full max-h-[207px] mx-auto",f&&"mt-0")})]})}},10869:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(36303),n=r(63789),a=r(33026),l=r(70284);function o(e){let{listLength:t,loading:r,children:o,colSpan:s}=e;return r?(0,i.Y)(l.Tr,{children:(0,i.Y)(l.Td,{colSpan:s,children:(0,i.Y)(n.A,{})})}):r||t?(0,i.Y)(i.FK,{children:o}):(0,i.Y)(l.Tr,{children:(0,i.Y)(l.Td,{colSpan:s,children:(0,i.Y)(a.A,{})})})}},15948:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i,n=r(68658);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 96 960 960",width:48},e),i||(i=n.createElement("path",{d:"M261 936q-24.75 0-42.375-17.625T201 876V306h-41v-60h188v-30h264v30h188v60h-41v570q0 24-18 42t-42 18H261Zm438-630H261v570h438V306ZM367 790h60V391h-60v399Zm166 0h60V391h-60v399ZM261 306v570-570Z"})))}},17041:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var i=r(12584),n=r(68658),a=r(71623),l=r(41159),o=r(87293),s=r(18163),d=r(10591),c=r(44615),u=r(91090),m=r(52693),h=r(29093);function p(e){return(0,h.Ay)("MuiSkeleton",e)}(0,m.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var f=r(94458);function g(){let e=(0,i._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return g=function(){return e},e}function b(){let e=(0,i._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return b=function(){return e},e}function v(){let e=(0,i._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return v=function(){return e},e}function x(){let e=(0,i._)(["\n &::after {\n animation: "," 2s linear 0.5s infinite;\n }\n "]);return x=function(){return e},e}let y=(0,s.keyframes)(g()),Y=(0,s.keyframes)(b()),A="string"!=typeof y?(0,s.css)(v(),y):null,w="string"!=typeof Y?(0,s.css)(x(),Y):null,_=(0,d.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,c.A)(e=>{let{theme:t}=e,r=String(t.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",i=parseFloat(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,o.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).c
1oncat(r,"/").concat(Math.round(i/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:e=>{let{ownerState:t}=e;return t.hasChildren},style:{"& > *":{visibility:"hidden"}}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.width},style:{maxWidth:"fit-content"}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.height},style:{height:"auto"}},{props:{animation:"pulse"},style:A||{animation:"".concat(y," 2s ease-in-out 0.5s infinite")}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:"linear-gradient(\n 90deg,\n transparent,\n ".concat((t.vars||t).palette.action.hover,",\n transparent\n )"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:w||{"&::after":{animation:"".concat(Y," 2s linear 0.5s infinite")}}}]}})),D=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:n,component:o="span",height:s,style:d,variant:c="text",width:m,...h}=r,g={...r,animation:i,component:o,variant:c,hasChildren:!!h.children},b=(e=>{let{classes:t,variant:r,animation:i,hasChildren:n,width:a,height:o}=e;return(0,l.A)({root:["root",r,i,n&&"withChildren",n&&!a&&"fitContent",n&&!o&&"heightAuto"]},p,t)})(g);return(0,f.jsx)(_,{as:o,ref:t,className:(0,a.A)(b.root,n),ownerState:g,...h,style:{width:m,height:s,...d}})})},33026:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(36303),n=r(76180);function a(e){let{className:t="",children:r=null}=e;return(0,i.Y)("p",{className:(0,n.Q)("px-4 py-2 theme-body-lg-medium text-center block",t),children:r||"Nenhum registro encontrado!"})}},34089:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i,n=r(68658);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",a({width:20,viewBox:"0 0 20 20",fill:"#FDE047",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=n.createElement("path",{d:"m10 15.77 6.18 3.73-1.64-7.03L20 7.74l-7.19-.61L10 .5 7.19 7.13 0 7.74l5.46 4.73-1.64 7.03L10 15.77Z"})))}},40170:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(36303),n=r(17041);function a(e){let{sx:t,...r}=e;return(0,i.Y)(n.A,{animation:"wave",sx:{bgcolor:"#464545",...t},...r})}},46645:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i,n=r(68658);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",a({width:44,viewBox:"0 0 44 38",fill:"#FF2F55",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=n.createElement("path",{d:"M0 38h44L22 0 0 38Zm24-6h-4v-4h4v4Zm0-8h-4v-8h4v8Z"})))}},46994:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(73495),n=r(69980),a=r(57671);class l{get periodLabel(){return(0,a.A)(this.period)}get title(){return this.productName||this.productsLabelsInstance.map(e=>e.title).join(" + ")}get pricingLabel(){return this.promotionalPrice?"<span class='text-red-500'>\n De ".concat(i.xq.parseToMoney(this.accumulatedPrice/100),"</span> \n por ").concat(i.xq.parseToMoney(this.promotionalPrice/100),"\n "):"Por apenas ".concat(i.xq.parseToMoney(this.price/100))}get description(){return this._description||this.productsLabelsInstance.map(e=>e.description).join(" + ")}get promotionalPrice(){return this.productPrice&&this.productPrice<this.accumulatedPrice?this.productPrice:0}get price(){return this.productPrice||this.accumulatedPrice}get accumulatedPrice(){return this.products.reduce((e,t)=>{let[,,,r]=t;return e+r},0)}constructor(e,t,r,i,a){this.period=e,this.productName=t,this.productPrice
1=r,this.products=i,this._description=a,this.productsLabelsInstance=[],i.forEach(e=>{let[t,r,i,a]=e;this.productsLabelsInstance.push(new n.A(t,this.period,r,i,a))})}}},51346:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(87361);class n extends i.H{getRangeLinesByPage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return[(e-1)*this.limit+1,(e-1)*this.limit+Math.min(t,this.limit)]}onNext(){this.page++}onPrev(){this.page>=1&&this.page--}selectLinePerPage(e){this.limit=e}setPage(e){this.page=e}resetPage(){this.page=1}selectLinePerPageAndReset(e){this.selectLinePerPage(e),this.setPage(1)}constructor(...e){super(...e),this.page=1,this.limit=60,this.optionsLinePerPage=[60,100,150,200]}}},57671:(e,t,r)=>{"use strict";function i(e){switch(e){case"1-month":return"Mensal";case"2-month":return"Bimestral";case"3-month":return"Trimestral";case"6-month":return"Semestral";case"12-month":case"1-year":return"Anual";default:{let t=e.split("-")[0];return"(".concat(t," meses)")}}}r.d(t,{A:()=>i})},58180:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ma-my-admin/assinaturas/ofertas",function(){return r(62302)}])},59254:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var i=Object.prototype.hasOwnProperty;function n(e,t,r){for(r of e.keys())if(a(r,t))return r}function a(e,t){var r,l,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((l=e.length)===t.length)for(;l--&&a(e[l],t[l]););return -1===l}if(r===Set){if(e.size!==t.size)return!1;for(l of e)if((o=l)&&"object"==typeof o&&!(o=n(t,o))||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(l of e)if((o=l[0])&&"object"==typeof o&&!(o=n(t,o))||!a(l[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((l=e.byteLength)===t.byteLength)for(;l--&&e.getInt8(l)===t.getInt8(l););return -1===l}if(ArrayBuffer.isView(e)){if((l=e.byteLength)===t.byteLength)for(;l--&&e[l]===t[l];);return -1===l}if(!r||"object"==typeof e){for(r in l=0,e)if(i.call(e,r)&&++l&&!i.call(t,r)||!(r in t)||!a(e[r],t[r]))return!1;return Object.keys(t).length===l}}return e!=e&&t!=t}},59707:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var i=r(36303),n=r(52134),a=r.n(n),l=r(86954),o=r(78621);let s={0:{paddingBottom:"1.5rem",paddingTop:"1.5rem",paddingLeft:"1.75rem",paddingRight:"1.75rem"},sm:{"@media (min-width: 640px)":{paddingBottom:"1.75rem",paddingTop:"1.75rem",paddingLeft:"2.5rem",paddingRight:"2.5rem"}},lg:{"@media (min-width: 1024px)":{paddingBottom:"2rem",paddingTop:"2rem",paddingLeft:"7rem",paddingRight:"7rem"}}};function d(e){let{children:t,dividers:r=!0,className:n,scroll:l=!0,sx:d,enableSpacing:c,...u}=e;return(0,i.Y)(o.A,{dividers:r,className:a()("dialog-body",n),sx:{overflowY:l?"auto":"visible",...c?{...s[0],...s.sm,...s.lg}:{},...d},...u,children:t})}var c=r(58907),u=r(32532);let m=(0,c.default)(u.A)({"padding-left":"1.5rem","padding-right":"1.5rem"},e=>e.enableSpacing?{...s[0],...s.sm,...s.lg}:{});function h(e){let{children:t,className:r,enableSpacing:n,sx:l,...o}=e;return(0,i.Y)(m,{enableSpacing:n,sx:l,className:a()("dialog-footer py-4",r),...o,children:t})}var p=r(99377),f=r(11792),g=r(12365);let b=c.default.div({paddingLeft:"1.5rem",paddingRight:"1.5rem"},e=>e.enableSpacing?{...s[0],...s.sm,...s.lg}:{});function v(e){let{children:t,className:r,title:n,buttonCloseProps:l,positionButtonClose:o="right",onClose:s,showButtonClose:d=!0,ComponentButtonClose:c=x,enableSpacing:u,...m}=e;return(0,i.FD)("header",{...m,className:a()("flex justify-between relative items-start dialog-header",r),children:[(0,i.Y)(b,{enableSpacing:u,className:a()("content-header py-4 flex-grow",{"order-2":"left"===o}),children:n?(0,i.Y)(f.A,{sx:{p:0},children:n}):t}),s&&d&&(0,i.Y)(c,{buttonCloseProps:l,onClose:s,positionButtonClose:o})]})}function x(e){let{buttonCloseProps:t,onClose:r,positionButtonClose:n="right"}=e;return(0,i.Y)(p.A,{icon:(0,i.Y)(g.A,{className:"!w-5"}),label:"Fechar",variant:"transparent",className:a()({right:"mr-2 mt
1-2 order-2",left:"ml-2 mt-2 order-1"}[n],null==t?void 0:t.className),onClick:r,...t})}var y=r(68658),Y=r(23364),A=r(57200);let w=(0,y.forwardRef)(function(e,t){return(0,i.Y)(Y.A,{direction:"up",ref:t,...e,unmountOnExit:!0})}),_=(0,y.forwardRef)(function(e,t){return(0,i.Y)(Y.A,{direction:"down",ref:t,...e,unmountOnExit:!0})}),D=(0,y.forwardRef)(function(e,t){return(0,i.Y)(Y.A,{direction:"left",ref:t,...e,unmountOnExit:!0})}),P=(0,y.forwardRef)(function(e,t){return(0,i.Y)(Y.A,{direction:"right",ref:t,...e,unmountOnExit:!0})}),N=(0,y.forwardRef)(function(e,t){return(0,i.Y)(A.A,{ref:t,...e,unmountOnExit:!0})});function C(e){let{children:t,maxWidth:r="lg",PaperProps:n={},onClose:o,HeaderComponent:s=v,FooterComponent:c=h,mobileFull:u=!0,showHeader:m=!0,headerButtonCloseProps:p,headerContent:f,headerClassName:g,headerOnClose:b,headerPositionButtonClose:y,headerShowButtonClose:Y,headerTitle:A,headerProps:C,headerComponentButtonClose:F=x,headerEnableSpacing:E=!0,bodyClassName:O,bodyDividers:T=!1,bodyScroll:S=!1,bodySx:k,showBody:L=!0,bodyProps:R,bodyEnableSpacing:M=!0,footerContent:B,footerProps:j,showFooter:I=!0,footerClassName:q,footerSx:Z,footerEnableSpacing:H=!0,transictionType:z,TransitionComponent:W,...V}=e,{className:U,style:X}=n,K=z?(e=>{let t={up:()=>w,down:()=>_,left:()=>D,right:()=>P,zoom:()=>N}[e];return t?t():void 0})(z):void 0;return(0,i.FD)(l.A,{slotProps:{paper:{className:a()("relative",U),style:{backgroundImage:"none",...X},sx:{backgroundColor:"var(--theme-background-1)",borderRadius:"1.5rem",maxHeight:716,...u?{"@media not all and (min-width: 640px)":{maxWidth:"100%",maxHeight:"100%",width:"100%",height:"100%",m:0}}:{},...n.sx}},transition:W||K},maxWidth:r,onClose:o,...V,children:[m&&(0,i.Y)(s,{title:A,onClose:b||o,buttonCloseProps:p,className:g,positionButtonClose:y,showButtonClose:Y,ComponentButtonClose:F,enableSpacing:E,...C,children:f}),L&&(0,i.Y)(d,{dividers:T,className:O,scroll:S,sx:k,enableSpacing:M,...R,children:t}),I&&B&&(0,i.Y)(c,{...j,sx:Z,enableSpacing:H,children:B})]})}},61669:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i,n=r(68658);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -900 900 900",width:48},e),i||(i=n.createElement("path",{d:"M180-180h44l443-443-44-44-443 443v44Zm614-486L666-794l42-42q17-17 42-17t42 17l44 44q17 17 17 42t-17 42l-42 42Zm-42 42L248-120H120v-128l504-504 128 128Zm-107-21-22-22 44 44-22-22Z"})))}},62302:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>em,default:()=>eh});var i=r(36303),n=r(78594),a=r(22738),l=r(82643),o=r(87361),s=r(23243);class d{get isOpen(){return!!this.id}close(){this.id=null}open(e){this.id=e}constructor(){this.id=null}}class c{get isOpen(){return!!this.id}close(){this.id=null}open(e){this.id=e}constructor(){this.id=null}}var u=r(51346),m=r(13464),h=r(72966),p=r(77485),f=r(68658),g=r(59254),b=r(76180),v=r(11493),x=r(53735),y=r(87479),Y=r(47082),A=r(74633),w=r(70284),_=r(78743),D=r(9904),P=r(76898),N=r(93407),C=r(75786),F=r(72928),E=r(99534),O=r(61669),T=r(34089),S=r(15948),k=r(36564),L=r(44588),R=r(89503);let M=(0,f.memo)(function(e){let{onClose:t,onConfirm:r,open:n}=e;return(0,i.Y)(R.A,{open:n,onClose:t,title:"Tem certeza que deseja excluir essa oferta?",subTitle:" Ao Fazer isso, voc\xea estar\xe1 excluindo o registro permanentemente e n\xe3o poder\xe1 ser recuperado. ",onConfirm:r,onCancel:t,buttonConfirmProps:{color:"action"},buttonCancelProps:{color:"danger"}})}),B=(0,f.memo)(function(e){let{onClose:t,onConfirm:r,open:n}=e;return(0,i.Y)(R.A,{open:n,onClose:t,title:"Definir esta oferta como padr\xe3o?",subTitle:" Ao Fazer isso, voc\xea estar\xe1 definindo esta oferta como padr\xe3o no checkout de compra. ",onConfirm:r,onCancel:t,buttonConfirmProps:{color:"action",label:"Definir"},buttonCancelProps:{color:"danger",label:"Cancelar"}})});var j=r(59707),I=r(1131),q=r(46994),Z=r(69980),H=r(73495);function z(e){let{product:t}=e,r=t.price||0,n=!0;r||(n=!1);let a=function(e){switch(e){case"1-month":return"Mensal";case"2-month":return"Bimestral";case"3-month":return"Trimestral";case"6-month":return"Semestral";case"12-month":case"1-year":return"Anual";default:{let[t,r]=e.split("-");return"".concat(t," ").concat("month"===r?"meses":"anos")}}}(t.period_interval),l=new q.A(t.period_interval,t.title||"",t.price||0,t.products.map(e=>[e.type,e.title,e.description,e.price||0]),t.description||null);return(0,i.FD)(i.FK,{children:[(0,i.Y)("li",{children:(0,i.Y)(I.A,{selectable:!1,title:l.title,subTitle:l.pricingLabel,message:l.description,imgSrc:t.img_src,imgOnly:t.img_only})}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Nome: "}),(0,i.Y)(U,{children:l.title})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Tipo: "}),(0,i.Y)(U,{children:"Combo"})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Descri\xe7\xe3o: "}),(0,i.Y)(U,{children:l.description||"-"})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Pre\xe7o: "}),(0,i.Y)(U,{children:H.xq.parseToMoney(l.price/100)})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Tipo de precifica\xe7\xe3o: "}
1),(0,i.Y)(U,{children:n?"\xdanico":"M\xfaltiplo/Acumulativo"})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Periodo: "}),(0,i.Y)(U,{children:a})]})]})}function W(e){let{product:t}=e,r=t.price/100,n=t.is_promotional?t.promotional_price/100:0,a=new Z.A(t.type,t.period_interval,t.title,t.description,t.price,t.is_promotional?t.promotional_price:0);return(0,i.FD)(i.FK,{children:[(0,i.Y)("li",{children:(0,i.Y)(I.A,{selectable:!1,title:a.title,subTitle:a.pricingLabel,message:a.description,imgSrc:t.img_src,imgOnly:t.img_only})}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"ID: "}),(0,i.Y)(U,{children:t.id})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Nome: "}),(0,i.Y)(U,{children:t.title})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Tipo: "}),(0,i.Y)(U,{children:function(e){switch(e){case"DEFAULT":default:return"Assinatura padr\xe3o";case"COURSE":return"Curso"}}(t.type)})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Descri\xe7\xe3o: "}),(0,i.Y)(U,{html:t.description||"-"})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Promocional: "}),(0,i.Y)(U,{className:t.is_promotional?"text-theme-social-google-red":"",children:t.is_promotional?"Sim":"N\xe3o"})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Pre\xe7o normal: "}),(0,i.Y)(U,{children:H.xq.parseToMoney(r)})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Pre\xe7o promocional: "}),(0,i.Y)(U,{children:H.xq.parseToMoney(n)})]}),(0,i.FD)("li",{children:[(0,i.Y)(V,{children:"Periodo: "}),(0,i.Y)(U,{children:a.periodLabel})]})]})}let V=e=>{let{children:t}=e;return(0,i.Y)("span",{className:"text-theme-feedback-notify font-bold w-60 inline",children:t})},U=e=>{let{children:t=null,className:r="",html:n=""}=e;return n?(0,i.Y)("span",{className:(0,b.Q)("inline",r),dangerouslySetInnerHTML:{__html:n||""}}):(0,i.Y)("span",{className:(0,b.Q)("inline",r),children:t})};function X(e){let{product:t}=e,r="products"in t;return(0,i.Y)("ul",{className:"space-y-2",children:r?(0,i.Y)(z,{product:t}):(0,i.Y)(W,{product:t})})}var K=r(36234),Q=r(44240),$=r(18915),J=r(9847),G=r(65547),ee=r(41144);function et(e){let{product:t,onDetail:r}=e,n=0,a=0,l="",o="";if("products"in t)o="COMBO",n=t.price||t.products.reduce((e,t)=>e+t.price,0),l=t.title||t.products.map(e=>e.title).join(" + ");else switch(n=t.price,a=t.is_promotional?t.promotional_price:0,l=t.title,t.type){case"DEFAULT":o="PRO";break;case"COURSE":o="CURSO"}n/=100,a/=100;let s="",d="";switch(t.period_interval){case"1-month":s="Mensal",d="bg-theme-state-focused";break;case"2-month":s="Bimestral",d="bg-theme-state-focused";break;case"3-month":s="Trimestral",d="bg-theme-state-focused";break;case"6-month":s="Semestral",d="bg-theme-state-focused";break;case"12-month":case"1-year":s="Anual",d="bg-theme-state-focused";break;default:{let[e,r]=t.period_interval.split("-");s="".concat(e," ").concat("month"===r?"meses":"anos"),d="bg-red-500"}}return(0,i.FD)("button",{className:"border divide-x divide-gray-700 border-theme-background-4 rounded-md min-w-[200px] flex items-stretch h-full py-2 hover:bg-theme-job-default/25 w-full",onClick:()=>r(t.hashid),children:[(0,i.Y)("p",{className:"text-center px-2 min-w-[150px] flex items-center justify-center",children:a?(0,i.FD)("div",{children:[(0,i.Y)("span",{className:"line-through text-red-500 block",children:H.xq.parseToMoney(n)}),(0,i.Y)("span",{className:"text-green-500 block",children:H.xq.parseToMoney(a)})]}):(0,i.Y)("span",{className:"text-green-500",children:H.xq.parseToMoney(n)})}),(0,i.FD)("div",{className:"px-2 flex items-center gap-2",children:[(0,i.Y)(_.A,{label:s,color:"notify",size:"small",className:d}),(0,i.Y)(_.A,{label:o,color:"purple",size:"small"})]}),(0,i.Y)("p",{className:"px-2 min-w-[200px] text-left text-ellipsis overflow-hidden line-clamp-3",children:l})]})}function er(e){let{isOpen:t,onClose:r,onSubmit:n,initialValues:a}=e,l=(0,$.A)({values:{expires_at:a.expires_at||void 0}});return(0,i.FD)(K.A,{open:t,onClose:r,maxWidth:"sm",children:[(0,i.Y)(Q.h,{children:"Editar Oferta"}),(0,i.FD)($.y,{form:l,handleSubmit:l.methods.handleSubmit(function(e){n({expires_at:e.expires_at?new Date(e.expires_at):void 0})}),children:[(0,i.Y)(J.A,{className:"mb-4 mt-8 block"}),l.renderField({type:"date-time",name:"expires_at",label:"Data de Expira\xe7\xe3o",placeholder:"Selecione a data de expira\xe7\xe3o"}),(0,i.Y)(J.A,{className:"mt-4 block"}),(0,i.Y)($.y.ContainerButton,{className:"gap-x-3",children:(0,i.Y)($.y.SubmitButton,{label:"Salvar",size:"small",className:"w-full"})})]})]})}var ei=r(52327),en=r.n(ei);function ea(e){let{tablePaginationProps:t,isLoadingList:r,list:n,dialogConfirmDeleteProps:a,isLoadingRequest:l,dialogDetailProductProps:o,handleDetailMainProduct:s,handleDetailOrderBumps:d,dialogDetailOrderBumpsProps:c,handleOpenFilter:u,dialogFilterEmailProps:m,filledsFilters:h,handleClone:p,handleEdit:f,handlePause:g,handleSetAsDefault:b,dialogConfirmSetDefaultProps:_,dialogEditProps:D}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)(v.A,{open:l}),(0,i.Y)(M,{...a}),(0,i.Y)(B,{..._}),(0,i.Y)(eo,{...o}),(0,i.Y)(es,{...c}),(0,i.Y)(ed,{...m}),(0,i.Y)(er,{...D}),(0,i.Y)(C.A,{children:(0,i.FD)(x.A,{className:"p-0",children:[(0,i.Y)(y.A,{className:"lg:flex max-lg:space-y-4 items-center justify-between flex-wrap",children:(0,i.Y)(Y.A,{children:"Ofertas criadas"})}),(0,i.Y)("div",{className:"overflow-x-auto",children:(0,i.FD)(w.XI,{className:"w-full min-w-[56.25rem]",children:[(0,i.Y)(w.d8,{children:(0,i.Y)(N.h3,{cols:[{label:"ID"},{colName:"email",label:"Email",hasFilter:h.has("email")},{label:"Tipo de opera\xe7\xe3o"},{label:"Data de expira\xe7\xe3o"},{label:"Taxa"},{label:"Produto principal"},{label:"Order bumps"},{label:"Data de cria\xe7\xe3o"},{label:"A\xe7\xf5es"}],handleFilter:u})}),(0,i.Y)(w.NN,{children:(0,i.Y)(P.sn,{colSpan:10,loading:r,listLength:n.length,children:n.map(e=>(0,i.Y)(el,{...e,handleDelete:a.handleOpen,handleDetailMainProduct:s,handleDetailOrderBumps:d,handlePause:g,handleClone:p,handleEdit:f,handleSetAsDefault:b},e.id))})})]})}),(0,i.Y)(A.A,{children:(0,i.Y)(N.xN,{linePerPage:t.linePerPage,lines:t.lines,optionsLinePerPage:t.optionsLinePerPage,size:t.size,onSelectLinePerPage:t.onSelectLinePerPage,onNext:t.onNext,onPrev:t.onPrev})})]})})]})}let el=(0,f.memo)(function(e){var t;let{handleDelete:r,handleDetailMainProduct:n,handleDetailOrderBumps:a,handlePause:l,handleClone:o,handleEdit:s,handleSetAsDefault:d,...c}=e;return(0,i.FD)(w.Tr,{children:[(0,i.Y)(w.Td,{children:(0,i.Y)("span",{className:"theme-body-sm-bold",children:c.id})}),(0,i.Y)(w.Td,{children:c.user_email?(0,i.Y)("span",{className:"theme-body-sm-bold min-w-[5rem] inline-block",children:c.user_email}):null}),(0,i.Y)(w.Td,{children:"rc_purchase"===c.type?(0,i.Y)(_.A,{label:"RC",color:"purple"}):(0,i.Y)(_.A,{label:"subscription"===c.operation_type_card?"Recorrente":"Pedido",color:"subscription"===c.operation_type_card?"purple":"danger"})}),(0,i.Y)(w.Td,{children:(0,i.Y)("span",{className:"theme-body-sm-bold",children:c.expires_at?(0,i.Y)("span",{className:(0,b.Q)("theme-body-sm-bold",en()(c.expires_at).isBefore(en()())?"text-theme-feedback-notify":""),children:F.A.formatDateToText(c.expires_at)}):"-"})}),(0,i.Y)(w.Td,{children:"rc_purchase"===c.type?(0,i.Y)("span",{className:"theme-body-sm-bold",children:"-"}):(0,i.FD)("span",{className:(0,b.Q)("theme-body-sm-bold",c.fees?"text-theme-feedback-notify":""),children:[c.fees,"%"]})}),(0,i.Y)(w.Td,{children:"rc_purchase"===c.type?(0,i.FD)("div",{className:"border border-theme-background-4 roun
1ded-md min-w-[200px] flex items-center justify-around gap-1 px-2 py-2",children:[(0,i.Y)("span",{className:"theme-body-sm-bold",children:"RC: "+c.rc_amount+" moedas"}),c.is_rc_default&&(0,i.Y)(_.A,{label:"Padr\xe3o",color:"purple"}),c.use_fixed_price&&(0,i.Y)(_.A,{label:"Valor fixo R$ ".concat((null!=(t=c.fixed_price_brl)?t:0).toFixed(2).replace(".",",")),color:"purple"})]}):c.product?(0,i.Y)(et,{product:c.product,onDetail:()=>n(c.id)}):"-"}),(0,i.Y)(w.Td,{children:"rc_purchase"===c.type||0===c.order_bumps.length?"-":(0,i.Y)("button",{className:"text-theme-state-action",onClick:()=>a(c.id),children:"Detalhes"})}),(0,i.Y)(w.Td,{children:(0,i.Y)("span",{className:"theme-body-sm-bold",children:c.created_at?F.A.formatDateToText(c.created_at):"-"})}),(0,i.Y)(w.Td,{children:(0,i.FD)("div",{className:"flex items-center gap-3 sm:gap-2 justify-end",children:[(0,i.Y)(k.A,{control:(0,i.Y)(L.A,{onChange:(e,t)=>l(c.id,!t),name:c.id,value:!c.is_paused,checked:!c.is_paused}),labelPlacement:"top",className:"[&_span]:theme-body-sm-normal",label:"Ativo"}),(0,i.Y)(D.A,{fullRounded:!1,icon:(0,i.Y)(E.A,{className:"!w-[14px] sm:!w-4"}),label:"Clonar",variant:"dark",size:"small",onClick:()=>o(c.id)}),(0,i.Y)(D.A,{fullRounded:!1,icon:(0,i.Y)(O.A,{className:"!w-[14px] sm:!w-4"}),label:"Editar",variant:"dark",size:"small",onClick:()=>s(c.id)}),(0,i.Y)(D.A,{fullRounded:!1,icon:(0,i.Y)(S.A,{className:"!w-[14px] sm:!w-4"}),label:"Excluir",variant:"dark",color:"danger",size:"small",onClick:()=>r(c.id)}),(0,i.Y)(D.A,{fullRounded:!1,icon:(0,i.Y)(T.A,{className:"!w-[14px] sm:!w-4"}),label:"Definir como padr\xe3o",variant:"dark",size:"small",onClick:()=>d(c.id)})]})})]})},g.j),eo=(0,f.memo)(function(e){let{open:t=!0,onClose:r,product:n}=e;if(!n)return null;let a="products"in n;return(0,i.Y)(j.A,{open:t,onClose:r,headerContent:(0,i.Y)("h2",{className:"theme-display-lg-normal",children:"Detalhes do produto"}),maxWidth:"md",children:(0,i.Y)("ul",{className:"space-y-2",children:a?(0,i.Y)(z,{product:n}):(0,i.Y)(W,{product:n})})})},g.j),es=(0,f.memo)(function(e){let{open:t=!0,onClose:r,order_bumps:n}=e;if(!n)return null;let a=1===n.length;return(0,i.Y)(j.A,{open:t,onClose:r,headerContent:(0,i.Y)("h2",{className:"theme-display-lg-normal",children:"Detalhes dos order bumps"}),maxWidth:"md",bodyClassName:a?"":"px-0",children:(0,i.Y)("div",{className:"divide-y divide-gray-700",children:n.map(e=>(0,i.Y)("div",{className:a?"":"px-7 md:px-9 py-8 first:pt-0",children:(0,i.Y)(X,{product:e})},e.hashid))})})},g.j),ed=(0,f.memo)(function(e){let{initialValues:t,onSubmit:r,open:n,onClose:a,onReset:l}=e,o=(0,$.A)({values:{email:(null==t?void 0:t.email)||"",search_type:(null==t?void 0:t.search_type)||"all"}}),s=o.methods.watch("search_type");return(0,i.FD)(K.A,{open:n,onClose:()=>a(),maxWidth:"sm",children:[(0,i.Y)(Q.h,{children:"Filtrar por email"}),(0,i.FD)($.y,{form:o,handleSubmit:o.methods.handleSubmit(function(e){r(e)}),children:[(0,i.Y)(J.A,{className:"mb-4 mt-8 block"}),o.renderField({type:"node",name:"search_type",enableDebounce:!1,render:e=>{let{field:t}=e;return(0,i.FD)("div",{className:"space-y-2 w-full",children:[(0,i.Y)(ee.A,{type:"button",label:"Buscar todos",onClick:()=>t.onChange("all"),color:"all"===t.value?"notify":"action",className:"w-full"}),(0,i.Y)(ee.A,{type:"button",label:"Buscar registros com email",onClick:()=>t.onChange("with-email"),color:"with-email"===t.value?"notify":"action",className:"w-full"}),(0,i.Y)(ee.A,{type:"button",label:"Buscar registros sem email",onClick:()=>t.onChange("non-email"),color:"non-email"===t.value?"notify":"action",className:"w-full"}),(0,i.Y)(ee.A,{type:"button",label:"Buscar por email espec\xedfico",onClick:()=>t.onChange("search-email"),color:"search-email"===t.value?"notify":"action",className:"w-full"})]})}}),"search-email"===s&&o.renderField({type:"email",name:"email",label:"Email",placeholder:"Digite o email para buscar",showLabelOptional:!1}),(0,i.Y)(J.A,{className:"mt-4 block"}),(0,i.Y)(G.A,{onClear:()=>{o.methods.reset(),l()}})]})]})},g.j);class ec extends o.H{get isOpenProductDetail(){return null!==this.mainProductDetail}get isOpenOrderBumpsDetail(){return null!==this.orderBumpsDetail}setDeps(e){this._deps||(this._deps=e)}get deps(){if(!this._deps)throw Error("Deps not set");return this._deps.current}onDeleteOffer(){let e=this.dialogRemove.id;e&&this.deps.removeItem(e,{onSuccess:(e,t,r)=>{(0,l.oR)(e.message,{type:"success"}),this.deps.refetchAllAdsList(),this.dialogRemove.close()},onError(e,t,r){(0,l.oR)(e.message,{type:"error"})}})}findOfferById(e){let t=this.deps.data;if(!t)return;let r=t.results.find(t=>
1t.id===e);if(r)return r}handleDetailMainProduct(e){let t=this.findOfferById(e);t&&t.product&&(this.mainProductDetail=t.product)}handleCloseDetailMainProduct(){this.mainProductDetail=null}handleDetailOrderBumps(e){let t=this.findOfferById(e);t&&(this.orderBumpsDetail=t.order_bumps)}handleCloseDetailOrderBumps(){this.orderBumpsDetail=null}handleOpenFilter(e){"email"===e&&(this.openedFilterEmail=!0)}handleCloseFilterEmail(){this.openedFilterEmail=!1}onSubmitFilterEmail(e){this.filterEmail=e,this.openedFilterEmail=!1,this.filledsFilters.add("email")}onResetFilterEmail(){this.filledsFilters.delete("email"),this.filterEmail=null}handleClone(e){var t;let r,i=this.findOfferById(e);i&&"rc_purchase"!==i.type&&(r="products"in i.product?i.product.products.map(e=>({id:e.hashid})):[{id:i.product.hashid}],s.I.to(["NEW_OFFER"],{id:i.id,expires_at:i.expires_at,user_email:i.user_email,fees:i.fees,operation_type_card:i.operation_type_card,products:r,period:null==(t=i.product)?void 0:t.period_interval,order_bumps:i.order_bumps.map(e=>{if("products"in e)return{products:e.products.map(e=>e.hashid),title:e.title,description:e.description,price:e.price,period:e.period_interval};{let[t]=e.hashid.split(":");return{type:t,product:e.hashid}}})}))}handlePause(e,t){this.deps.updateOffer({offer_id:e,is_paused:t},{onSuccess:(r,i,n)=>{(0,l.oR)(r.message,{type:"success"}),this.deps.updateWith(e,{is_paused:t}),this.deps.refetchAllAdsList()},onError(e,t,r){(0,l.oR)(e.message,{type:"error"})}})}handleSetAsDefault(e){this.dialogSetDefault.open(e)}confirmSetAsDefault(){let e=this.dialogSetDefault.id;e&&this.deps.setAsDefault(e,{onSuccess:(e,t,r)=>{(0,l.oR)(e.message,{type:"success"}),this.deps.refetchAllAdsList(),this.dialogSetDefault.close()},onError(e,t,r){(0,l.oR)(e.message,{type:"error"})}})}handleEdit(e){let t=this.findOfferById(e);if(t){if("rc_purchase"===t.type)return void s.I.to(["EDIT_RC_OFFER",e],{rc_amount:t.rc_amount,discount_type:t.discount_type,discount_config:t.discount_config,use_fixed_price:t.use_fixed_price,fixed_price_brl:t.fixed_price_brl,user_email:t.user_email,expires_at:t.expires_at});this.dialogEditId=e}}handleCloseEdit(){this.dialogEditId=null}handleSubmitEdit(e){let t=this.dialogEditId;t&&this.deps.updateOffer({offer_id:t,expires_at:e.expires_at},{onSuccess:(r,i,n)=>{(0,l.oR)(r.message,{type:"success"}),this.deps.updateWith(t,{expires_at:e.expires_at}),this.deps.refetchAllAdsList(),this.handleCloseEdit()},onError(e,t,r){(0,l.oR)(e.message,{type:"error"})}})}constructor(...e){super(...e),this._deps=null,this.pagination=o.H.reactive(new u.A),this.dialogRemove=o.H.reactive(new c),this.dialogSetDefault=o.H.reactive(new d),this.mainProductDetail=null,this.orderBumpsDetail=null,this.filterEmail=null,this.openedFilterEmail=!1,this.dialogEditId=null,this.filledsFilters=new Set}}function eu(){let e=(0,o.A)(()=>new ec),{data:t,isLoading:r,refetch:n,updateWith:l}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=["paginated-offers",t,e,JSON.stringify(r)];return(0,m.Ou)(i,()=>h.A.signature.listAllOffersPaginated({page:e,limit:t,filters:r}))}(e.$(e=>e.pagination.page),e.$(e=>e.pagination.limit),{user_email:e.$(e=>{var t,r;let i;switch(null==(t=e.filterEmail)?void 0:t.search_type){case"with-email":i="with-email";break;case"non-email":i="non-email";break;case"all":i=void 0;break;default:i=null==(r=e.filterEmail)?void 0:r.email}return i})}),s=(0,m.n_)({mutationFn:e=>h.A.signature.removeOfferById(e)}),d=(0,p.A)(),c=(0,m.n_)({mutationFn:e=>h.A.signature.setOfferAsDefault(e)});e.setDeps((0,a.l0)({removeItem:s.mutate,setAsDefault:c.mutate,refetchAllAdsList:n,data:t,updateOffer:d.mutate,updateWith:(e,r)=>{l({pagination:t.pagination,results:t.results.map(t=>t.id===e?{...t,...r}:t)})}}));let u=null==t?void 0:t.results.find(t=>t.id===e.dialogEditId);return e.$(e=>(0,i.Y)(ea,{tablePaginationProps:{linePerPage:e.pagination.limit,lines:e.pagination.getRangeLinesByPage((null==t?void 0:t.pagination.page)||1,(null==t?void 0:t.results.length)||0),optionsLinePerPage:e.pagination.optionsLinePerPage,size:(null==t?void 0:t.pagination.size)||0,onSelectLinePerPage:e.pagination.selectLinePerPageAndReset,onNext:e.pagination.onNext,onPrev:e.pagination.onPrev},isLoadingList:r,list:(null==t?void 0:t.results)||[],dialogConfirmDeleteProps:{open:e.dialogRemove.isOpen,onClose:e.dialogRemove.close,onConfirm:e.onDeleteOffer,handleOpen:e.dialogRemove.open},isLoadingRequest:s.isLoading||d.isLoading||c.isLoading,dialogDetailProductProps:{open:e.isOpenProductDetail,onClose:e.handleCloseDetailMainProduct,product:e.mainProductDetail},dialogDetailOrderBumpsProps:{open:e.isOpenOrderBumpsDetail,onClose:e.handleCloseDetailOrderBumps,order_bumps:e.orderBumpsDetail},handleDetailMainProduct:e.handleDetailMainProduct,handleDetailOrderBumps:e.handleDetailOrderBumps,handleOpenFilter:e.handleOpenFilter,dialogFilterEmailProps:{open:e.openedFilterEmail,onClose:e.handleCloseFilterEmail,onSubmit:e.onSubmitFilterEmail,initialValues:e.filterEmail,onReset:e.onResetFilterEmail},filledsFilters:e.filledsFilters,handleClone:e.handleClone,handlePause:e.handlePause,handleEdit:e.handleEdit,handleSetAsDefault:e.handleSetAsDefault,dialogConfirmSetDefaultProps:{open:e.dialogSetDefault.isOpen,onClose:e.dialogSetDefault.close,onConfirm:e.confirmSetAsDefault},dialogEditProps:{initialValues:{expires_at:(null==u?void 0:u.expires_at)||void 0},isOpen:null!==e.dialogEditId,onClose:e.handleCloseEdit,onSubmit:e.handleSubmitEdit}}))}var em=!0;let eh=()=>((0,a.VY)(),(0,i.FD)(i.FK,{children:[(0,i.Y)(n.bV,{title:"Meu ajudante - Lista de ofertas",nofollow:!0,noindex:!0}),(0,i.Y)(eu,{})]}))},63789:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(36303);function n(e){return(0,i.Y)("span",{className:"theme-body-md-medium",children:e.children||"Carregando..."})}},69980:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(73495),n=r(57671);class a{get periodLabel(){return(0,n.A)(this.period)}get title(){switch(this.productType){case"DEFAULT":return"Plano ".concat(this.periodLabel," PRO");case"COURSE":return"Plano ".concat(this.periodLabel," ").concat(this.productName,"
1(Curso)")}}get pricingLabel(){return this.productPromotionalPrice?"<span class='text-red-500'>\n De ".concat(i.xq.parseToMoney(this.productPrice/100),"</span> \n por ").concat(i.xq.parseToMoney(this.productPromotionalPrice/100),"\n "):"Por apenas ".concat(i.xq.parseToMoney(this.productPrice/100))}get description(){return this.productDescription||this.productName}constructor(e,t,r,i,n,a=0){this.productType=e,this.period=t,this.productName=r,this.productDescription=i,this.productPrice=n,this.productPromotionalPrice=a}}},72928:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(52327),n=r.n(i),a=r(60575);class l{static msToSecond(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return a.A.precision(e/1e3,t)}static formatDateToText(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?n()(e).format("DD/MM/YYYY - HH:mm"):n()(e).format("DD/MM/YYYY")}}},76898:(e,t,r)=>{"use strict";r.d(t,{Dl:()=>a.A,VW:()=>n.A,sn:()=>i.A});var i=r(10869),n=r(64725),a=r(92279)},77485:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(13464),n=r(72966);function a(){return(0,i.n_)({mutationFn:e=>n.A.signature.updateOffer(e)})}},89503:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(36303),n=r(68658),a=r(46645),l=r(41144),o=r(59707);let s=(0,n.memo)(function(e){let{open:t,title:r,subTitle:n,onConfirm:s,onCancel:c,onClose:u,labelButtonCancel:m="Manter",labelButtonConfirm:h="Excluir",loading:p,buttonCancelProps:f,buttonConfirmProps:g,themeColor:b="var(--theme-feedback-danger)"}=e;return(0,i.FD)(o.A,{open:t||!1,onClose:p?()=>null:u,maxWidth:"sm",PaperProps:{className:"bg-theme-1 rounded-[32px]"},children:[(0,i.Y)(d,{title:r,iconElement:(0,i.Y)(a.A,{}),borderColor:"border-[#7F8C8F]",className:"[&_*[data-content]>span]:pb-2",theme:b,subTitle:n?(0,i.Y)("span",{className:"theme-body-md-medium text-white",children:n}):null}),(0,i.FD)("div",{className:"flex space-x-5 justify-end mt-10",children:[(0,i.Y)(l.A,{label:h,onClick:s,color:"danger",active:!p,loading:p,loadingPosition:"end",...g}),(0,i.Y)(l.A,{label:m,onClick:c,active:!p,...f})]})]})}),d=(0,n.memo)(function(e){let{iconElement:t,title:r,subTitle:n,subTitleElement:a="p",afterTitle:l,beforeTitle:o,right:s,theme:d="var(--theme-brand-red)",borderColor:c="border-theme-state-disabled",style:u,id:m,className:h}=e;return(0,i.FD)("section",{className:h,style:{...u,"--theme":d},id:m,children:[(0,i.Y)("div",{className:"mb-4 md:mb-5 lg:mb-7 max-md:[&>*]:w-6 max-lg:[&>*]:w-7 px-1 [&>*]:fill-[var(--theme)]",children:t}),(0,i.FD)("div",{className:"flex justify-between items-center","data-content":!0,children:[(0,i.FD)("span",{className:"theme-title-xs-bold sm:theme-title-sm-bold text-white border-b-4 flex items-center -mb-0.5 px-1 pb-2",style:{borderColor:"var(--theme)"},children:[o,r,l]}),s]}),(0,i.Y)("hr",{className:c}),"string"==typeof n?(0,i.Y)(a,{dangerouslySetInnerHTML:{__html:n},className:"theme-title-sm-normal text-theme-highlight mt-3 md:mt-4 lg:mt-6 max-md:text-lg max-lg:text-xl"}):(0,i.Y)(a,{className:"theme-title-sm-normal text-theme-highlight mt-3 md:mt-4 lg:mt-6 max-md:text-lg max-lg:text-xl",children:n})]})})},99534:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i,n=r(68658);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:24,fill:"#1f1f1f"},e),i||(i=n.createElement("path",{d:"M320-240q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320Zm0-80h480v-320H520v-160H320v480Zm0-480v480-480ZM240-80v-80h80v80h-80Zm-80-640H80q0-33 23.5-56.5T160-800v80ZM400-80v-80h80v80h-80Zm160 0v-80h80v80h-80Zm-400-80v80q-33 0-56.5-23.5T80-160h80Zm-80-80v-80h80v80H80Zm0-160v-80h80v80H80Zm0-160v-80h80v80H80Zm640 400h80q0 33-23.5 56.5T720-80v-80Z"})))}}},e=>{e.O(0,[12940,12905,17349,28894,90636,46593,38792],()=>e(e.s=58180)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.