@everymatrix/player-account-product-restriction 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var ea=Object.defineProperty,ta=Object.defineProperties;var ia=Object.getOwnPropertyDescriptors;var eo=Object.getOwnPropertySymbols;var ra=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable;var to=(r,e,t)=>e in r?ea(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,io=(r,e)=>{for(var t in e||(e={}))ra.call(e,t)&&to(r,t,e[t]);if(eo)for(var t of eo(e))oa.call(e,t)&&to(r,t,e[t]);return r},ro=(r,e)=>ta(r,ia(e));var oo=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerAccountGeneralConfirmationModal-PCbzMqfA.cjs");require("../stencil/ui-skeleton-D9ekrDIX.cjs");var ps={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",c="day",h="week",u="month",_="quarter",m="year",C="date",I="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var g=["th","st","nd","rd"],f=k%100;return"["+k+(g[(f-20)%10]||g[f]||g[0])+"]"}},j=function(k,g,f){var b=String(k);return!b||b.length>=g?k:""+Array(g+1-b.length).join(f)+k},U={s:j,z:function(k){var g=-k.utcOffset(),f=Math.abs(g),b=Math.floor(f/60),v=f%60;return(g<=0?"+":"-")+j(b,2,"0")+":"+j(v,2,"0")},m:function k(g,f){if(g.date()<f.date())return-k(f,g);var b=12*(f.year()-g.year())+(f.month()-g.month()),v=g.clone().add(b,u),A=f-v<0,E=g.clone().add(b+(A?-1:1),u);return+(-(b+(f-v)/(A?v-E:E-v))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:u,y:m,w:h,d:c,D:C,h:l,m:a,s:n,ms:s,Q:_}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},N="en",O={};O[N]=M;var ke="$isDayjsObject",K=function(k){return k instanceof X||!(!k||!k[ke])},me=function k(g,f,b){var v;if(!g)return N;if(typeof g=="string"){var A=g.toLowerCase();O[A]&&(v=A),f&&(O[A]=f,v=A);var E=g.split("-");if(!v&&E.length>1)return k(E[0])}else{var R=g.name;O[R]=g,v=R}return!b&&v&&(N=v),v||!b&&N},H=function(k,g){if(K(k))return k.clone();var f=typeof g=="object"?g:{};return f.date=k,f.args=arguments,new X(f)},T=U;T.l=me,T.i=K,T.w=function(k,g){return H(k,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var X=function(){function k(f){this.$L=me(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[ke]=!0}var g=k.prototype;return g.parse=function(f){this.$d=function(b){var v=b.date,A=b.utc;if(v===null)return new Date(NaN);if(T.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(S);if(E){var R=E[2]-1||0,F=(E[7]||"0").substring(0,3);return A?new Date(Date.UTC(E[1],R,E[3]||1,E[4]||0,E[5]||0,E[6]||0,F)):new Date(E[1],R,E[3]||1,E[4]||0,E[5]||0,E[6]||0,F)}}return new Date(v)}(f),this.init()},g.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return this.$d.toString()!==I},g.isSame=function(f,b){var v=H(f);return this.startOf(b)<=v&&v<=this.endOf(b)},g.isAfter=function(f,b){return H(f)<this.startOf(b)},g.isBefore=function(f,b){return this.endOf(b)<H(f)},g.$g=function(f,b,v){return T.u(f)?this[b]:this.set(v,f)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(f,b){var v=this,A=!!T.u(b)||b,E=T.p(f),R=function(Q,G){var le=T.w(v.$u?Date.UTC(v.$y,G,Q):new Date(v.$y,G,Q),v);return A?le:le.endOf(c)},F=function(Q,G){return T.w(v.toDate()[Q].apply(v.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(G)),v)},W=this.$W,Y=this.$M,Z=this.$D,se="set"+(this.$u?"UTC":"");switch(E){case m:return A?R(1,0):R(31,11);case u:return A?R(1,Y):R(0,Y+1);case h:var ce=this.$locale().weekStart||0,_e=(W<ce?W+7:W)-ce;return R(A?Z-_e:Z+(6-_e),Y);case c:case C:return F(se+"Hours",0);case l:return F(se+"Minutes",1);case a:return F(se+"Seconds",2);case n:return F(se+"Milliseconds",3);default:return this.clone()}},g.endOf=function(f){return this.startOf(f,!1)},g.$set=function(f,b){var v,A=T.p(f),E="set"+(this.$u?"UTC":""),R=(v={},v[c]=E+"Date",v[C]=E+"Date",v[u]=E+"Month",v[m]=E+"FullYear",v[l]=E+"Hours",v[a]=E+"Minutes",v[n]=E+"Seconds",v[s]=E+"Milliseconds",v)[A],F=A===c?this.$D+(b-this.$W):b;if(A===u||A===m){var W=this.clone().set(C,1);W.$d[R](F),W.init(),this.$d=W.set(C,Math.min(this.$D,W.daysInMonth())).$d}else R&&this.$d[R](F);return this.init(),this},g.set=function(f,b){return this.clone().$set(f,b)},g.get=function(f){return this[T.p(f)]()},g.add=function(f,b){var v,A=this;f=Number(f);var E=T.p(b),R=function(Y){var Z=H(A);return T.w(Z.date(Z.date()+Math.round(Y*f)),A)};if(E===u)return this.set(u,this.$M+f);if(E===m)return this.set(m,this.$y+f);if(E===c)return R(1);if(E===h)return R(7);var F=(v={},v[a]=i,v[l]=o,v[n]=t,v)[E]||1,W=this.$d.getTime()+f*F;return T.w(W,this)},g.subtract=function(f,b){return this.add(-1*f,b)},g.format=function(f){var b=this,v=this.$locale();if(!this.isValid())return v.invalidDate||I;var A=f||"YYYY-MM-DDTHH:mm:ssZ",E=T.z(this),R=this.$H,F=this.$m,W=this.$M,Y=v.weekdays,Z=v.months,se=v.meridiem,ce=function(G,le,he,fe){return G&&(G[le]||G(b,A))||he[le].slice(0,fe)},_e=function(G){return T.s(R%12||12,G,"0")},Q=se||function(G,le,he){var fe=G<12?"AM":"PM";return he?fe.toLowerCase():fe};return A.replace(D,function(G,le){return le||function(he){switch(he){case"YY":return String(b.$y).slice(-2);case"YYYY":return T.s(b.$y,4,"0");case"M":return W+1;case"MM":return T.s(W+1,2,"0");case"MMM":return ce(v.monthsShort,W,Z,3);case"MMMM":return ce(Z,W);case"D":return b.$D;case"DD":return T.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ce(v.weekdaysMin,b.$W,Y,2);case"ddd":return ce(v.weekdaysShort,b.$W,Y,3);case"dddd":return Y[b.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return Q(R,F,!0);case"A":return Q(R,F,!1);case"m":return String(F);case"mm":return T.s(F,2,"0");case"s":return String(b.$s);case"ss":return T.s(b.$s,2,"0");case"SSS":return T.s(b.$ms,3,"0");case"Z":return E}return null}(G)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(f,b,v){var A,E=this,R=T.p(b),F=H(f),W=(F.utcOffset()-this.utcOffset())*i,Y=this-F,Z=function(){return T.m(E,F)};switch(R){case m:A=Z()/12;break;case u:A=Z();break;case _:A=Z()/3;break;case h:A=(Y-W)/6048e5;break;case c:A=(Y-W)/864e5;break;case l:A=Y/o;break;case a:A=Y/i;break;case n:A=Y/t;break;default:A=Y}return v?A:T.a(A)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return O[this.$L]},g.locale=function(f,b){if(!f)return this.$L;var v=this.clone(),A=me(f,b,!0);return A&&(v.$L=A),v},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},k}(),ye=X.prototype;return H.prototype=ye,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",c],["$M",u],["$y",m],["$D",C]].forEach(function(k){ye[k[1]]=function(g){return this.$g(g,k[0],k[1])}}),H.extend=function(k,g){return k.$i||(k(g,X,H),k.$i=!0),H},H.locale=me,H.isDayjs=K,H.unix=function(k){return H(1e3*k)},H.en=O[N],H.Ls=O,H.p={},H})})(ps);var sa=ps.exports;const Qe=d.getDefaultExportFromCjs(sa);function so(r,e){d.addMessages(r,e)}function na(r){d.$locale.set(r)}const no={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino + Virtuals",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino + Virtuels",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou + Virtuale",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino + Virtuais",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino + Virtualni",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino + Virtuais",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino + Virtuales",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane + Sanal",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};var aa=Object.defineProperty,la=Object.defineProperties,da=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,ha=Object.prototype.propertyIsEnumerable,Yi=(r,e,t)=>e in r?aa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ei=(r,e)=>{for(var t in e||(e={}))ca.call(e,t)&&Yi(r,t,e[t]);if(ao)for(var t of ao(e))ha.call(e,t)&&Yi(r,t,e[t]);return r},ms=(r,e)=>la(r,da(e)),ae=(r,e,t)=>(Yi(r,typeof e!="symbol"?e+"":e,t),t),ti=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});/**
1
+ "use strict";var ea=Object.defineProperty,ta=Object.defineProperties;var ia=Object.getOwnPropertyDescriptors;var eo=Object.getOwnPropertySymbols;var ra=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable;var to=(r,e,t)=>e in r?ea(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,io=(r,e)=>{for(var t in e||(e={}))ra.call(e,t)&&to(r,t,e[t]);if(eo)for(var t of eo(e))oa.call(e,t)&&to(r,t,e[t]);return r},ro=(r,e)=>ta(r,ia(e));var oo=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerAccountGeneralConfirmationModal-PCbzMqfA.cjs");require("../stencil/ui-skeleton-BL4789dS.cjs");var ps={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",c="day",h="week",u="month",_="quarter",m="year",C="date",I="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var g=["th","st","nd","rd"],f=k%100;return"["+k+(g[(f-20)%10]||g[f]||g[0])+"]"}},j=function(k,g,f){var b=String(k);return!b||b.length>=g?k:""+Array(g+1-b.length).join(f)+k},U={s:j,z:function(k){var g=-k.utcOffset(),f=Math.abs(g),b=Math.floor(f/60),v=f%60;return(g<=0?"+":"-")+j(b,2,"0")+":"+j(v,2,"0")},m:function k(g,f){if(g.date()<f.date())return-k(f,g);var b=12*(f.year()-g.year())+(f.month()-g.month()),v=g.clone().add(b,u),A=f-v<0,E=g.clone().add(b+(A?-1:1),u);return+(-(b+(f-v)/(A?v-E:E-v))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:u,y:m,w:h,d:c,D:C,h:l,m:a,s:n,ms:s,Q:_}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},N="en",O={};O[N]=M;var ke="$isDayjsObject",K=function(k){return k instanceof X||!(!k||!k[ke])},me=function k(g,f,b){var v;if(!g)return N;if(typeof g=="string"){var A=g.toLowerCase();O[A]&&(v=A),f&&(O[A]=f,v=A);var E=g.split("-");if(!v&&E.length>1)return k(E[0])}else{var R=g.name;O[R]=g,v=R}return!b&&v&&(N=v),v||!b&&N},H=function(k,g){if(K(k))return k.clone();var f=typeof g=="object"?g:{};return f.date=k,f.args=arguments,new X(f)},T=U;T.l=me,T.i=K,T.w=function(k,g){return H(k,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var X=function(){function k(f){this.$L=me(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[ke]=!0}var g=k.prototype;return g.parse=function(f){this.$d=function(b){var v=b.date,A=b.utc;if(v===null)return new Date(NaN);if(T.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(S);if(E){var R=E[2]-1||0,F=(E[7]||"0").substring(0,3);return A?new Date(Date.UTC(E[1],R,E[3]||1,E[4]||0,E[5]||0,E[6]||0,F)):new Date(E[1],R,E[3]||1,E[4]||0,E[5]||0,E[6]||0,F)}}return new Date(v)}(f),this.init()},g.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return this.$d.toString()!==I},g.isSame=function(f,b){var v=H(f);return this.startOf(b)<=v&&v<=this.endOf(b)},g.isAfter=function(f,b){return H(f)<this.startOf(b)},g.isBefore=function(f,b){return this.endOf(b)<H(f)},g.$g=function(f,b,v){return T.u(f)?this[b]:this.set(v,f)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(f,b){var v=this,A=!!T.u(b)||b,E=T.p(f),R=function(Q,G){var le=T.w(v.$u?Date.UTC(v.$y,G,Q):new Date(v.$y,G,Q),v);return A?le:le.endOf(c)},F=function(Q,G){return T.w(v.toDate()[Q].apply(v.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(G)),v)},W=this.$W,Y=this.$M,Z=this.$D,se="set"+(this.$u?"UTC":"");switch(E){case m:return A?R(1,0):R(31,11);case u:return A?R(1,Y):R(0,Y+1);case h:var ce=this.$locale().weekStart||0,_e=(W<ce?W+7:W)-ce;return R(A?Z-_e:Z+(6-_e),Y);case c:case C:return F(se+"Hours",0);case l:return F(se+"Minutes",1);case a:return F(se+"Seconds",2);case n:return F(se+"Milliseconds",3);default:return this.clone()}},g.endOf=function(f){return this.startOf(f,!1)},g.$set=function(f,b){var v,A=T.p(f),E="set"+(this.$u?"UTC":""),R=(v={},v[c]=E+"Date",v[C]=E+"Date",v[u]=E+"Month",v[m]=E+"FullYear",v[l]=E+"Hours",v[a]=E+"Minutes",v[n]=E+"Seconds",v[s]=E+"Milliseconds",v)[A],F=A===c?this.$D+(b-this.$W):b;if(A===u||A===m){var W=this.clone().set(C,1);W.$d[R](F),W.init(),this.$d=W.set(C,Math.min(this.$D,W.daysInMonth())).$d}else R&&this.$d[R](F);return this.init(),this},g.set=function(f,b){return this.clone().$set(f,b)},g.get=function(f){return this[T.p(f)]()},g.add=function(f,b){var v,A=this;f=Number(f);var E=T.p(b),R=function(Y){var Z=H(A);return T.w(Z.date(Z.date()+Math.round(Y*f)),A)};if(E===u)return this.set(u,this.$M+f);if(E===m)return this.set(m,this.$y+f);if(E===c)return R(1);if(E===h)return R(7);var F=(v={},v[a]=i,v[l]=o,v[n]=t,v)[E]||1,W=this.$d.getTime()+f*F;return T.w(W,this)},g.subtract=function(f,b){return this.add(-1*f,b)},g.format=function(f){var b=this,v=this.$locale();if(!this.isValid())return v.invalidDate||I;var A=f||"YYYY-MM-DDTHH:mm:ssZ",E=T.z(this),R=this.$H,F=this.$m,W=this.$M,Y=v.weekdays,Z=v.months,se=v.meridiem,ce=function(G,le,he,fe){return G&&(G[le]||G(b,A))||he[le].slice(0,fe)},_e=function(G){return T.s(R%12||12,G,"0")},Q=se||function(G,le,he){var fe=G<12?"AM":"PM";return he?fe.toLowerCase():fe};return A.replace(D,function(G,le){return le||function(he){switch(he){case"YY":return String(b.$y).slice(-2);case"YYYY":return T.s(b.$y,4,"0");case"M":return W+1;case"MM":return T.s(W+1,2,"0");case"MMM":return ce(v.monthsShort,W,Z,3);case"MMMM":return ce(Z,W);case"D":return b.$D;case"DD":return T.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ce(v.weekdaysMin,b.$W,Y,2);case"ddd":return ce(v.weekdaysShort,b.$W,Y,3);case"dddd":return Y[b.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return Q(R,F,!0);case"A":return Q(R,F,!1);case"m":return String(F);case"mm":return T.s(F,2,"0");case"s":return String(b.$s);case"ss":return T.s(b.$s,2,"0");case"SSS":return T.s(b.$ms,3,"0");case"Z":return E}return null}(G)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(f,b,v){var A,E=this,R=T.p(b),F=H(f),W=(F.utcOffset()-this.utcOffset())*i,Y=this-F,Z=function(){return T.m(E,F)};switch(R){case m:A=Z()/12;break;case u:A=Z();break;case _:A=Z()/3;break;case h:A=(Y-W)/6048e5;break;case c:A=(Y-W)/864e5;break;case l:A=Y/o;break;case a:A=Y/i;break;case n:A=Y/t;break;default:A=Y}return v?A:T.a(A)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return O[this.$L]},g.locale=function(f,b){if(!f)return this.$L;var v=this.clone(),A=me(f,b,!0);return A&&(v.$L=A),v},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},k}(),ye=X.prototype;return H.prototype=ye,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",c],["$M",u],["$y",m],["$D",C]].forEach(function(k){ye[k[1]]=function(g){return this.$g(g,k[0],k[1])}}),H.extend=function(k,g){return k.$i||(k(g,X,H),k.$i=!0),H},H.locale=me,H.isDayjs=K,H.unix=function(k){return H(1e3*k)},H.en=O[N],H.Ls=O,H.p={},H})})(ps);var sa=ps.exports;const Qe=d.getDefaultExportFromCjs(sa);function so(r,e){d.addMessages(r,e)}function na(r){d.$locale.set(r)}const no={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino + Virtuals",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino + Virtuels",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou + Virtuale",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino + Virtuais",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino + Virtualni",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino + Virtuais",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino + Virtuales",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane + Sanal",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};var aa=Object.defineProperty,la=Object.defineProperties,da=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,ha=Object.prototype.propertyIsEnumerable,Yi=(r,e,t)=>e in r?aa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ei=(r,e)=>{for(var t in e||(e={}))ca.call(e,t)&&Yi(r,t,e[t]);if(ao)for(var t of ao(e))ha.call(e,t)&&Yi(r,t,e[t]);return r},ms=(r,e)=>la(r,da(e)),ae=(r,e,t)=>(Yi(r,typeof e!="symbol"?e+"":e,t),t),ti=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5636,4 +5636,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5636
5636
  `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Si(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}L(yu);if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-Bj4WVhh1.cjs")).then(({default:e})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",e.element)})}if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-PCbzMqfA.cjs")).then(e=>e.PlayerAccountGeneralConfirmationModal_ce).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}function xu(r){d.append_styles(r,"svelte-q8bsrd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}@container (max-width: 768px){.ProductRestrictionContainer .ProductRestrictionWrapper{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:none}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function ns(r,e,t){const i=r.slice();return i[69]=e[t],i[71]=t,i}function as(r,e,t){const i=r.slice();return i[72]=e[t],i}function wu(r,e,t){const i=r.slice();return i[64]=e[t],i}function Cu(r,e,t){const i=r.slice();return i[64]=e[t],i}function Pu(r){let e,t,i,o,s,n,a,l,c,h,u,_,m=r[24]("titleProductRestriction")+"",C,I,S,D=r[24]("titleProductRestriction")+"",M,j,U,N,O=r[24]("productRestrictionText",{values:{baseurl:r[1],lang:r[0]}})+"",ke,K,me=r[24]("productRestrictionEmailText")+"",H,T,X,ye,k=r[24](`${r[15]}`)+"",g,f,b,v,A,E,R,F,W,Y,Z,se,ce,_e,Q,G=r[24]("save")+"",le,he,fe,ut,Je,pt,Xe,mt,Ae=d.ensure_array_like(r[8]),te=[];for(let w=0;w<Ae.length;w+=1)te[w]=ls(as(r,Ae,w));let ie=r[19]&&ds(r);function $t(w,p){return w[18]?Iu:w[14]?Au:Eu}let Ze=$t(r),ve=Ze(r),Oe=d.ensure_array_like(r[10]),re=[];for(let w=0;w<Oe.length;w+=1)re[w]=hs(ns(r,Oe,w));let ne=r[23]&&us(r),Ee=r[26]&&Su(r);return{c(){e=d.element("div"),t=d.element("div"),i=d.element("button"),o=d.svg_element("svg"),s=d.svg_element("defs"),n=d.svg_element("style"),a=d.text(`.svgClass {
5637
5637
  fill: var(--emw--color-primary, #22b04e);
5638
5638
  }
5639
- `),l=d.svg_element("g"),c=d.svg_element("g"),h=d.svg_element("path"),u=d.space(),_=d.element("h2"),C=d.text(m),I=d.space(),S=d.element("h2"),M=d.text(D),j=d.space(),U=d.element("div"),N=d.element("p"),ke=d.space(),K=d.element("p"),H=d.space(),T=d.element("div"),X=d.element("div"),ye=d.element("p"),g=d.text(k),f=d.space(),b=d.svg_element("svg"),v=d.svg_element("g"),A=d.svg_element("path"),E=d.space(),R=d.element("div");for(let w=0;w<te.length;w+=1)te[w].c();F=d.space(),ie&&ie.c(),W=d.space(),Y=d.element("div"),ve.c(),Z=d.space(),se=d.element("div");for(let w=0;w<re.length;w+=1)re[w].c();ce=d.space(),_e=d.element("div"),Q=d.element("button"),le=d.text(G),ut=d.space(),ne&&ne.c(),Je=d.space(),Ee&&Ee.c(),pt=d.empty(),d.attr(h,"class","svgClass"),d.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(h,"transform","translate(15 15) rotate(180)"),d.attr(c,"transform","translate(20 158)"),d.attr(l,"transform","translate(-20 -158)"),d.attr(o,"xmlns","http://www.w3.org/2000/svg"),d.attr(o,"width","15"),d.attr(o,"height","15"),d.attr(o,"viewBox","0 0 15 15"),d.attr(_,"class","PlayerProductRestrictionTitleMobile"),d.attr(i,"class","MenuReturnButton"),d.attr(S,"class","PlayerProductRestrictionTitle"),d.attr(N,"class","ProductRestrictionDescriptionText"),d.attr(K,"class","ProductRestrictionDescriptionText"),d.attr(U,"class","ProductRestrictionDescription"),d.attr(A,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(A,"stroke-linecap","round"),d.attr(b,"xmlns","http://www.w3.org/2000/svg"),d.attr(b,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(b,"version","1.1"),d.attr(b,"viewBox","0 0 100 100"),d.attr(b,"xml:space","preserve"),d.attr(b,"class","ProductRestrictionConfigIcon"),d.toggle_class(b,"active",r[21]),d.attr(X,"class","ProductRestrictionConfigLabel"),d.attr(R,"class","ProductRestrictionDropDown"),d.toggle_class(R,"active",r[21]),d.attr(T,"class","ProductRestrictionConfigWrapper"),d.toggle_class(T,"active",r[21]),d.attr(Y,"class","ProductRestrictionNotification"),d.attr(se,"class","ProductResitrctionTypes"),d.attr(Q,"class",he="ProductRestrictionSave "+(r[20]?"active":"")),Q.disabled=fe=!r[20],d.attr(_e,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper"),d.attr(e,"class","ProductRestrictionContainer")},m(w,p){d.insert(w,e,p),d.append(e,t),d.append(t,i),d.append(i,o),d.append(o,s),d.append(s,n),d.append(n,a),d.append(o,l),d.append(l,c),d.append(c,h),d.append(i,u),d.append(i,_),d.append(_,C),d.append(t,I),d.append(t,S),d.append(S,M),d.append(t,j),d.append(t,U),d.append(U,N),N.innerHTML=O,d.append(U,ke),d.append(U,K),K.innerHTML=me,d.append(t,H),d.append(t,T),d.append(T,X),d.append(X,ye),d.append(ye,g),d.append(X,f),d.append(X,b),d.append(b,v),d.append(v,A),d.append(T,E),d.append(T,R);for(let y=0;y<te.length;y+=1)te[y]&&te[y].m(R,null);d.append(t,F),ie&&ie.m(t,null),d.append(t,W),d.append(t,Y),ve.m(Y,null),d.append(t,Z),d.append(t,se);for(let y=0;y<re.length;y+=1)re[y]&&re[y].m(se,null);d.append(t,ce),d.append(t,_e),d.append(_e,Q),d.append(Q,le),d.append(t,ut),ne&&ne.m(t,null),d.insert(w,Je,p),Ee&&Ee.m(w,p),d.insert(w,pt,p),Xe||(mt=[d.listen(i,"click",r[39]),d.listen(X,"click",r[40]),d.listen(Q,"click",r[44])],Xe=!0)},p(w,p){if(p[0]&16777216&&m!==(m=w[24]("titleProductRestriction")+"")&&d.set_data(C,m),p[0]&16777216&&D!==(D=w[24]("titleProductRestriction")+"")&&d.set_data(M,D),p[0]&16777219&&O!==(O=w[24]("productRestrictionText",{values:{baseurl:w[1],lang:w[0]}})+"")&&(N.innerHTML=O),p[0]&16777216&&me!==(me=w[24]("productRestrictionEmailText")+"")&&(K.innerHTML=me),p[0]&16809984&&k!==(k=w[24](`${w[15]}`)+"")&&d.set_data(g,k),p[0]&2097152&&d.toggle_class(b,"active",w[21]),p[0]&536871168){Ae=d.ensure_array_like(w[8]);let y;for(y=0;y<Ae.length;y+=1){const z=as(w,Ae,y);te[y]?te[y].p(z,p):(te[y]=ls(z),te[y].c(),te[y].m(R,null))}for(;y<te.length;y+=1)te[y].d(1);te.length=Ae.length}if(p[0]&2097152&&d.toggle_class(R,"active",w[21]),p[0]&2097152&&d.toggle_class(T,"active",w[21]),w[19]?ie?ie.p(w,p):(ie=ds(w),ie.c(),ie.m(t,W)):ie&&(ie.d(1),ie=null),Ze===(Ze=$t(w))&&ve?ve.p(w,p):(ve.d(1),ve=Ze(w),ve&&(ve.c(),ve.m(Y,null))),p[0]&150996480){Oe=d.ensure_array_like(w[10]);let y;for(y=0;y<Oe.length;y+=1){const z=ns(w,Oe,y);re[y]?re[y].p(z,p):(re[y]=hs(z),re[y].c(),re[y].m(se,null))}for(;y<re.length;y+=1)re[y].d(1);re.length=Oe.length}p[0]&16777216&&G!==(G=w[24]("save")+"")&&d.set_data(le,G),p[0]&1048576&&he!==(he="ProductRestrictionSave "+(w[20]?"active":""))&&d.attr(Q,"class",he),p[0]&1048576&&fe!==(fe=!w[20])&&(Q.disabled=fe),w[23]?ne?ne.p(w,p):(ne=us(w),ne.c(),ne.m(t,null)):ne&&(ne.d(1),ne=null),w[26]&&Ee.p(w,p)},d(w){w&&(d.detach(e),d.detach(Je),d.detach(pt)),d.destroy_each(te,w),ie&&ie.d(),ve.d(),d.destroy_each(re,w),ne&&ne.d(),Ee&&Ee.d(w),Xe=!1,d.run_all(mt)}}}function ku(r){let e,t,i,o,s,n,a,l,c,h,u,_,m,C,I,S,D,M=d.ensure_array_like({length:3}),j=[];for(let O=0;O<M.length;O+=1)j[O]=Tu(Cu(r,M,O));let U=d.ensure_array_like({length:3}),N=[];for(let O=0;O<U.length;O+=1)N[O]=Du(wu(r,U,O));return{c(){e=d.element("div"),t=d.element("div"),i=d.element("div"),i.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',o=d.space(),s=d.element("h2"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',n=d.space(),a=d.element("div");for(let O=0;O<j.length;O+=1)j[O].c();l=d.space(),c=d.element("ui-skeleton"),h=d.space(),u=d.element("div"),u.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',_=d.space(),m=d.element("div"),m.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',C=d.space(),I=d.element("div");for(let O=0;O<N.length;O+=1)N[O].c();S=d.space(),D=d.element("div"),D.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.attr(i,"class","MenuReturnButton"),d.attr(s,"class","PlayerProductRestrictionTitle"),d.set_custom_element_data(c,"structure","text"),d.set_custom_element_data(c,"width","auto"),d.set_custom_element_data(c,"height","10px"),d.attr(a,"class","ProductRestrictionDescription"),d.attr(u,"class","ProductRestrictionConfigWrapper"),d.attr(m,"class","ProductRestrictionNotification"),d.attr(I,"class","ProductResitrctionTypes"),d.attr(D,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton"),d.attr(e,"class","ProductRestrictionContainer")},m(O,ke){d.insert(O,e,ke),d.append(e,t),d.append(t,i),d.append(t,o),d.append(t,s),d.append(t,n),d.append(t,a);for(let K=0;K<j.length;K+=1)j[K]&&j[K].m(a,null);d.append(a,l),d.append(a,c),d.append(t,h),d.append(t,u),d.append(t,_),d.append(t,m),d.append(t,C),d.append(t,I);for(let K=0;K<N.length;K+=1)N[K]&&N[K].m(I,null);d.append(t,S),d.append(t,D)},p:d.noop,d(O){O&&d.detach(e),d.destroy_each(j,O),d.destroy_each(N,O)}}}function ls(r){let e,t=r[72].text+"",i,o,s;function n(){return r[41](r[72])}return{c(){e=d.element("div"),i=d.text(t)},m(a,l){d.insert(a,e,l),d.append(e,i),o||(s=d.listen(e,"click",n),o=!0)},p(a,l){r=a,l[0]&256&&t!==(t=r[72].text+"")&&d.set_data(i,t)},d(a){a&&d.detach(e),o=!1,s()}}}function ds(r){let e,t,i=r[24]("duration")+"",o,s,n,a=r[24]("dateInstructions")+"",l,c,h,u,_,m,C;return{c(){e=d.element("div"),t=d.element("label"),o=d.text(i),s=d.space(),n=d.element("span"),l=d.text(a),c=d.space(),h=d.element("strong"),u=d.text(r[25]),_=d.element("strong"),m=d.space(),C=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(n,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(C,"min",r[11]),d.set_custom_element_data(C,"max",r[12]),d.set_custom_element_data(C,"value",r[11]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(I,S){d.insert(I,e,S),d.append(e,t),d.append(t,o),d.append(e,s),d.append(e,n),d.append(n,l),d.append(n,c),d.append(n,h),d.append(h,u),d.append(h,_),d.append(e,m),d.append(e,C),r[42](C)},p(I,S){S[0]&16777216&&i!==(i=I[24]("duration")+"")&&d.set_data(o,i),S[0]&16777216&&a!==(a=I[24]("dateInstructions")+"")&&d.set_data(l,a),S[0]&2048&&d.set_custom_element_data(C,"min",I[11]),S[0]&4096&&d.set_custom_element_data(C,"max",I[12]),S[0]&2048&&d.set_custom_element_data(C,"value",I[11])},d(I){I&&d.detach(e),r[42](null)}}}function Au(r){let e,t,i=r[24]("temporaryProductRestriction",{values:{date:r[13]}})+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16785408&&i!==(i=s[24]("temporaryProductRestriction",{values:{date:s[13]}})+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Eu(r){let e,t,i=r[24]("noPeriodSelected")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16777216&&i!==(i=s[24]("noPeriodSelected")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Iu(r){let e,t,i=r[24]("permanentProductRestriction")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16777216&&i!==(i=s[24]("permanentProductRestriction")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function cs(r){let e,t=r[24]("deniedProductText",{values:{date:r[9][r[69].type]}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(o,s){d.insert(o,e,s),d.append(e,i)},p(o,s){s[0]&16778752&&t!==(t=o[24]("deniedProductText",{values:{date:o[9][o[69].type]}})+"")&&d.set_data(i,t)},d(o){o&&d.detach(e)}}}function hs(r){let e,t,i,o,s,n=r[24](r[69].type)+"",a,l,c,h,u,_,m=r[69].restricted&&cs(r);function C(){return r[43](r[71])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),o=d.element("div"),s=d.element("p"),a=d.text(n),l=d.space(),m&&m.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(o,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(r[69].checked||r[69].restricted?"checked":""))},m(I,S){d.insert(I,e,S),d.append(e,t),d.append(e,i),d.append(e,o),d.append(o,s),d.append(s,a),d.append(o,l),m&&m.m(o,null),d.append(e,c),u||(_=d.listen(e,"click",C),u=!0)},p(I,S){r=I,S[0]&16778240&&n!==(n=r[24](r[69].type)+"")&&d.set_data(a,n),r[69].restricted?m?m.p(r,S):(m=cs(r),m.c(),m.m(o,null)):m&&(m.d(1),m=null),S[0]&1024&&h!==(h="toggleContent "+(r[69].checked||r[69].restricted?"checked":""))&&d.attr(e,"class",h)},d(I){I&&d.detach(e),m&&m.d(),u=!1,_()}}}function us(r){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(r[17]),d.attr(e,"class","ProductRestrictionError")},m(o,s){d.insert(o,e,s),d.append(e,t),d.append(t,i)},p(o,s){s[0]&131072&&d.set_data(i,o[17])},d(o){o&&d.detach(e)}}}function Su(r){let e,t,i,o;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=r[24]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",r[16]),d.set_custom_element_data(t,"hascancelbutton",o=r[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",r[5]),d.set_custom_element_data(t,"lang",r[0]),d.set_custom_element_data(e,"clientstyling",r[3]),d.set_custom_element_data(e,"clientstylingurl",r[4]),d.set_custom_element_data(e,"mbsource",r[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){d.insert(s,e,n),d.append(e,t)},p(s,n){n[0]&16777216&&i!==(i=s[24]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),n[0]&65536&&d.set_custom_element_data(t,"modaltext",s[16]),n[0]&4&&o!==(o=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",o),n[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),n[0]&1&&d.set_custom_element_data(t,"lang",s[0]),n[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),n[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),n[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e)}}}function Tu(r){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(o,s){d.insert(o,e,s),d.insert(o,t,s),d.insert(o,i,s)},p:d.noop,d(o){o&&(d.detach(e),d.detach(t),d.detach(i))}}}function Du(r){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function Ou(r){let e;function t(s,n){return s[22]?ku:Pu}let i=t(r),o=i(r);return{c(){e=d.element("div"),o.c()},m(s,n){d.insert(s,e,n),o.m(e,null),r[45](e)},p(s,n){i===(i=t(s))&&o?o.p(s,n):(o.d(1),o=i(s),o&&(o.c(),o.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),o.d(),r[45](null)}}}function Ru(r,e,t){let i;d.component_subscribe(r,d.$format,p=>t(24,i=p));let{endpoint:o=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:l=""}=e,{hideproducts:c="Virtuals"}=e,{hasconfirmationmodal:h="false"}=e,{hascancelbutton:u=""}=e,{dateformat:_="DD/MM/YYYY"}=e,{clientstyling:m=""}=e,{clientstylingurl:C=""}=e,{mbsource:I}=e,{translationurl:S=""}=e,D,M,j=[],U={},N=[],O=_.toUpperCase(),ke=window.navigator.userAgent,K,me,H="",T="",X="selectAPeriod",ye="",k="",g="",f=d.getDevice(ke)!=="PC",b=!1,v=!1,A=!1,E=!1,R=h==="true",F=!0,W=!1;const Y=()=>{fetch(S).then(y=>y.json()).then(y=>{Object.keys(y).forEach(z=>{so(z,y[z])})}).catch(y=>{console.log(y)})};Object.keys(no).forEach(p=>{so(p,no[p])});const Z=p=>{p.data.type==="setProductRestriction"&&ie()},se=p=>oo(this,null,function*(){var y;if(p.status>=300)return t(23,W=!0),k=(y=(yield p.json()).thirdPartyResponse)==null?void 0:y.errorCode,t(17,g=i(k||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:g}},window.location.href),Promise.reject(g);if(t(23,W=!1),p.headers.get("content-type")){let z=yield p.json();return Promise.resolve(z)}return Promise.resolve()}),ce=()=>{t(20,A=T&&N.some(p=>p.checked)),R&&A&&Xe()},_e=p=>{t(10,N=Object.keys(p).filter(y=>!c.includes(y)).map(y=>({type:y,checked:!1,restricted:!1})))},Q=p=>{t(8,j=p.map(y=>({key:(y.number||"")+y.unit,text:i((y.number||"")+y.unit)})))},G=p=>{N[p].restricted||(t(10,N[p].checked=!N[p].checked,N),ce())},le=()=>{t(21,E=!E)},he=p=>{switch(t(14,T=p.text),t(15,X=p.key),t(21,E=!1),t(18,b=!1),t(19,v=!1),X){case"Until":t(19,v=!0),t(11,K=Qe().add(6,"M").format("YYYY-MM-DD")),t(12,me=Qe().add(5,"y").format("YYYY-MM-DD")),t(13,H=K);break;case"Permanent":t(18,b=!b);break;default:const y=X.match(/\d+/g)[0],z=X.match(/[a-zA-Z]+/g)[0],xe=z.includes("Day")?"days":z.includes("Month")?"months":z.includes("Year")?"years":null;if(!z)return;t(13,H=fe(Qe().add(Number(y),xe)));break}ce()},fe=p=>Qe(p).format(O),ut=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},Je=p=>{t(13,H=p.target.value)},pt=()=>{M.addEventListener("change",Je,!1);const p=z=>Qe(new Date(z.year,z.month,z.day)).format(O),y=z=>{const xe=Qe(z,O);return{year:xe.year(),month:xe.month(),day:xe.date()}};t(7,M.i18n=ro(io({},M.i18n),{formatDate:p,parseDate:y}),M)},Xe=()=>{if(!R||!T||!H){t(16,ye="");return}let p="";N.forEach(y=>{!y.checked||y.restricted||(p=p?`${p}, ${i(y.type)}`:`${i(y.type)}`)}),t(16,ye=i("confirmationModalTextPeriod",{values:{period:i(T),product:p,date:H}}))},mt=p=>{p.preventDefault(),R?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):ie()},Ae=()=>{const p=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",o);fetch(p,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(z=>se(z)).then(z=>{_e(z.products),Q(z.periods),te()}).catch(z=>{console.error(z)}).finally(()=>{t(22,F=!1)})},te=()=>{const p=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);fetch(p,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(z=>se(z)).then(z=>{z.denyProductsRoles.forEach(xe=>{let Ti=N.findIndex(Di=>xe.productType===Di.type);t(10,N[Ti].restricted=!0,N),t(9,U[xe.productType]=fe(xe.expirationDate),U)})}).catch(z=>{console.error(z)}).finally(()=>{t(22,F=!1)})},ie=()=>{t(22,F=!0);const p=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);let y=X.match(/\d+/g)[0],z=X.match(/[a-zA-Z]+/g)[0],Ti=N.filter(Re=>Re.checked).map(Re=>({productType:Re.type,expirationPeriod:{unit:z,number:y}})),Di={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Ti})};fetch(p.href,Di).then(Re=>se(Re)).then(Re=>{Ae(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(20,A=!1)}).catch(Re=>{console.error(i("errorProductRestrictionCall"),Re)}).finally(()=>{t(22,F=!1)})};d.onMount(()=>(window.addEventListener("message",Z,!1),()=>{M&&M.removeEventListener("change",Je),window.removeEventListener("message",Z)}));const $t=()=>{na(a)},Ze=()=>ut(),ve=()=>le(),Oe=p=>he(p);function re(p){d.binding_callbacks[p?"unshift":"push"](()=>{M=p,t(7,M)})}const ne=p=>G(p),Ee=p=>mt(p);function w(p){d.binding_callbacks[p?"unshift":"push"](()=>{D=p,t(6,D)})}return r.$$set=p=>{"endpoint"in p&&t(32,o=p.endpoint),"session"in p&&t(33,s=p.session),"playerid"in p&&t(34,n=p.playerid),"lang"in p&&t(0,a=p.lang),"baseurl"in p&&t(1,l=p.baseurl),"hideproducts"in p&&t(35,c=p.hideproducts),"hasconfirmationmodal"in p&&t(36,h=p.hasconfirmationmodal),"hascancelbutton"in p&&t(2,u=p.hascancelbutton),"dateformat"in p&&t(37,_=p.dateformat),"clientstyling"in p&&t(3,m=p.clientstyling),"clientstylingurl"in p&&t(4,C=p.clientstylingurl),"mbsource"in p&&t(5,I=p.mbsource),"translationurl"in p&&t(38,S=p.translationurl)},r.$$.update=()=>{r.$$.dirty[0]&1&&a&&$t(),r.$$.dirty[1]&14&&o&&s&&n&&Ae(),r.$$.dirty[0]&128&&M&&pt(),r.$$.dirty[0]&72&&m&&D&&d.setClientStyling(D,m),r.$$.dirty[0]&80&&C&&D&&d.setClientStylingURL(D,C),r.$$.dirty[0]&96&&I&&D&&d.setStreamStyling(D,`${I}.Style`),r.$$.dirty[1]&128&&S&&Y()},R&&Xe(),[a,l,u,m,C,I,D,M,j,U,N,K,me,H,T,X,ye,g,b,v,A,E,F,W,i,O,R,G,le,he,ut,mt,o,s,n,c,h,_,S,Ze,ve,Oe,re,ne,Ee,w]}class Qn extends d.SvelteComponent{constructor(e){super(),d.init(this,e,Ru,Ou,d.safe_not_equal,{endpoint:32,session:33,playerid:34,lang:0,baseurl:1,hideproducts:35,hasconfirmationmodal:36,hascancelbutton:2,dateformat:37,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:38},xu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[33]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[34]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get hideproducts(){return this.$$.ctx[35]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[36]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[37]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Qn,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Qn;
5639
+ `),l=d.svg_element("g"),c=d.svg_element("g"),h=d.svg_element("path"),u=d.space(),_=d.element("h2"),C=d.text(m),I=d.space(),S=d.element("h2"),M=d.text(D),j=d.space(),U=d.element("div"),N=d.element("p"),ke=d.space(),K=d.element("p"),H=d.space(),T=d.element("div"),X=d.element("div"),ye=d.element("p"),g=d.text(k),f=d.space(),b=d.svg_element("svg"),v=d.svg_element("g"),A=d.svg_element("path"),E=d.space(),R=d.element("div");for(let w=0;w<te.length;w+=1)te[w].c();F=d.space(),ie&&ie.c(),W=d.space(),Y=d.element("div"),ve.c(),Z=d.space(),se=d.element("div");for(let w=0;w<re.length;w+=1)re[w].c();ce=d.space(),_e=d.element("div"),Q=d.element("button"),le=d.text(G),ut=d.space(),ne&&ne.c(),Je=d.space(),Ee&&Ee.c(),pt=d.empty(),d.attr(h,"class","svgClass"),d.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(h,"transform","translate(15 15) rotate(180)"),d.attr(c,"transform","translate(20 158)"),d.attr(l,"transform","translate(-20 -158)"),d.attr(o,"xmlns","http://www.w3.org/2000/svg"),d.attr(o,"width","15"),d.attr(o,"height","15"),d.attr(o,"viewBox","0 0 15 15"),d.attr(_,"class","PlayerProductRestrictionTitleMobile"),d.attr(i,"class","MenuReturnButton"),d.attr(S,"class","PlayerProductRestrictionTitle"),d.attr(N,"class","ProductRestrictionDescriptionText"),d.attr(K,"class","ProductRestrictionDescriptionText"),d.attr(U,"class","ProductRestrictionDescription"),d.attr(A,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(A,"stroke-linecap","round"),d.attr(b,"xmlns","http://www.w3.org/2000/svg"),d.attr(b,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(b,"version","1.1"),d.attr(b,"viewBox","0 0 100 100"),d.attr(b,"xml:space","preserve"),d.attr(b,"class","ProductRestrictionConfigIcon"),d.toggle_class(b,"active",r[21]),d.attr(X,"class","ProductRestrictionConfigLabel"),d.attr(R,"class","ProductRestrictionDropDown"),d.toggle_class(R,"active",r[21]),d.attr(T,"class","ProductRestrictionConfigWrapper"),d.toggle_class(T,"active",r[21]),d.attr(Y,"class","ProductRestrictionNotification"),d.attr(se,"class","ProductResitrctionTypes"),d.attr(Q,"class",he="ProductRestrictionSave "+(r[20]?"active":"")),Q.disabled=fe=!r[20],d.attr(_e,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper"),d.attr(e,"class","ProductRestrictionContainer")},m(w,p){d.insert(w,e,p),d.append(e,t),d.append(t,i),d.append(i,o),d.append(o,s),d.append(s,n),d.append(n,a),d.append(o,l),d.append(l,c),d.append(c,h),d.append(i,u),d.append(i,_),d.append(_,C),d.append(t,I),d.append(t,S),d.append(S,M),d.append(t,j),d.append(t,U),d.append(U,N),N.innerHTML=O,d.append(U,ke),d.append(U,K),K.innerHTML=me,d.append(t,H),d.append(t,T),d.append(T,X),d.append(X,ye),d.append(ye,g),d.append(X,f),d.append(X,b),d.append(b,v),d.append(v,A),d.append(T,E),d.append(T,R);for(let y=0;y<te.length;y+=1)te[y]&&te[y].m(R,null);d.append(t,F),ie&&ie.m(t,null),d.append(t,W),d.append(t,Y),ve.m(Y,null),d.append(t,Z),d.append(t,se);for(let y=0;y<re.length;y+=1)re[y]&&re[y].m(se,null);d.append(t,ce),d.append(t,_e),d.append(_e,Q),d.append(Q,le),d.append(t,ut),ne&&ne.m(t,null),d.insert(w,Je,p),Ee&&Ee.m(w,p),d.insert(w,pt,p),Xe||(mt=[d.listen(i,"click",r[39]),d.listen(X,"click",r[40]),d.listen(Q,"click",r[44])],Xe=!0)},p(w,p){if(p[0]&16777216&&m!==(m=w[24]("titleProductRestriction")+"")&&d.set_data(C,m),p[0]&16777216&&D!==(D=w[24]("titleProductRestriction")+"")&&d.set_data(M,D),p[0]&16777219&&O!==(O=w[24]("productRestrictionText",{values:{baseurl:w[1],lang:w[0]}})+"")&&(N.innerHTML=O),p[0]&16777216&&me!==(me=w[24]("productRestrictionEmailText")+"")&&(K.innerHTML=me),p[0]&16809984&&k!==(k=w[24](`${w[15]}`)+"")&&d.set_data(g,k),p[0]&2097152&&d.toggle_class(b,"active",w[21]),p[0]&536871168){Ae=d.ensure_array_like(w[8]);let y;for(y=0;y<Ae.length;y+=1){const z=as(w,Ae,y);te[y]?te[y].p(z,p):(te[y]=ls(z),te[y].c(),te[y].m(R,null))}for(;y<te.length;y+=1)te[y].d(1);te.length=Ae.length}if(p[0]&2097152&&d.toggle_class(R,"active",w[21]),p[0]&2097152&&d.toggle_class(T,"active",w[21]),w[19]?ie?ie.p(w,p):(ie=ds(w),ie.c(),ie.m(t,W)):ie&&(ie.d(1),ie=null),Ze===(Ze=$t(w))&&ve?ve.p(w,p):(ve.d(1),ve=Ze(w),ve&&(ve.c(),ve.m(Y,null))),p[0]&150996480){Oe=d.ensure_array_like(w[10]);let y;for(y=0;y<Oe.length;y+=1){const z=ns(w,Oe,y);re[y]?re[y].p(z,p):(re[y]=hs(z),re[y].c(),re[y].m(se,null))}for(;y<re.length;y+=1)re[y].d(1);re.length=Oe.length}p[0]&16777216&&G!==(G=w[24]("save")+"")&&d.set_data(le,G),p[0]&1048576&&he!==(he="ProductRestrictionSave "+(w[20]?"active":""))&&d.attr(Q,"class",he),p[0]&1048576&&fe!==(fe=!w[20])&&(Q.disabled=fe),w[23]?ne?ne.p(w,p):(ne=us(w),ne.c(),ne.m(t,null)):ne&&(ne.d(1),ne=null),w[26]&&Ee.p(w,p)},d(w){w&&(d.detach(e),d.detach(Je),d.detach(pt)),d.destroy_each(te,w),ie&&ie.d(),ve.d(),d.destroy_each(re,w),ne&&ne.d(),Ee&&Ee.d(w),Xe=!1,d.run_all(mt)}}}function ku(r){let e,t,i,o,s,n,a,l,c,h,u,_,m,C,I,S,D,M=d.ensure_array_like({length:3}),j=[];for(let O=0;O<M.length;O+=1)j[O]=Tu(Cu(r,M,O));let U=d.ensure_array_like({length:3}),N=[];for(let O=0;O<U.length;O+=1)N[O]=Du(wu(r,U,O));return{c(){e=d.element("div"),t=d.element("div"),i=d.element("div"),i.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',o=d.space(),s=d.element("h2"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',n=d.space(),a=d.element("div");for(let O=0;O<j.length;O+=1)j[O].c();l=d.space(),c=d.element("ui-skeleton"),h=d.space(),u=d.element("div"),u.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',_=d.space(),m=d.element("div"),m.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',C=d.space(),I=d.element("div");for(let O=0;O<N.length;O+=1)N[O].c();S=d.space(),D=d.element("div"),D.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.attr(i,"class","MenuReturnButton"),d.attr(s,"class","PlayerProductRestrictionTitle"),d.set_custom_element_data(c,"structure","text"),d.set_custom_element_data(c,"width","auto"),d.set_custom_element_data(c,"height","10px"),d.attr(a,"class","ProductRestrictionDescription"),d.attr(u,"class","ProductRestrictionConfigWrapper"),d.attr(m,"class","ProductRestrictionNotification"),d.attr(I,"class","ProductResitrctionTypes"),d.attr(D,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton"),d.attr(e,"class","ProductRestrictionContainer")},m(O,ke){d.insert(O,e,ke),d.append(e,t),d.append(t,i),d.append(t,o),d.append(t,s),d.append(t,n),d.append(t,a);for(let K=0;K<j.length;K+=1)j[K]&&j[K].m(a,null);d.append(a,l),d.append(a,c),d.append(t,h),d.append(t,u),d.append(t,_),d.append(t,m),d.append(t,C),d.append(t,I);for(let K=0;K<N.length;K+=1)N[K]&&N[K].m(I,null);d.append(t,S),d.append(t,D)},p:d.noop,d(O){O&&d.detach(e),d.destroy_each(j,O),d.destroy_each(N,O)}}}function ls(r){let e,t=r[72].text+"",i,o,s;function n(){return r[41](r[72])}return{c(){e=d.element("div"),i=d.text(t)},m(a,l){d.insert(a,e,l),d.append(e,i),o||(s=d.listen(e,"click",n),o=!0)},p(a,l){r=a,l[0]&256&&t!==(t=r[72].text+"")&&d.set_data(i,t)},d(a){a&&d.detach(e),o=!1,s()}}}function ds(r){let e,t,i=r[24]("duration")+"",o,s,n,a=r[24]("dateInstructions")+"",l,c,h,u,_,m,C;return{c(){e=d.element("div"),t=d.element("label"),o=d.text(i),s=d.space(),n=d.element("span"),l=d.text(a),c=d.space(),h=d.element("strong"),u=d.text(r[25]),_=d.element("strong"),m=d.space(),C=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(n,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(C,"min",r[11]),d.set_custom_element_data(C,"max",r[12]),d.set_custom_element_data(C,"value",r[11]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(I,S){d.insert(I,e,S),d.append(e,t),d.append(t,o),d.append(e,s),d.append(e,n),d.append(n,l),d.append(n,c),d.append(n,h),d.append(h,u),d.append(h,_),d.append(e,m),d.append(e,C),r[42](C)},p(I,S){S[0]&16777216&&i!==(i=I[24]("duration")+"")&&d.set_data(o,i),S[0]&16777216&&a!==(a=I[24]("dateInstructions")+"")&&d.set_data(l,a),S[0]&2048&&d.set_custom_element_data(C,"min",I[11]),S[0]&4096&&d.set_custom_element_data(C,"max",I[12]),S[0]&2048&&d.set_custom_element_data(C,"value",I[11])},d(I){I&&d.detach(e),r[42](null)}}}function Au(r){let e,t,i=r[24]("temporaryProductRestriction",{values:{date:r[13]}})+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16785408&&i!==(i=s[24]("temporaryProductRestriction",{values:{date:s[13]}})+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Eu(r){let e,t,i=r[24]("noPeriodSelected")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16777216&&i!==(i=s[24]("noPeriodSelected")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Iu(r){let e,t,i=r[24]("permanentProductRestriction")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&16777216&&i!==(i=s[24]("permanentProductRestriction")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function cs(r){let e,t=r[24]("deniedProductText",{values:{date:r[9][r[69].type]}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(o,s){d.insert(o,e,s),d.append(e,i)},p(o,s){s[0]&16778752&&t!==(t=o[24]("deniedProductText",{values:{date:o[9][o[69].type]}})+"")&&d.set_data(i,t)},d(o){o&&d.detach(e)}}}function hs(r){let e,t,i,o,s,n=r[24](r[69].type)+"",a,l,c,h,u,_,m=r[69].restricted&&cs(r);function C(){return r[43](r[71])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),o=d.element("div"),s=d.element("p"),a=d.text(n),l=d.space(),m&&m.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(o,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(r[69].checked||r[69].restricted?"checked":""))},m(I,S){d.insert(I,e,S),d.append(e,t),d.append(e,i),d.append(e,o),d.append(o,s),d.append(s,a),d.append(o,l),m&&m.m(o,null),d.append(e,c),u||(_=d.listen(e,"click",C),u=!0)},p(I,S){r=I,S[0]&16778240&&n!==(n=r[24](r[69].type)+"")&&d.set_data(a,n),r[69].restricted?m?m.p(r,S):(m=cs(r),m.c(),m.m(o,null)):m&&(m.d(1),m=null),S[0]&1024&&h!==(h="toggleContent "+(r[69].checked||r[69].restricted?"checked":""))&&d.attr(e,"class",h)},d(I){I&&d.detach(e),m&&m.d(),u=!1,_()}}}function us(r){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(r[17]),d.attr(e,"class","ProductRestrictionError")},m(o,s){d.insert(o,e,s),d.append(e,t),d.append(t,i)},p(o,s){s[0]&131072&&d.set_data(i,o[17])},d(o){o&&d.detach(e)}}}function Su(r){let e,t,i,o;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=r[24]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",r[16]),d.set_custom_element_data(t,"hascancelbutton",o=r[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",r[5]),d.set_custom_element_data(t,"lang",r[0]),d.set_custom_element_data(e,"clientstyling",r[3]),d.set_custom_element_data(e,"clientstylingurl",r[4]),d.set_custom_element_data(e,"mbsource",r[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){d.insert(s,e,n),d.append(e,t)},p(s,n){n[0]&16777216&&i!==(i=s[24]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),n[0]&65536&&d.set_custom_element_data(t,"modaltext",s[16]),n[0]&4&&o!==(o=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",o),n[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),n[0]&1&&d.set_custom_element_data(t,"lang",s[0]),n[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),n[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),n[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e)}}}function Tu(r){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(o,s){d.insert(o,e,s),d.insert(o,t,s),d.insert(o,i,s)},p:d.noop,d(o){o&&(d.detach(e),d.detach(t),d.detach(i))}}}function Du(r){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function Ou(r){let e;function t(s,n){return s[22]?ku:Pu}let i=t(r),o=i(r);return{c(){e=d.element("div"),o.c()},m(s,n){d.insert(s,e,n),o.m(e,null),r[45](e)},p(s,n){i===(i=t(s))&&o?o.p(s,n):(o.d(1),o=i(s),o&&(o.c(),o.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),o.d(),r[45](null)}}}function Ru(r,e,t){let i;d.component_subscribe(r,d.$format,p=>t(24,i=p));let{endpoint:o=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:l=""}=e,{hideproducts:c="Virtuals"}=e,{hasconfirmationmodal:h="false"}=e,{hascancelbutton:u=""}=e,{dateformat:_="DD/MM/YYYY"}=e,{clientstyling:m=""}=e,{clientstylingurl:C=""}=e,{mbsource:I}=e,{translationurl:S=""}=e,D,M,j=[],U={},N=[],O=_.toUpperCase(),ke=window.navigator.userAgent,K,me,H="",T="",X="selectAPeriod",ye="",k="",g="",f=d.getDevice(ke)!=="PC",b=!1,v=!1,A=!1,E=!1,R=h==="true",F=!0,W=!1;const Y=()=>{fetch(S).then(y=>y.json()).then(y=>{Object.keys(y).forEach(z=>{so(z,y[z])})}).catch(y=>{console.log(y)})};Object.keys(no).forEach(p=>{so(p,no[p])});const Z=p=>{p.data.type==="setProductRestriction"&&ie()},se=p=>oo(this,null,function*(){var y;if(p.status>=300)return t(23,W=!0),k=(y=(yield p.json()).thirdPartyResponse)==null?void 0:y.errorCode,t(17,g=i(k||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:g}},window.location.href),Promise.reject(g);if(t(23,W=!1),p.headers.get("content-type")){let z=yield p.json();return Promise.resolve(z)}return Promise.resolve()}),ce=()=>{t(20,A=T&&N.some(p=>p.checked)),R&&A&&Xe()},_e=p=>{t(10,N=Object.keys(p).filter(y=>!c.includes(y)).map(y=>({type:y,checked:!1,restricted:!1})))},Q=p=>{t(8,j=p.map(y=>({key:(y.number||"")+y.unit,text:i((y.number||"")+y.unit)})))},G=p=>{N[p].restricted||(t(10,N[p].checked=!N[p].checked,N),ce())},le=()=>{t(21,E=!E)},he=p=>{switch(t(14,T=p.text),t(15,X=p.key),t(21,E=!1),t(18,b=!1),t(19,v=!1),X){case"Until":t(19,v=!0),t(11,K=Qe().add(6,"M").format("YYYY-MM-DD")),t(12,me=Qe().add(5,"y").format("YYYY-MM-DD")),t(13,H=K);break;case"Permanent":t(18,b=!b);break;default:const y=X.match(/\d+/g)[0],z=X.match(/[a-zA-Z]+/g)[0],xe=z.includes("Day")?"days":z.includes("Month")?"months":z.includes("Year")?"years":null;if(!z)return;t(13,H=fe(Qe().add(Number(y),xe)));break}ce()},fe=p=>Qe(p).format(O),ut=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},Je=p=>{t(13,H=p.target.value)},pt=()=>{M.addEventListener("change",Je,!1);const p=z=>Qe(new Date(z.year,z.month,z.day)).format(O),y=z=>{const xe=Qe(z,O);return{year:xe.year(),month:xe.month(),day:xe.date()}};t(7,M.i18n=ro(io({},M.i18n),{formatDate:p,parseDate:y}),M)},Xe=()=>{if(!R||!T||!H){t(16,ye="");return}let p="";N.forEach(y=>{!y.checked||y.restricted||(p=p?`${p}, ${i(y.type)}`:`${i(y.type)}`)}),t(16,ye=i("confirmationModalTextPeriodProductRestriction",{values:{period:i(T),product:p,date:H}}))},mt=p=>{p.preventDefault(),R?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):ie()},Ae=()=>{const p=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",o);fetch(p,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(z=>se(z)).then(z=>{_e(z.products),Q(z.periods),te()}).catch(z=>{console.error(z)}).finally(()=>{t(22,F=!1)})},te=()=>{const p=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);fetch(p,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(z=>se(z)).then(z=>{z.denyProductsRoles.forEach(xe=>{let Ti=N.findIndex(Di=>xe.productType===Di.type);t(10,N[Ti].restricted=!0,N),t(9,U[xe.productType]=fe(xe.expirationDate),U)})}).catch(z=>{console.error(z)}).finally(()=>{t(22,F=!1)})},ie=()=>{t(22,F=!0);const p=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);let y=X.match(/\d+/g)[0],z=X.match(/[a-zA-Z]+/g)[0],Ti=N.filter(Re=>Re.checked).map(Re=>({productType:Re.type,expirationPeriod:{unit:z,number:y}})),Di={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Ti})};fetch(p.href,Di).then(Re=>se(Re)).then(Re=>{Ae(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(20,A=!1)}).catch(Re=>{console.error(i("errorProductRestrictionCall"),Re)}).finally(()=>{t(22,F=!1)})};d.onMount(()=>(window.addEventListener("message",Z,!1),()=>{M&&M.removeEventListener("change",Je),window.removeEventListener("message",Z)}));const $t=()=>{na(a)},Ze=()=>ut(),ve=()=>le(),Oe=p=>he(p);function re(p){d.binding_callbacks[p?"unshift":"push"](()=>{M=p,t(7,M)})}const ne=p=>G(p),Ee=p=>mt(p);function w(p){d.binding_callbacks[p?"unshift":"push"](()=>{D=p,t(6,D)})}return r.$$set=p=>{"endpoint"in p&&t(32,o=p.endpoint),"session"in p&&t(33,s=p.session),"playerid"in p&&t(34,n=p.playerid),"lang"in p&&t(0,a=p.lang),"baseurl"in p&&t(1,l=p.baseurl),"hideproducts"in p&&t(35,c=p.hideproducts),"hasconfirmationmodal"in p&&t(36,h=p.hasconfirmationmodal),"hascancelbutton"in p&&t(2,u=p.hascancelbutton),"dateformat"in p&&t(37,_=p.dateformat),"clientstyling"in p&&t(3,m=p.clientstyling),"clientstylingurl"in p&&t(4,C=p.clientstylingurl),"mbsource"in p&&t(5,I=p.mbsource),"translationurl"in p&&t(38,S=p.translationurl)},r.$$.update=()=>{r.$$.dirty[0]&1&&a&&$t(),r.$$.dirty[1]&14&&o&&s&&n&&Ae(),r.$$.dirty[0]&128&&M&&pt(),r.$$.dirty[0]&72&&m&&D&&d.setClientStyling(D,m),r.$$.dirty[0]&80&&C&&D&&d.setClientStylingURL(D,C),r.$$.dirty[0]&96&&I&&D&&d.setStreamStyling(D,`${I}.Style`),r.$$.dirty[1]&128&&S&&Y()},R&&Xe(),[a,l,u,m,C,I,D,M,j,U,N,K,me,H,T,X,ye,g,b,v,A,E,F,W,i,O,R,G,le,he,ut,mt,o,s,n,c,h,_,S,Ze,ve,Oe,re,ne,Ee,w]}class Qn extends d.SvelteComponent{constructor(e){super(),d.init(this,e,Ru,Ou,d.safe_not_equal,{endpoint:32,session:33,playerid:34,lang:0,baseurl:1,hideproducts:35,hasconfirmationmodal:36,hascancelbutton:2,dateformat:37,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:38},xu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[33]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[34]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get hideproducts(){return this.$$.ctx[35]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[36]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[37]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Qn,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Qn;
@@ -27,7 +27,7 @@ var yo = (r, e, t) => new Promise((i, o) => {
27
27
  a((t = t.apply(r, e)).next());
28
28
  });
29
29
  import { B as ya, C as xa, D as wa, $ as Ca, S as Pa, a as ka, f as be, s as Aa, A as Ea, b as Ia, E as Vt, d as se, g as ne, q as E, F as Sa, G as Ta, o as Da, v as xo, H as pt, I as mi, p as m, J as U, r as P, K as B, L as Oa, M as we, N as dt, O as Mt, P as Le, Q as _e, h as Ra, R as za, x as Ma, y as Na, z as La } from "./PlayerAccountGeneralConfirmationModal-D6Sn8c65.js";
30
- import "../stencil/ui-skeleton-rSrQAgGU.js";
30
+ import "../stencil/ui-skeleton-Ca5rz3Hv.js";
31
31
  var Ss = { exports: {} };
32
32
  (function(r, e) {
33
33
  (function(t, i) {
@@ -15860,7 +15860,7 @@ function up(r, e, t) {
15860
15860
  let u = "";
15861
15861
  V.forEach((y) => {
15862
15862
  !y.checked || y.restricted || (u = u ? `${u}, ${i(y.type)}` : `${i(y.type)}`);
15863
- }), t(16, Se = i("confirmationModalTextPeriod", {
15863
+ }), t(16, Se = i("confirmationModalTextPeriodProductRestriction", {
15864
15864
  values: {
15865
15865
  period: i(O),
15866
15866
  product: u,
@@ -1,5 +1,5 @@
1
1
  import { B as ca, C as ha, D as ua, $ as pa, c as ma, S as _a, a as fa, s as va, f as be, b as ga, E as Vt, d as se, j as ne, v as E, F as ba, G as ya, o as xa, x as fo, H as pt, I as mi, r as m, J as U, w as P, K as B, L as wa, M as we, N as dt, O as Mt, P as Le, Q as _e, k as Ca, R as Pa, y as ka, z as Aa, A as Ea } from "./PlayerAccountGeneralConfirmationModal-Ci-p2WXL.js";
2
- import "../stencil/ui-skeleton-mS4_ikDc.js";
2
+ import "../stencil/ui-skeleton-hI4GeaLk.js";
3
3
  var Ps = { exports: {} };
4
4
  (function(r, e) {
5
5
  (function(t, i) {
@@ -15831,7 +15831,7 @@ function ip(r, e, t) {
15831
15831
  let u = "";
15832
15832
  V.forEach((y) => {
15833
15833
  !y.checked || y.restricted || (u = u ? `${u}, ${i(y.type)}` : `${i(y.type)}`);
15834
- }), t(16, Se = i("confirmationModalTextPeriod", {
15834
+ }), t(16, Se = i("confirmationModalTextPeriodProductRestriction", {
15835
15835
  values: {
15836
15836
  period: i(O),
15837
15837
  product: u,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountProductRestriction-B281rnmZ.cjs")).then(({default:t})=>{!customElements.get("player-account-product-restriction")&&customElements.define("player-account-product-restriction",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountProductRestriction-DY9QmZ7j.cjs")).then(({default:t})=>{!customElements.get("player-account-product-restriction")&&customElements.define("player-account-product-restriction",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountProductRestriction-uoYgUtdj.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountProductRestriction-gHeJCVHu.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-product-restriction") && customElements.define("player-account-product-restriction", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as r } from "../components/PlayerAccountProductRestriction-DawPwMUW.js";
1
+ import { P as r } from "../components/PlayerAccountProductRestriction-oo5adxcp.js";
2
2
  function s(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-product-restriction",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "esnext/player-account-product-restriction.js",
6
6
  "module": "esnext/player-account-product-restriction.js",
@@ -42,7 +42,7 @@ var ce = Object.defineProperty, ue = (e, t) => {
42
42
  case "ui-skeleton":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./ui-skeleton-rSrQAgGU.js"
45
+ "./ui-skeleton-Ca5rz3Hv.js"
46
46
  ).then(l, E);
47
47
  }
48
48
  }
@@ -26,7 +26,7 @@ var $e = Object.defineProperty, ce = (e, t) => {
26
26
  case "ui-skeleton":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./ui-skeleton-mS4_ikDc.js"
29
+ "./ui-skeleton-hI4GeaLk.js"
30
30
  ).then(l, E);
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- "use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-D9ekrDIX.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
1
+ "use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-BL4789dS.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
@@ -0,0 +1 @@
1
+ "use strict";var u=(t,r,n)=>new Promise((l,s)=>{var m=e=>{try{i(n.next(e))}catch(o){s(o)}},d=e=>{try{i(n.throw(e))}catch(o){s(o)}},i=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);i((n=n.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-b2193545-YW9b062G.cjs"),p=require("./app-globals-0f993ce5-sCt45RkC.cjs"),g=require("./ui-skeleton-ae35c6f2-xLf3HyeB.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-BL4789dS.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),c.promiseResolve(r)};f().then(t=>u(exports,null,function*(){return yield p.globalScripts(),c.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));exports.ui_skeleton=g.UiSkeleton;
@@ -0,0 +1,29 @@
1
+ var n = (t, e, o) => new Promise((m, s) => {
2
+ var u = (r) => {
3
+ try {
4
+ a(o.next(r));
5
+ } catch (i) {
6
+ s(i);
7
+ }
8
+ }, g = (r) => {
9
+ try {
10
+ a(o.throw(r));
11
+ } catch (i) {
12
+ s(i);
13
+ }
14
+ }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(u, g);
15
+ a((o = o.apply(t, e)).next());
16
+ });
17
+ import { b as p, p as l } from "./index-b2193545-BeKKnKhR.js";
18
+ import { g as h } from "./app-globals-0f993ce5-D-kw1sls.js";
19
+ import { U as k } from "./ui-skeleton-ae35c6f2-BDBUiN3S.js";
20
+ var c = () => {
21
+ const t = import.meta.url, e = {};
22
+ return t !== "" && (e.resourcesUrl = new URL(".", t).href), l(e);
23
+ };
24
+ c().then((t) => n(void 0, null, function* () {
25
+ return yield h(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], t);
26
+ }));
27
+ export {
28
+ k as ui_skeleton
29
+ };
@@ -1,18 +1,19 @@
1
- import { r as i, h as t, H as o } from "./index-b2193545-fV0AjNrh.js";
2
- const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, l = class {
1
+ import { r, h as t, H as n } from "./index-b2193545-BeKKnKhR.js";
2
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
3
3
  constructor(e) {
4
- i(this, e), this.stylingValue = {
4
+ r(this, e), this.stylingValue = {
5
5
  width: this.handleStylingProps(this.width),
6
6
  height: this.handleStylingProps(this.height),
7
7
  borderRadius: this.handleStylingProps(this.borderRadius),
8
8
  marginBottom: this.handleStylingProps(this.marginBottom),
9
9
  marginTop: this.handleStylingProps(this.marginTop),
10
10
  marginLeft: this.handleStylingProps(this.marginLeft),
11
- marginRight: this.handleStylingProps(this.marginRight)
12
- }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
11
+ marginRight: this.handleStylingProps(this.marginRight),
12
+ size: this.handleStylingProps(this.size)
13
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
13
14
  }
14
- handleStructureChange(e, r) {
15
- r !== e && this.handleStructure(e);
15
+ handleStructureChange(e, i) {
16
+ i !== e && this.handleStructure(e);
16
17
  }
17
18
  handleStylingProps(e) {
18
19
  switch (typeof e) {
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
54
55
  return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
55
56
  }
56
57
  renderText() {
57
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
59
  }
59
60
  renderRectangle() {
60
61
  return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
75
76
  --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
76
77
  --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
77
78
  --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
78
- --emw-skeleton-logo-background: ${this.color};
79
- --emw-skeleton-primary-color: ${this.primaryColor};
80
- --emw-skeleton-secondary-color: ${this.secondaryColor};
81
79
  }
82
80
  `;
83
81
  break;
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
91
89
  --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
92
90
  --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
93
91
  --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
94
- --emw-skeleton-image-background: ${this.color};
95
- --emw-skeleton-primary-color: ${this.primaryColor};
96
- --emw-skeleton-secondary-color: ${this.secondaryColor};
97
92
  }
98
93
  `;
99
94
  break;
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
107
102
  --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
108
103
  --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
109
104
  --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
110
- --emw-skeleton-title-background: ${this.color};
111
- --emw-skeleton-primary-color: ${this.primaryColor};
112
- --emw-skeleton-secondary-color: ${this.secondaryColor};
113
105
  }
114
106
  `;
115
107
  break;
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
123
115
  --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
124
116
  --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
125
117
  --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
126
- --emw-skeleton-text-background: ${this.color};
127
- --emw-skeleton-primary-color: ${this.primaryColor};
128
- --emw-skeleton-secondary-color: ${this.secondaryColor};
129
118
  }
130
119
  `;
131
120
  break;
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
139
128
  --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
140
129
  --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
141
130
  --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
142
- --emw-skeleton-rectangle-background: ${this.color};
143
- --emw-skeleton-primary-color: ${this.primaryColor};
144
- --emw-skeleton-secondary-color: ${this.secondaryColor};
145
131
  }
146
132
  `;
147
133
  break;
148
134
  case "circle":
149
135
  e = `
150
136
  :host {
151
- --emw-skeleton-circle-size: ${this.size};
152
- --emw-skeleton-circle-background: ${this.color};
153
- --emw-skeleton-primary-color: ${this.primaryColor};
154
- --emw-skeleton-secondary-color: ${this.secondaryColor};
137
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
155
138
  }
156
139
  `;
157
140
  break;
158
141
  default:
159
142
  e = "";
160
143
  }
161
- return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
144
+ return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
162
145
  }
163
146
  static get watchers() {
164
147
  return {
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
166
149
  };
167
150
  }
168
151
  };
169
- l.style = s;
152
+ l.style = a;
170
153
  export {
171
154
  l as U
172
155
  };
@@ -1,18 +1,19 @@
1
- import { r as i, h as t, H as o } from "./index-b2193545-0nBa8-YE.js";
2
- const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, l = class {
1
+ import { r, h as t, H as n } from "./index-b2193545-HC0t7mHa.js";
2
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
3
3
  constructor(e) {
4
- i(this, e), this.stylingValue = {
4
+ r(this, e), this.stylingValue = {
5
5
  width: this.handleStylingProps(this.width),
6
6
  height: this.handleStylingProps(this.height),
7
7
  borderRadius: this.handleStylingProps(this.borderRadius),
8
8
  marginBottom: this.handleStylingProps(this.marginBottom),
9
9
  marginTop: this.handleStylingProps(this.marginTop),
10
10
  marginLeft: this.handleStylingProps(this.marginLeft),
11
- marginRight: this.handleStylingProps(this.marginRight)
12
- }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%", this.color = "#c2c2c2", this.primaryColor = "#c2c2c2", this.secondaryColor = "#ffffff";
11
+ marginRight: this.handleStylingProps(this.marginRight),
12
+ size: this.handleStylingProps(this.size)
13
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
13
14
  }
14
- handleStructureChange(e, r) {
15
- r !== e && this.handleStructure(e);
15
+ handleStructureChange(e, i) {
16
+ i !== e && this.handleStructure(e);
16
17
  }
17
18
  handleStylingProps(e) {
18
19
  switch (typeof e) {
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
54
55
  return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
55
56
  }
56
57
  renderText() {
57
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
59
  }
59
60
  renderRectangle() {
60
61
  return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
75
76
  --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
76
77
  --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
77
78
  --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
78
- --emw-skeleton-logo-background: ${this.color};
79
- --emw-skeleton-primary-color: ${this.primaryColor};
80
- --emw-skeleton-secondary-color: ${this.secondaryColor};
81
79
  }
82
80
  `;
83
81
  break;
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
91
89
  --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
92
90
  --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
93
91
  --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
94
- --emw-skeleton-image-background: ${this.color};
95
- --emw-skeleton-primary-color: ${this.primaryColor};
96
- --emw-skeleton-secondary-color: ${this.secondaryColor};
97
92
  }
98
93
  `;
99
94
  break;
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
107
102
  --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
108
103
  --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
109
104
  --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
110
- --emw-skeleton-title-background: ${this.color};
111
- --emw-skeleton-primary-color: ${this.primaryColor};
112
- --emw-skeleton-secondary-color: ${this.secondaryColor};
113
105
  }
114
106
  `;
115
107
  break;
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
123
115
  --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
124
116
  --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
125
117
  --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
126
- --emw-skeleton-text-background: ${this.color};
127
- --emw-skeleton-primary-color: ${this.primaryColor};
128
- --emw-skeleton-secondary-color: ${this.secondaryColor};
129
118
  }
130
119
  `;
131
120
  break;
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
139
128
  --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
140
129
  --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
141
130
  --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
142
- --emw-skeleton-rectangle-background: ${this.color};
143
- --emw-skeleton-primary-color: ${this.primaryColor};
144
- --emw-skeleton-secondary-color: ${this.secondaryColor};
145
131
  }
146
132
  `;
147
133
  break;
148
134
  case "circle":
149
135
  e = `
150
136
  :host {
151
- --emw-skeleton-circle-size: ${this.size};
152
- --emw-skeleton-circle-background: ${this.color};
153
- --emw-skeleton-primary-color: ${this.primaryColor};
154
- --emw-skeleton-secondary-color: ${this.secondaryColor};
137
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
155
138
  }
156
139
  `;
157
140
  break;
158
141
  default:
159
142
  e = "";
160
143
  }
161
- return t(o, { key: "5c185b76c438d20d4ad88bc48d94ff5628410bb7" }, t("style", { key: "de95e60a5955d5b2af83710423fe40329c187f7e" }, e), this.handleStructure(this.structure));
144
+ return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
162
145
  }
163
146
  static get watchers() {
164
147
  return {
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
166
149
  };
167
150
  }
168
151
  };
169
- l.style = s;
152
+ l.style = a;
170
153
  export {
171
154
  l as U
172
155
  };
@@ -0,0 +1,55 @@
1
+ "use strict";const t=require("./index-b2193545-YW9b062G.cjs"),r=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
+ :host {
3
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ }
11
+ `;break;case"image":e=`
12
+ :host {
13
+ --emw-skeleton-image-width: ${this.stylingValue.width};
14
+ --emw-skeleton-image-height: ${this.stylingValue.height};
15
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
+ }
21
+ `;break;case"title":e=`
22
+ :host {
23
+ --emw-skeleton-title-width: ${this.stylingValue.width};
24
+ --emw-skeleton-title-height: ${this.stylingValue.height};
25
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
+ }
31
+ `;break;case"text":e=`
32
+ :host {
33
+ --emw-skeleton-text-width: ${this.stylingValue.width};
34
+ --emw-skeleton-text-height: ${this.stylingValue.height};
35
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
+ }
41
+ `;break;case"rectangle":e=`
42
+ :host {
43
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
+ }
51
+ `;break;case"circle":e=`
52
+ :host {
53
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
54
+ }
55
+ `;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;
@@ -0,0 +1,11 @@
1
+ import { b as e, p as o } from "./index-b2193545-HC0t7mHa.js";
2
+ import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
3
+ import { U as g } from "./ui-skeleton-ae35c6f2-Cn0ZM_hs.js";
4
+ var i = () => {
5
+ const r = import.meta.url, t = {};
6
+ return r !== "" && (t.resourcesUrl = new URL(".", r).href), o(t);
7
+ };
8
+ i().then(async (r) => (await a(), e([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], r)));
9
+ export {
10
+ g as ui_skeleton
11
+ };
@@ -1,73 +0,0 @@
1
- "use strict";const t=require("./index-b2193545-CYERCBaJ.cjs"),o=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",n=o,i=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,r)=>t.h("div",{key:r,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
- :host {
3
- --emw-skeleton-logo-width: ${this.stylingValue.width};
4
- --emw-skeleton-logo-height: ${this.stylingValue.height};
5
- --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
- --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
- --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
- --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
- --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
- --emw-skeleton-logo-background: ${this.color};
11
- --emw-skeleton-primary-color: ${this.primaryColor};
12
- --emw-skeleton-secondary-color: ${this.secondaryColor};
13
- }
14
- `;break;case"image":e=`
15
- :host {
16
- --emw-skeleton-image-width: ${this.stylingValue.width};
17
- --emw-skeleton-image-height: ${this.stylingValue.height};
18
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
19
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
20
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
21
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
22
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
23
- --emw-skeleton-image-background: ${this.color};
24
- --emw-skeleton-primary-color: ${this.primaryColor};
25
- --emw-skeleton-secondary-color: ${this.secondaryColor};
26
- }
27
- `;break;case"title":e=`
28
- :host {
29
- --emw-skeleton-title-width: ${this.stylingValue.width};
30
- --emw-skeleton-title-height: ${this.stylingValue.height};
31
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
32
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
33
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
34
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
35
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
36
- --emw-skeleton-title-background: ${this.color};
37
- --emw-skeleton-primary-color: ${this.primaryColor};
38
- --emw-skeleton-secondary-color: ${this.secondaryColor};
39
- }
40
- `;break;case"text":e=`
41
- :host {
42
- --emw-skeleton-text-width: ${this.stylingValue.width};
43
- --emw-skeleton-text-height: ${this.stylingValue.height};
44
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
45
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
46
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
47
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
48
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
49
- --emw-skeleton-text-background: ${this.color};
50
- --emw-skeleton-primary-color: ${this.primaryColor};
51
- --emw-skeleton-secondary-color: ${this.secondaryColor};
52
- }
53
- `;break;case"rectangle":e=`
54
- :host {
55
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
56
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
57
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
58
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
59
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
60
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
61
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
62
- --emw-skeleton-rectangle-background: ${this.color};
63
- --emw-skeleton-primary-color: ${this.primaryColor};
64
- --emw-skeleton-secondary-color: ${this.secondaryColor};
65
- }
66
- `;break;case"circle":e=`
67
- :host {
68
- --emw-skeleton-circle-size: ${this.size};
69
- --emw-skeleton-circle-background: ${this.color};
70
- --emw-skeleton-primary-color: ${this.primaryColor};
71
- --emw-skeleton-secondary-color: ${this.secondaryColor};
72
- }
73
- `;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};i.style=n;exports.UiSkeleton=i;
@@ -1 +0,0 @@
1
- "use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-CYERCBaJ.cjs"),p=require("./app-globals-0f993ce5-sCt45RkC.cjs"),g=require("./ui-skeleton-161699c3-KSM-Cr8Z.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-D9ekrDIX.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
@@ -1,11 +0,0 @@
1
- import { b as t, p as e } from "./index-b2193545-0nBa8-YE.js";
2
- import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- import { U as u } from "./ui-skeleton-161699c3-DjmPsRvg.js";
4
- var i = () => {
5
- const r = import.meta.url, o = {};
6
- return r !== "" && (o.resourcesUrl = new URL(".", r).href), e(o);
7
- };
8
- i().then(async (r) => (await a(), t([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
9
- export {
10
- u as ui_skeleton
11
- };
@@ -1,29 +0,0 @@
1
- var n = (o, t, e) => new Promise((m, s) => {
2
- var l = (r) => {
3
- try {
4
- a(e.next(r));
5
- } catch (i) {
6
- s(i);
7
- }
8
- }, u = (r) => {
9
- try {
10
- a(e.throw(r));
11
- } catch (i) {
12
- s(i);
13
- }
14
- }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, u);
15
- a((e = e.apply(o, t)).next());
16
- });
17
- import { b as p, p as c } from "./index-b2193545-fV0AjNrh.js";
18
- import { g } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- import { U as R } from "./ui-skeleton-161699c3-BPPr6sEf.js";
20
- var h = () => {
21
- const o = import.meta.url, t = {};
22
- return o !== "" && (t.resourcesUrl = new URL(".", o).href), c(t);
23
- };
24
- h().then((o) => n(void 0, null, function* () {
25
- return yield g(), p([["ui-skeleton", [[0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], o);
26
- }));
27
- export {
28
- R as ui_skeleton
29
- };