shell bypass 403

Cubjrnet7 Shell

: /home/eklavya/www/media/system/js/fields/ [ drwxr-xr-x ]

name : joomla-media-select-es5.min.js
(function(){"use strict";function L(){L=function(){return i};var o,i={},s=Object.prototype,n=s.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",g=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch{f=function(e,r,h){return e[r]=h}}function p(t,e,r,h){var c=e&&e.prototype instanceof C?e:C,m=Object.create(c.prototype),b=new K(h||[]);return a(m,"_invoke",{value:ce(t,r,b)}),m}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(h){return{type:"throw",arg:h}}}i.wrap=p;var k="suspendedStart",A="suspendedYield",I="executing",x="completed",w={};function C(){}function y(){}function _(){}var H={};f(H,d,function(){return this});var R=Object.getPrototypeOf,z=R&&R(R(W([])));z&&z!==s&&n.call(z,d)&&(H=z);var O=_.prototype=C.prototype=Object.create(H);function Q(t){["next","throw","return"].forEach(function(e){f(t,e,function(r){return this._invoke(e,r)})})}function N(t,e){function r(c,m,b,F){var E=v(t[c],t,m);if(E.type!=="throw"){var D=E.arg,S=D.value;return S&&typeof S=="object"&&n.call(S,"__await")?e.resolve(S.__await).then(function(M){r("next",M,b,F)},function(M){r("throw",M,b,F)}):e.resolve(S).then(function(M){D.value=M,b(D)},function(M){return r("throw",M,b,F)})}F(E.arg)}var h;a(this,"_invoke",{value:function(c,m){function b(){return new e(function(F,E){r(c,m,F,E)})}return h=h?h.then(b,b):b()}})}function ce(t,e,r){var h=k;return function(c,m){if(h===I)throw new Error("Generator is already running");if(h===x){if(c==="throw")throw m;return{value:o,done:!0}}for(r.method=c,r.arg=m;;){var b=r.delegate;if(b){var F=X(b,r);if(F){if(F===w)continue;return F}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(h===k)throw h=x,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);h=I;var E=v(t,e,r);if(E.type==="normal"){if(h=r.done?x:A,E.arg===w)continue;return{value:E.arg,done:r.done}}E.type==="throw"&&(h=x,r.method="throw",r.arg=E.arg)}}}function X(t,e){var r=e.method,h=t.iterator[r];if(h===o)return e.delegate=null,r==="throw"&&t.iterator.return&&(e.method="return",e.arg=o,X(t,e),e.method==="throw")||r!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var c=v(h,t.iterator,e.arg);if(c.type==="throw")return e.method="throw",e.arg=c.arg,e.delegate=null,w;var m=c.arg;return m?m.done?(e[t.resultName]=m.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=o),e.delegate=null,w):m:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,w)}function ue(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function U(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function K(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ue,this),this.reset(!0)}function W(t){if(t||t===""){var e=t[d];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,h=function c(){for(;++r<t.length;)if(n.call(t,r))return c.value=t[r],c.done=!1,c;return c.value=o,c.done=!0,c};return h.next=h}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=_,a(O,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:y,configurable:!0}),y.displayName=f(_,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===y||(e.displayName||e.name)==="GeneratorFunction")},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},i.awrap=function(t){return{__await:t}},Q(N.prototype),f(N.prototype,g,function(){return this}),i.AsyncIterator=N,i.async=function(t,e,r,h,c){c===void 0&&(c=Promise);var m=new N(p(t,e,r,h),c);return i.isGeneratorFunction(e)?m:m.next().then(function(b){return b.done?b.value:m.next()})},Q(O),f(O,u,"Generator"),f(O,d,function(){return this}),f(O,"toString",function(){return"[object Generator]"}),i.keys=function(t){var e=Object(t),r=[];for(var h in e)r.push(h);return r.reverse(),function c(){for(;r.length;){var m=r.pop();if(m in e)return c.value=m,c.done=!1,c}return c.done=!0,c}},i.values=W,K.prototype={constructor:K,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(U),!t)for(var e in this)e.charAt(0)==="t"&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=o)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(E,D){return m.type="throw",m.arg=t,e.next=E,D&&(e.method="next",e.arg=o),!!D}for(var h=this.tryEntries.length-1;h>=0;--h){var c=this.tryEntries[h],m=c.completion;if(c.tryLoc==="root")return r("end");if(c.tryLoc<=this.prev){var b=n.call(c,"catchLoc"),F=n.call(c,"finallyLoc");if(b&&F){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(b){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var h=this.tryEntries[r];if(h.tryLoc<=this.prev&&n.call(h,"finallyLoc")&&this.prev<h.finallyLoc){var c=h;break}}c&&(t==="break"||t==="continue")&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var m=c?c.completion:{};return m.type=t,m.arg=e,c?(this.method="next",this.next=c.finallyLoc,w):this.complete(m)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),w},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),U(r),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var h=r.completion;if(h.type==="throw"){var c=h.arg;U(r)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:W(t),resultName:e,nextLoc:r},this.method==="next"&&(this.arg=o),w}},i}function $(o,i,s,n,a,l,d){try{var g=o[l](d),u=g.value}catch(f){s(f);return}g.done?i(u):Promise.resolve(u).then(n,a)}function j(o){return function(){var i=this,s=arguments;return new Promise(function(n,a){var l=o.apply(i,s);function d(u){$(l,n,a,d,g,"next",u)}function g(u){$(l,n,a,d,g,"throw",u)}d(void 0)})}}function V(o,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,ae(n.key),n)}}function ee(o,i,s){return i&&V(o.prototype,i),s&&V(o,s),Object.defineProperty(o,"prototype",{writable:!1}),o}function te(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,T(o,i)}function B(o){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},B(o)}function T(o,i){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},T(o,i)}function ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function P(o,i,s){return ne()?P=Reflect.construct.bind():P=function(a,l,d){var g=[null];g.push.apply(g,l);var u=Function.bind.apply(a,g),f=new u;return d&&T(f,d.prototype),f},P.apply(null,arguments)}function re(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function G(o){var i=typeof Map=="function"?new Map:void 0;return G=function(n){if(n===null||!re(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i<"u"){if(i.has(n))return i.get(n);i.set(n,a)}function a(){return P(n,arguments,B(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),T(a,n)},G(o)}function ie(o,i){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var n=s.call(o,i||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function ae(o){var i=ie(o,"string");return typeof i=="symbol"?i:String(i)}/**
 * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */if(!Joomla)throw new Error("Joomla API is not properly initiated");Joomla.selectedMediaFile={};var J=Joomla.getOptions("media-picker",{});if(!Object.keys(J).length)throw new Error("No supported extensions provided");document.addEventListener("onMediaFileSelected",function(){var o=j(L().mark(function i(s){var n,a,l,d,g,u,f,p;return L().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(Joomla.selectedMediaFile=s.detail,n=Joomla.Modal.getCurrent(),a=n.querySelector(".modal-body"),a){k.next=5;break}return k.abrupt("return");case 5:if(l=a.querySelector("joomla-field-mediamore"),l&&l.parentNode.removeChild(l),!a.closest("joomla-field-media")){k.next=9;break}return k.abrupt("return");case 9:d=J.images,g=J.audios,u=J.videos,f=J.documents,Joomla.selectedMediaFile.path&&(d.includes(Joomla.selectedMediaFile.extension.toLowerCase())?p="images":g.includes(Joomla.selectedMediaFile.extension.toLowerCase())?p="audios":u.includes(Joomla.selectedMediaFile.extension.toLowerCase())?p="videos":f.includes(Joomla.selectedMediaFile.extension.toLowerCase())&&(p="documents"),p&&a.insertAdjacentHTML("afterbegin",`<joomla-field-mediamore
  parent-id="`+n.id+`"
  type="`+p+`"
  summary-label="`+Joomla.Text._("JFIELD_MEDIA_SUMMARY_LABEL")+`"
  lazy-label="`+Joomla.Text._("JFIELD_MEDIA_LAZY_LABEL")+`"
  alt-label="`+Joomla.Text._("JFIELD_MEDIA_ALT_LABEL")+`"
  alt-check-label="`+Joomla.Text._("JFIELD_MEDIA_ALT_CHECK_LABEL")+`"
  alt-check-desc-label="`+Joomla.Text._("JFIELD_MEDIA_ALT_CHECK_DESC_LABEL")+`"
  classes-label="`+Joomla.Text._("JFIELD_MEDIA_CLASS_LABEL")+`"
  figure-classes-label="`+Joomla.Text._("JFIELD_MEDIA_FIGURE_CLASS_LABEL")+`"
  figure-caption-label="`+Joomla.Text._("JFIELD_MEDIA_FIGURE_CAPTION_LABEL")+`"
  embed-check-label="`+Joomla.Text._("JFIELD_MEDIA_EMBED_CHECK_LABEL")+`"
  embed-check-desc-label="`+Joomla.Text._("JFIELD_MEDIA_EMBED_CHECK_DESC_LABEL")+`"
  download-check-label="`+Joomla.Text._("JFIELD_MEDIA_DOWNLOAD_CHECK_LABEL")+`"
  download-check-desc-label="`+Joomla.Text._("JFIELD_MEDIA_DOWNLOAD_CHECK_DESC_LABEL")+`"
  title-label="`+Joomla.Text._("JFIELD_MEDIA_TITLE_LABEL")+`"
  width-label="`+Joomla.Text._("JFIELD_MEDIA_WIDTH_LABEL")+`"
  height-label="`+Joomla.Text._("JFIELD_MEDIA_HEIGHT_LABEL")+`"
></joomla-field-mediamore>
`));case 11:case"end":return k.stop()}},i)}));return function(i){return o.apply(this,arguments)}}());var Y=function(i){return typeof HTMLElement=="object"?i instanceof HTMLElement:i&&typeof i=="object"&&i.nodeType===1&&typeof i.nodeName=="string"},Z=function(i){return new Promise(function(s,n){var a=new Image;a.src=i,a.onload=function(){Joomla.selectedMediaFile.width=a.width,Joomla.selectedMediaFile.height=a.height,s(!0)},a.onerror=function(){n(!1)}})},oe=function(){var o=j(L().mark(function i(s,n,a){var l,d,g,u,f,p,v,k,A,I,x,w;return L().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(s.url?(l=Joomla.getOptions("system.paths"),d=l.rootFull,g=s.url.split(d),g.length>1?(Joomla.selectedMediaFile.url=g[1],s.thumb_path?Joomla.selectedMediaFile.thumb=s.thumb_path:Joomla.selectedMediaFile.thumb=!1):s.thumb_path&&(Joomla.selectedMediaFile.url=s.url,Joomla.selectedMediaFile.thumb=s.thumb_path)):Joomla.selectedMediaFile.url=!1,!Joomla.selectedMediaFile.url){y.next=47;break}if(f="",p="",v="",k="",A="",I="",x="",Y(n)){y.next=35;break}if(w=a.closest(".modal-content"),u=w.querySelector("joomla-field-mediamore"),!u){y.next=30;break}if(u.getAttribute("alt-check")==="true"&&(v=' alt=""'),p=u.getAttribute("alt-value")?' alt="'+u.getAttribute("alt-value")+'"':v,k=u.getAttribute("img-classes")?' class="'+u.getAttribute("img-classes")+'"':"",A=u.getAttribute("fig-classes")?' class="image '+u.getAttribute("fig-classes")+'"':' class="image"',I=u.getAttribute("fig-caption")?""+u.getAttribute("fig-caption"):"",u.getAttribute("is-lazy")!=="true"){y.next=30;break}if(f=' loading="lazy" width="'+Joomla.selectedMediaFile.width+'" height="'+Joomla.selectedMediaFile.height+'"',!(Joomla.selectedMediaFile.width===0||Joomla.selectedMediaFile.height===0)){y.next=30;break}return y.prev=21,y.next=24,Z(Joomla.selectedMediaFile.url);case 24:f=' loading="lazy" width="'+Joomla.selectedMediaFile.width+'" height="'+Joomla.selectedMediaFile.height+'"',y.next=30;break;case 27:y.prev=27,y.t0=y.catch(21),f="";case 30:I?x="<figure"+A+'><img src="'+Joomla.selectedMediaFile.url+'"'+k+f+p+' data-path="'+Joomla.selectedMediaFile.path+'"/><figcaption>'+I+"</figcaption></figure>":x='<img src="'+Joomla.selectedMediaFile.url+'"'+k+f+p+' data-path="'+Joomla.selectedMediaFile.path+'"/>',u&&u.parentNode.removeChild(u),Joomla.editors.instances[n].replaceSelection(x),y.next=47;break;case 35:if(!(Joomla.selectedMediaFile.width===0||Joomla.selectedMediaFile.height===0)){y.next=45;break}return y.prev=36,y.next=39,Z(Joomla.selectedMediaFile.url);case 39:y.next=45;break;case 41:y.prev=41,y.t1=y.catch(36),Joomla.selectedMediaFile.height=0,Joomla.selectedMediaFile.width=0;case 45:a.markValid(),a.setValue(Joomla.selectedMediaFile.url+"#joomlaImage://"+s.path.replace(":","")+"?width="+Joomla.selectedMediaFile.width+"&height="+Joomla.selectedMediaFile.height);case 47:case"end":return y.stop()}},i,null,[[21,27],[36,41]])}));return function(s,n,a){return o.apply(this,arguments)}}(),q=function(i,s,n,a){if(i.url){var l=Joomla.getOptions("system.paths"),d=l.rootFull,g=i.url.split(d);g.length>1?Joomla.selectedMediaFile.url=g[1]:Joomla.selectedMediaFile.url=i.url}else Joomla.selectedMediaFile.url=!1;var u;if(Joomla.selectedMediaFile.url)if(Y(s))n.markValid(),n.givenType=a,n.setValue(Joomla.selectedMediaFile.url);else{var f,p=n.closest(".modal-content");if(u=p.querySelector("joomla-field-mediamore"),u){var v=u.getAttribute("embed-it");if(v&&v==="true"){if(a==="audios"&&(f='<audio controls src="'+Joomla.selectedMediaFile.url+'"></audio>'),a==="documents"){var k=u.getAttribute("title");f='<object type="application/'+Joomla.selectedMediaFile.extension+'" data="'+Joomla.selectedMediaFile.url+'" '+(k?'title="'+k+'"':"")+' width="'+u.getAttribute("width")+'" height="'+u.getAttribute("height")+`">
  `+Joomla.Text._("JFIELD_MEDIA_UNSUPPORTED").replace("{tag}",'<a download href="'+Joomla.selectedMediaFile.url+'">').replace(/{extension}/g,Joomla.selectedMediaFile.extension)+`
</object>`}a==="videos"&&(f='<video controls width="'+u.getAttribute("width")+'" height="'+u.getAttribute("height")+`">
  <source src="`+Joomla.selectedMediaFile.url+'" type="'+Joomla.selectedMediaFile.fileType+`">
</video>`)}else if(Joomla.editors.instances[s].getSelection()!=="")f='<a download href="'+Joomla.selectedMediaFile.url+'">'+Joomla.editors.instances[s].getSelection()+"</a>";else{var A=/([\w-]+)\./.exec(Joomla.selectedMediaFile.url);f='<a download href="'+Joomla.selectedMediaFile.url+'">'+Joomla.Text._("JFIELD_MEDIA_DOWNLOAD_FILE").replace("{file}",A[1])+"</a>"}}u&&u.parentNode.removeChild(u),Joomla.editors.instances[s].replaceSelection(f)}},le=function(){var o=j(L().mark(function i(s,n,a){var l,d,g,u,f;return L().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(s.success!==!0){v.next=12;break}if(l=s.data[0],d=J.images,g=J.audios,u=J.videos,f=J.documents,!(Joomla.selectedMediaFile.extension&&d.includes(l.extension.toLowerCase()))){v.next=5;break}return v.abrupt("return",oe(l,n,a));case 5:if(!(Joomla.selectedMediaFile.extension&&g.includes(l.extension.toLowerCase()))){v.next=7;break}return v.abrupt("return",q(l,n,a,"audios"));case 7:if(!(Joomla.selectedMediaFile.extension&&f.includes(l.extension.toLowerCase()))){v.next=9;break}return v.abrupt("return",q(l,n,a,"documents"));case 9:if(!(Joomla.selectedMediaFile.extension&&u.includes(l.extension.toLowerCase()))){v.next=11;break}return v.abrupt("return",q(l,n,a,"videos"));case 11:return v.abrupt("return","");case 12:return v.abrupt("return","");case 13:case"end":return v.stop()}},i)}));return function(s,n,a){return o.apply(this,arguments)}}();Joomla.getMedia=function(o,i,s){return new Promise(function(n,a){if(!o||typeof o=="object"&&(!o.path||o.path==="")){Joomla.selectedMediaFile={},n({resp:{success:!1}});return}var l=new URL(Joomla.getOptions("media-picker-api").apiBaseUrl?Joomla.getOptions("media-picker-api").apiBaseUrl:Joomla.getOptions("system.paths").baseFull+"index.php?option=com_media&format=json");l.searchParams.append("task","api.files"),l.searchParams.append("url",!0),l.searchParams.append("path",o.path),l.searchParams.append("mediatypes","0,1,2,3"),l.searchParams.append(Joomla.getOptions("csrf.token"),1),fetch(l,{method:"GET",headers:{"Content-Type":"application/json"}}).then(function(d){return d.json()}).then(function(){var d=j(L().mark(function g(u){return L().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=n,p.next=3,le(u,i,s);case 3:return p.t1=p.sent,p.abrupt("return",(0,p.t0)(p.t1));case 5:case"end":return p.stop()}},g)}));return function(g){return d.apply(this,arguments)}}()).catch(function(d){return a(d)})})},Joomla.getImage=Joomla.getMedia;var se=function(o){te(i,o);function i(){return o.apply(this,arguments)||this}var s=i.prototype;return s.connectedCallback=function(){var a=this;this.type==="images"?(this.innerHTML=`<details open>
<summary>`+this.summarytext+`</summary>
<div class="">
  <div class="form-group">
    <div class="input-group">
      <label class="input-group-text" for="`+this.parentId+'-alt">'+this.alttext+`</label>
      <input class="form-control" type="text" id="`+this.parentId+`-alt" data-is="alt-value" />
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" id="`+this.parentId+`-alt-check">
      <label class="form-check-label" for="`+this.parentId+'-alt-check">'+this.altchecktext+`</label>
      <div><small class="form-text">`+this.altcheckdesctext+`</small></div>
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" id="`+this.parentId+`-lazy" checked>
      <label class="form-check-label" for="`+this.parentId+'-lazy">'+this.lazytext+`</label>
    </div>
  </div>
  <div class="form-group">
    <div class="input-group">
      <label class="input-group-text" for="`+this.parentId+'-classes">'+this.classestext+`</label>
      <input class="form-control" type="text" id="`+this.parentId+`-classes" data-is="img-classes"/>
    </div>
  </div>
  <div class="form-group">
    <div class="input-group">
      <label class="input-group-text" for="`+this.parentId+'-figclasses">'+this.figclassestext+`</label>
      <input class="form-control" type="text" id="`+this.parentId+`-figclasses" data-is="fig-classes"/>
    </div>
  </div>
  <div class="form-group">
    <div class="input-group">
      <label class="input-group-text" for="`+this.parentId+'-figcaption">'+this.figcaptiontext+`</label>
      <input class="form-control" type="text" id="`+this.parentId+`-figcaption" data-is="fig-caption"/>
    </div>
  </div>
</div>
</details>`,this.lazyInputFn=this.lazyInputFn.bind(this),this.altCheckFn=this.altCheckFn.bind(this),this.inputFn=this.inputFn.bind(this),this.lazyInput=this.querySelector("#"+this.parentId+"-lazy"),this.lazyInput.addEventListener("change",this.lazyInputFn),this.altCheck=this.querySelector("#"+this.parentId+"-alt-check"),this.altCheck.addEventListener("input",this.altCheckFn),[].slice.call(this.querySelectorAll('input[type="text"]')).map(function(l){l.addEventListener("input",a.inputFn);var d=l.dataset.is;return d&&a.setAttribute(d,l.value.replace(/"/g,"&quot;")),l}),this.setAttribute("is-lazy",!!this.lazyInput.checked),this.setAttribute("alt-check",!1)):["audios","videos","documents"].includes(this.type)&&(this.innerHTML=`<details open>
<summary>`+this.summarytext+`</summary>
<div class="">
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input radio" type="radio" name="flexRadioDefault" id="`+this.parentId+`-embed-check-2" value="0" checked>
      <label class="form-check-label" for="`+this.parentId+`-embed-check-2">
        `+this.downloadchecktext+`
        <div><small class="form-text">`+this.downloadcheckdesctext+`</small></div>
      </label>
    </div>
    <div class="form-check">
      <input class="form-check-input radio" type="radio" name="flexRadioDefault" id="`+this.parentId+`-embed-check-1" value="1">
      <label class="form-check-label" for="`+this.parentId+`-embed-check-1">
        `+this.embedchecktext+`
        <div><small class="form-text">`+this.embedcheckdesctext+`</small></div>
      </label>
    </div>
  </div>
  <div class="toggable-parts" style="display: none">
    <div style="display: `+(this.type==="audios"?"none":"block")+`">
      <div class="form-group">
        <div class="input-group">
          <label class="input-group-text" for="`+this.parentId+'-width">'+this.widthtext+`</label>
          <input class="form-control" type="text" id="`+this.parentId+`-width" value="800" data-is="width"/>
        </div>
      </div>
      <div class="form-group">
        <div class="input-group">
          <label class="input-group-text" for="`+this.parentId+'-height">'+this.heighttext+`</label>
          <input class="form-control" type="text" id="`+this.parentId+`-height" value="600" data-is="height"/>
        </div>
      </div>
      <div style="display: `+(this.type==="document"?"block":"none")+`">
        <div class="form-group">
          <div class="input-group">
            <label class="input-group-text" for="`+this.parentId+'-title">'+this.titletext+`</label>
            <input class="form-control" type="text" id="`+this.parentId+`-title" value="" data-is="title"/>
          </div>
        </div>
    </div>
  </div>
</div>
</details>`,this.embedInputFn=this.embedInputFn.bind(this),this.inputFn=this.inputFn.bind(this),[].slice.call(this.querySelectorAll(".form-check-input.radio")).map(function(l){return l.addEventListener("input",a.embedInputFn)}),this.setAttribute("embed-it",!1),[].slice.call(this.querySelectorAll('input[type="text"]')).map(function(l){l.addEventListener("input",a.inputFn);var d=l.dataset.is;return d&&a.setAttribute(d,l.value.replace(/"/g,"&quot;")),l}))},s.disconnectedCallback=function(){var a=this;this.type==="image"&&(this.lazyInput.removeEventListener("input",this.lazyInputFn),this.altInput.removeEventListener("input",this.inputFn),this.altCheck.removeEventListener("input",this.altCheckFn)),["audio","video","document"].includes(this.type)&&([].slice.call(this.querySelectorAll(".form-check-input.radio")).map(function(l){return l.removeEventListener("input",a.embedInputFn)}),[].slice.call(this.querySelectorAll('input[type="text"]')).map(function(l){return l.removeEventListener("input",a.embedInputFn)})),this.innerHTML=""},s.lazyInputFn=function(a){this.setAttribute("is-lazy",!!a.target.checked)},s.altCheckFn=function(a){this.setAttribute("alt-check",!!a.target.checked)},s.inputFn=function(a){var l=a.target.dataset.is;l&&this.setAttribute(l,a.target.value.replace(/"/g,"&quot;"))},s.embedInputFn=function(a){var l=a.target.value;this.setAttribute("embed-it",l!=="0");var d=this.querySelector(".toggable-parts");d&&(d.style.display!=="block"?d.style.display="block":d.style.display="none")},ee(i,[{key:"type",get:function(){return this.getAttribute("type")}},{key:"parentId",get:function(){return this.getAttribute("parent-id")}},{key:"lazytext",get:function(){return this.getAttribute("lazy-label")}},{key:"alttext",get:function(){return this.getAttribute("alt-label")}},{key:"altchecktext",get:function(){return this.getAttribute("alt-check-label")}},{key:"altcheckdesctext",get:function(){return this.getAttribute("alt-check-desc-label")}},{key:"embedchecktext",get:function(){return this.getAttribute("embed-check-label")}},{key:"embedcheckdesctext",get:function(){return this.getAttribute("embed-check-desc-label")}},{key:"downloadchecktext",get:function(){return this.getAttribute("download-check-label")}},{key:"downloadcheckdesctext",get:function(){return this.getAttribute("download-check-desc-label")}},{key:"classestext",get:function(){return this.getAttribute("classes-label")}},{key:"figclassestext",get:function(){return this.getAttribute("figure-classes-label")}},{key:"figcaptiontext",get:function(){return this.getAttribute("figure-caption-label")}},{key:"summarytext",get:function(){return this.getAttribute("summary-label")}},{key:"widthtext",get:function(){return this.getAttribute("width-label")}},{key:"heighttext",get:function(){return this.getAttribute("height-label")}},{key:"titletext",get:function(){return this.getAttribute("title-label")}}]),i}(G(HTMLElement));customElements.define("joomla-field-mediamore",se)})();

© 2025 Cubjrnet7