You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
9.5 KiB

(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="5a74")})({"24fb":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var i=o(r),c=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(c).concat([i]).join("\n")}return[n].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<t.length;a++){var s=[].concat(t[a]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},"35d6":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],c=i[0],a=i[1],s=i[2],u=i[3],f={id:t+":"+o,css:a,media:s,sourceMap:u};r[c]?r[c].parts.push(f):n.push(r[c]={id:c,parts:[f]})}return n}function o(t,e,n){var o=r(t,e);i(o,n)}function i(t,e){const n=e._injectedStyles||(e._injectedStyles={});for(var r=0;r<t.length;r++){var o=t[r],i=n[o.id];if(!i){for(var c=0;c<o.parts.length;c++)a(o.parts[c],e);n[o.id]=!0}}}function c(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function a(t,e){var n=c(e),r=t.css,o=t.media,i=t.sourceMap;if(o&&n.setAttribute("media",o),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(e),n.d(e,"default",(function(){return o}))},4933:function(t,e,n){"use strict";n.r(e);var r=n("4f39");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o)},"4f39":function(t,e,n){var r=n("baf5");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("4e3af268",r,t)}},"5a74":function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var c=n("8bbf"),a=n.n(c);const s=/-(\w)/g,u=t=>t.replace(s,(t,e)=>e?e.toUpperCase():""),f=/\B([A-Z])/g,l=t=>t.replace(f,"-$1").toLowerCase();function p(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}function d(t,e,n){t[e]=[].concat(t[e]||[]),t[e].unshift(n)}function h(t,e){if(t){const n=t.$options[e]||[];n.forEach(e=>{e.call(t)})}}function m(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}const b=t=>/function Boolean/.test(String(t)),v=t=>/function Number/.test(String(t));function g(t,e,{type:n}={}){if(b(n))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t||t;if(v(n)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function _(t,e){const n=[];for(let r=0,o=e.length;r<o;r++)n.push(y(t,e[r]));return n}function y(t,e){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){const n={attrs:x(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function x(t){const e={};for(let n=0,r=t.attributes.length;n<r;n++){const r=t.attributes[n];e[r.nodeName]=r.nodeValue}return e}function w(t,e){const n="function"===typeof e&&!e.cid;let r,o,i,c=!1;function a(t){if(c)return;const e="function"===typeof t?t.options:t,n=Array.isArray(e.props)?e.props:Object.keys(e.props||{});r=n.map(l),o=n.map(u);const a=Array.isArray(e.props)?{}:e.props||{};i=o.reduce((t,e,r)=>(t[e]=a[n[r]],t),{}),d(e,"beforeCreate",(function(){const t=this.$emit;this.$emit=(e,...n)=>(this.$root.$options.customElement.dispatchEvent(m(e,n)),t.call(this,e,...n))})),d(e,"created",(function(){o.forEach(t=>{this.$root.props[t]=this[t]})})),o.forEach(t=>{Object.defineProperty(f.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),c=!0}function s(t,e){const n=u(e),r=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[n]=g(r,e,i[n])}class f extends HTMLElement{constructor(){const n=super();n.attachShadow({mode:"open"});const r=n._wrapper=new t({name:"shadow-root",customElement:n,shadowRoot:n.shadowRoot,data(){return{props:{},slotChildren:[]}},render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}}),o=new MutationObserver(t=>{let e=!1;for(let r=0;r<t.length;r++){const o=t[r];c&&"attributes"===o.type&&o.target===n?s(n,o.attributeName):e=!0}e&&(r.slotChildren=Object.freeze(_(r.$createElement,n.childNodes)))});o.observe(n,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const t=this._wrapper;if(t._isMounted)h(this.vueComponent,"activated");else{const n=()=>{t.props=p(o),r.forEach(t=>{s(this,t)})};c?n():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),a(t),n()}),t.slotChildren=Object.freeze(_(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){h(this.vueComponent,"deactivated")}}return n||a(e),f}var S=w;n("24fb"),n("35d6");function C(t,e,n,r,o,i,c,a){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),c?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},u._ssrRegister=s):o&&(s=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}var E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kolotoc"},[n("button",{on:{click:function(e){t.index=1}}},[t._v("←←←")]),n("button",{on:{click:function(e){t.index+=1}}},[t._v("→→→")]),n("br"),n("div",{staticClass:"obraz"},[n("img",{attrs:{src:t.images[t.index].src,alt:""}}),n("br"),n("h1",[n("span",[t._v(t._s(t.images[t.index].title))])]),n("h1",[n("span",[t._v(t._s(t.images[t.index].text))])])])])},j=[],O={props:{images:{default:()=>[]}},data:function(){return{index:0}},watch:{index:function(t){let e=this.images.lenght-1;t<0?this.index=e:t>e&&(this.index=0)}}},$=O;function R(t){var e=n("4933");e.__inject__&&e.__inject__(t)}var T=C($,E,j,!1,R,null,null,!0),M=T.exports;window.customElements.define("muj-kolotoc",S(a.a,M))},8875:function(t,e,n){var r,o,i;(function(n,c){o=[],r=c,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(d.stack)||c.exec(d.stack),s=a&&a[1]||!1,u=a&&a[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");s===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===s)return l[p];if(s===f&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return t}))},"8bbf":function(t,e){t.exports=Vue},baf5:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,"img{width:60%;display:block;margin:0 auto}span{font-family:Arial,Helvetica,sans-serif}button{width:20%;height:30px;display:block}#app,button{margin:0 auto}#app{font-family:Arial,Helvetica,sans-serif;color:#f5f5f5;width:50%;background-color:#0c1821}h1{text-align:center}@media (max-width:500px){img{width:100%}button,img{display:block;margin:0 auto}button{background-color:#56a6db;width:50%;height:30px}#app{margin:0 auto;width:50%;background-color:#d2691e}h1{text-align:center}}",""]),t.exports=e}});
//# sourceMappingURL=muj-kolotoc.min.js.map