@everymatrix/player-account-product-restriction 0.2.3 → 1.70.1
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.
- package/components/{PlayerAccountProductRestriction-BJzxzTnQ.cjs → PlayerAccountProductRestriction-DY9QmZ7j.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-cHFcMBk5.js → PlayerAccountProductRestriction-gHeJCVHu.js} +1 -1
- package/components/{PlayerAccountProductRestriction-Dv5Ig9KL.js → PlayerAccountProductRestriction-oo5adxcp.js} +1 -1
- package/es2015/player-account-product-restriction.cjs +1 -1
- package/es2015/player-account-product-restriction.js +1 -1
- package/esnext/player-account-product-restriction.js +1 -1
- package/package.json +2 -3
|
@@ -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;
|
|
@@ -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("
|
|
15863
|
+
}), t(16, Se = i("confirmationModalTextPeriodProductRestriction", {
|
|
15864
15864
|
values: {
|
|
15865
15865
|
period: i(O),
|
|
15866
15866
|
product: u,
|
|
@@ -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("
|
|
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-
|
|
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-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-product-restriction",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.70.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "esnext/player-account-product-restriction.js",
|
|
6
6
|
"module": "esnext/player-account-product-restriction.js",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"esnext/"
|
|
20
20
|
],
|
|
21
21
|
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
"registry": "https://everymatrix.jfrog.io/artifactory/api/npm/everymatrix-widgets/"
|
|
22
|
+
"access": "public"
|
|
24
23
|
}
|
|
25
24
|
}
|