1import{_ as g}from"../assets/preload-helper-CttkoXqx.js";async function w(l,s,n,o){const r=$($.IMPORT_LOADER_MARKUP);$("#tiki_draw").append(r);try{await g(()=>import("@jquery-tiki/tiki-svgedit_draw"),[])}catch{const a=$(` 2 <div class="alert alert-danger" role="alert"> 3 An error occurred while loading the SVG editor. 4 </div> 5 `);$("#tiki_draw").append(a);return}finally{r.remove()}$("#tiki_draw").loadDraw({fileId:l,galleryId:s,name:n,imgParams:o,data:$("#tiki_draw #fileData").val()}).on("renamedDraw",function(e,a){$("#fileName").val(a),$(".pagetitle").text(a)}).on("submit",function(e){e.preventDefault(),$(this).saveDraw()}).on("savedDraw",function(e,a){const i=$(this);i.data("drawLoaded",!1);let t=$(".pluginImg"+i.data("fileid")).show();if(!t.length)return;const c=t.width(),m=t.height();if(t.hasClass("regImage")){const f=$("<div />").attr("class",t.attr("class")).attr("style",t.attr("style")).attr("id",t.attr("id")).insertAfter(t);t.remove(),t=f}const d=i.data("src");$('<div class="svgImage" />').load(d||"tiki-download_file.php?fileId="+a.fileId+"&display",function(){$(this).css("position","absolute").fadeTo(0,.01).prependTo("body").find("img,svg").scaleImg({width:c,height:m}),t.html($(this).children()),$(this).remove()}),i.data("fileid",a.fileId),a.imgParams&&a.imgParams.fileId&&(a.imgParams.fileId=a.fileId,i.data("imgparams",a.imgParams))}),$("#drawBack").on("click",function(){window.history.back()})}export{w as handleDraw}; 6//# sourceMappingURL=tiki-handle_svgedit.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.