1"use strict";(globalThis.webpackChunk_sv_portlet=globalThis.webpackChunk_sv_portlet||[]).push([[8800],{9901(t,e,n){var o=n(3501),a=n.n(o),r=n(7834),i=n(1257);a()(".sv-blog-portlet").on("click",".sv-create-blog-entry",function(){var t=a()(this),e=t.data("archive-id"),n=t.data("template-id"),o=t.parent(),l=a()("<div>").addClass("sv-loading-icon").text(r.i18n.getText("portlet.blog.blog","creatingBlogEntry"));return o.empty().append(l),r.Ajax.doPost({url:(0,i.l0)({objectId:e,contextNodeId:e,modelHandler:"article"}),data:{template:n,portletType:"blog"},success:function(t){window.location.href="/edit/"+t.nodeId}}),!1})},1257(t,e,n){n.d(e,{$F:()=>m,PD:()=>u,RY:()=>s,h$:()=>p,l0:()=>g,mI:()=>f,nL:()=>c,uX:()=>h});var o=n(7834),a=n.n(o),r=n(3501),i=n.n(r),l=n(1173),d=n.n(l);const c=function(t){var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(window.location.href);return e?e[1]:null},p=function(t,e,n){var o="/modelobjectapi/1/"+a().PageContext.pageId+"/"+t+"/"+e;return n&&(o+="/"+n),o},g=function(t){var e=t.modelHandler,n=t.objectId,o=t.operationObjectId,r=t.contextNodeId||a().PageContext.pageId;"string"==typeof t&&(e=t),n||(n=a().PageContext.pageId);var i="/edit-api/1/"+r+"/"+n+"/"+e;return o&&(i+="/"+o),i},u=function(t,e,n){return`/${a().PageContext.pageId}/${t}.${n?"json":"htm"}?state=${e}`},s=function(t,e){var n=c("identity"),o=c("group"),r=c("tag");return"/portletresource/"+a().PageContext.pageId+"/"+t+"?state="+e+(n?"&identity="+n:"")+(o?"&group="+o:"")+(r?"&tag="+r:"")},f=function(t,e){var n=i()(t);i().each(n,function(){var t=i()(this),n=t.attr("id"),r=o.ObjectUtil.getObjectId(n);h(t,"/"+a().PageContext.pageId+"/"+r+".htm"+(e||""))})},h=function(t,e,n){let o;o="string"==typeof t?i()(t):t,i().get(e,function(e){o.fadeOut("fast",function(){o.html(e),o.fadeIn(),"function"==typeof n&&n.call(this,t)})})};var v={};const m=function(t,e){var n,a=t.attr("id");if(a){if(a=a.replace(".","_"),!v[a+e]){if(0===(n=t.find("script.sv-tmpl-"+e)).length)return void o.Log.warn("portletUtil","Could not find template with name "+e+" for portlet "+a);v[a+e]=d().template(n.html())}return v[a+e]}o.Log.warn("portletUtil","Tried to get template from invalid element")};a().PortletUtil={getModelObjectUri:p,getEditApiUri:g,getPortletUri:u,getPortletResourceUri:s,reloadPortletsByType:f,doGetWithFade:h,doGet:function(t,e,n){i().get(e,function(e){i()(t).html(e),"function"==typeof n&&n.call(this,t)})},getTemplate:m,parseRequestParameters:c}}}]); 2//# sourceMappingURL=blog-portlet.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.