1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1e14f091-4c51-52d6-b120-ad61a8a26eb7")}catch(e){}}(); 3import{r as o,f as P,a9 as j,j as d,y as v,P as n}from"./index-CVhO1mfm.js";import{a as D,P as M,b as x,u as g,j as C,k as T,e as L,T as m,l as S,m as E,K as V,d as I,n as F,M as A,D as K,i as R}from"./pt-br-Cs7Pe8Tj.js";import{F as N}from"./Checkout-Eub9Fc76.js";import"./index-C5Xw5HCy.js";import"./whatsappLink-CCcWEDnq.js";import"./Products-Clk528Gk.js";import"./MainPage-CJiEiEiE.js";import"./Tabs-BmQOOuI1.js";import"./PermissionRequest-ChLiACfX.js";var U=E({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),h=function(a){var r=a.date,t=a.views,s=a.setOpenView,i=a.isLandscape,l=a.openView,u=g(),c=U(),p=o.useMemo(function(){return C(t)},[t]),f=o.useMemo(function(){return T(t)},[t]);return o.createElement(L,{isLandscape:i,className:P(!p&&c.toolbar,i&&c.toolbarLandscape)},o.createElement(m,{variant:p?"h3":"subtitle1",onClick:function(){return s("year")},selected:l==="year",label:u.getYearText(r)}),!p&&!f&&o.createElement(m,{variant:"h4",selected:l==="date",onClick:function(){return s("date")},align:i?"left":"center",label:u.getDatePickerHeaderText(r),className:P(i&&c.dateLandscape)}),f&&o.createElement(m,{variant:"h4",onClick:function(){return s("month")},selected:l==="month",label:u.getMonthText(r)}))};function y(e,a){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,t)}return r}function W(e){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?y(r,!0).forEach(function(t){j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=W({},F,{openTo:"date",views:["year","date"]});function O(e){var a=g();return{getDefaultFormat:function(){return S(e.views,a)}}}var w=D({useOptions:O,Input:M,useState:x,DefaultToolbarComponent:h}),B=D({useOptions:O,Input:V,useState:I,DefaultToolbarComponent:h});w.defaultProps=k;B.defaultProps=k;function Y({field:e,onChange:a}){var r;return d.jsx(A,{locale:R,utils:K,children:d.jsx(N,{field:e,children:d.jsx(w,{placeholder:"Selecione uma data",value:e.value?v(e.value,"DD/MM/YYYY"):null,onChange:t=>a(t==null?void 0:t.format("DD/MM/YYYY"),e.id),disablePast:!0,maxDate:((r=e.options)==null?void 0:r.days_limit)>0?v().add(parseInt(e.options.days_limit),"day"):void 0,clearable:!0,fullWidth:!0,format:"DD/MM/YYYY",variant:"dialog",inputVariant:"outlined",clearLabel:"LIMPAR",cancelLabel:"CANCELAR",size:"small"})})})}Y.propTypes={field:n.shape({id:n.number,title:n.string,value:n.string,placeholder:n.string,required:n.bool,options:n.shape({days_limit:n.string})}),onChange:n.func};Y.defaultProps={field:void 0,onChange:void 0};export{Y as default}; 4 5//# debugId=1e14f091-4c51-52d6-b120-ad61a8a26eb7
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.