1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`b118a3387c06afdf625a4e3c513ea6a95901cac8`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`23e7a2e2-fd05-4b3e-aa64-dc56f27e6c2a`,e._sentryDebugIdIdentifier=`sentry-dbid-23e7a2e2-fd05-4b3e-aa64-dc56f27e6c2a`)}catch{}})();import{o as e}from"./chunk-BBRjo-9F.js";import{t}from"./react-CgWhlUet.js";import{n,t as r}from"./dist-Bfo7hZtR.js";import{_ as i,c as a,f as o}from"./mobx.module-D8DpqJEi.js";import{t as s}from"./lodash-fRxZxyr8.js";import{t as c}from"./dist-DVwav7_F.js";import{t as l}from"./mobxreact.esm--Z-zxU5E.js";import{t as u}from"./prop-types-DUWfPgsH.js";import{t as d}from"./classnames-DggTi6Wt.js";import{a as f,c as p,i as m,l as ee,n as te,o as h,r as ne,s as re,t as ie}from"./react-datepicker.min-ywSbkAD1.js";import{t as g}from"./emotion-styled.browser.esm-4FI-bo8L.js";import{t as ae}from"./jsx-runtime-CLsEzmKX.js";import{t as _}from"./button-CkqJEy63.js";import{t as oe}from"./v4-CdF_QWgJ.js";import{t as se}from"./alert-qWfVhieN.js";import{t as ce}from"./fa-BLZTeAW-.js";import{t as le}from"./pluralize-CIhLtjWh.js";import{t as ue}from"./with_legend-B4XVlqZl.js";import{t as de}from"./in_place_text_input-Bfa3KZIW.js";import{n as fe,t as pe}from"./text_display-DbLSLJFb.js";var me={lessThanXSeconds:{standalone:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`},withPreposition:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`}},xSeconds:{standalone:{one:`1 Sekunde`,other:`{{count}} Sekunden`},withPreposition:{one:`1 Sekunde`,other:`{{count}} Sekunden`}},halfAMinute:{standalone:`halbe Minute`,withPreposition:`halben Minute`},lessThanXMinutes:{standalone:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`},withPreposition:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`}},xMinutes:{standalone:{one:`1 Minute`,other:`{{count}} Minuten`},withPreposition:{one:`1 Minute`,other:`{{count}} Minuten`}},aboutXHours:{standalone:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`},withPreposition:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`}},xHours:{standalone:{one:`1 Stunde`,other:`{{count}} Stunden`},withPreposition:{one:`1 Stunde`,other:`{{count}} Stunden`}},xDays:{standalone:{one:`1 Tag`,other:`{{count}} Tage`},withPreposition:{one:`1 Tag`,other:`{{count}} Tagen`}},aboutXWeeks:{standalone:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`},withPreposition:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`}},xWeeks:{standalone:{one:`1 Woche`,other:`{{count}} Wochen`},withPreposition:{one:`1 Woche`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`etwa 1 Monat`,other:`etwa {{count}} Monate`},withPreposition:{one:`etwa 1 Monat`,other:`etwa {{count}} Monaten`}},xMonths:{standalone:{one:`1 Monat`,other:`{{count}} Monate`},withPreposition:{one:`1 Monat`,other:`{{count}} Monaten`}},aboutXYears:{standalone:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahre`},withPreposition:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahren`}},xYears:{standalone:{one:`1 Jahr`,other:`{{count}} Jahre`},withPreposition:{one:`1 Jahr`,other:`{{count}} Jahren`}},overXYears:{standalone:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahre`},withPreposition:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahren`}},almostXYears:{standalone:{one:`fast 1 Jahr`,other:`fast {{count}} Jahre`},withPreposition:{one:`fast 1 Jahr`,other:`fast {{count}} Jahren`}}},he=function(e,t,n){var r,i=n!=null&&n.addSuffix?me[e].withPreposition:me[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r};ee();var ge={date:p({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:p({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:p({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},_e={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},ve=function(e,t,n,r){return _e[e]};re();var ye={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},be={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},v={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},xe={narrow:v.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:v.wide},Se={ordinalNumber:function(e){return Number(e)+`.`},era:h({values:ye,defaultWidth:`wide`}),quarter:h({values:be,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}
1),month:h({values:v,formattingValues:xe,defaultWidth:`wide`}),day:h({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:h({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})};f(),ne();var Ce={code:`de`,formatDistance:he,formatLong:ge,formatRelative:ve,localize:Se,match:{ordinalNumber:te({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:m({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},y=s(),b=e(u()),x=e(d()),S=ae(),C=e(t());o();var w=e(ie()),T=r(),E=e(le()),D=c(),O,k,A,j;function we(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function M(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Te=g.label` 2 3`,Ee=g.div` 4 .react-datepicker__input-container input { 5 width: 70px; 6 min-width: 70px; 7 max-width: 70px; 8 } 9`,N=`de`;typeof window<`u`&&(0,w.registerLocale)(N,Ce);function De(){try{let{hour12:e}=new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).resolvedOptions();return{format:e===!1?`HH:mm`:`h:mm aa`,locale:e===!1?N:void 0}}catch{return{format:`h:mm aa`,locale:void 0}}}var Oe=ue(l(O=(k=(j=class extends C.Component{constructor(...e){super(...e),we(this,`selectedTime`,A,this),this.onChange=e=>{let t=e?e.getHours():null;if(this.selectedTime=e,this.props.onChange)this.props.onChange(t);else if(this.props.onSubmit)this.props.onSubmit(t,this.props.field);else{let e={};e.data={},e.data[this.props.field]=t,T.Api.put({url:`/api/${(0,E.default)(this.props.model)}/${this.props.id}`,data:{data:e},successCallback:this.updateSuccess.bind(this)})}},this.updateSuccess=e=>{this.props.updateCallback&&this.props.updateCallback(e),this.props.afterChange&&this.props.afterChange(this.value?this.value.getHours():null)}}get value(){if((0,D.isPresent)(this.selectedTime))return this.selectedTime;if((0,D.isPresent)(this.props.value)&&this.props.value!==``){let e=parseInt(this.props.value,10);if(!isNaN(e)&&e>=0&&e<=23)return new Date(2e3,0,1,e,0,0)}return null}render(){let{format:e,locale:t}=De();return(0,S.jsxs)(Ee,{className:`in-place-time-picker`,children:[this.props.label&&(0,S.jsx)(Te,{children:this.props.label}),(0,S.jsx)(w.default,{selected:this.value,onChange:this.onChange,showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:this.props.timeIntervals,dateFormat:e,timeFormat:e,locale:t,timeCaption:`Time`,isClearable:this.props.isClearable,popperPlacement:this.props.pickerPosition||`bottom-end`})]})}},j.defaultProps={isClearable:!1,timeIntervals:60},j),A=M(k.prototype,`selectedTime`,[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M(k.prototype,`value`,[a],Object.getOwnPropertyDescriptor(k.prototype,`value`),k.prototype),k))||O),P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},P.apply(this,arguments)},F={onActivate:b.func,onAddUndo:b.func,onBeforeAddUndo:b.func,onBeforeExecCommand:b.func,onBeforeGetContent:b.func,onBeforeRenderUI:b.func,onBeforeSetContent:b.func,onBeforePaste:b.func,onBlur:b.func,onChange:b.func,onClearUndos:b.func,onClick:b.func,onContextMenu:b.func,onCommentChange:b.func,onCompositionEnd:b.func,onCompositionStart:b.func,onCompositionUpdate:b.func,onCopy:b.func,onCut:b.func,onDblclick:b.func,onDeactivate:b.func,onDirty:b.func,onDrag:b.func,onDragDrop:b.func,onDragEnd:b.func,onDragGesture:b.func,onDragOver:b.func,onDrop:b.func,onExecCommand:b.func,onFocus:b.func,onFocusIn:b.func,onFocusOut:b.func,onGetContent:b.func,onHide:b.func,onInit:b.func,onInput:b.func,onKeyDown:b.func,onKeyPress:b.func,onKeyUp:b.func,onLoadContent:b.func,onMouseDown:b.func,onMouseEnter:b.func,onMouseLeave:b.func,onMouseMove:b.func,onMouseOut:b.func,onMouseOver:b.func,onMouseUp:b.func,onNodeChange:b.func,onObjectResizeStart:b.func,onObjectResized:b.func,onObjectSelected:b.func,onPaste:b.func,onPostProcess:b.func,onPostRender:b.func,onPreProcess:b.func,onProgressState:b.func,onRedo:b.func,onRemove:b.func,onReset:b.func,onSaveContent:b.func,onSelectionChange:b.func,onSetAttrib:b.func,onSetContent:b.func,onShow:b.func,onSubmit:b.func,onUndo:b.func,onVisualAid:b.func,onSkinLoadError:b.func,onThemeLoadError:b.func,onModelLoadError:b.func,onPluginLoadError:b.func,onIconsLoadError:b.func,onLanguageLoadError:b.func,onScriptsLoad:b.func,onScriptsLoadError:b.func},ke=P({apiKey:b.string,licenseKey:b.string,id:b.string,inline:b.bool,init:b.object,initialValue:b.string,onEditorChange:b.func,value:b.string,tagName:b.string,tabIndex:b.number,cloudChannel:b.string,plugins:b.oneOfType([b.string,b.array]),toolbar:b.oneOfType([b.string,b.array]),disabled:b.bool,readonly:b.bool,textareaName:b.string,tinymceScriptSrc:b.oneOfType([b.string,b.arrayOf(b.string),b.arrayOf(b.shape({src:b.string,async:b.bool,defer:b.bool}
9))]),rollback:b.oneOfType([b.number,b.oneOf([!1])]),scriptLoading:b.shape({async:b.bool,defer:b.bool,delay:b.number})},F),I=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},L=function(e){return typeof e==`function`},R=function(e){return e in F},z=function(e){return e.substr(2)},Ae=function(e,t,n,r,i,a,o){var s=Object.keys(i).filter(R),c=Object.keys(a).filter(R),l=s.filter(function(e){return a[e]===void 0}),u=c.filter(function(e){return i[e]===void 0});l.forEach(function(e){var t=z(e),r=o[t];n(t,r),delete o[t]}),u.forEach(function(n){var i=r(e,n),a=z(n);o[a]=i,t(a,i)})},je=function(e,t,n,r,i){return Ae(i,e.on.bind(e),e.off.bind(e),function(t,n){return function(r){return t(n)?.(r,e)}},t,n,r)},B=0,V=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return B++,e+`_`+n+B+String(t)},H=function(e){return e!==null&&(e.tagName.toLowerCase()===`textarea`||e.tagName.toLowerCase()===`input`)},U=function(e){return e===void 0||e===``?[]:Array.isArray(e)?e:e.split(` `)},Me=function(e,t){return U(e).concat(U(t))},Ne=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`},Pe=function(e){if(!(`isConnected`in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},Fe=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode==`object`&&typeof e.mode.set==`function`?e.mode.set(t):e.setMode(t))},Ie=function(e){var t=I(e);if(!t)throw Error(`tinymce should have been loaded into global scope`);return t},Le=function(e){return e.options&&e.options.isRegistered(`disabled`)},W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W.apply(this,arguments)},Re=function(e,t,n){var r=e.createElement(`script`);r.referrerPolicy=`origin`,r.type=`application/javascript`,r.id=t.id,r.src=t.src,r.async=t.async??!1,r.defer=t.defer??!1;var i=function(){r.removeEventListener(`load`,i),r.removeEventListener(`error`,a),n(t.src)},a=function(e){r.removeEventListener(`load`,i),r.removeEventListener(`error`,a),n(t.src,e)};r.addEventListener(`load`,i),r.addEventListener(`error`,a),e.head&&e.head.appendChild(r)},ze=function(e){var t={},n=function(e,n){var r=t[e];r.done=!0,r.error=n;for(var i=0,a=r.handlers;i<a.length;i++){var o=a[i];o(e,n)}r.handlers=[]};return{loadScripts:function(r,i,a){var o=function(e){return a===void 0?console.error(e):a(e)};if(r.length===0){o(Error(`At least one script must be provided`));return}for(var s=0,c=!1,l=function(e,t){c||(t?(c=!0,o(t)):++s===r.length&&i())},u=0,d=r;u<d.length;u++){var f=d[u],p=t[f.src];if(p)p.done?l(f.src,p.error):p.handlers.push(l);else{var m=V(`tiny-`);t[f.src]={id:m,src:f.src,done:!1,error:null,handlers:[l]},Re(e,W({id:m},f),n)}}},deleteScripts:function(){for(var n,r=0,i=Object.values(t);r<i.length;r++){var a=i[r],o=e.getElementById(a.id);o!=null&&o.tagName===`SCRIPT`&&((n=o.parentNode)==null||n.removeChild(o))}t={}},getDocument:function(){return e}}},Be=function(){var e=[],t=function(t){var n=e.find(function(e){return e.getDocument()===t});return n===void 0&&(n=ze(t),e.push(n)),n};return{loadList:function(e,n,r,i,a){var o=function(){return t(e).loadScripts(n,i,a)};r>0?setTimeout(o,r):o()},reinitialize:function(){for(var t=e.pop();t!=null;t=e.pop())t.deleteScripts()}}}(),Ve=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)},K=`change keyup compositionend setcontent CommentChange`,He=function(e){Ve(t,e);function t(t){var n=e.call(this,t)||this;return n.rollbackTimer=void 0,n.valueCursor=void 0,n.rollbackChange=function(){var e=n.editor,t=n.props.value;e&&t&&t!==n.currentContent&&e.undoManager.ignore(function(){if(e.setContent(t),n.valueCursor&&(!n.inl
9ine||e.hasFocus()))try{e.selection.moveToBookmark(n.valueCursor)}catch{}}),n.rollbackTimer=void 0},n.handleBeforeInput=function(e){if(n.props.value!==void 0&&n.props.value===n.currentContent&&n.editor&&(!n.inline||n.editor.hasFocus()))try{n.valueCursor=n.editor.selection.getBookmark(3)}catch{}},n.handleBeforeInputSpecial=function(e){(e.key===`Enter`||e.key===`Backspace`||e.key===`Delete`)&&n.handleBeforeInput(e)},n.handleEditorChange=function(e){var t=n.editor;if(t&&t.initialized){var r=t.getContent();n.props.value!==void 0&&n.props.value!==r&&n.props.rollback!==!1&&(n.rollbackTimer||=window.setTimeout(n.rollbackChange,typeof n.props.rollback==`number`?n.props.rollback:200)),r!==n.currentContent&&(n.currentContent=r,L(n.props.onEditorChange)&&n.props.onEditorChange(r,t))}},n.handleEditorChangeSpecial=function(e){(e.key===`Backspace`||e.key===`Delete`)&&n.handleEditorChange(e)},n.initialise=function(e){e===void 0&&(e=0);var t=n.elementRef.current;if(t){if(!Pe(t)){if(e===0)setTimeout(function(){return n.initialise(1)},1);else if(e<100)setTimeout(function(){return n.initialise(e+1)},100);else throw Error(`tinymce can only be initialised when in a document`);return}var r=Ie(n.view),i=G(G(G(G({},n.props.init),{selector:void 0,target:t,disabled:n.props.disabled,readonly:n.props.readonly,inline:n.inline,plugins:Me(n.props.init?.plugins,n.props.plugins),toolbar:n.props.toolbar??n.props.init?.toolbar}),n.props.licenseKey?{license_key:n.props.licenseKey}:{}),{setup:function(e){n.editor=e,n.bindHandlers({}),n.inline&&!H(t)&&e.once(`PostRender`,function(t){e.setContent(n.getInitialValue(),{no_events:!0})}),n.props.init&&L(n.props.init.setup)&&n.props.init.setup(e),n.props.disabled&&(Le(n.editor)?n.editor.options.set(`disabled`,n.props.disabled):n.editor.mode.set(`readonly`))},init_instance_callback:function(e){var t=n.getInitialValue();n.currentContent=n.currentContent??e.getContent(),n.currentContent!==t&&(n.currentContent=t,e.setContent(t),e.undoManager.clear(),e.undoManager.add(),e.setDirty(!1)),n.props.init&&L(n.props.init.init_instance_callback)&&n.props.init.init_instance_callback(e)}});n.inline||(t.style.visibility=``),H(t)&&(t.value=n.getInitialValue()),r.init(i)}},n.id=n.props.id||V(`tiny-react`),n.elementRef=C.createRef(),n.inline=n.props.inline??n.props.init?.inline??!1,n.boundHandlers={},n}return Object.defineProperty(t.prototype,`view`,{get:function(){return this.elementRef.current?.ownerDocument.defaultView??window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=this;if(this.rollbackTimer&&=(clearTimeout(this.rollbackTimer),void 0),this.editor&&(this.bindHandlers(e),this.editor.initialized)){if(this.currentContent=this.currentContent??this.editor.getContent(),typeof this.props.initialValue==`string`&&this.props.initialValue!==e.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value==`string`&&this.props.value!==this.currentContent){var n=this.editor;n.undoManager.transact(function(){var e;if(!t.inline||n.hasFocus())try{e=n.selection.getBookmark(3)}catch{}var r=t.valueCursor;if(n.setContent(t.props.value),!t.inline||n.hasFocus())for(var i=0,a=[e,r];i<a.length;i++){var o=a[i];if(o)try{n.selection.moveToBookmark(o),t.valueCursor=o;break}catch{}}})}if(this.props.readonly!==e.readonly){var r=this.props.readonly??!1;Fe(this.editor,r?`readonly`:`design`)}this.props.disabled!==e.disabled&&(Le(this.editor)?this.editor.options.set(`disabled`,this.props.disabled):Fe(this.editor,this.props.disabled?`readonly`:`design`))}},t.prototype.componentDidMount=function(){var e=this,t,n;I(this.view)===null?Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0?(n=(t=this.props).onScriptsLoadError)==null||n.call(t,Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array.")):this.elementRef.current?.ownerDocument&&Be.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),this.props.scriptLoading?.delay??0,function(){var t,n;(n=(t=e.props).onScriptsLoad)==null||n.call(t),e.initialise()},function(t){var n,r;(r=(n=e.props).onScriptsLoadError)==null||r.call(n,t)}):this.initialise()},t.prototype.componentWillUnmount=function(){var e=this,t=this.editor;t&&(t.off(K,this.handleEditorChange),t.off(this.beforeInputEvent(),this.handleBeforeInput),t.off(`keypress`,this.handleEditorChangeSpecial),t.off(`keydown`,this.handleBeforeInputSpecial),t.off(`NewBlock`,this.handleEditorChange),Object.keys(this.boundHandlers).forEac
9h(function(n){t.off(n,e.boundHandlers[n])}),this.boundHandlers={},t.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.beforeInputEvent=function(){return Ne()?`beforeinput SelectionChange`:`SelectionChange`},t.prototype.renderInline=function(){var e=this.props.tagName,t=e===void 0?`div`:e;return C.createElement(t,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.renderIframe=function(){return C.createElement(`textarea`,{ref:this.elementRef,style:{visibility:`hidden`},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.getScriptSources=function(){var e=this.props.scriptLoading?.async,t=this.props.scriptLoading?.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc==`string`?[{src:this.props.tinymceScriptSrc,async:e,defer:t}]:this.props.tinymceScriptSrc.map(function(n){return typeof n==`string`?{src:n,async:e,defer:t}:n});var n=this.props.cloudChannel;return[{src:`https://cdn.tiny.cloud/1/${this.props.apiKey?this.props.apiKey:`no-api-key`}/tinymce/${n}/tinymce.min.js`,async:e,defer:t}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue==`string`?this.props.initialValue:typeof this.props.value==`string`?this.props.value:``},t.prototype.bindHandlers=function(e){var t=this;if(this.editor!==void 0){je(this.editor,e,this.props,this.boundHandlers,function(e){return t.props[e]});var n=function(e){return e.onEditorChange!==void 0||e.value!==void 0},r=n(e),i=n(this.props);!r&&i?(this.editor.on(K,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on(`keydown`,this.handleBeforeInputSpecial),this.editor.on(`keyup`,this.handleEditorChangeSpecial),this.editor.on(`NewBlock`,this.handleEditorChange)):r&&!i&&(this.editor.off(K,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off(`keydown`,this.handleBeforeInputSpecial),this.editor.off(`keyup`,this.handleEditorChangeSpecial),this.editor.off(`NewBlock`,this.handleEditorChange))}},t.propTypes=ke,t.defaultProps={cloudChannel:`8`},t}(C.Component);o();var q=n(),Ue,J,We,Ge,Y,X;function Z(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Q(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Ke=g.span` 10 position: relative; 11 display: inline-block; 12 width: 100%; 13 color: ${e=>e.color}; 14 max-width: ${e=>e.maxWidth}; 15`,qe=g.div` 16 position: relative; 17 display: inline-block; 18 width: 100%; 19 font-size: ${e=>e.fontSize}; 20 ${e=>e.editable&&Je()} 21 ${e=>e.number&&Ye()} 22 word-break: break-word; 23 p { 24 margin: 0 0 20px 0; 25 } 26 textarea, input, .text { 27 width: 100%; 28 } 29 input { 30 height: ${e=>e.inputHeight}; 31 padding: ${e=>e.padding}; 32 font-size: ${e=>e.fontSize}; 33 direction: ${e=>e.rtl?`rtl`:`auto`}; 34 text-align: left; 35 } 36 textarea { 37 height: ${e=>e.height||`120px`}; 38 font-size: 14px; 39 line-height: 18px; 40 } 41`,Je=function(){return` 42 border: 1px solid transparent; 43 display: inline-block; 44 width: 100%; 45 min-height: 20px; 46 &:hover { 47 border: 1px dotted gray; 48 } 49 `},Ye=function(){return` 50 min-width: 40px; 51 max-width: 70px; 52 input { 53 min-width: 40px; 54 max-width: 70px; 55 } 56 `},$=g.div` 57 position: absolute; 58 top: ${e=>e.top}; 59 right: 5px; 60`,Xe=g.div` 61 position: absolute; 62 background: white; 63 border: 1px solid gray; 64 font-size: 12px; 65 line-height: 12px; 66 padding: 5px; 67 z-index: 99; 68`,Ze=g.div` 69 position: relative; 70 margin-top: ${e=>e.marginTop}; 71`,Qe=ue(l(Ue=(J=(X=class extends C.Component{get editMode(){return(q.AppUI.user.canUpdateRecords||this.props.allowUpdate)&&(this.props.show||this.editSelected)}constructor(e){super(e),Z(this,`editSelected`,We,this),Z(this,`value`,Ge,this),Z(this,`lastValue`,Y,this),this.onEdit=()=>{this.props.blockClickToEdit||(this.editSelected=!0,this.failure=null)},this.onClickEditButton=()=>{this.editSelected=!0,this.failure=null},this.onChange=e=>{this.props.readOnly||this.props.rejectBlank&&(0,D.isBlank)(e)||((0,D.isBlank)(this.props.value)&&this.props.inputType===`textarea`&&!this.richText?this.value=this.inputFieldRef.current.value:((0,D.isBlank)(this.props.value)||this.richText)&&(this.value=e),this.props.onChange&&this.props.onChange(e))},this.onSubmit=()=>{(!this.props.type||this.props.type!==`number`||!this.props.max||parseInt(this.value,10)<=this.props.max)&&(this.props.onSubmit?this.props.onSubmit(this.value,this.props.field):this.update(),(!this.props.rejectBlank||(0,D.isPresent)(this.value))&&(this.editSelected=!1))},this.onFocus=()=>{this.props.onFocus&&this.props.onFocus()},this.onBlur=()=>{this.props.onBlur&&this.props.onBlur(this.value,this.props.field),this.onSubmit()},this.onEditorChange=e=>{this.value=e,this.props.onChange&&this.props.onChange(e)},this.inputFieldRef=C.createRef(),this.id=oe()}async componentDidMount(){this.props.focusOnMount&&this.props.inputType===`textarea`&&this.inputFieldRef.current&&this.inputFieldRef.current.focus(),this.value=this.props.value||this.props.defaultValue,this.lastValue=this.value,this.props.editBeforeBlur&&(this.editSelected=!0)}componentDidUpdate(e){(this.props.value!==e.value||this.props.defaultValue!==e.defaultValue)&&(!this.props.blockOverwrite||(0,D.isBlank)(this.value))&&(this.value=this.props.value||this.props.defaultValue,this.lastValue=this.value)}update(){if((!this.props.rejectBlank||(0,D.isPresent)(this.value))&&this.lastValue!==this.value){let e={data:this.props.data||{}};e.data[this.props.field]=this.value,this.props.verb===`PUT`&&this.props.model?T.Api.put({url:this.props.id?`/api/${(0,E.default)(this.props.model)}/${this.props.id}`:`/api/${this.props.model}`,data:e,successCallback:this.updateSuccess.bind(this)}):this.props.model&&T.Api.post({url:this.props.id?`/api/${(0,E.default)(this.props.model)}`:`/api/${this.props.model}`,data:e,successCallback:this.updateSuccess.bind(this)})}}updateSuccess(e){this.lastValue=this.value,this.props.updateCallback&&this.props.updateCallback(e),this.props.afterChange&&this.props.afterChange(this.value)}get richText(){return this.props.richText||this.props.smallRichText}_input(){return this.props.type===`time`?(0,S.jsx)(Oe,{value:this.value,onChange:e=>{this.value=e,this.props.onSubmit?this.props.onSubmit(e,this.props.field):this.update(),(!this.props.rejectBlank||(0,D.isPresent)(e))&&(this.editSelected=!1)},model:this.props.model,field:this.props.field,id:this.props.id,timeIntervals:this.props.timeIntervals,pickerPosition:this.props.pickerPosition}):this.props.inputType===`textarea`?(0,S.jsx)(`textarea`,{type:`text`,ref:this.inputFieldRef,placeholder:this.props.placeholder,onChange:this.onChange,value:this.value||``,onBlur:this.onBlur,onSubmit:this.onSubmit,style:this.props.style,maxLength:this.props.maxLength}):(0,S.jsx)(de,{maxLength:this.props.maxLength,caretPosition:this.props.caretPosition,style:this.props.style,focusOnMount:this.props.focusOnMount,type:this.props.type,step:this.props.step,max:this.props.max,submitOnEnter:this.props.submitOnEnter,clearOnEnter:this.props.clearOnEnter,placeholder:this.props.placeholder,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,value:this.value,onSubmit:this.onSubmit,readOnly:this.props.readOnly,rejectBlank:this.props.rejectBlank})}_content(){if(this.editMode)return(0,S.jsxs)(`span`,{children:[!this.richText&&this._input(),this.props.editingText&&(0,S.jsx)(Xe,{children:this.props.editingText})]});if(this.props.icon)return(0,S.jsx)(ce,{i:this.props.icon,className:(0,x.default)(`on-click`,{disabled:(0,D.isPresent)(this.props.icon)&&(0,y.isEmpty)(this.value)}),style:{color:(0,D.isPresent)(this.props.icon)&&(0,y.isEmpty)(this.value)?`#ccc`:void 0}});if(this.props.markdown&&this.value)return(0,S.jsx)(fe,{markdown:this.value,maxHeight:this.props.maxHeight,scrollable:this.props.scrollable});if(!this.richText&&!this.props.markdown&&this.props.formattedValue)return(0,S.jsx)(`span`,{dangerouslySetInnerHTML:{__html:this.props.formattedValue}});if(this.props.newLineToBr&&(0,D.isPresent)(this.value))return(0,S.jsx)(`span`,{dangerouslySetInnerHTML:{__html:this.value.replace(/(?:\r\n|\r|\n)/g,`<br />`)}});if(this.props.type===`number`)return this.value;if(this.props.type===`time`&&(0,D.isPresent)(this.value)){let e=parseInt(this.value,10);return!isNaN(e)&&e>=0&&e<=23?new Date(2e3,0,1,e,0,0).toLocaleTimeString(void 0,{hour:`numeric`,minute:`2-digit`}):this.value}else if(!this.value&&this.props.placeholder)return(0,S.jsx)(`span`,{style:{color:`gray`},dangerouslySetInnerHTML:{__html:this.props.placeholder}});return(0,S.jsx)(fe,{htmlText:this.value,maxHeight:this.props.maxHeight,scrollable:this.props.scrollable})}render(){return(0,S.jsxs)(Ke,{color:this.props.color,maxWidth:this.props.maxWidth,children:[(0,S.jsxs)(qe,{number:this.props.type===`number`,editable:!this.editMode&&!this.props.hideEditable,onClick:this.onEdit,height:this.props.height?this.props.height:this.props.markdown?`400px`:`120px`,fontSize:this.props.fontSize,padding:this.props.inputPadding,inputHeight:this.props.inputHeight,rtl:this.props.rtl,className:(0,x.default)(`InPlaceText__InnerWrapper`,{editMode:this.editMode}),children:[this.props.label&&(0,S.jsx)(`label`,{children:this.props.label}),this._content(),this.props.suffix,this.editMode&&this.props.warning&&(0,S.jsx)(se,{fontSize:`12px`,padding:`2px`,showCloseButton:!0,background:`#f2dede`,color:`black`,children:this.props.warning}),this.props.markdown&&this.editMode&&(0,S.jsx)(`a`,{href:`https://markdown-it.github.io/`,target:`_blank`,rel:`noopener noreferrer`,style:{fontSize:12,marginTop:10},children:`Markdown Documentation`}),this.props.markdown&&this.editMode&&(0,S.jsx)(`a`,{href:`https://tableconvert.com/`,target:`_blank`,rel:`noopener noreferrer`,style:{fontSize:12,marginTop:10,marginLeft:10},children:`Table Converter`})]}),this.editMode&&this.richText&&(0,S.jsxs)(Ze,{marginTop:this.props.noSaveButton?`0px`:`10px`,children:[(0,S.jsx)(He,{apiKey:`9bllmtatv9ljyg658erbhlrc3zj5u7fjjx5iy1ksemj7ty0z`,value:this.value,onEditorChange:this.onEditorChange,init:{content_style:pe,plugins:`preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons media`,mobile:{plugins:`preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons`},menu:{tc:{title:`Comments`,items:`addcomment showcomments deleteallconversations`}},theme_advanced_text_colors:`FF00FF,FFFF00,000000`,menubar:this.props.smallRichText?``:`file edit view insert format tools table tc help`,toolbar:`undo redo | bold italic underline strikethrough | forecolor ${q.AppUI.siteIsDefault?``:`backcolor `}removeformat | ${q.AppUI.siteIsDefault?``:`fontfamily `}
71fontsize blocks | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist checklist | pagebreak | charmap emoticons | fullscreen preview save print | insertfile image media link anchor codesample code | a11ycheck ltr rtl | showcomments addcomment |`,toolbar_sticky:!0,color_map:`#47A455.Seedlang Green.#FF914D.Seedlang Orange.#FF5252.Seedlang Red.#9873E6.Seedlang Purple.#1DB5D7.Seedlang Blue.#BFEDD2.Light Green.#FBEEB8.Light Yellow.#F8CAC6.Light Red.#ECCAFA.Light Purple.#C2E0F4.Light Blue.#169179.Dark Turquoise.#E67E23.Orange.#BA372A.Dark Red.#843FA1.Dark Purple.#236FA1.Dark Blue.#ECF0F1.Light Gray.#CED4D9.Medium Gray.#95A5A6.Gray.#7E8C8D.Dark Gray.#34495E.Navy Blue`.split(`.`),image_advtab:!0,link_list:[{title:`My page 1`,value:`https://www.tiny.cloud`},{title:`My page 2`,value:`http://www.moxiecode.com`}],image_list:[{title:`My page 1`,value:`https://www.tiny.cloud`},{title:`My page 2`,value:`http://www.moxiecode.com`}],image_class_list:[{title:`None`,value:``},{title:`Some class`,value:`class-name`}],importcss_append:!0,templates:[{title:`New Table`,description:`creates a new table`,content:`<div class="mceTmpl"><table width="98%%" border="0" cellspacing="0" cellpadding="0"><tr><th scope="col"> </th><th scope="col"> </th></tr><tr><td> </td><td> </td></tr></table></div>`},{title:`Starting my story`,description:`A cure for writers block`,content:`Once upon a time...`},{title:`New list with dates`,description:`New List with dates`,content:`<div class="mceTmpl"><span class="cdate">cdate</span><br><span class="mdate">mdate</span><h2>My List</h2><ul><li></li><li></li></ul></div>`}],template_cdate_format:`[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]`,template_mdate_format:`[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]`,height:this.props.smallRichText?220:600,image_caption:!0,quickbars_selection_toolbar:`bold italic forecolor | quicklink h2 h3 | quicktable`,noneditable_class:`mceNonEditable`,toolbar_mode:`sliding`,spellchecker_ignore_list:[`Ephox`,`Moxiecode`],contextmenu:`link image table`,table_header_type:`sectionCells`,table_use_colgroups:!1,relative_urls:!1,convert_urls:!1,document_base_url:`https://${window.location.hostname}`,invalid_styles:{"*":`border border-width border-collapse border-style border-color border-bottom-width border-top-width border-right-width border-left-width`,table:`width height`,tr:`width height`,th:`width height`,td:`width height`,col:`width`},indent:!1}}),!this.props.noSaveButton&&(0,S.jsx)($,{top:`-45px`,children:(0,S.jsx)(_,{onClick:this.onSubmit,children:`Save`})})]}),this.props.showEditButton&&!this.editMode&&(0,S.jsx)($,{top:`0`,children:(0,S.jsx)(_,{onClick:this.onClickEditButton,children:`Edit`})})]})}},X.propTypes={onFocus:b.default.func,onChange:b.default.func,onBlur:b.default.func,focusOnMount:b.default.bool,clearOnEnter:b.default.bool,editable:b.default.bool,afterChange:b.default.func,value:b.default.oneOfType([b.default.string,b.default.bool,b.default.number]),formattedValue:b.default.string,model:b.default.string,placeholder:b.default.string,field:b.default.string,inputType:b.default.string,icon:b.default.string,label:b.default.string,verb:b.default.string,data:b.default.object,show:b.default.oneOfType([b.default.string,b.default.bool]),id:b.default.oneOfType([b.default.string,b.default.number]),suffix:b.default.string},X.defaultProps={inputType:`text`,verb:`PUT`,show:!1,fontSize:`15px`,inputPadding:`0 5px`,inputHeight:`24px`,color:`#000`},X),We=Q(J.prototype,`editSelected`,[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ge=Q(J.prototype,`value`,[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=Q(J.prototype,`lastValue`,[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q(J.prototype,`editMode`,[a],Object.getOwnPropertyDescriptor(J.prototype,`editMode`),J.prototype),Q(J.prototype,`richText`,[a],Object.getOwnPropertyDescriptor(J.prototype,`richText`),J.prototype),J))||Ue);export{Qe as t}; 72//# sourceMappingURL=in_place_text-4JgbC7jE.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.