1"use strict";(globalThis.webpackChunk_sv_portlet=globalThis.webpackChunk_sv_portlet||[]).push([[6974],{9327(e,t,n){n.r(t);var o=n(7834),a=n.n(o),r=n(3501),i=n.n(r);n(5074);const c=a().Events;if(c){i()(".sv-embeddedmedia-portlet").each((e,t)=>{const n=i()(t),o=n.children(".sv-embeddedmedia-container"),a=o.data("fnUseTitle"),r=o.data("fnCustomTitle");c.trigger(c.types.updateOembedLinks,n,{replace:!0,useTitle:a,title:r})})}},5074(e,t,n){var o=n(7834),a=n.n(o),r=n(1257);const i=e=>`\n <div class="sv-oembed-container">\n <div class="sv-iframeEmbed-16_9">\n ${e}\n </div>\n </div>\n`,c=e=>`\n <div class="sv-oembed-container">\n ${e}\n </div>\n`,l=[{name:"Dreambroker",scheme:new RegExp("dreambroker.com/channel/.+"),callback:function(e,t){o.Ajax.doGet({url:(0,r.h$)(a().PageContext.pageId,"embed"),data:{url:e,provider:"dreambroker"}}).done(function(e){e&&e.html&&t(i(e.html))})}},{name:"Instagram",scheme:new RegExp("instagr\\.?am(\\.com)?/.+"),callback:function(e,t){o.Ajax.doGet({url:"https://api.instagram.com/oembed",data:{url:e}}).done(function(e){e&&e.html&&t(c(e.html))})}},{name:"Youtube",scheme:new RegExp("^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$"),callback:function(e,t){var n=e.match(/.*(?:v=|be\/|embed\/)([\w-]+)&?.*/);if(n&&n.length>0){var o="https://www.youtube.com/embed/"+n[1];t(i('<iframe src="'+o+'" allowfullscreen="true" frameborder="0"></iframe>'))}}},{name:"GIPHY",scheme:new RegExp("giphy.com/.*"),callback:function(e,t){t(c('<img class="giphy-img" src="'+e+'" alt="GIPHY">'))}},{name:"Youtube no cookie",scheme:new RegExp("^(https?://)?(www.)?(youtube-nocookie.com)/.+$"),callback:function(e,t){var n=e.match(/.*(?:v=|be\/|embed\/)([\w-]+)&?.*/);if(n&&n.length>0){var o="https://www.youtube-nocookie.com/embed/"+n[1];t(i('<iframe src="'+o+'" allowfullscreen="true" frameborder="0"></iframe>'))}}},{name:"Vimeo",scheme:new RegExp("vimeo.com/.*"),callback:function(e,t){o.Ajax.doGet({url:"https://vimeo.com/api/oembed.json",data:{url:e}}).done(function(e){e&&e.html&&t(i(e.html))})}},{name:"Wistia",scheme:new RegExp("https?://(.+)?(wistia.com|wi.st)/.*"),callback:function(e,t){o.Ajax.doGet({url:"https://fast.wistia.com/oembed",data:{url:e}}).done(function(e){e&&e.html&&t(i(e.html))})}},{name:"Screen9",scheme:new RegExp("screen9.com/.+|screen9.tv/.+"),callback:function(e,t){o.Ajax.doGet({url:"https://api.screen9.com/oembed",data:{url:e}}).done(function(e){e&&e.html&&t(i(e.html))})}},{name:"Soundcloud",scheme:new RegExp("soundcloud.com/.+|snd.sc/.+"),callback:function(e,t){o.Ajax.doGet({url:"https://soundcloud.com/oembed",data:{url:e}}).done(function(e){e&&e.html&&t(i(e.html))})}},{name:"Spotify",scheme:new RegExp("open.spotify.com/.+"),callback:function(e,t){o.Ajax.doGet({url:(0,r.h$)(a().PageContext.pageId,"embed"),data:{url:e,provider:"spotify"}}).done(function(e){e&&e.html&&t(i(e.html))})}}],m=function(e,t){return e&&e.replace?function(n){if(e.useTitle){const t=(new DOMParser).parseFromString(n,"text/html"),o=t.getElementsByTagName("iframe")[0];o&&(o.setAttribute("title",e.title),n=t.body.innerHTML)}t.find(".sv-embed").first().replaceWith(n)}:function(e){t.find(".sv-message-content > .sv-embed").parent().first().after(e)}};o.Events.on(o.Events.types.updateOembedLinks,function(e,t){if(!e||!e.length)return;let n=e.find(".sv-embed").first();if(!n.length)return;let o=n.attr("href");if(o)for(var a=0;a<l.length;a++){let n=l[a];if(n.scheme.test(o)){n.callback(o,m(t,e));break}}})},1257(e,t,n){n.d(t,{$F:()=>b,PD:()=>u,RY:()=>f,h$:()=>d,l0:()=>s,mI:()=>p,nL:()=>m,uX:()=>h});var o=n(7834),a=n.n(o),r=n(3501),i=n.n(r),c=n(1173),l=n.n(c);const m=function(e){var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.href);return t?t[1]:null},d=function(e,t,n){var o="/modelobjectapi/1/"+a().PageContext.pageId+"/"+e+"/"+t;return n&&(o+="/"+n),o},s=function(e){var t=e.modelHandler,n=e.objectId,o=e.operationObjectId,r=e.contextNodeId||a().PageContext.pageId;"string"==typeof e&&(t=e),n||(n=a().PageContext.pageId);var i="/edit-api/1/"+r+"/"+n+"/"+t;return o&&(i+="/"+o),i},u=function(e,t,n){return`/${a().PageContext.pageId}/${e}.${n?"json":"htm"}?state=${t}`},f=function(e,t){var n=m("identity"),o=m("group"),r=m("tag");return"/portletresource/"+a().PageContext.pageId+"/"+e+"?state="+t+(n?"&identity="+n:"")+(o?"&group="+o:"")+(r?"&tag="+r:"")},p=function(e,t){var n=i()(e);i().each(n,function(){var e=i()(this),n=e.attr("id"),r=o.ObjectUtil.getObjectId(n);h(e,"/"+a().PageContext.pageId+"/"+r+".htm"+(t||""))})},h=function(e,t,n){let o;o="string"==typeof e?i()(e):e,i().get(t,function(t){o.fadeOut("fast",function(){o.html(t),o.fadeIn(),"function"==typeof n&&n.call(this,e)})})};var g={};const b=function(e,t){var n,a=e.attr("id");if(a){if(a=a.replace(".","_"),!g[a+t]){if(0===(n=e.find("script.sv-tmpl-"+t)).length)return void o.Log.warn("portletUtil","Could not find template with name "+t+" for portlet "+a);g[a+t]=l().template(n.html())}return g[a+t]}o.Log.warn("portletUtil","Tried to get template from invalid element")};a().PortletUtil={getModelObjectUri:d,getEditApiUri:s,getPortletUri:u,getPortletResourceUri:f,reloadPortletsByType:p,doGetWithFade:h,doGet:function(e,t,n){i().get(t,function(t){i()(e).html(t),"function"==typeof n&&n.call(this,e)})},getTemplate:b,parseRequestParameters:m}}}]); 2//# sourceMappingURL=media-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.