!function(A,E){"object"==typeof exports&&"object"==typeof module?module.exports=E():"function"==typeof define&&define.amd?define("EmbedBoxjoomlaTarget",[],E):"object"==typeof exports?exports.EmbedBoxjoomlaTarget=E():A.EmbedBoxjoomlaTarget=E()}(this,function(){return function(A){function E(C){if(I[C])return I[C].exports;var Q=I[C]={i:C,l:!1,exports:{}};return A[C].call(Q.exports,Q,Q.exports,E),Q.l=!0,Q.exports}var I={};return E.m=A,E.c=I,E.i=function(A){return A},E.d=function(A,E,I){Object.defineProperty(A,E,{configurable:!1,enumerable:!0,get:I})},E.o=function(A,E){return Object.prototype.hasOwnProperty.call(A,E)},E.p="/",E(E.s=27)}([function(A,E,I){"use strict";function C(A,E){if(1===arguments.length){for(var I=A[0],Q=1;Q ":" ")+I+"| "+A}).join("\n");throw A.path=E,A.message=(E||"Pug")+":"+C+"\n"+B+"\n\n"+A.message,A}var v=Object.prototype.hasOwnProperty;E.merge=C,E.classes=B,E.style=i,E.attr=R,E.attrs=e;var n=/["&<>]/;E.escape=f,E.rethrow=t},function(A,E,I){"use strict";function C(){var A=arguments.length<=0||void 0===arguments[0]?window:arguments[0];return A.EmbedBoxStore}E.a=C;Object.assign||function(A){for(var E=1;E':this.config.embedCode||I.i(o.a)().embedCode}},{key:"fallback",get:function(){return this.constructor.fallback}},{key:"label",get:function(){return this.constructor.label}},{key:"location",get:function(){var A=this.config.insertInHead,E=I.i(o.a)().insertInHead,C="undefined"!=typeof A?A:E;return C?"head":"body"}},{key:"id",get:function(){return this.constructor.id}},{key:"templateVars",get:function(){return this.constructor.templateVars}}]),E}(t.a),u.beforeContentTemplate=R.a,u.afterContentTemplate=f.a,u.extend=function(){var A,E,I=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],B=I.fallback,i=I.id,R=I.label,e=I.template,f=I.templateVars;if(!i)throw new Error("EmbedBox: Target must have `id`");if(!R)throw new Error("EmbedBox: Target must have `label`");return E=A=function(A){function E(){return C(this,E),Q(this,Object.getPrototypeOf(E).apply(this,arguments))}return g(E,A),E}(h),A.fallback=B||!1,A.id=i,A.label=R,A.template=e||"",A.templateVars=f||{},E},c=r,B(c.prototype,"startDownload",[P.a],Object.getOwnPropertyDescriptor(c.prototype,"startDownload"),c.prototype),c)},function(A,E,I){var C,Q,g;!function(B,i){Q=[A,I(16)],C=i,g="function"==typeof C?C.apply(E,Q):C,!(void 0!==g&&(A.exports=g))}(this,function(A,E){"use strict";function I(A){return A&&A.__esModule?A:{"default":A}}function C(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")}var Q=I(E),g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol?"symbol":typeof A},B=function(){function A(A,E){for(var I=0;I'+(null==(E=A.afterContent)?"":E)+"
"+(null==(E=this.config.afterContent)?"":E)+"
")}.call(this,"config"in C?C.config:"undefined"!=typeof config?config:void 0),I}I(0);A.exports=C},function(A,E,I){function C(A){var E,I="",C=A||{};return function(A){(A.beforeContent||this.config.beforeContent)&&(I=I+''+(null==(E=A.beforeContent)?"":E)+"
"+(null==(E=this.config.beforeContent)?"":E)+"
")}.call(this,"config"in C?C.config:"undefined"!=typeof config?config:void 0),I}I(0);A.exports=C},function(A,E,I){function C(A){var E,C="",g=A||{};return function(A){C=C+"Installing "+Q.escape(null==(E=A.name)?"":E)+" onto a Joomla site "+(null==(E=this.renderBeforeContent())?"":E)+'',this.downloadURL?C=C+'After downloading, don’t unzip the file.
Upload the plugin to your Joomla Admin site In your Joomla Admin, navigate to: Extensions > Install > Upload Package File .
Click “Choose File” and select the file you just downloaded.
Activate the plugin and view your site On the Extensions > Manage page, search for "+Q.escape(null==(E=A.name?"“"+A.name+"”":"the plugin")?"":E)+".
When you’ve found the plugin, click the red “×” to enable the extension.
Congrats, the installation is done!
":(C=C+"In your Joomla Admin, navigate to: Extensions > Templates > Templates . Choose the template which is currently being used to power your site. If you’re not sure which template this is you can add this embed code to all of your templates by repeating this process.
Select the “index.php” file. Copy the code to your site's <"+Q.escape(null==(E=this.location)?"":E)+'> tag. Copy '+Q.escape(null==(E=this.copyText)?"":E)+"
",C="head"===this.location?C+"Carefully search for the <head>
tag.\nThere will be other similar tags, but you only want the one with that exact name.\nIt should be near the beginning of the file. Insert the embed code just after that tag.
":C+"Carefully search for the </body>
tag.\nThere will be other similar tags, but you only want the one with that exact name.\nIt should be near the end of the file.\nInsert the embed code just before that tag.
",C=C+"Click “Save & Close”. You’re done!
"),C=C+""+(null==(E=this.renderAfterContent())?"":E)+""}.call(this,"config"in g?g.config:"undefined"!=typeof config?config:void 0),C}var Q=I(0);A.exports=C},function(A,E){function I(A){var E;if("INPUT"===A.nodeName||"TEXTAREA"===A.nodeName)A.focus(),A.setSelectionRange(0,A.value.length),E=A.value;else{A.hasAttribute("contenteditable")&&A.focus();var I=window.getSelection(),C=document.createRange();C.selectNodeContents(A),I.removeAllRanges(),I.addRange(C),E=I.toString()}return E}A.exports=I},function(A,E){function I(){}I.prototype={on:function(A,E,I){var C=this.e||(this.e={});return(C[A]||(C[A]=[])).push({fn:E,ctx:I}),this},once:function(A,E,I){function C(){Q.off(A,C),E.apply(I,arguments)}var Q=this;return C._=E,this.on(A,C,I)},emit:function(A){var E=[].slice.call(arguments,1),I=((this.e||(this.e={}))[A]||[]).slice(),C=0,Q=I.length;for(C;C