PageSourceSearch

https://himberger.de/static/452.e827e4b291661a0a6d08.js

js himberger.de collected 2026-09-27 05:59:17 UTC 6,606 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[452],{20452(e,t,n){n.r(t),n.d(t,{default:()=>f});var s=n(37270),a=n(32446),i=n(23739),o=n(26614),c=n(14776),r=n(31735),l=(n(15724),n(36418)),d=n(14778),u=n(14696),m=n(17518),h=n(18515);function p(e){const{formatMessage:t}=(0,d.useIntl)();return l.createElement("span",e,l.createElement("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",role:"img","aria-label":t({id:"generic_icons.adminOnlyIcon",defaultMessage:"Admin View Only Icon"})},l.createElement("path",{d:"M7 3.21005C7.3264 3.21005 7.624 3.29165 7.8928 3.45485C8.1712 3.61805 8.392 3.83885 8.5552 4.11725C8.7184 4.38605 8.8 4.68365 8.8 5.01005C8.8 5.33645 8.7184 5.63885 8.5552 5.91725C8.392 6.18605 8.1712 6.40205 7.8928 6.56525C7.624 6.72845 7.3264 6.81005 7 6.81005C6.6736 6.81005 6.3712 6.72845 6.0928 6.56525C5.824 6.40205 5.608 6.18605 5.4448 5.91725C5.2816 5.63885 5.2 5.33645 5.2 5.01005C5.2 4.68365 5.2816 4.38605 5.4448 4.11725C5.608 3.83885 5.824 3.61805 6.0928 3.45485C6.3712 3.29165 6.6736 3.21005 7 3.21005ZM7 0.502848C7.9792 0.502848 8.9152 0.694848 9.808 1.07885C10.672 1.46285 11.4304 1.99565 12.0832 2.67725C12.7456 3.35885 13.2496 4.13645 13.5952 5.01005C13.2496 5.88365 12.7456 6.66125 12.0832 7.34285C11.4304 8.02445 10.672 8.55245 9.808 8.92685C8.9152 9.31085 7.9792 9.50285 7 9.50285C6.0208 9.50285 5.0848 9.31085 4.192 8.92685C3.328 8.55245 2.5648 8.02445 1.9024 7.34285C1.2496 6.66125 0.7504 5.88365 0.4048 5.01005C0.7504 4.13645 1.2496 3.35885 1.9024 2.67725C2.5648 1.99565 3.328 1.46285 4.192 1.07885C5.0848 0.694848 6.0208 0.502848 7 0.502848ZM1.7152 5.01005C2.0416 5.67245 2.4736 6.25325 3.0112 6.75245C3.5488 7.25165 4.1584 7.63565 4.84 7.90445C5.5312 8.17325 6.2512 8.30765 7 8.30765C8.1328 8.30765 9.1744 8.01005 10.1248 7.41485C11.0752 6.81965 11.8 6.01805 12.2992 5.01005C11.8 4.00205 11.0752 3.20045 10.1248 2.60525C9.1744 2.01005 8.1328 1.71245 7 1.71245C6.2512 1.71245 5.5312 1.84685 4.84 2.11565C4.1584 2.38445 3.5488 2.76845 3.0112 3.26765C2.4736 3.76685 2.0416 4.34765 1.7152 5.01005Z",fill:"rgba(var(--center-channel-color-rgb), 0.75)",fillOpacity:"0.48"})))}var C=n(5955),N=n(57891),g=n(4715);class x extends l.PureComponent{constructor(e){super(e),this.state={presentNoticeIndex:0,noticesData:[]},this.clearDataTimer=void 0}componentDidMount(){this.fetchNoticesData()}componentDidUpdate(e){const t=this.props.socketStatus,n=e.socketStatus;if(t.connected&&!n.connected&&n.lastConnectAt){const e=Date.now(),t=new Date(n.lastConnectAt).getDate();new Date(e).getDate()!==t&&e>n.lastConnectAt&&this.fetchNoticesData()}e.currentTeamId||this.fetchNoticesData()}componentWillUnmount(){clearTimeout(this.clearDataTimer)}async fetchNoticesData(){const{version:e,currentTeamId:t}=this.props;if(!t)return;let n="web",s=e;(0,g.y3)()&&(n="desktop",s=(0,g.B7)());const{data:a}=await this.props.actions.getInProductNotices(t,n,s);if(a&&(this.setState({noticesData:a}),a.length)){const e=Math.min(this.state.presentNoticeIndex,a.length-1),t=a[e];this.setState({presentNoticeIndex:e}),this.props.actions.updateNoticesAsViewed([t.id])}}confirmButtonText(e){const t=this.state.noticesData.length;return 1===t&&e.actionText?l.createElement("span",null,e.actionText):t===this.state.presentNoticeIndex+1?l.createElement(d.FormattedMessage,{id:"generic.done",defaultMessage:"Done"}):l.createElement(l.Fragment,null,l.createElement(d.FormattedMessage,{id:"generic.next",defaultMessage:"Next"}),l.createElement(C.A,null))}cancelButtonText(){return 0!==this.state.presentNoticeIndex?l.createElement(l.Fragment,null,l.createElement(N.A,null),l.createElement(d.FormattedMessage,{id:"generic.previous",defaultMessage:"Previous"})):null}renderCicrleIndicators(){const e=this.state.noticesData.length;if(1===e)return null;const t=[];for(let n=0;n<e;n++){let e="circle";n===this.state.presentNoticeIndex&&(e+=" active"),t.push(l.createElement("span",{id:"tutorialIntroCircle"+n,key:"circle"+n,className:e,"data-screen":n}))}return l.createElement("span",{className:"tutorial__circles"},t)}renderAdminOnlyText(){return this.state.noticesData[this.state.presentNoticeIndex].sysAdminOnly?l.createElement(l.Fragment,null,l.createElement(p,null),l.createElement(d.FormattedMessage,{id:"inProduct_notices.adminOnlyMessage",defaultMessage:"Visible to Admins only"})):null}renderImage(e){return e?l.createElement("img",{className:"productNotices__img",src:e}):null}renderActionButton(e){return 1!==this.state.noticesData.length&&e.actionText?l.createElement(m.A,{id:"actionButton",className:"GenericModal__button actionButton",location:"product_notices_modal",href:e.actionParam||""},e.actionText):null}handleNextButton=()=>{const e=this.state.noticesData[this.state.presentNoticeIndex],t=this.state.noticesData.length;if(1===t&&e.actionText)window.open(e.actionParam,"_blank");else if(this.state.presentNoticeIndex+1<t){const e=this.state.noticesData[this.state.presentNoticeIndex+1];this.props.actions.updateNoticesAsViewed([e.id]),this.setState({presentNoticeIndex:this.state.presentNoticeIndex+1})}};handlePreviousButton=()=>{0!==this.state.presentNoticeIndex&&this.setState({presentNoticeIndex:this.state.presentNoticeIndex-1})};onModalDismiss=()=>{this.clearDataTimer=window.setTimeout((()=>{this.setState({noticesData:[],presentNoticeIndex:0})}),3e3)};
1render(){if(!this.state.noticesData.length)return null;const e=this.state.noticesData[this.state.presentNoticeIndex],t=0===this.state.presentNoticeIndex?void 0:this.handlePreviousButton,n=this.state.presentNoticeIndex===this.state.noticesData.length-1;return l.createElement(u.zW,{compassDesign:!0,onExited:this.onModalDismiss,handleConfirm:this.handleNextButton,handleEnterKeyPress:this.handleNextButton,handleCancel:t,modalHeaderText:l.createElement("span",null,e.title),confirmButtonText:this.confirmButtonText(e),cancelButtonText:this.cancelButtonText(),className:"productNotices",autoCloseOnConfirmButton:n,autoCloseOnCancelButton:!1},l.createElement("span",{className:"productNotices__helpText"},l.createElement(h.A,{message:e.description})),this.renderActionButton(e),l.createElement("div",{className:"productNotices__imageDiv"},this.renderImage(e.image)),l.createElement("div",{className:"productNotices__info"},this.renderCicrleIndicators(),this.renderAdminOnlyText()))}}const f=(0,s.connect)((function(e){const t=(0,o.zj)(e).Version||"",n=(0,r.U)(e);return{currentTeamId:(0,c.Sy)(e),version:t,socketStatus:n}}),(function(e){return{actions:(0,a.zH)({getInProductNotices:i.k1,updateNoticesAsViewed:i.BA},e)}}))(x)}}]);
2//# sourceMappingURL=452.e827e4b291661a0a6d08.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.