PageSourceSearch

https://flipeffect.com.br/_next/static/chunks/pages/sanchezcms/modulo/[slug]/update/[uid]-fe2b2e0ac5064f2c.js

js flipeffect.com.br collected 2026-10-09 18:15:45 UTC 11,346 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50330,60642],{60219:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(1413),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},l=n(13401),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};s.displayName="SaveOutlined";var d=a.forwardRef(s)},80974:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sanchezcms/modulo/[slug]/update/[uid]",function(){return n(69347)}])},60642:function(e,t,n){"use strict";n.r(t),n.d(t,{Line:function(){return u},ListSkeleton:function(){return f},ListSkeletonItem:function(){return m},ListToolbarSkeleton:function(){return y},MediaQueryKeyEnum:function(){return o},PageHeaderSkeleton:function(){return h}});var r=n(85893),a=n(70302),i=n(74253),l=n(10149),s=n(74048),d=n(59209);let u=e=>{let{padding:t}=e;return(0,r.jsx)("div",{style:{padding:t||"0 24px"},children:(0,r.jsx)(i.Z,{style:{margin:0}})})},o={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},c=e=>{let{size:t,active:n}=e,i=(0,d.ZP)(),s=void 0===t?o[i]||6:t,u=e=>0===e?0:s>2?42:16;return(0,r.jsx)(a.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,r.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:Array(s).fill(null).map((e,t)=>(0,r.jsxs)("div",{style:{borderInlineStart:s>2&&1===t?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:u(t),flex:1,marginInlineEnd:0===t?16:0},children:[(0,r.jsx)(l.default,{active:n,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,r.jsx)(l.default.Button,{active:n,style:{height:48}})]},t))})})},m=e=>{let{active:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,r.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,r.jsx)(l.default,{active:t,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,r.jsx)(l.default.Button,{active:t,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,r.jsx)(u,{})]})},f=e=>{let{size:t,active:n=!0,actionButton:i}=e;return(0,r.jsxs)(a.Z,{bordered:!1,bodyStyle:{padding:0},children:[Array(t).fill(null).map((e,t)=>(0,r.jsx)(m,{active:!!n},t)),!1!==i&&(0,r.jsx)(a.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(l.default.Button,{style:{width:102},active:n,size:"small"})})]})},h=e=>{let{active:t}=e;return(0,r.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,r.jsx)(l.default,{paragraph:!1,title:{width:185}}),(0,r.jsx)(l.default.Button,{active:t,size:"small"})]})},y=e=>{let{active:t}=e;return(0,r.jsx)(a.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,r.jsxs)(s.default,{style:{width:"100%",justifyContent:"space-between"},children:[(0,r.jsx)(l.default.Button,{active:t,style:{width:200},size:"small"}),(0,r.jsxs)(s.default,{children:[(0,r.jsx)(l.default.Button,{active:t,size:"small",style:{width:120}}),(0,r.jsx)(l.default.Button,{active:t,size:"small",style:{width:80}})]})]})})},p=e=>{let{active:t=!0,statistic:n=!1,actionButton:i,toolbar:l,pageHeader:s,list:d=5}=e;return(0,r.jsxs)("div",{style:{width:"100%"},children:[!1!==s&&(0,r.jsx)(h,{active:t}),!1!==n&&(0,r.jsx)(c,{size:n,active:t}),(!1!==l||!1!==d)&&(0,r.jsxs)(a.Z,{bordered:!1,bodyStyle:{padding:0},children:[!1!==l&&(0,r.jsx)(y,{active:t}),!1!==d&&(0,r.jsx)(f,{size:d,active:t,actionButton:i})]})]})};t.default=p},69347:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return R},default:function(){return T}});var r=n(85893),a=n(9496),i=n(11163),l=n(40653),s=n(20469),d=n(60642),u=n(67294),o=n(60219),c=n(4863),m=n(65400),f=n(70302),h=n(89552),y=n(21296),p=n(8763),x=n(65043),v=n(65868),b=n(57605),g=n(97538),j=n(9669),w=n.n(j),S=n(2418),Z=n.n(S),k=n(18721),A=n.n(k),M=n(5152),E=n.n(M),_=n(72585),B=n(10915),z=n(13075);let I=E()(()=>n.e(82768).then(n.bind(n,16924)),{loadableGenerated:{webpack:()=>[16924]}}),C={labelCol:{span:4},wrapperCol:{span:21}};var L=(0,u.forwardRef)((e,t)=>{let{module:n,setSending:a,values:s,uid:d,schema:o}=e,c=(0,_.Z)(),{message:m}=b.Z.useApp(),f=(0,z.Z)(),[h]=(0,B.Z)(),{locale:y,query:j}=(0,i.useRouter)(),[,S]=(0,l.Z)(),k=(0,p.Z)(),[M]=g.Z.useForm(),E=[{name:"_id",label:"ID",type:"id"}];E.push({name:"slug",label:"Slug",type:"slug",rules:[{required:!0},()=>({async validator(e,t){let r=await w().post("/api/backend/modules/validates/slug",{module:n,slug:t,uid:null==j?void 0:j.uid});return r.data.exists?Promise.reject("Esse slug j\xe1 existe!"):Prom
1ise.resolve()}})]}),o.fields.map((e,t)=>{let{name:n,label:r,type:a,validations:i}=e;return E.push({name:n,label:r[y],type:0===t?"title_slug":a,rules:[{required:i||!1}]})}),E.push({name:"status",label:"Status",type:"switch"}),c&&E.push({name:"order",label:"Ordem",type:"number",rules:[{required:!0}]}),(0,u.useImperativeHandle)(t,()=>({send(){M.submit()},reset(){M.resetFields()}}));let L=(0,x.Z)(async e=>{a(!0),m.loading({content:"Processando dados..",key:"message-badge-".concat(n),duration:6});let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));if(A()(t,"password")&&t.password){let r=await Z().hash(t.password,12);t={...t,password:r}}A()(t,"date")&&f(t.date).isValid()&&(t={...t,date:f(t.date).toISOString()});try{await w().post("/api/backend/modules/update",{module:n,values:{locale:h,...t},uid:d}),m.destroy(),(null==o?void 0:o.cache)&&S(!0),a(!1)}catch(i){m.destroy(),a(!1)}});return(0,v.Z)("ctrl.s",()=>M.submit()),(0,r.jsx)(g.Z,{...C,form:M,name:"control-hooks",onFinish:L,onValuesChange:async e=>Object.keys(e).map(e=>k.emit("field_updated_".concat(e))),children:E.map(e=>(0,u.createElement)(I,{...e,target:e.type,key:e.name,event$:k,form:M,tailLayout:C,initialValue:s[e.name],sharedState:s}))})}),O=n(38681);function P(e){let{module:t,locale:n,item:a,uid:i,schema:l}=e,s=(0,y.Z)("common.Admin"),[d,p]=(0,u.useState)(!1),x=(0,u.useRef)(),v=()=>{x.current.send()};return(0,r.jsx)(f.Z,{style:{marginTop:16},title:s("UPDATE_DATA"),actions:[(0,r.jsx)(O.Z.Consumer,{children:e=>{var n;let{master:a,permissions:i}=e;return(0,r.jsxs)(m.default,{onClick:v,loading:d,type:"link",size:"large",disabled:!((null===(n=i[t])||void 0===n?void 0:n.includes("update"))||a),children:[(0,r.jsx)(o.Z,{})," ",d?"Aguarde um instante...":s("UPDATE_DATA")]})}},"button")],children:(0,r.jsx)(O.Z.Consumer,{children:e=>{var s;let{master:u,permissions:o}=e;return(null===(s=o[t])||void 0===s?void 0:s.includes("update"))||u?(0,r.jsx)(h.default,{spinning:d,delay:500,children:a&&(0,r.jsx)(L,{module:t,locale:n,ref:x,values:a,setSending:p,uid:i,schema:l})}):(0,r.jsx)(c.default,{message:"A\xe7\xe3o n\xe3o permitida.",type:"warning",closable:!0})}})})}var R=!0;function T(e){let{locale:t,slug:n,uid:s,module:u}=e,o=(0,i.useRouter)(),[c]=(0,l.Z)();if(o.isFallback)return(0,r.jsx)(d.default,{});let{data:m,loading:f}=(0,a.Z)(()=>fetch("/api/backend/modules/read?uid=".concat(s,"&module=").concat(n,"&currentLocale=").concat(t)).then(e=>e.json()),{refreshDeps:[c,o.asPath]});return f?(0,r.jsx)(d.default,{}):(0,r.jsx)(P,{module:n,locale:t,item:null==m?void 0:m.result,uid:s,schema:u})}T.getLayout=function(e,t){let{module:n,locale:a}=t;return(0,r.jsx)(s.Z,{title:n.name[a],children:e})}},59209:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u}});var r=n(67294);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t,n="undefined"==typeof window,i=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(function(){return!n&&window.matchMedia(e).matches}))||function(e,t){var n,r,a=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=a){var i=[],l=!0,s=!1;try{for(a=a.call(e);!(l=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(d){s=!0,r=d}finally{try{l||null==a.return||a.return()}finally{if(s)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=i[0],s=i[1];return(0,r.useLayoutEffect)(function(){if(!n){var t=window.matchMedia(e),r=function(e){return s(e.matches)};return t.addListener(r),function(){return t.removeListener(r)}}},[e]),l}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},d=function(){var e="md";return"undefined"==typeof window?e:e=Object.keys(s).find(function(e){var t=s[e].matchMedia;return!!window.matchMedia(t).matches})},u=function(){var e,t=i(s.md.matchMedia),n=i(s.lg.matchMedia),a=i(s.xxl.matchMedia),u=i(s.xl.matchMedia),o=i(s.sm.matchMedia),c=i(s.xs.matchMedia),m=function(e){if(Array.isArray(e))return e}(e=(0,r.useState)(d()))||function(e,t){var n,r,a=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=a){var i=[],l=!0,s=!1;try{for(a=a.call(e);!(l=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(d){s=!0,r=d}finally{try{l||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}
1(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=m[0],h=m[1];return(0,r.useEffect)(function(){if(a){h("xxl");return}if(u){h("xl");return}if(n){h("lg");return}if(t){h("md");return}if(o){h("sm");return}if(c){h("xs");return}h("md")},[t,n,a,u,o,c]),f}}},function(e){e.O(0,[28473,44321,33714,7377,21296,39258,71260,82435,52350,79464,22278,70302,9669,9496,48764,91395,20469,49774,92888,40179],function(){return e(e.s=80974)}),_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.