6 lines
2.1 KiB
JavaScript
Executable File
6 lines
2.1 KiB
JavaScript
Executable File
'use strict';mix_d("APEKataTemplatesCards__ape-safeframe-card:ape-safeframe-card__7EyRfVzy",["exports","tslib","@c/scoped-dom"],function(f,g,d){var e=d&&"object"===typeof d&&"default"in d?d:{"default":d};f._operationNames=[];f.card=function(){return g.__awaiter(void 0,void 0,void 0,function(){var h,k,l,m;return g.__generator(this,function(a){if(h=e["default"].cardRoot.getElementsByClassName("text/x-dacx-safeframe")[0]){a=h;var n;var b=a.getAttribute("prepend");var c=a.getAttribute("append");var p=
|
|
a.getAttribute("adbar");if(n=a.getAttribute("sfstyle"))a.insertAdjacentHTML("beforebegin",n),a.removeAttribute("sfstyle");b&&(a.insertAdjacentHTML("beforebegin",b),a.removeAttribute("prepend"));p&&(a.insertAdjacentHTML("afterend",p),a.removeAttribute("adbar"));c&&(a.insertAdjacentHTML("afterend",c),a.removeAttribute("append"));b=(b=a.getAttribute("celwidgetid"))?b:"";a.removeAttribute("celwidgetid");a.setAttribute("cel_widget_id",b)}if(k=e["default"].cardRoot.getElementsByClassName("text/x-APE-lightAds")[0]){b=
|
|
k;if((a=b.parentElement)&&b){if(c=b.getAttribute("adplacement-style"))b.setAttribute("style",c),b.removeAttribute("adplacement-style");if(b=a.getAttribute("adplacement-wrapper-style"))a.setAttribute("style",b),a.removeAttribute("adplacement-wrapper-style");if(b=a.getAttribute("prepend"))a.insertAdjacentHTML("beforebegin",b),a.removeAttribute("prepend");if(b=a.getAttribute("adbar-div"))a.insertAdjacentHTML("afterend",b),a.removeAttribute("adbar-div");b=a.getAttribute("celwidgetid");a.setAttribute("cel_widget_id",
|
|
b?b:"");a.removeAttribute("celwidgetid")}if(l=e["default"].cardRoot.getElementsByClassName("text/x-APE-advText")[0])if(b=l,a=b.firstElementChild,b&&a){if(c=b.getAttribute("adv-text-wrapper-style"))b.setAttribute("style",c),b.removeAttribute("adv-text-wrapper-style");if(b=a.getAttribute("adv-text-style"))a.setAttribute("style",b),a.removeAttribute("adv-text-style")}}if(m=e["default"].cardRoot.getElementsByClassName("ape-aui-card-clientside-data")[0])a=m,(b=a.getAttribute("prepend"))&&a.insertAdjacentHTML("beforebegin",
|
|
b),"remove"in HTMLElement.prototype&&a.remove();return[2]})})}});
|