"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[426],{"./dist/ui-stencil/p-c523fbc8.entry.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{x_media:()=>r});var _p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./dist/ui-stencil/p-d85247d2.js"),_p_efbc3883_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./dist/ui-stencil/p-efbc3883.js");const r=class{constructor(a){(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.r)(this,a),this.src=void 0,this.width=void 0,this.height=void 0,this.description=void 0,this.align=void 0,this.rounded=!1}render(){return(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)(_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.H,{key:"efe9b9e58a3f46d5461ea29d95301bc155a1d3d3",class:(0,_p_efbc3883_js__WEBPACK_IMPORTED_MODULE_1__.c)({"media-rounded":this.rounded,"media-right":"right"===this.align})},this.src&&(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)("img",{key:"ba86c1308785fb26fe14633720585a56244c6691",style:{width:this.width,height:this.height},src:this.src,alt:this.description,"aria-label":this.description}),(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)("div",{key:"b8927e5f408a5961d84f2ee790529cb391513dd5",class:"media-body"},(0,_p_d85247d2_js__WEBPACK_IMPORTED_MODULE_0__.h)("slot",{key:"9c1f16a5081a8db0ad974a3d468831c73e9dac93"})))}};r.style="x-media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;margin:0;padding:0;text-align:inherit}x-media>img{margin:0 1.5rem 0 0;max-width:100%;height:auto;background-color:rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 3px 1rem rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(var(--color-border-rgb, 200, 199, 204), 0.35);box-shadow:0px 3px 1rem rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(var(--color-border-rgb, 200, 199, 204), 0.35);-webkit-animation:loadingBG 0.5s infinite alternate;animation:loadingBG 0.5s infinite alternate}.is-dark-mode x-media>img{background-color:rgba(255, 255, 255, 0.1)}x-media>div.media-body{-ms-flex:1;flex:1}x-media.media-rounded>img{border-radius:0.45em}x-media.media-right>img{margin:0 0 0 1.5rem;-ms-flex-order:999;order:999}"},"./dist/ui-stencil/p-efbc3883.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function n(){return Math.random().toString(16).slice(-4)}function t(t1=""){return t1+"-"+n()+n()+"-"+n()+"-"+n()+n()+n()}function e(n){if(void 0===n)return!0;if(null==n)return!0;if(0===(null==n?void 0:n.length))return!0;if((null==n?void 0:n.length)>0)return!1;for(const t in n)if(n.hasOwnProperty(t))return!1;return JSON.stringify(n)===JSON.stringify({})}__webpack_require__.d(__webpack_exports__,{a:()=>u,b:()=>i,c:()=>c,d:()=>t,e:()=>a,f:()=>s,h:()=>r,i:()=>e,t:()=>o});const r=n=>e(n)?null:`${n}`.replace(/\[([^\]]+)\]/g,".$1");function o(n){return function(n){return(n||"").replace(/(\:).+?(\:)/g,(n=>`<i class="${n.replaceAll(":","")}"></i>`))}(function(n){return(n||"").replace(/(\*).+?(\*)/g,(n=>`<strong>${n.replaceAll("*","")}</strong>`))}(function(n){return(n||"").replace(/(\_).+?(\_)/g,(n=>`<em>${n.replaceAll("_","")}</em>`))}(function(n){return(n||"").replace(/(\`).+?(\`)/g,(n=>`<code>${n.replaceAll("`","")}</code>`))}(n))))}function u(){const n=document.querySelector("html").getAttribute("lang")||"es";return["en","es"].includes(n)?n:"es"}function i(n){switch(n){case 400:return"error";case 401:case 403:return"forbidden";case 402:return"payment";case 404:case 405:return"unknown";case 406:return"no-result";case 412:case 418:return"invalid";case 422:return"missing";case 500:return"exception";default:return"failure"}}function c(...n){return n.reduce(((n,t)=>("object"==typeof t&&"string"!=typeof t&&(n=n.concat(Object.keys(t).filter((n=>t[n])))),"object"!=typeof t&&"string"==typeof t&&n.push(t),n)),[]).join(" ")}function a(){if(document.querySelector("body > x-overlay-container"))return document.querySelector("body > x-overlay-container");{const n=document.createElement("x-overlay-container");return document.querySelector("body").appendChild(n),n}}function s(){if(a().querySelector("x-tooltip-overlay"))return a().querySelector("x-tooltip-overlay");{const n=document.createElement("x-tooltip-overlay"),t=document.createElement("span"),e=document.createElement("div");return n.setAttribute("role","tooltip"),e.classList.add("tooltip-arrow"),n.appendChild(t),n.appendChild(e),a().appendChild(n),n}}}}]);