PageSourceSearch

https://radiomec.ebc.com.br/static/js/ToolbarImpl.eaca14bc.chunk.js

js ebc.com.br collected 2026-09-24 08:24:36 UTC 12,885 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2780],{17240:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>ne});var s=o(62816),n=o(90920),a=o(83740),i=o(35588),l=o(50723),r=o(11520),p=o(75368),d=o.n(p),h=o(28144),c=o(87539),m=o(97216),u=o(70788),b=o(26556),g=o.n(b),f=o(84488),M=o.n(f),C=o(2479),w=o.n(C),L=o(65392),k=o(65472),v=o(14960),x=o(17044),T=o(95424),y=o(79648),N=o(2360),S=o(900),B=o.n(S),$=a.createElement;const E=e=>$("div",{className:w()(`${e.componentName} pastanaga-menu`,{"has-inner-actions":e.hasActions}),style:{flex:e.theToolbar.current?`0 0 ${e.theToolbar.current.getBoundingClientRect().width}px`:null}},$("header",{className:"header pulled"},$("button",{onClick:function(){e.unloadComponent()}},$(N.c,{name:B(),size:"30px"})),$("div",{className:"vertical divider"}),$("h2",null,e.componentTitle||e.componentName)),e.children);var A=o(87675);var _=o(9352);var P=o(99544),U=o(50153),I=o(32224),R=o(54260),W=o(12612),z=o(50303),D=o(7828),O=o.n(D),Z=o(62570),F=o.n(Z),H=o(61524),V=o.n(H),q=o(50948),K=o.n(q),j=o(90604),X=o.n(j),G=o(78336),J=o.n(G),Q=o(39420),Y=o.n(Q),ee=a.createElement;const te=(0,i.defineMessages)({edit:{id:"Edit",defaultMessage:"Edit"},contents:{id:"Contents",defaultMessage:"Contents"},add:{id:"Add",defaultMessage:"Add"},more:{id:"More",defaultMessage:"More"},personalTools:{id:"Personal tools",defaultMessage:"Personal tools"},shrinkToolbar:{id:"Shrink toolbar",defaultMessage:"Shrink toolbar"},expandToolbar:{id:"Expand toolbar",defaultMessage:"Expand toolbar"},personalInformation:{id:"Personal Information",defaultMessage:"Personal Information"},personalPreferences:{id:"Personal Preferences",defaultMessage:"Personal Preferences"},collection:{id:"Collection",defaultMessage:"Collection"},file:{id:"File",defaultMessage:"File"},link:{id:"Link",defaultMessage:"Link"},newsItem:{id:"News Item",defaultMessage:"News Item"},page:{id:"Page",defaultMessage:"Page"},back:{id:"Back",defaultMessage:"Back"},unlock:{id:"Unlock",defaultMessage:"Unlock"}});let oe={personalTools:{component:v.c,wrapper:null},more:{component:k.c,wrapper:null},types:{component:x.c,wrapper:null,contentAsProps:!0},profile:{component:T.c,wrapper:E,wrapperTitle:te.personalInformation,hideToolbarBody:!0},preferences:{component:y.c,wrapper:E,wrapperTitle:te.personalPreferences,hideToolbarBody:!0}};class se extends a.Component{constructor(e){super(e),(0,n.c)(this,"toolbarRef",a.createRef()),(0,n.c)(this,"toolbarWindow",a.createRef()),(0,n.c)(this,"buttonRef",a.createRef()),(0,n.c)(this,"handleShrink",()=>{const{cookies:e}=this.props;e.set("toolbar_expanded",!this.state.expanded,(0,R.M)()),this.setState(e=>({expanded:!e.expanded}),()=>this.props.setExpandedToolbar(this.state.expanded))}),(0,n.c)(this,"closeMenu",()=>{this.setState(()=>({showMenu:!1,loadedComponents:[]}))}),(0,n.c)(this,"loadComponent",e=>{const{loadedComponents:t}=this.state;this.state.loadedComponents.includes(e)||this.setState({loadedComponents:[...t,e],hideToolbarBody:oe[e].hideToolbarBody||!1})}),(0,n.c)(this,"unloadComponent",()=>{this.setState(e=>({loadedComponents:e.loadedComponents.slice(0,-1),hideToolbarBody:oe[e.loadedComponents[e.loadedComponents.length-2]].hideToolbarBody||!1}))}),(0,n.c)(this,"toggleButtonPressed",e=>{const t=e.target,o="BUTTON"===t.tagName?t:this.findAncestor(e.target,"button");this.buttonRef.current=o}),(0,n.c)(this,"toggleMenu",(e,t)=>{this.state.showMenu?this.closeMenu():("personalTools"===t?this.setState(e=>({showMenu:!e.showMenu,menuStyle:{bottom:0}})):"more"===t?this.setState(e=>({showMenu:!e.showMenu,menuStyle:{overflow:"visible",top:0}})):this.setState(e=>({showMenu:!e.showMenu,menuStyle:{top:0}})),this.toggleButtonPressed(e),this.loadComponent(t))}),(0,n.c)(this,"findAncestor",(e,t)=>{for(;(e=e.parentElement)&&!(e.matches||e.matchesSelector).call(e,t););return e}),(0,n.c)(this,"handleClickOutside",e=>{const t=e.target;if(this.pusher&&(0,m.c)(this.pusher,e))return;const o=(0,m.c)(this.toolbarRef.current,e)&&this.findAncestor(t,"button");o&&o===this.buttonRef.current||this.closeMenu()}),(0,n.c)(this,"unlock",e=>{this.props.unlockContent((0,I.U$)(this.props.pathname),!0)});const{cookies:t}=e;this.state={expanded:"false"!==t.get("toolbar_expanded"),showMenu:!1,menuStyle:{},menuComponents:[],loadedComponents:[],hideToolbarBody:!1}}componentDidMount(){(0,W.ii)("actions",(0,I.U$)(this.props.pathname))||this.props.listActions((0,I.U$)(this.props.pathname)),(0,W.ii)("types",(0,I.U$)(this.props.pathname))||this.props.getTypes((0,I.U$)(this.props.pathname)),oe=(0,s.c)((0,s.c)({},L.default.settings&&L.default.settings.additionalToolbarComponents||{}),oe),this.props.setExpandedToolbar(this.state.expanded),document.addEventListener("mousedown",this.handleClickOutside,!1)}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&((0,W.ii)("actions",(0,I.U$)(e.pathname))||this.props.listActions((0,I.U$)(e.pathname)),(0,W.ii)("types",(0,I.U$)(e.pathname))||this.props.getTypes((0,I.U$)(e.pathname))),this.props.unlockRequest.loading&&e.unlockRequest.loaded&&this.props.listActions((0,I.U$)(e.pathname))}componentWillUnmount(){document.removeEventListener("mousedown",this.handleClickOutside,!1)}render(){var e,t,o,s;const n=(0,I.U$)(this.props.pathname),i=null===(e=this.props.content)||void 0===e?void 0:e.lock,l=(null===i||void 0===i?void 0:i.locked)&&(null===i||void 0===i?void 0:i.stealable)&&(null===i||void 0===i?void 0:i.creator)!==this.props.userId,p=!l&&M()(this.props.actions.object,{id:"edit"}),d=M()(this.props.actions.object,{id:"folderContents"}),{expanded:h}=this.state;return this.props.token&&ee(a.Fragment,null,ee(U.c,{className:h?"has-toolbar":"has-toolbar-collapsed"}),ee("div",{style:this.state.menuStyle,className:this.state.showMenu?"toolbar-content show":"toolbar-content",ref:this.toolbarWindow},this.state.showMenu&&ee(U.c,{className:"has-toolbar-menu-open"}),ee("div",{className:"pusher-puller",ref:e=>this.pusher=e,style:{transform:this.toolbarWindow.current?`translateX(-${(this.state.loadedComponents.length-1)*this.toolbarWindow.current.getBoundingClientRect().width}px)`:null}},this.state.loadedComponents.map((e,t)=>(()=>{const o=oe[e].component,s=oe[e].wrapper,n=oe[e].hideToolbarBody,a=oe[e].wrapperTitle&&this.props.intl.formatMessage(oe[e].wrapperTitle);return s?ee(s,{componentName:e,componentTitle:a,pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,key:`personalToolsComponent-${t}`,closeMenu:this.closeMenu,hasActions:n},ee(o,{pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,closeMenu:this.closeMenu,isToolbarEmbedded:!0})):ee(o,{pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,key:`personalToolsComponent-${t}`,closeMenu:this.closeMenu,content:oe[e].contentAsProps?this.props.content:null})})()))),ee("div",{id:"toolbar-body",className:this.state.expanded?"toolbar expanded":"toolbar",ref:this.toolbarRef},ee("div",{className:"toolbar-body"},ee("div",{className:"toolbar-actions"},this.props.hideDefaultViewButtons&&this.props.inner&&ee(a.Fragment,null,this.props.inner),!this.props.hideDefaultViewButtons&&ee(a.Fragment,null,l&&ee("button",{"aria-label":this.props.intl.formatMessage(te.unlock),className:"unlock",onClick:e=>this.unlock(e),tabIndex:0},ee(N.c,{name:F(),size:"30px",className:"unlock",title:this.props.intl.formatMessage(te.unlock)})),p&&ee(r.cH,{"aria-label":this.props.intl.formatMessage(te.edit),
1className:"edit",to:`${n}/edit`},ee(N.c,{name:O(),size:"30px",className:"circled",title:this.props.intl.formatMessage(te.edit)})),this.props.content&&this.props.content.is_folderish&&d&&!this.props.pathname.endsWith("/contents")&&!this.props.pathname.startsWith("/programacao")&&ee(r.cH,{"aria-label":this.props.intl.formatMessage(te.contents),to:`${n}/contents`},ee(N.c,{name:V(),size:"30px",title:this.props.intl.formatMessage(te.contents)})),this.props.content&&this.props.content.is_folderish&&d&&this.props.pathname.endsWith("/contents")&&ee(r.cH,{to:`${n}`,"aria-label":this.props.intl.formatMessage(te.back)},ee(N.c,{name:B(),className:"circled",size:"30px",title:this.props.intl.formatMessage(te.back)})),this.props.content&&(this.props.content.is_folderish&&this.props.types.length>0||L.default.settings.isMultilingual&&(null===(t=this.props.content["@components"])||void 0===t?void 0:t.translations))&&!this.props.pathname.startsWith("/programacao")&&ee("button",{className:"add","aria-label":this.props.intl.formatMessage(te.add),onClick:e=>this.toggleMenu(e,"types"),tabIndex:0,id:"toolbar-add"},ee(N.c,{name:K(),size:"30px",title:this.props.intl.formatMessage(te.add)})),ee("div",{className:"toolbar-button-spacer"}),ee("button",{className:"more","aria-label":this.props.intl.formatMessage(te.more),onClick:e=>this.toggleMenu(e,"more"),tabIndex:0,id:"toolbar-more"},ee(N.c,{className:"mobile hidden",name:X(),size:"30px",title:this.props.intl.formatMessage(te.more)}),this.state.showMenu?ee(N.c,{className:"mobile only",name:Y(),size:"30px"}):ee(N.c,{className:"mobile only",name:X(),size:"30px"}))),ee(z.E$,{name:"main.toolbar.top"})),ee("div",{className:"toolbar-bottom"},ee(z.E$,{name:"main.toolbar.bottom",params:{onClickHandler:this.toggleMenu}}),!this.props.hideDefaultViewButtons&&ee("button",{className:"user","aria-label":this.props.intl.formatMessage(te.personalTools),onClick:e=>this.toggleMenu(e,"personalTools"),tabIndex:0,id:"toolbar-personal"},ee(N.c,{name:J(),size:"30px",title:this.props.intl.formatMessage(te.personalTools)})))),ee("div",{className:"toolbar-handler"},ee("button",{className:w()("toolbar-handler-button",{[null===(o=this.props.content)||void 0===o?void 0:o.review_state]:null===(s=this.props.content)||void 0===s?void 0:s.review_state}),onClick:this.handleShrink,"aria-expanded":h,"aria-controls":"toolbar-body"},ee("span",{"aria-live":"assertive",className:"visually-hidden"},h?this.props.intl.formatMessage(te.shrinkToolbar):this.props.intl.formatMessage(te.expandToolbar))))),ee("div",{className:"pusher"}))}}(0,n.c)(se,"defaultProps",{actions:null,token:null,userId:null,content:null,hideDefaultViewButtons:!1,types:[]});const ne=(0,c.compose)(l.cp,u.c,(0,h.connect)((e,t)=>({actions:e.actions.actions,token:e.userSession.token,userId:e.userSession.token?d()(e.userSession.token).sub:"",content:e.content.data,pathname:t.pathname,types:g()(e.types.types,"addable"),unlockRequest:e.content.unlock}),{getTypes:function(e){return(t,o)=>{o().userSession.token&&t({type:A.oV,request:{op:"get",path:`${e}/@types`}})}},listActions:_.K,setExpandedToolbar:function(e){return{type:A.ms,isExpanded:e}},unlockContent:P.S9}))(se)},50948:e=>{e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M6.9996,3.0003 L6.9996,33.0003 L29.0006,33.0003 L29.0006,11.5863 L20.4136,3.0003 L6.9996,3.0003 Z M9.0006,5.0003 L19.0006,5.0003 L19.0006,13.0003 L27.0006,13.0003 L27.0006,31.0003 L9.0006,31.0003 L9.0006,5.0003 Z M20.9996,6.4143 L25.5856,11.0003 L20.9996,11.0003 L20.9996,6.4143 Z"/><path d="M19 16 17 16 17 20 13 20 13 22 17 22 17 26 19 26 19 22 23 22 23 20 19 20z"/></g>'}},7828:e=>{e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M11.9341,27 L9.0001,27 L9.0001,24.277 L19.9311,13.398 L22.7861,16.174 L11.9341,27 Z M26.3841,6.999 L29.2121,9.827 L24.2271,14.813 L21.3981,11.984 L26.3841,6.999 Z M28.9351,12.932 L30.6261,11.241 C31.4061,10.461 31.4061,9.193 30.6261,8.413 L27.7971,5.584 C27.0421,4.829 25.6721,4.828 24.9161,5.584 L7.0001,23.449 L7.0001,27.48 L5.2401,29.293 L6.6811,30.654 L8.3091,29 L12.7621,29 L27.5211,14.294 L29.0011,15.801 L24.4141,20.401 L25.8281,21.822 L30.4151,17.238 C30.7921,16.861 31.0001,16.361 31.0001,15.826 C31.0001,15.29 30.7921,14.789 30.4151,14.412 L28.9351,12.932 Z"/>'}},62570:e=>{e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M27,30 C27,30.551 26.552,31 26,31 L10,31 C9.448,31 9,30.551 9,30 L9,18 C9,17.449 9.448,17 10,17 L26,17 C26.552,17 27,17.449 27,18 L27,30 Z M27,15.184 L27,12 C27,7.038 22.963,3 18,3 C13.037,3 9,7.038 9,12 L11,12 C11,8.14 14.141,5 18,5 C21.859,5 25,8.14 25,12 L25,15 L10,
115 C8.346,15 7,16.346 7,18 L7,30 C7,31.654 8.346,33 10,33 L26,33 C27.654,33 29,31.654 29,30 L29,18 C29,16.698 28.161,15.598 27,15.184 L27,15.184 Z"/><path d="M18,20.5 C17.172,20.5 16.5,21.172 16.5,22 C16.5,22.443 16.695,22.836 17,23.111 L17,27 L19,27 L19,23.111 C19.305,22.836 19.5,22.443 19.5,22 C19.5,21.172 18.828,20.5 18,20.5"/></g>'}}}]);
2//# sourceMappingURL=ToolbarImpl.eaca14bc.chunk.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.