PageSourceSearch

https://cept.org/9831.3ded43951b2bdc0a.js

js cept.org collected 2026-10-02 03:30:25 UTC 14,904 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcept=self.webpackChunkcept||[]).push([[9831],{9831:($,D,r)=>{r.d(D,{F:()=>O});var e=r(467),E=r(177),_=r(9417),b=r(3630),M=r(1413),B=r(6977),m=r(1594),l=r(4438),k=r(1875);const P=()=>({title:"Format",items:"bold italic underline strikethrough | blocks fontfamily fontsize align | forecolor backcolor | language | removeformat"}),S=h=>({format:h}),g=(h,C,i,d,s,c,u,o,w,A)=>({menubar:h,plugins:C,toolbar:i,font_family_formats:d,content_style:s,convert_urls:!1,setup:c,menu:u,file_picker_callback:o,block_formats:w,removed_menuitems:"undo redo preview fullscreen cut copy paste pastetext save",font_size_formats:"8px 10px 12px 14px 16px 18px 24px 36px 48px",quickbars_selection_toolbar:"bold italic | link h2 h3",quickbars_insert_toolbar:!1,content_css:A,invalid_elements:"form,button,input,script,select,textarea"});let O=(()=>{class h{constructor(i,d,s,c){this.popupService=i,this.vcr=d,this.cdr=s,this.zone=c,this.plugins="preview importcss searchreplace autolink autosave directionality code visualblocks visualchars fullscreen image link media table charmap nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons",this.toolbar="undo redo | bold italic underline strikethrough | fontsize fontfamily blocks | alignleft aligncenter alignright al
1ignjustify | outdent indent |  numlist bullist | forecolor backcolor removeformat | charmap emoticons | fullscreen preview print | insertfile image media link anchor | ltr rtl",this.font_family_formats="Mina='Mina', Arial, Helvetica, sans-serif; Open Sans light='open_sanslight', Arial, Helvetica, sans-serif; Open Sans='open_sans', Arial, Helvetica, sans-serif; Open Sans semibold='open_sanssemibold', Arial, Helvetica, sans-serif; Open Sans bold='open_sansbold', Arial, Helvetica, sans-serif",this.menubar="edit view format table help",this.content_style="",this.alive$=new M.B,this.model="",this.externalCss=[m.c.ceptApi+"/assets/css/rte-external.css"],this.editorSetup=this._editorSetup.bind(this),this.onFile=this.file_picker_callback.bind(this)}_editorSetup(i){this.editor=i,this.rootId&&i.ui.registry.addButton("insertFile",{icon:"browse",onAction:()=>this.openInsertFilePopup.bind(this)(i)}),i.on("paste",function(){var d=(0,e.A)(function*(s){s.preventDefault();const u=(new DOMParser).parseFromString(s?.clipboardData?.getData("text/html")||s?.clipboardData?.getData("text/plain"),"text/html");u.querySelectorAll("script").forEach(o=>o.remove()),u.querySelectorAll("b").forEach(o=>{("400"===o.style.fontWeight||"normal"===o.style.fontWeight)&&o.replaceWith(...Array.from(o.childNodes))}),u.querySelectorAll("*")?.forEach(o=>{o.removeAttribute("id"),o.removeAttribute("class"),o.style=`${o.style.fontWeight?`font-weight:${o.style.fontWeight};`:""}${o.style.textDecoration?`text-decoration:${o.style.textDecoration};`:""}${o.style.fontSize?`font-size:${o.style.fontSize};`:""}${o.style.fontStyle?`font-style:${o.style.fontStyle};`:""}${o.style.textAlign?`text-align:${o.style.textAlign};`:""}${o.style.width&&"0px"!==o.style.width?`width:${o.style.width};`:""}${o.style.height?`height:${o.style.height};`:""}${o.style.color?`color:${o.style.color};`:""}`}),i.insertContent(u.body.innerHTML)});return function(s){return d.apply(this,arguments)}}())}setFocus(i){i&&(i.focus(),i.selection.select(i.getBody(),!0),i.selection.collapse(!1))}openInsertFilePopup(i){var d=this;return(0,e.A)(function*(){d.zone.run((0,e.A)(function*(){(yield d.popupService.appendComponentToBody("fileBrowserPopup",{disableClickOutside:!0},{content:{rootId:d.rootId,acceptedFormats:d.allowedExtensions}})).close$.pipe((0,B.Q)(d.alive$)).subscribe(c=>{i.execCommand("ToggleToolbarDrawer"),c.path&&i.execCommand("mceInsertContent",!1,`<a href="${m.c.ceptApi+c.path}" target="_blank" rel="noopener noreferrer" data-mce-href="${m.c.ceptApi+c.path}">${c.path}</a>`)})}))})()}file_picker_callback(i,d,s){var c=this;this.zone.run((0,e.A)(function*(){(yield c.popupService.appendComponentToBody("fileBrowserPopup",{disableClickOutside:!0},{content:{rootId:c.rootId}})).close$.pipe((0,B.Q)(c.alive$)).subscribe(o=>{o?.path&&("file"==s.filetype&&i(m.c.ceptApi+o?.path,{text:""}),"image"==s.filetype&&i(m.c.ceptApi+o?.path,{alt:""}),"media"==s.filetype&&i(m.c.ceptApi+o?.path,{source2:"",poster:""}))})}))}onModelChange(i){this.model=i,this.changeHandler(this.model)}writeValue(i){this.model=i}registerOnChange(i){this.changeHandler=i}registerOnTouched(i){this.touchedHandler=i}ngOnDestroy(){this.alive$.next(null),this.alive$.complete()}static{this.\u0275fac=function(d){return new(d||h)(l.rXU(k.O),l.rXU(l.c1b),l.rXU(l.gRc),l.rXU(l.SKi))}}static{this.\u0275cmp=l.VBU({type:h,selectors:[["app-rte"]],inputs:{plugins:"plugins",toolbar:"toolbar",font_family_formats:"font_family_formats",menubar:"menubar",content_style:"content_style",block_formats:"block_formats",rootId:"rootId",allowedExtensions:"allowedExtensions"},exportAs:["rte"],standalone:!0,features:[l.Jv_([{provide:_.kq,useExisting:h,multi:!0},{provide:b.vn,useValue:m.c.ceptApi+"/tinymce/tinymce.min.js"}]),l.aNF],decls:1,vars:16,consts:[[1,"rte",3,"ngModelChange","init","ngModel"]],template:function(d,s){1&d&&(l.j41(0,"editor",0),l.bIt("ngModelChange",function(u){return s.onModelChange(u)}),l.k0s()),2&d&&l.Y8G("init",l.zJS(5,g,[s.menubar,s.plugins,s.toolbar,s.font_family_formats,s.content_style,s.editorSetup,l.eq3(3,S,l.lJ4(2,P)),s.onFile,s.block_formats,s.externalCss]))("ngModel",s.model)},dependencies:[E.MD,b.sv,b.xn,_.YN,_.BC,_.vS],encapsulation:2})}}return h})()},3630:($,D,r)=>{r.d(D,{sv:()=>j,vn:()=>T,xn:()=>R});var e=r(4438),E=r(177),_=r(9417),b=r(3726),M=r(9030),B=r(1413),m=r(6977),l=r(6697),k=r(3703),P=r(9568);function S(t,a){}const g=()=>{const t=typeof window<"u"?window:void 0;return t&&t.tinymce?t.tinymce:null};let O=(()=>{class t{constructor(){this.onBeforePaste=new e.bkB,this.onBlur=new e.bkB,this.onClick=new e.bkB,this.onContextMenu=new e.bkB,this.onCopy=new e.bkB,this.onCut=new e.bkB,this.onDblclick=new e.bkB,this.onDrag=new e.bkB,this.onDragDrop=new e.bkB,this.onDragEnd=new e.bkB,this.onDragGesture=new e.bkB,this.onDragOver=new e.bkB,this.onDrop=new e.bkB,this.onFocus=new e.bkB,this.onFocusIn=new e.bkB,this.onFocusOut=new e.bkB,this.onKeyDown=new e.bkB,this.onKeyPress=new e.bkB,this.onKeyUp=new e.bkB,this.onMouseDown=new e.bkB,this.onMouseEnter=new e.bkB,this.onMouseLeave=new e.bkB,this.onMouseMove=new e.bkB,this.onMouseOut=new e.bkB,this.onMouseOver=new e.bkB,this.onMouseUp=new e.bkB,this.onPaste=new e.bkB,this.onSelectionChange=new e.bkB,this.onActivate=new e.bkB,this.onAddUndo=new e.bkB,this.onBeforeAddUndo=new e.bkB,this.onBeforeExecCommand=new e.bkB,this.onBeforeGetContent=new e.bkB,this.onBeforeRenderUI=new e.bkB,this.onBeforeSetContent=new e.bkB,this.onChange=new e.bkB,this.onClearUndos=new e.bkB,this.onDeactivate=new e.bkB,this.onDirty=new e.bkB,this.onExecCommand=new e.bkB,this.onGetContent=new e.bkB,this.onHide=new e.bkB,this.onInit=new e.bkB,this.onInitNgModel=new e.bkB,this.onLoadContent=new e.bkB,this.onNodeChange=new e.bkB,this.onPostProcess=new e.bkB,this.onPostRender=new e.bkB,this.onPreInit=new e.bkB,this.onPreProcess=new e.bkB,this.onProgressState=new e.bkB,this.onRedo=new e.bkB,this.onRemove=new e.bkB,this.onReset=new e.bkB,this.onResizeEditor=new e.bkB,this.onSaveContent=new e.bkB,this.onSetAttrib=new e.bkB,this.onObjectResizeStart=new e.bkB,this.onObjectResized=new e.bkB,this.onObjectSelected=new e.bkB,this.onSetContent=new e.bkB,this.onShow=new e.bkB,this.onSubmit=new e.bkB,this.onUndo=new e.bkB,this.onVisualAid=new e.bkB}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=e.FsC({type:t,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onF
1ocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),t})();const h=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],C=(t,a,n)=>(0,b.R)(t,a).pipe((0,m.Q)(n)),s=(t,a)=>"string"==typeof t?t.split(",").map(n=>n.trim()):Array.isArray(t)?t:a;let c=0;const o=t=>typeof t<"u"&&"textarea"===t.tagName.toLowerCase(),w=t=>typeof t>"u"||""===t?[]:Array.isArray(t)?t:t.split(" "),A=(t,a)=>w(t).concat(w(a)),K=()=>{},U=t=>null==t,L=(()=>{let t={script$:null};return{load:(p,y)=>t.script$||(t.script$=(0,M.v)(()=>{const f=p.createElement("script");return f.referrerPolicy="origin",f.type="application/javascript",f.src=y,p.head.appendChild(f),(0,b.R)(f,"load").pipe((0,l.s)(1),(0,k.u)(void 0))}).pipe((0,P.t)({bufferSize:1,refCount:!0}))),reinitialize:()=>{t={script$:null}}}})(),T=new e.nKC("TINYMCE_SCRIPT_SRC"),F={provide:_.kq,useExisting:(0,e.Rfq)(()=>R),multi:!0};let R=(()=>{class t extends O{constructor(n,p,y,f){super(),this.platformId=y,this.tinymceScriptSrc=f,this.cloudChannel="6",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=K,this.destroy$=new B.B,this.initialise=()=>{const I={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,plugins:A(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:v=>{this._editor=v,C(v,"init",this.destroy$).subscribe(()=>{this.initEditor(v)}),((t,a,n)=>{(t=>{const a=s(t.ignoreEvents,[]);return s(t.allowedEvents,h).filter(p=>h.includes(p)&&!a.includes(p))})(t).forEach(y=>{const f=t[y];C(a,y.substring(2),n).subscribe(I=>{f.observers.length>0&&t.ngZone.run(()=>f.emit({event:I,editor:a}))})})})(this,v,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(v)}};o(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{g().init(I)})},this._elementRef=n,this.ngZone=p}set disabled(n){this._disabled=n,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(n?"readonly":"design"):this._editor.setMode(n?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(n){this._editor&&this._editor.initialized?this._editor.setContent(U(n)?"":n):this.initialValue=null===n?void 0:n}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}setDisabledState(n){this.disabled=n}ngAfterViewInit(){(0,E.UE)(this.platformId)&&(this.id=this.id||(t=>{const n=(new Date).getTime(),p=Math.floor(1e9*Math.random());return c++,"tiny-angular_"+p+c+String(n)}
1)(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==g()?this.initialise():this._element&&this._element.ownerDocument&&L.load(this._element.ownerDocument,this.getScriptSrc()).pipe((0,m.Q)(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==g()&&g().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,o(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}getScriptSrc(){return U(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(n){C(n,"blur",this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.onTouchedCallback())}),C(n,this.modelEvents,this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.emitOnChange(n))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{n.setContent(this.initialValue),n.getContent()!==this.initialValue&&this.emitOnChange(n),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(n)})}emitOnChange(n){this.onChangeCallback&&this.onChangeCallback(n.getContent({format:this.outputFormat}))}}return t.\u0275fac=function(n){return new(n||t)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw),e.rXU(T,8))},t.\u0275cmp=e.VBU({type:t,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},standalone:!0,features:[e.Jv_([F]),e.Vt3,e.aNF],decls:1,vars:0,template:function(n,p){1&n&&e.DNE(0,S,0,0,"ng-template")},dependencies:[E.MD,_.YN],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[R]}),t})()}}]);

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.