1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6035],{87229:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/example",function(){return n(22263)}])},95427:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var l=n(85893);n(67294);var r=n(14225);let i=e=>{let{label:t="Button",...n}=e;return(0,l.jsx)(r.z,{...n,children:t})}},73641:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var l=n(85893);n(67294);let r=e=>{let{children:t,onSubmit:n,ref:r,withArray:i}=e,a=e=>{e.preventDefault();let t=e.currentTarget,l=new FormData(t),r=l.entries(),a=Object.fromEntries(r);i&&(a=Object.keys(a).reduce((e,t)=>{if(t.includes("[")){let[n,l]=t.split("[");return l.replace("]",""),e[n]||(e[n]=[]),e[n].push(a[t]),e}return e[t]=a[t],e},{})),n(a)};return(0,l.jsx)("form",{ref:r,onSubmit:a,style:{width:"100%",height:"100%"},children:t})}},28410:function(e,t,n){"use strict";n.d(t,{Q:function(){return d}});var l=n(85893);n(67294);var r=n(38049),i=n(39371),a=n(82140),o=n(33090),s=n(32735),u=n(76627),c=n.n(u);let d=e=>{let{label:t,error:n,labelStyle:u,mask:d,ref:p,suffix:h,block:m,autoComplete:x,...f}=e,b="email"===f.type,v=e=>{var t;e.target.value=e.target.value.replace(/\s/g,""),null===(t=f.onChange)||void 0===t||t.call(f,e)};return(0,l.jsxs)(r.NI,{hidden:f.hidden,children:[t&&(0,l.jsx)(i.l,{pl:2,...u,children:t}),(0,l.jsxs)(a.B,{children:[(0,l.jsx)(o.I,{as:c(),...f,mask:d,ref:p,readOnly:m,autoComplete:x,onChange:b?v:f.onChange}),h&&(0,l.jsx)(s.x,{children:h})]}),n&&(0,l.jsx)(r.Q6,{color:"red.500",pl:2,m:0,children:n})]})}},54580:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var l=n(85893);n(67294);var r=n(45161),i=n(38049),a=n(39371),o=n(41731);let s=e=>{let{label:t,error:n,labelStyle:s,options:u=[],onChange:c,selectedValue:d,placeholder:p,optionStyle:h,...m}=e,x=(0,r.ff)("#000","#FFF");return(0,l.jsxs)(i.NI,{children:[t&&(0,l.jsx)(a.l,{pl:2,...s,children:t}),(0,l.jsxs)(o.P,{...m,contentEditable:"inherit",onChange:e=>{let t=e.target.value;""===t&&(t=null),c(t)},children:[(0,l.jsx)("option",{value:"",selected:null===d,style:{color:x},children:p||"Selecione uma op\xe7\xe3o"}),u.map((e,t)=>(0,l.jsx)("option",{value:e.value,selected:e.value===d,style:{color:x},children:e.label},t))]}),n&&(0,l.jsx)(i.Q6,{color:"red.500",pl:2,m:0,children:n})]})}},2324:function(e,t,n){"use strict";n.d(t,{E:function(){return p}});var l=n(85893),r=n(38049),i=n(39371),a=n(57747),o=n(5152),s=n.n(o),u=n(67294);let c=s()(()=>Promise.all([n.e(5714),n.e(1876),n.e(3829)]).then(n.t.bind(n,21288,23)),{loadableGenerated:{webpack:()=>[21288]},ssr:!1}),d=["Arial","Comic Sans MS","Courier New","Impact","Georgia","Tahoma","Trebuchet MS","Verdana"],p=e=>{let{label:t,labelStyle:n,flex:o,onBlur:s,defaultValue:p}=e,[h,m]=(0,u.useState)(),x=(0,u.useRef)(),f=e=>{x.current=e},b=["Logical","Salesforce Sans","Garamond","Sans-Serif","Serif","Times New Roman","Helvetica",...d].sort();(0,u.useEffect)(()=>{null!==p&&m(p)},[p]);let v=e=>{m(e),s&&s(e)};return(0,u.useEffect)(()=>{var e;null===(e=document.querySelector("#suneditorSubmit"))||void 0===e||e.addEventListener("click",function(e){x.current&&x.current.save()},!1)},[]),(0,l.jsxs)(r.NI,{flex:o,children:[t&&(0,l.jsx)(i.l,{pl:2,...n,children:t}),(0,l.jsx)(a.xu,{w:"100%",children:(0,l.jsx)(c,{getSunEditorInstance:f,lang:"pt_br",height:"100%",onChange:v,setContents:h,setOptions:{buttonList:[["undo","redo"],["font","fontSize"],["paragraphStyle","blockquote"],["bold","underline","italic","strike","subscript","superscript"],["fontColor","hiliteColor"],["align","list","lineHeight"],["outdent","indent"],["table","horizontalRule","link","image","video"],["fullScreen","showBlocks","codeView"],["preview","print"]],defaultTag:"div",minHeight:"300px",showPathLabel:!1,font:b}})})]})}},22263:function(e,t,n){"use strict";n.r(t);var l=n(85893),r=n(95427),i=n(73641),a=n(28410),o=n(54580),s=n(2324),u=n(47188),c=n(93717);let d=()=>(0,l.jsxs)(c.k,{direction:"column",w:"100%",h:"100%",p:4,align:"center",children:[(0,l.jsx)("p",{style:{marginBottom:"50px"},children:"Example"}),(0,l.jsxs)(i.I,{onSubmit:e=>console.log(e),children:[(0,l.jsx)(a.Q,{label:"Example Input",placeholder:"Example Input",n
1ame:"example_input"}),(0,l.jsx)(a.Q,{label:"Example Input with mask",placeholder:"(99) 99999-9999",mask:"(99) 99999-9999",name:"example_input_mask"}),(0,l.jsx)(o.A,{label:"Example Select",onChange:e=>console.log(e),name:"example_select",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]}),(0,l.jsx)(s.E,{label:"Exemple Text Editor"}),(0,l.jsx)(r.Y,{type:"submit",label:"Exemplo base button"})]})]});d.layout=u.l,d.isPrivate=!0,t.default=d}},function(e){e.O(0,[9866,1228,3820,4169,6712,8990,1651,7188,9774,2888,179],function(){return e(e.s=87229)}),_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.