PageSourceSearch

https://maji-kuji.jp/chunk-XXYJONOD.js

js maji-kuji.jp collected 2026-10-07 16:43:44 UTC 100,740 bytes, 2 lines download raw bytes

1import{a as Ii,b as Ve,e as Ei}from"./chunk-FESDZORK.js";import{a as qe}from"./chunk-67MY2IA5.js";import{a as Ie}from"./chunk-OA5RO6T2.js";import{a as Et,b as yt,c as Ft}from"./chunk-XPK44HRW.js";import{A as tt,B as J,C as Kt,D as A,E as Ee,j as Ti,l as wi,m as ve,n as xe,o as Pe,q as Me,r as be,s as Le,t as Oe,u as Be,w as Te,x as qt,z as we}from"./chunk-NHB454EC.js";import{b as Oi,c as je,e as Bi,f as He,h as wt,i as Ce,l as Se,p as ft}from"./chunk-4OFXQQVN.js";import{$ as Mi,A as jt,Da as ye,F as Si,I as vi,Ma as ct,O as xi,Ra as Vt,_ as Pi,c as ge,f as Ue,fa as bi,ya as fe}from"./chunk-NPAKJOYV.js";import{a as Y}from"./chunk-ESA56ATW.js";import{Aa as W,Ba as It,Ca as nt,Da as ot,Ea as kt,Y as _e,a as ue,c as fi,d as $,e as yi,ea as Ci,f as Lt,fa as Ge,g as K,ga as pt,ha as gt,ia as ht,ka as Q,la as Bt,na as mt,oa as Tt,qa as he,ra as St,sa as Ht,ta as Li,ua as z,xa as X}from"./chunk-ZIDELVHI.js";import{$b as pi,Ab as f,B as j,Cd as Ot,Db as B,Eb as T,F as Yt,Fa as E,Fb as l,Ga as k,Gb as c,H as Dt,Hb as y,Ib as G,Jb as U,K as oi,Kb as _t,La as ie,Lb as V,Lc as ui,Md as N,O as At,Oa as 
1ne,Ob as F,Pc as _i,Pd as I,Qb as m,Qd as R,R as ai,Tb as si,Ub as $t,Vb as le,Ya as ut,Za as it,ab as r,ac as mi,bc as Pt,bd as me,cc as d,cd as q,da as te,dc as g,dd as de,ec as D,fa as P,gd as gi,id as Nt,jb as li,jc as di,ka as H,kb as ci,kc as ce,lc as Ct,ld as bt,mb as oe,nc as O,oa as ee,oc as Mt,p as Rt,pc as lt,qa as p,qc as rt,rb as h,rc as se,sc as s,t as Jt,tc as u,td as hi,ub as ae,uc as S,v as xt,va as L,vb as _,vc as pe,wc as Gt,x as Xt,xd as Ut,ya as ri,zb as re}from"./chunk-XQTUBMJI.js";import{a as Z,b as dt,l as vt}from"./chunk-GRHOBPR5.js";function sn(t,i){if(t&1&&(l(0,"div")(1,"sl-button",2),s(2,"storeUrl"),d(3),s(4,"locale"),c()()),t&2){let e=m();r(),_("routerLink",S(2,2,e.storeSlug,"store_top")),r(2),D(" ",u(4,5,"shared.navigation.backToStoreTop")," ")}}var ki=(()=>{let i=class i{constructor(){this.loading=!0,this.route=p($),this.router=p(Lt),this.store=p(ht),this.alertService=p(jt),this.lotteryService=p(Kt),this.storeUrlService=p(wt),this.localeService=p(N),this.checkOutStatusKey="status",this.paymentIdKey="komoju_payment_id",this.storeSlugKey="channel_slug",this.machineSlugKey="machine_slug",this.machineLimitedKey="machine_limited",this.status=this.route.snapshot.queryParamMap.get(this.checkOutStatusKey),this.paymentId=this.route.snapshot.queryParamMap.get(this.paymentIdKey),this.storeSlug=this.route.snapshot.queryParamMap.get(this.storeSlugKey),this.machineSlug=this.route.snapshot.queryParamMap.get(this.machineSlugKey),this.isLimited=this.route.snapshot.queryParamMap.get(this.machineLimitedKey)==="true",this.firebase$=this.store.select(Ue)}ngOnInit(){this.status==="captured"||this.status==="success"?this.onSuccess():this.status==="failure"?this.lotteryService.cancelMobilePayment(this.storeSlug,this.machineSlug,this.paymentId).subscribe(()=>{this.loading=!1,this.cancelLottery()},()=>{this.loading=!1,this.alreadyCanceled()}):this.status==="canceled"?(this.loading=!1,this.alreadyCanceled()):(this.loading=!1,this.alreadyCanceled())}onSuccess(){return vt(this,null,function*(){if(yield Jt(this.store.select(Ue).pipe(At(1),xt(n=>{var a;return(a=n==null?void 0:n.isAnonymous)!=null?a:!0}))))yield this.alertService.showErrorAlert(this.localeService.translate("shared.mobilePayment.sessionExpiredOnPurchasingLottery")),yield Jt(this.lotteryService.cancelMobilePayment(this.storeSlug,this.machineSlug,this.paymentId)).catch(()=>null),this.navigateToLotteryPage(this.storeSlug,this.machineSlug,this.isLimited);else{let n={paymentId:this.paymentId};this.navigateToLotteryPage(this.storeSlug,this.machineSlug,this.isLimited,n)}})}cancelLottery(){return vt(this,null,function*(){let o=yield this.alertService.showErrorAlert(this.localeService.translate("shared.mobilePayment.failedPaymentLotteryAlertMessage"));yield Jt(o.afterClosed()),this.navigateToLotteryPage(this.storeSlug,this.machineSlug,this.isLimited)})}alreadyCanceled(){return vt(this,null,function*(){let o=yield this.alertService.showErrorAlert(this.localeService.translate("shared.mobilePayment.canceledLotteryAlertMessage"));yield Jt(o.afterClosed()),this.navigateToLotteryPage(this.storeSlug,this.machineSlug,this.isLimited)})}navigateToLotteryPage(o,n,a,C){o&&n?a?this.router.navigate([this.storeUrlService.transform(o,"store_limited_lottery"),n],{queryParams:C,replaceUrl:!0}):this.router.navigate([this.storeUrlService.transform(o,"store_lottery_list"),n],{queryParams:C,replaceUrl:!0}):this.router.navigate(["/"],{replaceUrl:!0})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["sl-mobile-check-out"]],standalone:!0,features:[O],decls:2,vars:1,consts:[[1,"page-container"],[4,"slLoading"],[3,"routerLink"]],template:function(n,a){n&1&&(l(0,"div",0),h(1,sn,5,7,"div",1),c()),n&2&&(r(),_("slLoading",!a.loading))},dependencies:[z,W,K,I,tt],styles:["[_nghost-%COMP%]{display:block}.page-container[_ngcontent-%COMP%]{margin:40px auto 0;text-align:center;width:400px}"]});let t=i;return t})();var pn=(t,i)=>i.id;function mn(t,i){if(t&1&&(l(0,"a",1),y(1,"img",2),s(2,"imageSize"),c()),t&2){let e=i.$implicit;_("slExternalLink",e==null?null:e.url),r(),_("src",u(2,2,e.image),it)}}var Fi=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["sl-banner-list"]],inputs:{banners:"banners"},standalone:!0,features:[O],decls:3,vars:3,consts:[["size","small"],[1,"banner-item",3,"slExternalLink"],[3,"src"]],template:function(n,a){n&1&&(l(0,"sl-layout",0),B(1,mn,3,4,"a",1,pn),c()),n&2&&(re("banner item-",a.banners==null?null:a.banners.length,""),r(),T(a.banners))},dependencies:[R,bi,ct],styles:[".banner[_ngcontent-%COMP%]{align-content:flex-start;align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.banner.item-1[_ngcontent-%COMP%]{justify-content:center}.banner.item-1[_ngcontent-%COMP%]   .banner-item[_ngcontent-%COMP%]{margin:0 1% 2%}.banner.layout-small[_ngcontent-%COMP%]{display:block}.banner.layout-small[_ngcontent-%COMP%]   .banner-item[_ngcontent-%COMP%]{display:block;margin:0 0 16px;width:100%}.banner-item[_ngcontent-%COMP%]{margin-bottom:2%;width:49%}.banner-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;height:auto;width:100%}"],changeDetection:0});let t=i;return t})();var Di=(()=>{let i=class i{constructor(){this.http=p(bt)}fetchStoreBanners(o){return this.http.get(`v1/public/channels/${o}/banners`)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Ke=pt("[StoreBanner] SetStoreBanners",gt()),ke=St(),dn={storeBannersByStore:{}},un=Tt(dn,mt(Ke,(t,{storeSlug:i,banners:e})=>{var a;let o=Z({},t.storeBannersByStore),n=(a=o[i])!=null?a:ke.getInitialState();return o[i]=ke.setAll(e,n),dt(Z({},t),{storeBannersByStore:o})}));function Xr(t,i){return un(t,i)}var{selectAll:_n}=ke.getSelectors(),gn=Bt("storeBanner"),hn=t=>Q(gn,i=>{var e;return(e=i.storeBannersByStore[t])!=null?e:ke.getInitialState()}),$i=t=>Q(hn(t),_n);var Ni=(()=>{let i=class i{constructor(){this.store=p(ht),this.api=p(Di)}selectBanners(o){return this.store.select($i(o))}fetchStoreBanners(o){return this.api.fetchStoreBanners(o).pipe(P(n=>{this.store.dispatch(Ke({storeSlug:o,banners:n}))}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function fn(t,i){if(t&1&&y(0,"sl-banner-list",0),t&2){let e=m();_("banners",e==null?null:e.banners)}}function yn(t,i){if(t&1&&h(0,fn,1,1,"sl-banner-list",0),t&2){let e=i;f(!(e==null||e.banners==null)&&e.banners.length?0:-1)}}var zi=(()=>{let i=class i{constructor(){var o;this.route=p($),this.storeBannerService=p(Ni),this.storeSlug=p(A,{optional:!0}
1),(o=this.storeSlug)!=null||(this.storeSlug=this.route.snapshot.paramMap.get("storeSlug")),this.state$=X({banners:this.storeBannerService.selectBanners(this.storeSlug)})}ngOnInit(){this.storeBannerService.fetchStoreBanners(this.storeSlug).subscribe()}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-container"]],standalone:!0,features:[O],decls:3,vars:3,consts:[[1,"banner",3,"banners"]],template:function(n,a){if(n&1&&(y(0,"router-outlet"),h(1,yn,1,1),s(2,"async")),n&2){let C;r(),f((C=u(2,1,a.state$))?1:-1,C)}},dependencies:[yi,Fi,q]});let t=i;return t})();var Ri=(()=>{let i=class i{constructor(){this.localeService=p(N)}transform(o){switch(o){case"on_sale":return this.localeService.translate("shared.salesStatus.onSale");case"sold_out":return this.localeService.translate("shared.salesStatus.soldOut");case"not_on_sale":return this.localeService.translate("shared.salesStatus.notOnSale");case"before":return this.localeService.translate("shared.salesStatus.before");case"after":return this.localeService.translate("shared.salesStatus.after");default:return"-"}}};i.\u0275fac=function(n){return new(n||i)},i.\u0275pipe=ri({name:"salesStatus",type:i,pure:!0,standalone:!0});let t=i;return t})();var Cn=(t,i)=>({status:t,minimumPlan:i}),Sn=()=>({showTaxInfo:!0}),vn=(t,i)=>({numberOfDraws:t,price:i});function xn(t,i){if(t&1&&(d(0),s(1,"localDate")),t&2){let e=m(2);D(" ",S(1,1,e.machine.saleStartsAt,"mediumDate")," ")}}function Pn(t,i){if(t&1&&(l(0,"div",6),d(1),s(2,"localCurrency"),s(3,"locale"),c()),t&2){let e=m();r(),D(" ",S(3,4,"shared.lottery.price",rt(8,vn,e==null||e.minimumPlan==null?null:e.minimumPlan.numberOfDraws,S(2,1,e==null||e.minimumPlan==null?null:e.minimumPlan.price,Mt(7,Sn))))," ")}}function Mn(t,i){if(t&1&&(l(0,"div",7),d(1),c()),t&2){let e=m(2);r(),g(e.machine==null?null:e.machine.purchaseLimitedLabel)}}function bn(t,i){if(t&1&&(l(0,"div")(1,"div",1),h(2,xn,2,4),d(3),s(4,"salesStatus"),c(),l(5,"div",2),y(6,"img",3),s(7,"imageSize"),c(),l(8,"div",4)(9,"div",5),d(10),c(),h(11,Pn,4,11,"div",6)(12,Mn,2,1,"div",7),c()()),t&2){let e=i,o=m();re("item ",e==null?null:e.status,""),r(2),f((e==null?null:e.status)==="before"?2:-1),r(),D(" ",u(4,9,e==null?null:e.status)," "),r(3),_("src",S(7,11,o.machine==null?null:o.machine.thumbnailImage,"medium"),it),r(4),g(o.machine==null?null:o.machine.name),r(),f(e!=null&&e.minimumPlan?11:-1),r(),f(o.machine!=null&&o.machine.purchaseLimited?12:-1)}}var Qt=(()=>{let i=class i{constructor(){this.lotteryMachineService=p(ft)}ngOnInit(){}lotteryMachineStatus(o){return this.lotteryMachineService.lotteryMachineStatus(o)}minimumPricePlan(o){return this.lotteryMachineService.minimumPricePlan(o)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["sl-lottery-item"]],inputs:{machine:"machine"},standalone:!0,features:[O],decls:1,vars:4,consts:[[3,"class"],[1,"status"],[1,"thumbnail"],["alt","",1,"thumbnail-image",3,"src"],[1,"meta"],[1,"name"],[1,"price"],[1,"limited"]],template:function(n,a){if(n&1&&h(0,bn,13,14,"div",0),n&2){let C;f((C=rt(1,Cn,a.lotteryMachineStatus(a.machine),a.minimumPricePlan(a.machine)))?0:-1,C)}},dependencies:[ct,Vt,It,I,Ri],styles:["[_nghost-%COMP%]{--machine-name-size: 1.9rem}[_nghost-%COMP%]:focus{outline:none}.item[_ngcontent-%COMP%]{background-color:var(--app-color-background);box-shadow:var(--app-shadow);cursor:pointer;height:100%}.item.sold_out[_ngcontent-%COMP%]   .thumbnail[_ngcontent-%COMP%]{filter:grayscale(100%)}.item.before[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%], .item.after[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%], .item.sold_out[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%], .item.not_on_sale[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{background-color:var(--app-color-disabled);color:#fff}.status[_ngcontent-%COMP%]{background-color:var(--app-color-accent);color:var(--app-color-accent-contrast);font-size:1.4rem;font-weight:600;padding:8px 12px;text-align:center}.thumbnail[_ngcontent-%COMP%]{aspect-ratio:var(--app-lottery-thumbnail-aspect-ratio);position:relative}.thumbnail-image[_ngcontent-%COMP%]{height:100%;left:0;object-fit:cover;position:absolute;top:0;width:100%}.meta[_ngcontent-%COMP%]{padding:16px 12px}.name[_ngcontent-%COMP%]{-webkit-box-orient:vertical;display:-webkit-box;font-size:var(--machine-name-size);font-weight:600;-webkit-line-clamp:2;line-height:1.6;max-height:3.2em;overflow:hidden}.price[_ngcontent-%COMP%]{color:var(--app-color-text-light);font-size:1.4rem;margin-top:4px}.limited[_ngcontent-%COMP%]{background:var(--app-color-primary);color:var(--app-color-primary-contrast);display:inline-block;font-size:1.4rem;font-weight:600;margin-top:6px;padding:2px 12px}"],changeDetection:0});let t=i;return t})();var Ai=(()=>{let i=class i{constructor(){this.http=p(bt)}fetchMachineGroups(o,n,a){let C=new Nt().set("page",n.toString()).set("per_page",a.toString());return this.http.get(`v1/public/channels/${o}/gacha_machine_groups`,{params:C}).pipe(oi(v=>{if((v==null?void 0:v.status)===404)return Rt([]);throw v}))}fetchMachineGroup(o,n){return this.http.get(`v1/public/channels/${o}/gacha_machine_groups/${n}`)}fetchMachineGroupMachines(o,n,a,C,v){let x=new Nt().set("page",C.toString()).set("per_page",v.toString());return a&&(x=x.set("filter","on_sale_and_in_stock")),this.http.get(`v1/public/channels/${o}/gacha_machine_groups/${n}/gacha_machines`,{params:x})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Qe=pt("[LotteryMachineGroup] SetLotteryMachineGroups",(t,i,e=!1)=>({storeSlug:t,targetMachineGroups:i,init:e})),We=pt("[LotteryMachineGroup] SetLotteryMachineGroup",gt()),Fe=St(),Ln=Fe.getInitialState({groupIdsByStore:{}}),On=Tt(Ln,mt(Qe,(t,{storeSlug:i,targetMachineGroups:e,init:o})=>{let n=Z({},t.groupIdsByStore),a=e.map(C=>C.id);return n[i]=o?a:[...new Set([...n[i],...a])],Fe.upsertMany(e,dt(Z({},t),{groupIdsByStore:n}))}),mt(We,(t,{targetMachineGroup:i})=>Fe.upsertOne(i,t)));function Rl(t,i){return On(t,i)}var{selectEntities:Bn}=Fe.getSelectors(),Gi=Bt("lotteryMachineGroup"),Ui=Q(Gi,Bn),ji=t=>Q(Gi,Ui,(i,e)=>{var o;return((o=i.groupIdsByStore[t])!=null?o:[]).map(n=>e[n])}),Je=t=>Q(Ui,i=>i[t]);var De=(()=>{let i=class i{constructor(){this.machineGroupPages={},this.machineGroupMachinePages={},this.lastGroupMachinesFetchStartedTimestamp={},this.api=p(Ai),this.store=p(ht)}selectMachineGroups(o){return this.store.select(ji(o))}selectMachineGroup(o){return this.store.select(Je(o))}selectSignalMachineGroup(o){return this.store.selectSignal(Je(o))}selectMachineGroupMachines(o,n){return this.store.select(He(o,n))}selectSignalMachineGroupMachines(o,n){return this.store.selectSignal(He(o,n))}fetchMachineGroups(o,n=!1){var v;let a=this.machineGroupPages[o]=(v=this.machineGroupPages[o])!=null?v:new Ve(20),C=n?1:a.page+1;return this.api.fetchMachineGroups(o,C,20).pipe(P(x=>{this.store.dispatch(Qe(o,x,n)),a.page=C,a.setPage(x)}))}fetchMachineGroup(o,n){return this.api.fetchMachineGroup(o,n).pipe(P(a=>{this.store.dispatch(We({targetMachineGroup:a}))}))}fetchMachineGroupMachines(o,n,a,C=!1){var M;let v=this.machineGroupMachinePages[n]=(M=this.machineGroupMachinePages[n])!=null?M:new Ve(20),x=C?1:v.page+1;
1return C||!a?(x===1&&(this.lastGroupMachinesFetchStartedTimestamp[n]=new Date().getTime()),this.api.fetchMachineGroupMachines(o,n,a,x,20).pipe(P(b=>{this.store.dispatch(je(o,n,b,C)),v.page=x,v.setPage(b)}))):j({prev:this.api.fetchMachineGroupMachines(o,n,a,x-1,20),current:this.api.fetchMachineGroupMachines(o,n,a,x,20)}).pipe(xt(({prev:b,current:at})=>[...b!=null?b:[],...at]),P(b=>{this.store.dispatch(je(o,n,b,C)),v.page=x,v.setPage(b)}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var et=(()=>{let i=class i{constructor(){this.meta=p(hi),this.dom=p(_i)}updateTags(o,n,a){[{property:"og:title",content:o},{property:"og:url",content:a!=null?a:window.location.href},{property:"og:image",content:n}].forEach(v=>this.meta.updateTag(v))}createCanonicalUrl(o){this.refreshCanonicalUrl();let n=this.dom.createElement("link");n.setAttribute("rel","canonical"),this.dom.head.appendChild(n),n.setAttribute("href",o!=null?o:this.dom.URL)}refreshCanonicalUrl(){let o=this.dom.head.getElementsByTagName("link");for(let n of o)n.getAttribute("rel")==="canonical"&&this.dom.head.removeChild(n)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Hi=(()=>{let i=class i{constructor(){this.http=p(bt)}fetchNotifications(o,n,a){let C=new Nt().set("page",n.toString()).set("per_page",a.toString());return this.http.get(`v1/public/channels/${o}/news_items`,{params:C})}fetchNotification(o,n){return this.http.get(`v1/public/channels/${o}/news_items/${n}`)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Ze=pt("[StoreNotification] SetStoreNotifications",gt()),Xe=pt("[StoreNotification] SetStoreNotification",gt()),zt=St(),Tn={storeNotificationsByStore:{}},wn=Tt(Tn,mt(Ze,(t,{storeSlug:i,targetStoreNotifications:e,init:o})=>{var C;let n=Z({},t.storeNotificationsByStore),a=(C=n[i])!=null?C:zt.getInitialState();return n[i]=o?zt.setAll(e,a):zt.addMany(e,a),dt(Z({},t),{storeNotificationsByStore:n})}),mt(Xe,(t,{storeSlug:i,targetStoreNotification:e})=>{var a;let o=Z({},t.storeNotificationsByStore),n=(a=o[i])!=null?a:zt.getInitialState();return o[i]=zt.upsertOne(e,n),dt(Z({},t),{storeNotificationsByStore:o})}));function sc(t,i){return wn(t,i)}var{selectEntities:In,selectAll:En}=zt.getSelectors(),kn=Bt("storeNotification"),Vi=t=>Q(kn,i=>{var e;return(e=i.storeNotificationsByStore[t])!=null?e:zt.getInitialState()}),Fn=t=>Q(Vi(t),In),qi=t=>Q(Vi(t),En),Ki=(t,i)=>Q(Fn(t),e=>e[i]);var Wt=(()=>{let i=class i{constructor(){this.notificationPages={},this.api=p(Hi),this.store=p(ht)}selectNotifications(o){return this.store.select(qi(o))}selectStoreNotification(o,n){return this.store.select(Ki(o,n))}fetchNotifications(o,n=!1){this.notificationPages[o]||(this.notificationPages[o]=new he(20));let a=n?1:this.notificationPages[o].page+1;return this.api.fetchNotifications(o,a,20).pipe(P(C=>{this.store.dispatch(Ze({storeSlug:o,targetStoreNotifications:C,init:n})),this.notificationPages[o].page=a,this.notificationPages[o].setPage(C)}))}fetchNotification(o,n){return this.api.fetchNotification(o,n).pipe(P(a=>{this.store.dispatch(Xe({storeSlug:o,targetStoreNotification:a}))}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Zt=(t,i)=>i.id,Dn=(t,i)=>({storeName:t,appName:i});function $n(t,i){if(t&1&&y(0,"tbx-wysiwyg-body",6),t&2){let e=m();_("body",e==null||e.store==null?null:e.store.topBody)}}function Nn(t,i){if(t&1&&y(0,"sl-notification-item",17),t&2){let e=i.$implicit;$t("routerLink","notification/",e==null?null:e.id,""),_("notification",e)}}function zn(t,i){if(t&1&&(l(0,"div",7)(1,"div",16),B(2,Nn,1,3,"sl-notification-item",17,Zt),c(),l(4,"div",13)(5,"sl-button",18),d(6),s(7,"locale"),c()()()),t&2){let e=m();r(2),T(e==null?null:e.notifications),r(4),g(u(7,1,"pages.storeDetail.showAllNotifications"))}}function Rn(t,i){if(t&1&&y(0,"tbx-wysiwyg-body",8),t&2){let e=m();_("body",e==null?null:e.store.body)}}function An(t,i){if(t&1&&y(0,"sl-lottery-item",20),t&2){let e=i.$implicit;$t("routerLink","limited/",e.id,""),_("machine",e)}}function Gn(t,i){if(t&1&&(l(0,"div",9)(1,"div",10)(2,"div",11),d(3,"LIMITED"),c(),l(4,"div",12),d(5),s(6,"locale"),c()(),l(7,"div",19),B(8,An,1,3,"sl-lottery-item",20,Zt),c()()),t&2){let e=m();r(5),g(u(6,1,"pages.storeDetail.limitedLottery")),r(3),T(e==null?null:e.limitedMachines)}}function Un(t,i){if(t&1&&y(0,"sl-lottery-item",22),t&2){let e=i.$implicit;$t("routerLink","lottery/",e.id,""),_("machine",e)}}function jn(t,i){if(t&1&&(l(0,"div",19),B(1,Un,1,3,"sl-lottery-item",22,Zt),c()),t&2){let e=m(2);r(),T(e==null?null:e.machines)}}function Hn(t,i){t&1&&(l(0,"sl-empty"),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeDetail.emptySalesLotteryMessage")))}function Vn(t,i){if(t&1&&(h(0,jn,3,0,"div",19)(1,Hn,3,3,"sl-empty"),l(2,"div",13)(3,"sl-button",21),d(4),s(5,"locale"),c()()),t&2){let e=m();f(!(e==null||e.machines==null)&&e.machines.length?0:1),r(4),g(u(5,2,"pages.storeDetail.viewAllLottery"))}}function qn(t,i){if(t&1&&(l(0,"a",27),y(1,"img",28),s(2,"imageSize"),c()),t&2){let e=m(2).$implicit;$t("routerLink","category/",e.id,""),r(),_("src",S(2,3,e.bannerImage,"large"),it)}}function Kn(t,i){if(t&1&&y(0,"sl-lottery-item",22),t&2){let e=i.$implicit;$t("routerLink","lottery/",e.id,""),_("machine",e)}}function Qn(t,i){if(t&1&&(l(0,"div",19),B(1,Kn,1,3,"sl-lottery-item",22,Zt),c(),l(3,"div",13)(4,"sl-button",29),d(5),s(6,"locale"),c()()),t&2){let e=m(2).$implicit;r(),T(e.gachaMachines),r(3),$t("routerLink","category/",e.id,""),r(),g(u(6,3,"pages.storeDetail.viewSectionLottery"))}}function Wn(t,i){if(t&1&&(l(0,"div",25)(1,"div",26),d(2),c(),h(3,qn,3,6,"a",27)(4,Qn,7,5),c()),t&2){let e=m().$implicit;r(2),g(e.name),r(),f(e.bannerImage?3:4)}}function Jn(t,i){if(t&1&&h(0,Wn,5,2,"div",25),t&2){let e=i.$implicit;f(e.gachaMachines.length||e.bannerImage?0:-1)}}function Zn(t,i){if(t&1){let e=V();l(0,"div",23),F("scrolled",function(){E(e);let n=m(3);return k(n.onScroll())}),B(1,Jn,1,1,null,null,Zt),c(),l(3,"div",24)(4,"sl-button",21),d(5),s(6,"locale"),c()()}if(t&2){let e=m();r(),T(e.machineGroups),r(4),g(u(6,1,"pages.storeDetail.viewAllLottery"))}}function Xn(t,i){if(t&1&&y(0,"tbx-wysiwyg-body",14),t&2){let e=m();_("body",e==null?null:e.store.bottomBody)}}function Yn(t,i){if(t&1&&(l(0,"sl-layout",1)(1,"div",2),y(2,"img",3),s(3,"imageSize"),c(),l(4,"div",4),d(5),c()(),l(6,"sl-layout",5),h(7,$n,1,1,"tbx-wysiwyg-body",6)(8,zn,8,3,"div",7)(9,Rn,1,1,"tbx-wysiwyg-body",8)(10,Gn,10,3,"div",9),l(11,"div",9)(12,"div",10)(13,"div",11),d(14,"LINE UP"),c(),l(15,"div",12),d(16),s(17,"locale"),c()(),h(18,Vn,6,4,"div",13),c(),h(19,Zn,7,3)(20,Xn,1,1,"tbx-wysiwyg-body",14),y(21,"sl-share",15),s(22,"locale"),s(23,"locale"),c()),t&2){let e=i;r(2),_("src",S(3,11,e==null||e.store==null?null:e.store.mainImage,"large"),it),r(3),g(e==null||e.store==null?null:e.store.name),r(2),f(!(e==null||e.store==null)&&e.store.topBody?7:-1),r(),f(!(e==null||e.notifications==null)&&e.notifications.length?8:-1),r(),f(!(e==null||e.store==null)&&e.store.body?9:-1),r(),f(!(e==null||e.limitedMachines==null)&&e.limitedMachines.length?10:-1),r(6),g(u(17,14,"pages.storeDetail.salesLineup")),r(2),f((e==null||e.machineGroups==null?null:e.machineGroups.length)===0?18:-1),r(),f((e==null||e.machineGroups==null?null:e.machineGroups.length)>0?19:-1),r(),f(!(e==null||e.store==null)&&e.store.bottomBody?20:-1),r(),_("text",S(23,18,"pages.storeDetail.shareText",rt(21,Dn,e==null||e.store==null?null:e.store.name,u(22,16,"common.appName")))
1)}}function to(t,i){if(t&1&&(G(0),h(1,Yn,24,24),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.state$))?1:-1,e)}}var eo=3,Qi=(()=>{let i=class i{constructor(){var o;this.loading=!1,this.loadingMore=!1,this.lotteryStoreService=p(J),this.lotteryMachineService=p(ft),this.storeNotificationService=p(Wt),this.metaTagsService=p(et),this.titleService=p(Y),this.localeService=p(N),this.lotteryMachineGroupService=p(De),this.route=p($),this.slug=p(A,{optional:!0}),(o=this.slug)!=null||(this.slug=this.route.snapshot.paramMap.get("storeSlug")),this.state$=X({store:this.lotteryStoreService.selectStore(this.slug),machines:this.lotteryMachineService.selectStorefrontLotteryMachines(this.slug).pipe(this.lotteryMachineService.sortMachineByStatus(["on_sale","sold_out","before","not_on_sale","after"])),limitedMachines:this.lotteryMachineService.selectLimitedLotteryMachines(this.slug).pipe(this.lotteryMachineService.sortMachineByStatus(["on_sale","sold_out","before","not_on_sale","after"])),machineGroups:this.lotteryMachineGroupService.selectMachineGroups(this.slug),notifications:this.storeNotificationService.selectNotifications(this.slug).pipe(xt(n=>n.slice(0,eo)))}).pipe(P(n=>{var a,C,v,x,M;this.titleService.setTitle((a=n==null?void 0:n.store)==null?void 0:a.name),this.metaTagsService.updateTags(`${(C=n==null?void 0:n.store)==null?void 0:C.name} - ${this.localeService.translate("common.appFullName")}`,(M=(x=(v=n==null?void 0:n.store)==null?void 0:v.mainImage)==null?void 0:x.readingUrls)==null?void 0:M.medium)}))}ngOnInit(){this.loading=!0,j([this.lotteryStoreService.fetchStore(this.slug),this.lotteryMachineService.fetchLotteryMachinesForStorefront(this.slug),this.lotteryMachineService.fetchLimitedLotteryMachines(this.slug),this.lotteryMachineGroupService.fetchMachineGroups(this.slug,!0),this.storeNotificationService.fetchNotifications(this.slug,!0)]).subscribe(()=>{this.loading=!1})}onScroll(){!this.loadingMore&&!this.lotteryMachineGroupService.machineGroupPages[this.slug].isComplete&&(this.loadingMore=!0,this.lotteryMachineGroupService.fetchMachineGroups(this.slug).subscribe(()=>{this.loadingMore=!1}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-detail"]],standalone:!0,features:[O],decls:1,vars:1,consts:[[4,"slLoading"],[1,"store"],[1,"store-main"],["alt","",1,"store-main-image",3,"src"],[1,"store-name"],["size","small",1,"content"],[1,"content-top",3,"body"],[1,"news"],[1,"content-middle",3,"body"],[1,"lottery"],[1,"lottery-heading"],[1,"en"],[1,"ja"],[1,"more"],[1,"content-bottom",3,"body"],[1,"share",3,"text"],[1,"news-list"],[3,"notification","routerLink"],["type","stroked","routerLink","notification"],[1,"lottery-list"],["show-status","",1,"lottery-list-item",3,"routerLink","machine"],["type","stroked","routerLink","lottery"],[1,"lottery-list-item",3,"routerLink","machine"],["infiniteScroll","",1,"group",3,"scrolled"],[1,"more-store"],[1,"machine-group"],[1,"machine-group-heading"],[1,"machine-group-banner",3,"routerLink"],[1,"machine-group-banner-image",3,"src"],["type","stroked",3,"routerLink"]],template:function(n,a){n&1&&h(0,to,3,3,"ng-container",0),n&2&&_("slLoading",!a.loading)},dependencies:[z,R,Ot,Ie,K,W,Qt,Et,yt,qt,q,ct,I],styles:[".store.layout-small[_ngcontent-%COMP%]   .store-main[_ngcontent-%COMP%]{margin:0 -16px}.store.layout-small[_ngcontent-%COMP%]   .store-name[_ngcontent-%COMP%]{font-size:2rem;margin-top:12px;text-align:left}.store-main[_ngcontent-%COMP%]{aspect-ratio:16/9;position:relative}.store-main-image[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}.store-name[_ngcontent-%COMP%]{font-size:3.6rem;font-weight:600;letter-spacing:.05em;margin-top:32px;text-align:center;text-indent:.05em}.content[_ngcontent-%COMP%]{--section-margin: 56px;padding-bottom:80px}.content.layout-small[_ngcontent-%COMP%]{--section-margin: 40px}.content-top[_ngcontent-%COMP%], .content-middle[_ngcontent-%COMP%], .content-bottom[_ngcontent-%COMP%], .news[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.more[_ngcontent-%COMP%]{margin-top:32px;text-align:center}.lottery[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.lottery[_ngcontent-%COMP%] + .lottery[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) * 2)}.lottery-heading[_ngcontent-%COMP%]{text-align:center}.lottery-heading[_ngcontent-%COMP%]   .en[_ngcontent-%COMP%]{font-family:var(--app-latin-font-family);font-weight:var(--app-latin-font-weight);letter-spacing:var(--app-latin-font-letter-spacing);text-indent:var(--app-latin-font-letter-spacing);font-size:4rem;line-height:1}.lottery-heading[_ngcontent-%COMP%]   .ja[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:600}.lottery-list[_ngcontent-%COMP%]{display:grid;gap:40px 30px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:32px}.machine-group[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.machine-group-heading[_ngcontent-%COMP%]{font-size:19px;font-weight:600}.layout-small[_ngcontent-%COMP%]   .machine-group-heading[_ngcontent-%COMP%]{font-size:17px;margin-bottom:-16px}.machine-group-banner[_ngcontent-%COMP%]{box-shadow:var(--app-sha
1dow);display:block;margin-top:32px}.machine-group-banner-image[_ngcontent-%COMP%]{display:block;height:auto;width:100%}.more-store[_ngcontent-%COMP%]{margin-top:40px;text-align:center}.share[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) * 2)}"]});let t=i;return t})();var Wi=(()=>{let i=class i{constructor(){this.http=p(bt)}fetchCollectedStores(o,n){let a=new Nt().set("page",o.toString()).set("per_page",n.toString());return this.http.get("v1/private/collection/channels",{params:a})}fetchCollectedMachines(o){return this.http.get(`v1/private/channels/${o}/gachas/collection/machines`)}fetchCollectedRarities(o,n){return this.http.get(`v1/private/channels/${o}/gachas/machines/${n}/collection/rarities`)}fetchCollectedBonuses(o,n){return this.http.get(`v1/private/channels/${o}/gachas/machines/${n}/collection/bonuses`)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Ye=pt("[Collection] SetCollectedRarities",gt()),ti=pt("[Collection] SetCollectedBonuses",gt()),$e=St(),Ne=St(),io={raritiesByLottery:{},bonusesByLottery:{}},no=Tt(io,mt(Ye,(t,{lotterySlug:i,rarities:e})=>{var a;let o=Z({},t.raritiesByLottery),n=(a=o[i])!=null?a:$e.getInitialState();return o[i]=$e.setAll(e,n),dt(Z({},t),{raritiesByLottery:o})}),mt(ti,(t,{lotterySlug:i,bonuses:e})=>{var a;let o=Z({},t.bonusesByLottery),n=(a=o[i])!=null?a:Ne.getInitialState();return o[i]=Ne.setAll(e,n),dt(Z({},t),{bonusesByLottery:o})}));function Yc(t,i){return no(t,i)}var{selectAll:oo}=$e.getSelectors(),{selectAll:ao}=Ne.getSelectors(),Ji=Bt("collection"),ro=t=>Q(Ji,i=>{var e;return(e=i.raritiesByLottery[t])!=null?e:$e.getInitialState()}),Zi=t=>Q(ro(t),oo),lo=t=>Q(Ji,i=>{var e;return(e=i.bonusesByLottery[t])!=null?e:Ne.getInitialState()}),ei=t=>Q(lo(t),ao),Xi=(t,i)=>Q(ei(t),e=>e.filter(o=>o.kind===i));var ze=(()=>{let i=class i{constructor(){this.storesPage=new he(20),this.api=p(Wi),this.store=p(ht),this.stores$=this.store.select(wi)}selectMachines(o){return this.store.select(Bi(o))}selectRarities(o){return this.store.select(Zi(o))}selectBonuses(o){return this.store.select(ei(o))}selectBonusesWithKind(o,n){return this.store.select(Xi(o,n))}fetchStores(o=!1){let n=o?1:this.storesPage.page+1;return this.api.fetchCollectedStores(n,20).pipe(P(a=>{this.store.dispatch(Ti(a,o)),this.storesPage.page=n,this.storesPage.setPage(a)}))}fetchMachines(o){return this.api.fetchCollectedMachines(o).pipe(P(n=>{this.store.dispatch(Oi({storeSlug:o,targetMachines:n}))}))}fetchRarities(o,n){return this.api.fetchCollectedRarities(o,n).pipe(P(a=>{this.store.dispatch(Ye({lotterySlug:n,rarities:a}))}))}fetchBonuses(o,n){return this.api.fetchCollectedBonuses(o,n).pipe(P(a=>{this.store.dispatch(ti({lotterySlug:n,bonuses:a}))}))}totalPrizesCount(o){return o.reduce((n,a)=>n+=a.prizes.length,0)}acquiredCount(o){return o.reduce((n,a)=>n+=a.prizes.filter(C=>C.acquired).length,0)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=H({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Re=(t,i)=>i.id,co=(t,i,e,o)=>({totalStockQuantity:t,machineStatus:i,minimumPricePlan:e,digitalContent:o}),so=()=>["medium","large"],po=(t,i)=>({start:t,end:i}),mo=t=>({appFullName:t}),uo=()=>({showTaxInfo:!0}),_o=(t,i)=>({numberOfDraws:t,price:i}),go=t=>({lawUrl:t}),ho=t=>({name:t}),fo=t=>({quantity:t}),yo=t=>({bonusName:t});function Co(t,i){if(t&1&&(l(0,"div",24),y(1,"img",25),s(2,"imageSize"),c()),t&2){let e=m(2);r(),_("src",S(2,1,e==null||e.machine==null?null:e.machine.mainImage,"large"),it)}}function So(t,i){if(t&1&&(y(0,"img",25),s(1,"imageSize")),t&2){let e=m(3);_("src",pe(1,1,e==null||e.machine==null?null:e.machine.squareImage,"medium",e==null||e.machine==null?null:e.machine.mainImage),it)}}function vo(t,i){t&1&&(l(0,"div",26),h(1,So,2,5,"img",27),c()),t&2&&(r(),_("slRenderOn","small"))}function xo(t,i){if(t&1&&y(0,"sl-image-slider",7),t&2){let e=m(2);_("images",e==null||e.machine==null?null:e.machine.galleryImages)}}function Po(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.beforeSale")))}function Mo(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.suspendSale")))}function bo(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.endOfSale")))}function Lo(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"localCurrency"),s(7,"locale"),c()()),t&2){let e=m(2);r(2),g(u(3,2,"pages.storeLottery.priceHeader")),r(3),D(" ",S(7,7,"pages.storeLottery.minimumPrice",rt(11,_o,e==null||e.minimumPricePlan==null?null:e.minimumPricePlan.numberOfDraws,S(6,4,e==null||e.minimumPricePlan==null?null:e.minimumPricePlan.price,Mt(10,uo))))," ")}}function Oo(t,i){t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"locale"),c()()),t&2&&(r(2),g(u(3,2,"pages.storeLottery.shippingFeeLabel")),r(3),g(u(6,4,"pages.storeLottery.shippingFeeNote")))}function Bo(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),y(6,"br"),d(7),s(8,"locale"),c()()),t&2){let e=m(3);r(2),g(u(3,3,"pages.storeLottery.shippingDateLabel")),r(3),D(" ",e==null||e.machine==null||e.machine.shippingPerio
1d==null?null:e.machine.shippingPeriod.shippingSchedule,""),r(2),D("",u(8,5,"pages.storeLottery.shippingNote")," ")}}function To(t,i){t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"locale"),c()()),t&2&&(r(2),g(u(3,2,"pages.storeLottery.paymentInfoLabel")),r(3),g(u(6,4,"pages.storeLottery.paymentInfoNote")))}function wo(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),y(4,"dd",15),s(5,"locale"),s(6,"safeHtml"),c()),t&2){let e=m(6);r(2),g(u(3,2,"pages.storeLottery.cancelPolicyLabel")),r(2),_("innerHTML",u(6,7,S(5,4,"pages.storeLottery.cancelPolicyNote",lt(9,go,e.assets==null||e.assets.lawLink==null?null:e.assets.lawLink.href))),ut)}}function Io(t,i){t&1&&(h(0,To,7,6,"dl",13),s(1,"locale"),h(2,wo,7,11,"dl",13),s(3,"locale")),t&2&&(f(u(1,2,"pages.storeLottery.paymentInfoLabel")?0:-1),r(2),f(u(3,4,"pages.storeLottery.cancelPolicyLabel")?2:-1))}function Eo(t,i){t&1&&(l(0,"div",29),d(1),s(2,"locale"),c(),l(3,"div",29),d(4),s(5,"locale"),c()),t&2&&(r(),g(u(2,2,"pages.storeLottery.noteAboutInitialProportion")),r(3),g(u(5,4,"pages.storeLottery.noteAboutTotalProportion")))}function ko(t,i){t&1&&y(0,"sl-lottery-restriction-tag",32)}function Fo(t,i){t&1&&y(0,"sl-lottery-restriction-tag",33)}function Do(t,i){if(t&1&&(l(0,"div",30),h(1,ko,1,0,"sl-lottery-restriction-tag",32)(2,Fo,1,0,"sl-lottery-restriction-tag",33),c()),t&2){let e=m(3);r(),f(!(e==null||e.machine==null)&&e.machine.emailRequired?1:-1),r(),f(!(e==null||e.machine==null)&&e.machine.phoneNumberRequired?2:-1)}}function $o(t,i){if(t&1&&(h(0,Lo,8,14,"dl",13)(1,Oo,7,6,"dl",13),s(2,"locale"),h(3,Bo,9,7,"dl",13),s(4,"locale"),h(5,Io,4,6),l(6,"div",28)(7,"div",29),d(8),s(9,"locale"),s(10,"locale"),c(),h(11,Eo,6,6),c(),h(12,Do,3,2,"div",30)),t&2){let e=m(),o=m();f(e!=null&&e.minimumPricePlan?0:-1),r(),f(u(2,7,"pages.storeLottery.shippingFeeLabel")?1:-1),r(2),f(u(4,9,"pages.storeLottery.shippingDateLabel")?3:-1),r(2),f(e!=null&&e.minimumPricePlan?5:-1),r(3),D(" ",S(10,13,"pages.storeLottery.noteForPurchasers",lt(16,mo,u(9,11,"common.appFullName")))," "),r(3),f((o==null||o.machine==null?null:o.machine.modeOfOddsDisclosing)==="initial_stock_proportion"?11:-1),r(),f(!(o==null||o.machine==null)&&o.machine.emailRequired||!(o==null||o.machine==null)&&o.machine.phoneNumberRequired?12:-1)}}function No(t,i){if(t&1&&(l(0,"div",36),d(1),s(2,"number"),s(3,"locale"),c()),t&2){let e=m(2);r(),D(" ",S(3,3,"pages.storeLottery.totalStockQuantity",lt(6,fo,u(2,1,e==null?null:e.totalStockQuantity)))," ")}}function zo(t,i){t&1&&(y(0,"div",37),s(1,"locale"),s(2,"locale")),t&2&&_("innerHTML",S(2,3,"pages.storeLottery.noteForProbabilityNotation",lt(6,yo,u(1,1,"common.bonus"))),ut)}function Ro(t,i){if(t&1&&y(0,"sl-lottery-bonus",44),t&2){let e=i.$implicit,o=m(3);_("bonus",e)("digitalContent",o.digitalContent)}}function Ao(t,i){if(t&1&&(l(0,"div",19),B(1,Ro,1,2,"sl-lottery-bonus",44,Re),c()),t&2){let e=m(3),o=m(2);r(),T(o.getLastOne(e))}}function Go(t,i){if(t&1&&y(0,"sl-lottery-rarity",38),t&2){let e=i.$implicit,o=i.$index,n=m(2),a=m();_("rarity",e)("totalQuantity",n==null?null:n.totalStockQuantity)("initialStockProportion",e==null?null:e.initialStockProportion)("modeOfOddsDisclosing",a==null||a.machine==null?null:a.machine.modeOfOddsDisclosing)("topPrize",o===0)("digitalContent",n==null?null:n.digitalContent)}}function Uo(t,i){if(t&1&&(l(0,"div",18)(1,"div",34)(2,"div",35),d(3,"LINE UP"),c(),h(4,No,4,8,"div",36)(5,zo,3,8,"div",37),c(),h(6,Ao,3,0,"div",19),B(7,Go,1,6,"sl-lottery-rarity",38,Re),l(9,"div",39)(10,"div",40),y(11,"sl-icon",41),l(12,"div",42),d(13),s(14,"locale"),c()(),l(15,"div",40),y(16,"sl-icon",43),l(17,"div",42),d(18),s(19,"locale"),s(20,"locale"),c()()()()),t&2){let e=m(2),o=m(2);r(4),f((e==null||e.machine==null?null:e.machine.modeOfOddsDisclosing)==="raw"?4:-1),r(),f((e==null||e.machine==null?null:e.machine.modeOfOddsDisclosing)==="initial_stock_proportion"?5:-1),r(),f(o.hasBonus(e,"last_one")?6:-1),r(),T(o.getRarities(e)),r(6),g(u(14,5,"pages.storeLottery.acquiredPrize")),r(5),D(" ",S(20,9,"pages.storeLottery.withDigitalContent",lt(12,ho,u(19,7,"common.digitalContentsFull")))," ")}}function jo(t,i){if(t&1&&y(0,"sl-lottery-bonus",44),t&2){let e=i.$implicit,o=m(2);_("bonus",e)("digitalContent",o.digitalContent)}}function Ho(t,i){if(t&1&&(l(0,"div",19),B(1,jo,1,2,"sl-lottery-bonus",44,Re),c()),t&2){let e=m(2),o=m(2);r(),T(o.getDoubleChance(e))}}function Vo(t,i){if(t&1&&(y(0,"sl-share",23),s(1,"locale")),t&2){let e=m(2);le("text","",e==null||e.machine==null?null:e.machine.name," - ",u(1,3,"common.appName"),"")}}function qo(t,i){if(t&1&&_t(0,17),t&2){m();let e=Pt(3);_("ngTemplateOutlet",e)}}function Ko(t,i){if(t&1&&_t(0,17),t&2){m();let e=Pt(3);_("ngTemplateOutlet",e)}}function Qo(t,i){if(t&1&&(l(0,"sl-layout",46),y(1,"tbx-wysiwyg-body",58),c()),t&2){let e=m(4);r(),_("body",e==null||e.machine==null?null:e.machine.purchaseLimitedBody)}}function Wo(t,i){if(t&1){let e=V();l(0,"sl-lottery-plans",59),F("draw",function(n){E(e);let a=m(4),C=m(2);return k(C.drawLottery(a==null?null:a.store,a==null?null:a.machine,n))}),c()}if(t&2){let e=m(4);_("pricePlans",e==null||e.machine==null?null:e.machine.pricePlans)("store",e==null?null:e.store)("machine",e==null?null:e.machine)}}function Jo(t,i){if(t&1){let e=V();l(0,"sl-throttling-button",61),F("click",function(){let n=E(e).$implicit,a=m(5),C=m(2);return k(C.drawWithCoupon(a.store,a.machine,n))}),l(1,"div",62),d(2),c(),l(3,"div",63),y(4,"sl-icon",53),l(5,"div",64)(6,"div",65),d(7),c(),l(8,"div",66),d(9),s(10,"locale"),c()()()()}if(t&2){let e=i.$implicit;r(2),g(e.name),r(5),g(e==null?null:e.numberOfDraws),r(2),g(u(10,3,"pages.storeLottery.unitName"))}}function Zo(t,i){if(t&1&&(l(0,"div",50),B(1,Jo,11,5,"sl-throttling-button",60,Re),c()),t&2){let e=m(4);r(),T(e.coupons)}}function Xo(t,i){if(t&1){let e=V();
1l(0,"div",45),h(1,Qo,2,1,"sl-layout",46),l(2,"div",47),h(3,Wo,1,3,"sl-lottery-plans",48),l(4,"div",49),h(5,Zo,3,0,"div",50),l(6,"div",51)(7,"a",52),F("click",function(){E(e);let n=m(3),a=m(2);return k(a.provideCouponCode(n.store,n.machine))}),y(8,"sl-icon",53),l(9,"div",42),d(10),s(11,"locale"),c()()()(),l(12,"div",54)(13,"a",55),F("click",function(){E(e);let n=m(5);return k(n.showUsageModal())}),y(14,"sl-icon",56),l(15,"div",57),d(16),s(17,"locale"),c()()()()()}if(t&2){let e=m(3);r(),f(e!=null&&e.purchaseAuthority?-1:1),r(2),f(e!=null&&e.purchaseAuthority?3:-1),r(2),f(e.coupons!=null&&e.coupons.length?5:-1),r(5),g(u(11,5,"pages.storeLottery.serialCodeNote")),r(6),g(u(17,7,"pages.storeLottery.showHowToPlay"))}}function Yo(t,i){if(t&1&&h(0,qo,1,1,"ng-container",17)(1,Ko,1,1,"ng-container",17)(2,Xo,18,9,"ng-template",null,1,Gt),t&2){let e,o=m();f((e=o==null?null:o.machineStatus)==="on_sale"?0:e==="sold_out"?1:-1)}}function ta(t,i){if(t&1&&(l(0,"sl-breadcrumb")(1,"sl-breadcrumb-item",3),s(2,"storeUrl"),d(3),c(),l(4,"sl-breadcrumb-item",3),s(5,"storeUrl"),d(6),s(7,"locale"),c(),l(8,"sl-breadcrumb-item"),d(9),c()(),l(10,"sl-layout",4),h(11,Co,3,4,"div",5)(12,vo,2,1,"div",6)(13,xo,1,1,"sl-image-slider",7),c(),l(14,"sl-layout",8)(15,"div",9)(16,"div",10),d(17),c(),h(18,Po,3,3,"div",11)(19,Mo,3,3,"div",11)(20,bo,3,3,"div",11),l(21,"div",12)(22,"dl",13)(23,"dt",14),d(24),s(25,"locale"),c(),y(26,"dd",15),s(27,"localDate"),s(28,"localDate"),s(29,"locale"),s(30,"safeHtml"),c(),h(31,$o,13,18),c()(),y(32,"tbx-wysiwyg-body",16),c(),_t(33,17),l(34,"sl-layout",8),h(35,Uo,21,14,"div",18),y(36,"tbx-wysiwyg-body",16),h(37,Ho,3,0,"div",19),c(),_t(38,17),l(39,"sl-layout",20)(40,"div",21)(41,"sl-button",22),s(42,"storeUrl"),d(43),s(44,"locale"),c()(),h(45,Vo,2,5,"sl-share",23),c(),h(46,Yo,4,1,"ng-template",null,0,Gt)),t&2){let e,o=i,n=Pt(47),a=m(),C=m(2);r(),_("path",S(2,22,a==null||a.store==null?null:a.store.id,"store_top")),r(2),g(a==null||a.store==null?null:a.store.name),r(),_("path",S(5,25,a==null||a.store==null?null:a.store.id,"store_lottery_list")),r(2),g(u(7,28,"shared.breadcrumbs.lotteryList")),r(3),g(a==null||a.machine==null?null:a.machine.name),r(2),_("slRenderOn",Mt(48,so)),r(),_("slRenderOn","small"),r(),f(!(a==null||a.machine==null)&&a.machine.readyForSale&&(!(a==null||a.machine==null||a.machine.galleryImages==null)&&a.machine.galleryImages.length)?13:-1),r(4),g(a==null||a.machine==null?null:a.machine.name),r(),f((e=o==null?null:o.machineStatus)==="before"?18:e==="not_on_sale"?19:e==="after"?20:-1),r(6),g(u(25,30,"pages.storeLottery.salesPeriodHeading")),r(2),_("innerHTML",u(30,41,S(29,38,"pages.storeLottery.salesPeriod",rt(49,po,S(27,32,a==null||a.machine==null?null:a.machine.saleStartsAt,"long"),S(28,35,a==null||a.machine==null?null:a.machine.saleEndsAt,"long")))),ut),r(5),f(!(a==null||a.machine==null)&&a.machine.readyForSale?31:-1),r(),_("body",a==null||a.machine==null?null:a.machine.body),r(),_("ngTemplateOutlet",n),r(2),f(!(a==null||a.machine==null)&&a.machine.readyForSale?35:-1),r(),_("body",a==null||a.machine==null?null:a.machine.bottomBody),r(),f(C.hasBonus(a,"double_chance")&&(!(a==null||a.machine==null)&&a.machine.readyForSale)?37:-1),r(),_("ngTemplateOutlet",n),r(3),_("routerLink",S(42,43,a==null||a.store==null?null:a.store.id,"store_top")),r(2),g(u(44,46,"shared.navigation.backToStoreTop")),r(2),f(!(a==null||a.machine==null)&&a.machine.limited?-1:45)}}function ea(t,i){if(t&1&&h(0,ta,48,52),t&2){let e,o=i,n=m(2);f((e=se(1,co,n.totalStockQuantity(o),n.getMachineStatus(o==null?null:o.machine),n.minimumPricePlan(o==null?null:o.machine),n.isDigitalContentAvailable(o==null?null:o.machine)))?0:-1,e)}}function ia(t,i){if(t&1&&(G(0),h(1,ea,1,6),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.state$))?1:-1,e)}}var Yi=(()=>{let i=class i extends Ee{get hostAttrMachineSlug(){return this.lotterySlug}constructor(){let o=p(Kt),n=p(Se),a=p(ft),C=p(xe),v=p(Ce),x=p(we),M=p(jt),b=p(Lt),at=p(N);super(o,n,a,C,v,M,x,b,at),this.assets=p(ge),this.loading=!0,this.onDestroy$=new ne,this.collectionService=p(ze),this.lotteryStoreService=p(J),this.lotteryDrawingService=p(Be),this.metaTagsService=p(et),this.route=p($),this.sessionService=p(ye),this.titleService=p(Y),this.storeUrlService=p(wt),this.injector=p(ie),this.storeSlug=p(A,{optional:!0}),this.initVariables()}ngOnInit(){this.loading=!0,Yt(this.lotteryDrawingService.drawEvent,this.router.events.pipe(Dt(o=>o instanceof ue),P(()=>{this.initVariables(),this.loading=!0}))).pipe(te(this.onDestroy$)).subscribe(()=>{this.fetchContents()}),this.fetchContents(),this.lotteryService.completeLottery(this.storeSlug,this.lotterySlug,this.route)}ngOnDestroy(){this.onDestroy$.emit()}initVariables(){var o;this.storeSlug=(o=this.injector.get(A,null,ee.Optional))!=null?o:this.route.
1snapshot.paramMap.get("storeSlug"),this.lotterySlug=this.route.snapshot.paramMap.get("lotterySlug"),this.state$=X({store:this.lotteryStoreService.selectStore(this.storeSlug),machine:this.lotteryMachineService.selectLotteryMachine(this.storeSlug,this.lotterySlug),collectedRarities:this.collectionService.selectRarities(this.lotterySlug),collectedDoubleChance:this.collectionService.selectBonusesWithKind(this.lotterySlug,"double_chance"),collectedLastOne:this.collectionService.selectBonusesWithKind(this.lotterySlug,"last_one"),coupons:this.lotteryCouponService.selectCouponsByLottery(this.lotterySlug)}).pipe(this.complementPurchaseAuthority(),P(n=>{var a,C,v,x,M,b;this.titleService.setTitle(`${(a=n==null?void 0:n.machine)==null?void 0:a.name} - ${(C=n==null?void 0:n.store)==null?void 0:C.name}`),this.metaTagsService.updateTags(`${(v=n==null?void 0:n.machine)==null?void 0:v.name} - ${this.localeService.translate("common.appFullName")}`,(b=(M=(x=n==null?void 0:n.machine)==null?void 0:x.mainImage)==null?void 0:M.readingUrls)==null?void 0:b.medium)}))}fetchContents(){j([this.lotteryStoreService.fetchStore(this.storeSlug),this.lotteryMachineService.fetchLimitedLotteryMachine(this.storeSlug,this.lotterySlug),this.lotteryCouponService.fetchAllCouponsByLottery(this.lotterySlug),this.sessionService.firebaseUser$.pipe(At(1),Xt(o=>o!=null&&o.isAnonymous?Rt([]):j([this.collectionService.fetchRarities(this.storeSlug,this.lotterySlug),this.collectionService.fetchBonuses(this.storeSlug,this.lotterySlug)])))]).subscribe({next:([o,n,a,[C,v]])=>{o&&n?this.loading=!1:this.router.navigateByUrl(this.storeUrlService.transform(this.storeSlug,"store_lottery-not-found"))},error:()=>{this.router.navigateByUrl(this.storeUrlService.transform(this.storeSlug,"store_lottery-not-found"))}})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-lottery"]],hostVars:1,hostBindings:function(n,a){n&2&&ae("data-machine-slug",a.hostAttrMachineSlug)},standalone:!0,features:[oe,O],decls:1,vars:1,consts:[["PurchaseSection",""],["PricePlans",""],[4,"slLoading"],[3,"path"],[1,"header"],["class","header-main",4,"slRenderOn"],["class","header-main is-origin",4,"slRenderOn"],[1,"header-slider",3,"images"],["size","small",1,"content"],[1,"info"],[1,"info-name"],[1,"info-status"],[1,"info-container"],[1,"info-item"],[1,"info-item-heading"],[1,"info-item-body",3,"innerHTML"],[1,"content-top",3,"body"],[3,"ngTemplateOutlet"],[1,"rarities"],[1,"bonus"],["size","small",1,"content","page-bottom"],[1,"how-to"],["type","stroked",3,"routerLink"],[1,"share",3,"text"],[1,"header-main"],["alt","",1,"header-main-image",3,"src"],[1,"header-main","is-origin"],["alt","","class","header-main-image",3,"src",4,"slRenderOn"],[1,"info-note"],[1,"info-note-item"],[1,"info-restriction"],[1,"info-item-body"],["type","email"],["type","phone"],[1,"rarities-heading"],[1,"en"],[1,"ja"],[1,"rarities-heading-note",3,"innerHTML"],[1,"rarities-item",3,"rarity","totalQuantity","initialStockProportion","modeOfOddsDisclosing","topPrize","digitalContent"],[1,"rarities-note"],[1,"rarities-note-item"],["name","check",1,"icon"],[1,"text"],["name","digital-content",1,"icon","small"],[1,"bonus-item",3,"bonus","digitalContent"],["slLayout","",1,"purchase"],["size","small",1,"purchase-limited"],[1,"purchase-inner"],[1,"purchase-buttons",3,"pricePlans","store","machine"],[1,"purchase-coupon"],[1,"purchase-coupon-list"],[1,"purchase-coupon-provider"],[1,"purchase-coupon-provider-link",3,"click"],["name","coupon",1,"icon"],[1,"purchase-bottom"],["matRipple","",1,"purchase-usage",3,"click"],["name","usage",1,"icon"],[1,"label"],[3,"body"],[1,"purchase-buttons",3,"draw","pricePlans","store","machine"],["mat-ripple","",1,"purchase-coupon-item"],["mat-ripple","",1,"purchase-coupon-item",3,"click"],[1,"purchase-coupon-item-name"],[1,"purchase-coupon-item-detail"],[1,"quantity"],[1,"value"],[1,"unit"]],template:function(n,a){n&1&&h(0,ia,3,3,"ng-container",2),n&2&&_("slLoading",!a.loading)},dependencies:[z,ot,nt,R,Te,ve,Oe,Ot,me,Pe,Le,fe,W,K,qt,Ht,be,Me,_e,q,de,ct,Vt,It,I,tt,Ut],styles:['.header.layout-small[_ngcontent-%COMP%]{margin:0!important}.header.layout-small[_ngcontent-%COMP%]   .header-slider[_ngcontent-%COMP%]{margin-top:8px}.header-main[_ngcontent-%COMP%]{aspect-ratio:var(--app-lottery-thumbn
1ail-aspect-ratio);position:relative}.header-main.is-origin[_ngcontent-%COMP%]{aspect-ratio:auto}.header-main.is-origin[_ngcontent-%COMP%]   .header-main-image[_ngcontent-%COMP%]{display:block;height:auto;position:relative}.header-main-image[_ngcontent-%COMP%]{height:100%;left:0;object-fit:cover;position:absolute;top:0;width:100%}.header-slider[_ngcontent-%COMP%]{display:block;margin-top:12px}.content[_ngcontent-%COMP%]{--section-margin: 56px}.content.layout-small[_ngcontent-%COMP%]{--section-margin: 40px}.content-top[_ngcontent-%COMP%], .content-bottom[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.info[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) / 2)}.info-restriction[_ngcontent-%COMP%]{margin-top:20px}.info-name[_ngcontent-%COMP%]{font-size:2.4rem;font-weight:600;line-height:1.6}.layout-small[_ngcontent-%COMP%]   .info-name[_ngcontent-%COMP%]{font-size:1.7rem}.info-status[_ngcontent-%COMP%]{background-color:var(--app-color-background-accent);font-size:1.4rem;font-weight:600;margin-top:24px;padding:24px;text-align:center}.info-container[_ngcontent-%COMP%]{background-color:var(--app-color-background-accent);margin-top:24px;padding:32px}.layout-small[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]{margin-top:16px;padding:24px}.info-item[_ngcontent-%COMP%]{display:flex;font-size:1.4rem;margin:0}.info-item[_ngcontent-%COMP%] + .info-item[_ngcontent-%COMP%]{margin-top:12px}.info-item-heading[_ngcontent-%COMP%]{width:130px}.layout-small[_ngcontent-%COMP%]   .info-item-heading[_ngcontent-%COMP%]{width:96px}.info-item-body[_ngcontent-%COMP%]{flex:1;margin:0}.info-item-body[_ngcontent-%COMP%]  a{color:var(--app-color-primary);text-decoration:underline}.info-note[_ngcontent-%COMP%]{font-size:1.3rem;margin-top:24px}.info-note-item[_ngcontent-%COMP%]{line-height:1.4}.info-note-item[_ngcontent-%COMP%] + .info-note-item[_ngcontent-%COMP%]{margin-top:4px}.purchase[_ngcontent-%COMP%]{margin:56px 0 80px}.purchase-limited[_ngcontent-%COMP%]{padding:24px 0}.purchase-inner[_ngcontent-%COMP%]{margin:0 auto;width:360px}.layout-small[_ngcontent-%COMP%]   .purchase-inner[_ngcontent-%COMP%]{width:280px}.purchase-coupon-list[_ngcontent-%COMP%]{margin-top:16px}.purchase-coupon-item[_ngcontent-%COMP%]{background-color:var(--app-color-accent);border-radius:100px;color:var(--app-color-accent-contrast);cursor:pointer;display:block;overflow:hidden;padding:16px 12px 12px;position:relative;width:100%}.purchase-coupon-item[_ngcontent-%COMP%] + .purchase-coupon-item[_ngcontent-%COMP%]{margin-top:16px}.purchase-coupon-item-name[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:600}.purchase-coupon-item-detail[_ngcontent-%COMP%]{align-items:stretch;display:flex;justify-content:center}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.5rem;margin-right:.2em}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]{align-items:baseline;display:flex;justify-content:center;line-height:1.4}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-family:var(--app-number-font-family);font-size:1.7rem;margin-right:.2em}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .unit[_ngcontent-%COMP%]{font-size:1rem}.purchase-coupon-provider[_ngcontent-%COMP%]{margin-top:24px;text-align:center}.purchase-coupon-provider-link[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:inline-flex;font-size:1.5rem;position:relative}.purchase-coupon-provider-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.3rem;margin-right:.1em}.purchase-coupon-provider-link[_ngcontent-%COMP%]:after{background-color:var(--app-color-text);bottom:-1px;content:"";height:1px;left:0;position:absolute;width:100%}.purchase-bottom[_ngcontent-%COMP%]{margin-top:32px;text-align:center}.purchase-usage[_ngcontent-%COMP%]{align-items:center;background-color:var(--app-color-background);border:2px solid var(--app-color-primary);border-radius:100px;color:var(--app-color-primary);cursor:pointer;display:inline-flex;padding:4px 20px;position:relative}.purchase-usage[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.1rem}.purchase-usage[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:700;line-height:1;margin-left:2px}.rarities[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.rarities-heading[_ngcontent-%COMP%]{text-align:center}.rarities-heading[_ngcontent-%COMP%]   .en[_ngcontent-%COMP%]{font-family:var(--app-latin-font-family);font-weight:var(--app-latin-font-weight);letter-spacing:var(--app-latin-font-letter-spacing);text-indent:var(--app-latin-font-letter-spacing);font-size:4rem;line-height:1}.rarities-heading[_ngcontent-%COMP%]   .ja[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600}.rarities-heading-note[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:600;line-height:1.75;margin-top:8px;text-align:center}.layout-small[_ngcontent-%COMP%]   .rarities-heading-note[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:4px}.rarities-item[_ngcontent-%COMP%]{display:block;margin-top:var(--section-margin)}.rarities-note[_ngcontent-%COMP%]{margin-top:32px}.rarities-note-item[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:flex-start}.rarities-note-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:var(--app-color-accent);font-size:2.7rem}.rarities-note-item[_ngcontent-%COMP%]   .icon.small[_ngcontent-%COMP%]{font-size:1.9rem;padding:0 4px}.rarities-note-item[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:1.4rem;line-height:1.4}.rarities-note-item[_ngcontent-%COMP%] + .rarities-note-item[_ngcontent-%COMP%]{margin-top:16px}.bonus-item[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.how-to[_ngcontent-%COMP%]{margin:var(--section-margin) auto 0;width:360px}.how-to[_ngcontent-%COMP%]   sl-button[_ngcontent-%COMP%]{--width: 100%}.how-to[_ngcontent-%COMP%]   sl-button[_ngcontent-%COMP%] + sl-button[_ngcontent-%COMP%]{margin-top:16px}.layout-small[_ngcontent-%COMP%]   .how-to[_ngcontent-%COMP%]{width:280px}.share[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) * 2)}.page-bottom[_ngcontent-%COMP%]{padding-bottom:80px}']});let t=i;return t})();var na=(t,i)=>i.id;function oa(t,i){if(t&1&&y(0,"sl-lottery-item",6),t&2){let e=i.$implicit;si("routerLink",e.id),_("machine",e)}}function aa(t,i){if(t&1&&(l(0,"div",3),B(1,oa,1,2,"sl-lottery-item",6,na),c()),t&2){let e=m();r(),T(e==null?null:e.machines)}}function ra(t,i){t&1&&(l(0,"sl-empty"),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLotteryHistory.emptyMessage")))}function la(t,i){if(t&1){let e=V();l(0,"sl-breadcrumb")(1,"sl-breadcrumb-item",1),s(2,"storeUrl"),d(3),c(),l(4,"sl-breadcrumb-item"),d(5),s(6,"locale"),c()(),l(7,"sl-page-header"),d(8),s(9,"locale"),c(),l(10,"sl-layout",2),F("scrolled",function(){E(e);let n=m(2);return k(n.onScroll())}),h(11,aa,3,0,"div",3)(12,ra,3,3,"sl-empty"),l(13,"div",4)(14,"sl-button",5),s(15,"storeUrl"),d(16),s(17,"locale"),c()()()}if(t&2){let e=i;r(),_("path",S(2,7,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(e==null||e.store==null?null:e.store.name),r(2),g(u(6,10,"shared.breadcrumbs.lotteryList")),r(3),g(u(9,12,"shared.breadcrumbs.lotteryList")),r(3),f(!(e==null||e.machines==null)&&e.machines.length?11:12),r(3),_("defaultHref",S(15,14,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(u(17,17,"shared.navigation.back"))}}function ca(t,i){if(t&1&&(G(0),h(1,la,18,19),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.state$))?1:-1,e)}}var tn=(()=>{let i=class i{constructor(){var o;this.loading=!0,this.loadingMore=!1,this.route=p($),this.lotteryStoreService=p(J),this.lotteryMachineService=p(ft),this.metaTagsService=p(et),this.titleService=p(Y),this.localeService=p(N),this.storeSlug=p(A,{optional:!0}
1),(o=this.storeSlug)!=null||(this.storeSlug=this.route.snapshot.paramMap.get("storeSlug")),this.state$=X({store:this.lotteryStoreService.fetchStore(this.storeSlug),machines:this.lotteryMachineService.selectLotteryMachines(this.storeSlug)}).pipe(P(n=>{var a,C,v,x,M;this.titleService.setTitle(`${this.localeService.translate("shared.breadcrumbs.lotteryList")} - ${(a=n==null?void 0:n.store)==null?void 0:a.name}`),this.metaTagsService.updateTags(`${this.localeService.translate("shared.breadcrumbs.lotteryList")} - ${(C=n==null?void 0:n.store)==null?void 0:C.name} - ${this.localeService.translate("common.appFullName")}`,(M=(x=(v=n==null?void 0:n.store)==null?void 0:v.mainImage)==null?void 0:x.readingUrls)==null?void 0:M.medium)}))}ngOnInit(){this.loading=!0,j([this.lotteryStoreService.fetchStore(this.storeSlug),this.lotteryMachineService.fetchLotteryMachines(this.storeSlug,!0)]).subscribe(()=>{this.loading=!1})}onScroll(){var o;!this.loadingMore&&!((o=this.lotteryMachineService.lotteryMachinePages[this.storeSlug])!=null&&o.isComplete)&&(this.loadingMore=!0,this.lotteryMachineService.fetchLotteryMachines(this.storeSlug).subscribe(()=>{this.loadingMore=!1}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-lottery-history"]],standalone:!0,features:[O],decls:1,vars:1,consts:[[4,"slLoading"],[3,"path"],["size","small","infiniteScroll","",1,"container",3,"scrolled"],[1,"lottery-list"],[1,"back-button"],["type","stroked","slBackButton","",3,"defaultHref"],[1,"lottery-list-item",3,"routerLink","machine"]],template:function(n,a){n&1&&h(0,ca,3,3,"ng-container",0),n&2&&_("slLoading",!a.loading)},dependencies:[z,ot,nt,kt,R,yt,Qt,K,Et,W,Ft,q,I,tt],styles:[".container[_ngcontent-%COMP%]{padding-bottom:80px}.lottery-list[_ngcontent-%COMP%]{display:grid;gap:40px 30px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:32px}.back-button[_ngcontent-%COMP%]{margin-top:56px;text-align:center}"]});let t=i;return t})();function sa(t,i){if(t&1&&(l(0,"sl-breadcrumb")(1,"sl-breadcrumb-item",1),s(2,"storeUrl"),d(3),c(),l(4,"sl-breadcrumb-item"),d(5),s(6,"locale"),c()(),l(7,"sl-layout",2)(8,"div",3)(9,"div",4),d(10,"NOT FOUND"),c(),l(11,"div",5),d(12),s(13,"locale"),c()(),y(14,"div",6),s(15,"locale"),s(16,"safeHtml"),l(17,"div",7)(18,"sl-button",8),s(19,"storeUrl"),d(20),s(21,"locale"),c()()()),t&2){let e=i;r(),_("path",S(2,7,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(e==null||e.store==null?null:e.store.name),r(2),g(u(6,10,"pages.storeLotteryNotFound.notFoundHeading")),r(7),g(u(13,12,"pages.storeLotteryNotFound.notFoundHeading")),r(2),_("innerHTML",u(16,16,u(15,14,"pages.storeLotteryNotFound.notFoundMessage")),ut),r(4),_("routerLink",S(19,18,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(u(21,21,"shared.navigation.backToStoreTop"))}}function pa(t,i){if(t&1&&(G(0),h(1,sa,22,23),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.state$))?1:-1,e)}}var en=(()=>{let i=class i{constructor(){var o;this.loading=!0,this.route=p($),this.lotteryStoreService=p(J),this.metaTagsService=p(et),this.titleService=p(Y),this.localeService=p(N),this.storeSlug=p(A,{optional:!0}),(o=this.storeSlug)!=null||(this.storeSlug=this.route.snapshot.paramMap.get("storeSlug")),this.state$=X({store:this.lotteryStoreService.selectStore(this.storeSlug)}).pipe(P(n=>{var a,C,v,x,M;this.titleService.setTitle(`${this.localeService.translate("pages.storeLotteryNotFound.notFoundHeading")} - ${(a=n==null?void 0:n.store)==null?void 0:a.name}`),this.metaTagsService.updateTags(`${this.localeService.translate("pages.storeLotteryNotFound.notFoundHeading")} - ${(C=n==null?void 0:n.store)==null?void 0:C.name} - ${this.localeService.translate("common.appFullName")}`,(M=(x=(v=n==null?void 0:n.store)==null?void 0:v.mainImage)==null?void 0:x.readingUrls)==null?void 0:M.medium)}))}ngOnInit(){this.loading=!0,this.lotteryStoreService.fetchStore(this.storeSlug).subscribe(()=>{this.loading=!1})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-lottery-not-found"]],standalone:!0,features:[O],decls:1,vars:1,consts:[[4,"slLoading"],[3,"path"],["size","small",1,"content"],[1,"heading"],[1,"en"],[1,"jp"],[1,"message",3,"innerHTML"],[1,"button"],["type","stroked",3,"routerLink"]],template:function(n,a){n&1&&h(0,pa,3,3,"ng-container",0),n&2&&_("slLoading",!a.loading)},dependencies:[z,ot,nt,R,W,K,q,I,tt,Ut],styles:[".content[_ngcontent-%COMP%]{padding:120px 0 80px;text-align:center}.heading[_ngcontent-%COMP%]   .en[_ngcontent-%COMP%]{font-family:var(--app-latin-font-family);font-weight:var(--app-latin-font-weight);letter-spacing:var(--app-latin-font-letter-spacing);text-indent:var(--app-latin-font-letter-spacing);font-weight:var(--app-latin-font-weight-light);font-size:2.7rem}.heading[_ngcontent-%COMP%]   .jp[_ngcontent-%COMP%]{font-size:1.7rem}.message[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1.75;margin-top:40px;white-space:nowrap}.button[_ngcontent-%COMP%]{margin-top:32px}"]});let t=i;return t})();var Ae=(t,i)=>i.id,ma=(t,i,e,o)=>({totalStockQuantity:t,machineStatus:i,minimumPricePlan:e,digitalContent:o}),da=()=>["medium","large"],ua=(t,i)=>({start:t,end:i}),_a=t=>({appFullName:t}),ga=()=>({showTaxInfo:!0}),ha=(t,i)=>({numberOfDraws:t,price:i}),fa=t=>({lawUrl:t}),ya=t=>({name:t}),Ca=t=>({quantity:t}),Sa=t=>({bonusName:t});function va(t,i){if(t&1&&(l(0,"div",24),y(1,"img",25),s(2,"imageSize"),c()),t&2){let e=m(2);r(),_("src",S(2,1,e==null||e.machine==null?null:e.machine.mainImage,"large"),it)}}function xa(t,i){if(t&1&&(y(0,"img",25),s(1,"imageSize")),t&2){let e=m(3);_("src",pe(1,1,e==null||e.machine==null?null:e.machine.squareImage,"medium",e==null||e.machine==null?null:e.machine.mainImage),it)}}function Pa(t,i){t&1&&(l(0,"div",26),h(1,xa,2,5,"img",27),c()),t&2&&(r(),_("slRenderOn","small"))}function Ma(t,i){if(t&1&&y(0,"sl-image-slider",7),t&2){let e=m(2);_("images",e==null||e.machine==null?null:e.machine.galleryImages)}}function ba(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.beforeSale")))}function La(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.suspendSale")))}function Oa(t,i){t&1&&(l(0,"div",11),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLottery.endOfSale")))}function Ba(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"localCurrency"),s(7,"locale"),c()()),t&2){let e=m(2);r(2),g(u(3,2,"pages.storeLottery.priceHeader")),r(3),D(" ",S(7,7,"pages.storeLottery.minimumPrice",rt(11,ha,e==null||e.minimumPricePlan==null?null:e.minimumPricePlan.numberOfDraws,S(6,4,e==null||e.minimumPricePlan==null?null:e.minimumPricePlan.price,Mt(10,ga))
1))," ")}}function Ta(t,i){t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"locale"),c()()),t&2&&(r(2),g(u(3,2,"pages.storeLottery.shippingFeeLabel")),r(3),g(u(6,4,"pages.storeLottery.shippingFeeNote")))}function wa(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),y(6,"br"),d(7),s(8,"locale"),c()()),t&2){let e=m(3);r(2),g(u(3,3,"pages.storeLottery.shippingDateLabel")),r(3),D(" ",e==null||e.machine==null||e.machine.shippingPeriod==null?null:e.machine.shippingPeriod.shippingSchedule,""),r(2),D("",u(8,5,"pages.storeLottery.shippingNote")," ")}}function Ia(t,i){t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),l(4,"dd",31),d(5),s(6,"locale"),c()()),t&2&&(r(2),g(u(3,2,"pages.storeLottery.paymentInfoLabel")),r(3),g(u(6,4,"pages.storeLottery.paymentInfoNote")))}function Ea(t,i){if(t&1&&(l(0,"dl",13)(1,"dt",14),d(2),s(3,"locale"),c(),y(4,"dd",15),s(5,"locale"),s(6,"safeHtml"),c()),t&2){let e=m(6);r(2),g(u(3,2,"pages.storeLottery.cancelPolicyLabel")),r(2),_("innerHTML",u(6,7,S(5,4,"pages.storeLottery.cancelPolicyNote",lt(9,fa,e.assets==null||e.assets.lawLink==null?null:e.assets.lawLink.href))),ut)}}function ka(t,i){t&1&&(h(0,Ia,7,6,"dl",13),s(1,"locale"),h(2,Ea,7,11,"dl",13),s(3,"locale")),t&2&&(f(u(1,2,"pages.storeLottery.paymentInfoLabel")?0:-1),r(2),f(u(3,4,"pages.storeLottery.cancelPolicyLabel")?2:-1))}function Fa(t,i){t&1&&(l(0,"div",29),d(1),s(2,"locale"),c(),l(3,"div",29),d(4),s(5,"locale"),c()),t&2&&(r(),g(u(2,2,"pages.storeLottery.noteAboutInitialProportion")),r(3),g(u(5,4,"pages.storeLottery.noteAboutTotalProportion")))}function Da(t,i){t&1&&y(0,"sl-lottery-restriction-tag",32)}function $a(t,i){t&1&&y(0,"sl-lottery-restriction-tag",33)}function Na(t,i){if(t&1&&(l(0,"div",30),h(1,Da,1,0,"sl-lottery-restriction-tag",32)(2,$a,1,0,"sl-lottery-restriction-tag",33),c()),t&2){let e=m(3);r(),f(!(e==null||e.machine==null)&&e.machine.emailRequired?1:-1),r(),f(!(e==null||e.machine==null)&&e.machine.phoneNumberRequired?2:-1)}}function za(t,i){if(t&1&&(h(0,Ba,8,14,"dl",13)(1,Ta,7,6,"dl",13),s(2,"locale"),h(3,wa,9,7,"dl",13),s(4,"locale"),h(5,ka,4,6),l(6,"div",28)(7,"div",29),d(8),s(9,"locale"),s(10,"locale"),c(),h(11,Fa,6,6),c(),h(12,Na,3,2,"div",30)),t&2){let e=m(),o=m();f(e!=null&&e.minimumPricePlan?0:-1),r(),f(u(2,7,"pages.storeLottery.shippingFeeLabel")?1:-1),r(2),f(u(4,9,"pages.storeLottery.shippingDateLabel")?3:-1),r(2),f(e!=null&&e.minimumPricePlan?5:-1),r(3),D(" ",S(10,13,"pages.storeLottery.noteForPurchasers",lt(16,_a,u(9,11,"common.appFullName")))," "),r(3),f((o==null||o.machine==null?null:o.machine.modeOfOddsDisclosing)==="initial_stock_proportion"?11:-1),r(),f(!(o==null||o.machine==null)&&o.machine.emailRequired||!(o==null||o.machine==null)&&o.machine.phoneNumberRequired?12:-1)}}function Ra(t,i){if(t&1&&(l(0,"div",36),d(1),s(2,"number"),s(3,"locale"),c()),t&2){let e=m(2);r(),D(" ",S(3,3,"pages.storeLottery.totalStockQuantity",lt(6,Ca,u(2,1,e==null?null:e.totalStockQuantity)))," ")}}function Aa(t,i){t&1&&(y(0,"div",37),s(1,"locale"),s(2,"locale")),t&2&&_("innerHTML",S(2,3,"pages.storeLottery.noteForProbabilityNotation",lt(6,Sa,u(1,1,"common.bonus"))),ut)}function Ga(t,i){if(t&1&&y(0,"sl-lottery-bonus",44),t&2){let e=i.$implicit,o=m(3);_("bonus",e)("digitalContent",o.digitalContent)}}function Ua(t,i){if(t&1&&(l(0,"div",19),B(1,Ga,1,2,"sl-lottery-bonus",44,Ae),c()),t&2){let e=m(3),o=m(2);r(),T(o.getLastOne(e))}}function ja(t,i){if(t&1&&y(0,"sl-lottery-rarity",38),t&2){let e=i.$implicit,o=i.$index,n=m(2),a=m();_("rarity",e)("totalQuantity",n==null?null:n.totalStockQuantity)("initialStockProportion",e==null?null:e.initialStockProportion)("modeOfOddsDisclosing",a==null||a.machine==null?null:a.machine.modeOfOddsDisclosing)("topPrize",o===0)("digitalContent",n==null?null:n.digitalContent)}}function Ha(t,i){if(t&1&&(l(0,"div",18)(1,"div",34)(2,"div",35),d(3,"LINE UP"),c(),h(4,Ra,4,8,"div",36)(5,Aa,3,8,"div",37),c(),h(6,Ua,3,0,"div",19),B(7,ja,1,6,"sl-lottery-rarity",38,Ae),l(9,"div",39)(10,"div",40),y(11,"sl-icon",41),l(12,"div",42),d(13),s(14,"locale"),c()(),l(15,"div",40),y(16,"sl-icon",43),l(17,"div",42),d(18),s(19,"locale"),s(20,"locale"),c()()()()),t&2){let e=m(2),o=m(2);r(4),f((e==null||e.machine==null?null:e.machine.modeOfOddsDisclosing)==="raw"?4:-1),r(),f((e==null||e.machine==null?null:e.machine.modeOfOddsDisclosing)==="initial_stock_proportion"?5:-1),r(),f(o.hasBonus(e,"last_one")?6:-1),r(),T(o.getRarities(e)),r(6),g(u(14,5,"pages.storeLottery.acquiredPrize")),r(5),D(" ",S(20,9,"pages.storeLottery.withDigitalContent",lt(12,ya,u(19,7,"common.digitalContentsFull")))," ")}}function Va(t,i){if(t&1&&y(0,"sl-lottery-bonus",44),t&2){let e=i.$implicit,o=m(2);_("bonus",e)("digitalContent",o.digitalContent)}}function qa(t,i){if(t&1&&(l(0,"div",19),B(1,Va,1,2,"sl-lottery-bonus",44,Ae),c()),t&2){let e=m(2),o=m(2);r(),T(o.getDoubleChance(e))}}function Ka(t,i){if(t&1&&(y(0,"sl-share",23),s(1,"locale")),t&2){let e=m(2);le("text","",e==null||e.machine==null?null:e.machine.name," - ",u(1,3,"common.appName"),"")}}function Qa(t,i){if(t&1&&_t(0,17),t&2){m();let e=Pt(3);_("ngTemplateOutlet",e)}}function Wa(t,i){if(t&1&&_t(0,17),t&2){m();let e=Pt(3);_("ngTemplateOutlet",e)}}function Ja(t,i){if(t&1&&(l(0,"sl-layout",46),y(1,"tbx-wysiwyg-body",58),c()),t&2){let e=m(4);r(),_("body",e==null||e.machine==null?null:e.machine.purchaseLimitedBody)}}function Za(t,i){if(t&1){let e=V();l(0,"sl-lottery-plans",59),F("draw",function(n){E(e);let a=m(4),C=m(2);return k(C.drawLottery(a==null?null:a.store,a==null?null:a.machine,n))}),c()}if(t&2){let e=m(4);_("pricePlans",e==null||e.machine==null?null:e.machine.pricePlans)("store",e==null?null:e.store)("machine",e==null?null:e.machine)}}function Xa(t,i){if(t&1){let e=V();l(0,"sl-throttling-button",61),F("click",function(){let n=E(e).$implicit,a=m(5),C=m(2);return k(C.drawWithCoupon(a.store,a.machine,n))}),l(1,"div",62),d(2),c(),l(3,"div",63),y(4,"sl-icon",53),l(5,"div",64)(6,"div",65),d(7),c(),l(8,"div",66),d(9),s(10,"locale"),c()()()()}if(t&2){let e=i.$implicit;r(2),g(e.name),r(5),g(e==null?null:e.numberOfDraws),r(2),g(u(10,3,"pages.storeLottery.unitName"))}}function Ya(t,i){if(t&1&&(l(0,"div",50),B(1,Xa,11,5,"sl-throttling-button",60,Ae),c()),t&2){let e=m(4);r(),T(e.coupons)}}function tr(t,i){if(t&1){let e=V();
1l(0,"div",45),h(1,Ja,2,1,"sl-layout",46),l(2,"div",47),h(3,Za,1,3,"sl-lottery-plans",48),l(4,"div",49),h(5,Ya,3,0,"div",50),l(6,"div",51)(7,"a",52),F("click",function(){E(e);let n=m(3),a=m(2);return k(a.provideCouponCode(n.store,n.machine))}),y(8,"sl-icon",53),l(9,"div",42),d(10),s(11,"locale"),c()()()(),l(12,"div",54)(13,"a",55),F("click",function(){E(e);let n=m(5);return k(n.showUsageModal())}),y(14,"sl-icon",56),l(15,"div",57),d(16),s(17,"locale"),c()()()()()}if(t&2){let e=m(3);r(),f(e!=null&&e.purchaseAuthority?-1:1),r(2),f(e!=null&&e.purchaseAuthority?3:-1),r(2),f(e.coupons!=null&&e.coupons.length?5:-1),r(5),g(u(11,5,"pages.storeLottery.serialCodeNote")),r(6),g(u(17,7,"pages.storeLottery.showHowToPlay"))}}function er(t,i){if(t&1&&h(0,Qa,1,1,"ng-container",17)(1,Wa,1,1,"ng-container",17)(2,tr,18,9,"ng-template",null,1,Gt),t&2){let e,o=m();f((e=o==null?null:o.machineStatus)==="on_sale"?0:e==="sold_out"?1:-1)}}function ir(t,i){if(t&1&&(l(0,"sl-breadcrumb")(1,"sl-breadcrumb-item",3),s(2,"storeUrl"),d(3),c(),l(4,"sl-breadcrumb-item",3),s(5,"storeUrl"),d(6),s(7,"locale"),c(),l(8,"sl-breadcrumb-item"),d(9),c()(),l(10,"sl-layout",4),h(11,va,3,4,"div",5)(12,Pa,2,1,"div",6)(13,Ma,1,1,"sl-image-slider",7),c(),l(14,"sl-layout",8)(15,"div",9)(16,"div",10),d(17),c(),h(18,ba,3,3,"div",11)(19,La,3,3,"div",11)(20,Oa,3,3,"div",11),l(21,"div",12)(22,"dl",13)(23,"dt",14),d(24),s(25,"locale"),c(),y(26,"dd",15),s(27,"localDate"),s(28,"localDate"),s(29,"locale"),s(30,"safeHtml"),c(),h(31,za,13,18),c()(),y(32,"tbx-wysiwyg-body",16),c(),_t(33,17),l(34,"sl-layout",8),h(35,Ha,21,14,"div",18),y(36,"tbx-wysiwyg-body",16),h(37,qa,3,0,"div",19),c(),_t(38,17),l(39,"sl-layout",20)(40,"div",21)(41,"sl-button",22),s(42,"storeUrl"),d(43),s(44,"locale"),c()(),h(45,Ka,2,5,"sl-share",23),c(),h(46,er,4,1,"ng-template",null,0,Gt)),t&2){let e,o=i,n=Pt(47),a=m(),C=m(2);r(),_("path",S(2,22,a==null||a.store==null?null:a.store.id,"store_top")),r(2),g(a==null||a.store==null?null:a.store.name),r(),_("path",S(5,25,a==null||a.store==null?null:a.store.id,"store_lottery_list")),r(2),g(u(7,28,"shared.breadcrumbs.lotteryList")),r(3),g(a==null||a.machine==null?null:a.machine.name),r(2),_("slRenderOn",Mt(48,da)),r(),_("slRenderOn","small"),r(),f(!(a==null||a.machine==null)&&a.machine.readyForSale&&(!(a==null||a.machine==null||a.machine.galleryImages==null)&&a.machine.galleryImages.length)?13:-1),r(4),g(a==null||a.machine==null?null:a.machine.name),r(),f((e=o==null?null:o.machineStatus)==="before"?18:e==="not_on_sale"?19:e==="after"?20:-1),r(6),g(u(25,30,"pages.storeLottery.salesPeriodHeading")),r(2),_("innerHTML",u(30,41,S(29,38,"pages.storeLottery.salesPeriod",rt(49,ua,S(27,32,a==null||a.machine==null?null:a.machine.saleStartsAt,"long"),S(28,35,a==null||a.machine==null?null:a.machine.saleEndsAt,"long")))),ut),r(5),f(!(a==null||a.machine==null)&&a.machine.readyForSale?31:-1),r(),_("body",a==null||a.machine==null?null:a.machine.body),r(),_("ngTemplateOutlet",n),r(2),f(!(a==null||a.machine==null)&&a.machine.readyForSale?35:-1),r(),_("body",a==null||a.machine==null?null:a.machine.bottomBody),r(),f(C.hasBonus(a,"double_chance")&&(!(a==null||a.machine==null)&&a.machine.readyForSale)?37:-1),r(),_("ngTemplateOutlet",n),r(3),_("routerLink",S(42,43,a==null||a.store==null?null:a.store.id,"store_top")),r(2),g(u(44,46,"shared.navigation.backToStoreTop")),r(2),f(!(a==null||a.machine==null)&&a.machine.limited?-1:45)}}function nr(t,i){if(t&1&&h(0,ir,48,52),t&2){let e,o=i,n=m(2);f((e=se(1,ma,n.totalStockQuantity(o),n.getMachineStatus(o==null?null:o.machine),n.minimumPricePlan(o==null?null:o.machine),n.isDigitalContentAvailable(o==null?null:o.machine)))?0:-1,e)}}function or(t,i){if(t&1&&(G(0),h(1,nr,1,6),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.state$))?1:-1,e)}}var nn=(()=>{let i=class i extends Ee{get hostAttrMachineSlug(){return this.lotterySlug}constructor(){let o=p(Kt),n=p(Se),a=p(ft),C=p(xe),v=p(Ce),x=p(we),M=p(jt),b=p(Lt),at=p(N);super(o,n,a,C,v,M,x,b,at),this.loading=!0,this.assets=p(ge),this.collectionService=p(ze),this.lotteryStoreService=p(J),this.lotteryDrawingService=p(Be),this.metaTagsService=p(et),this.route=p($),this.sessionService=p(ye),this.titleService=p(Y),this.storeUrlService=p(wt),this.injector=p(ie),this.storeSlug=p(A,{optional:!0}),this.onDestroy$=new ne,this.initVariables()}ngOnInit(){this.loading=!0,Yt(this.lotteryDrawingService.drawEvent,this.router.events.pipe(Dt(o=>o instanceof ue),P(()=>{this.initVariables(),this.loading=!0})),this.sessionService.firebaseUser$.pipe(Dt(o=>!!o),ai((o,n)=>(o==null?void 0:o.uid)===(n==null?void 0:n.uid)&&(o==null?void 0:o.isAnonymous)===(n==null?void 0:n.isAnonymous)))).pipe(te(this.onDestroy$)).subscribe(()=>{this.fetchContents()}),this.lotteryService.completeLottery(this.storeSlug,this.lotterySlug,this.route)}ngOnDestroy(){this.onDestroy$.emit()}initVariables(){var o;this.storeSlug=(o=this.injector.get(A,null,ee.Optional))!=null?o:this.route.
1snapshot.paramMap.get("storeSlug"),this.lotterySlug=this.route.snapshot.paramMap.get("lotterySlug"),this.state$=X({store:this.lotteryStoreService.selectStore(this.storeSlug),machine:this.lotteryMachineService.selectLotteryMachine(this.storeSlug,this.lotterySlug),collectedRarities:this.collectionService.selectRarities(this.lotterySlug),collectedDoubleChance:this.collectionService.selectBonusesWithKind(this.lotterySlug,"double_chance"),collectedLastOne:this.collectionService.selectBonusesWithKind(this.lotterySlug,"last_one"),coupons:this.lotteryCouponService.selectCouponsByLottery(this.lotterySlug)}).pipe(this.complementPurchaseAuthority(),P(n=>{var a,C,v,x,M,b;this.titleService.setTitle(`${(a=n==null?void 0:n.machine)==null?void 0:a.name} - ${(C=n==null?void 0:n.store)==null?void 0:C.name}`),this.metaTagsService.updateTags(`${(v=n==null?void 0:n.machine)==null?void 0:v.name} - ${this.localeService.translate("common.appFullName")}`,(b=(M=(x=n==null?void 0:n.machine)==null?void 0:x.mainImage)==null?void 0:M.readingUrls)==null?void 0:b.medium)}))}fetchContents(){j([this.lotteryStoreService.fetchStore(this.storeSlug),this.lotteryMachineService.fetchLotteryMachine(this.storeSlug,this.lotterySlug),this.lotteryCouponService.fetchAllCouponsByLottery(this.lotterySlug),this.sessionService.firebaseUser$.pipe(At(1),Xt(o=>o!=null&&o.isAnonymous?Rt([]):j([this.collectionService.fetchRarities(this.storeSlug,this.lotterySlug),this.collectionService.fetchBonuses(this.storeSlug,this.lotterySlug)])))]).subscribe(()=>{this.loading=!1},()=>{this.router.navigateByUrl(this.storeUrlService.transform(this.storeSlug,"store_top"))})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-lottery"]],hostVars:1,hostBindings:function(n,a){n&2&&ae("data-machine-slug",a.hostAttrMachineSlug)},standalone:!0,features:[oe,O],decls:1,vars:1,consts:[["PurchaseSection",""],["PricePlans",""],[4,"slLoading"],[3,"path"],[1,"header"],["class","header-main",4,"slRenderOn"],["class","header-main is-origin",4,"slRenderOn"],[1,"header-slider",3,"images"],["size","small",1,"content"],[1,"info"],[1,"info-name"],[1,"info-status"],[1,"info-container"],[1,"info-item"],[1,"info-item-heading"],[1,"info-item-body",3,"innerHTML"],[1,"content-top",3,"body"],[3,"ngTemplateOutlet"],[1,"rarities"],[1,"bonus"],["size","small",1,"content","page-bottom"],[1,"how-to"],["type","stroked",3,"routerLink"],[1,"share",3,"text"],[1,"header-main"],["alt","",1,"header-main-image",3,"src"],[1,"header-main","is-origin"],["alt","","class","header-main-image",3,"src",4,"slRenderOn"],[1,"info-note"],[1,"info-note-item"],[1,"info-restriction"],[1,"info-item-body"],["type","email"],["type","phone"],[1,"rarities-heading"],[1,"en"],[1,"ja"],[1,"rarities-heading-note",3,"innerHTML"],[1,"rarities-item",3,"rarity","totalQuantity","initialStockProportion","modeOfOddsDisclosing","topPrize","digitalContent"],[1,"rarities-note"],[1,"rarities-note-item"],["name","check",1,"icon"],[1,"text"],["name","digital-content",1,"icon","small"],[1,"bonus-item",3,"bonus","digitalContent"],["slLayout","",1,"purchase"],["size","small",1,"purchase-limited"],[1,"purchase-inner"],[1,"purchase-buttons",3,"pricePlans","store","machine"],[1,"purchase-coupon"],[1,"purchase-coupon-list"],[1,"purchase-coupon-provider"],[1,"purchase-coupon-provider-link",3,"click"],["name","coupon",1,"icon"],[1,"purchase-bottom"],["matRipple","",1,"purchase-usage",3,"click"],["name","usage",1,"icon"],[1,"label"],[3,"body"],[1,"purchase-buttons",3,"draw","pricePlans","store","machine"],["mat-ripple","",1,"purchase-coupon-item"],["mat-ripple","",1,"purchase-coupon-item",3,"click"],[1,"purchase-coupon-item-name"],[1,"purchase-coupon-item-detail"],[1,"quantity"],[1,"value"],[1,"unit"]],template:function(n,a){n&1&&h(0,or,3,3,"ng-container",2),n&2&&_("slLoading",!a.loading)},dependencies:[z,ot,nt,R,Te,ve,Oe,Ot,me,Pe,Le,fe,W,K,qt,Ht,be,Me,_e,q,de,ct,Vt,It,I,tt,Ut],styles:['.header.layout-small[_ngcontent-%COMP%]{margin:0!important}.header.layout-small[_ngcontent-%COMP%]   .header-slider[_ngcontent-%COMP%]{margin-top:8px}.header-main[_ngcontent-%COMP%]{aspect-ratio:var(--app-lottery-thumbn
1ail-aspect-ratio);position:relative}.header-main.is-origin[_ngcontent-%COMP%]{aspect-ratio:auto}.header-main.is-origin[_ngcontent-%COMP%]   .header-main-image[_ngcontent-%COMP%]{display:block;height:auto;position:relative}.header-main-image[_ngcontent-%COMP%]{height:100%;left:0;object-fit:cover;position:absolute;top:0;width:100%}.header-slider[_ngcontent-%COMP%]{display:block;margin-top:12px}.content[_ngcontent-%COMP%]{--section-margin: 56px}.content.layout-small[_ngcontent-%COMP%]{--section-margin: 40px}.content-top[_ngcontent-%COMP%], .content-bottom[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.info[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) / 2)}.info-restriction[_ngcontent-%COMP%]{margin-top:20px}.info-name[_ngcontent-%COMP%]{font-size:2.4rem;font-weight:600;line-height:1.6}.layout-small[_ngcontent-%COMP%]   .info-name[_ngcontent-%COMP%]{font-size:1.7rem}.info-status[_ngcontent-%COMP%]{background-color:var(--app-color-background-accent);font-size:1.4rem;font-weight:600;margin-top:24px;padding:24px;text-align:center}.info-container[_ngcontent-%COMP%]{background-color:var(--app-color-background-accent);margin-top:24px;padding:32px}.layout-small[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]{margin-top:16px;padding:24px}.info-item[_ngcontent-%COMP%]{display:flex;font-size:1.4rem;margin:0}.info-item[_ngcontent-%COMP%] + .info-item[_ngcontent-%COMP%]{margin-top:12px}.info-item-heading[_ngcontent-%COMP%]{width:130px}.layout-small[_ngcontent-%COMP%]   .info-item-heading[_ngcontent-%COMP%]{width:96px}.info-item-body[_ngcontent-%COMP%]{flex:1;margin:0}.info-item-body[_ngcontent-%COMP%]  a{color:var(--app-color-primary);text-decoration:underline}.info-note[_ngcontent-%COMP%]{font-size:1.3rem;margin-top:24px}.info-note-item[_ngcontent-%COMP%]{line-height:1.4}.info-note-item[_ngcontent-%COMP%] + .info-note-item[_ngcontent-%COMP%]{margin-top:4px}.purchase[_ngcontent-%COMP%]{margin:56px 0 80px}.purchase-limited[_ngcontent-%COMP%]{padding:24px 0}.purchase-inner[_ngcontent-%COMP%]{margin:0 auto;width:360px}.layout-small[_ngcontent-%COMP%]   .purchase-inner[_ngcontent-%COMP%]{width:280px}.purchase-coupon-list[_ngcontent-%COMP%]{margin-top:16px}.purchase-coupon-item[_ngcontent-%COMP%]{background-color:var(--app-color-accent);border-radius:100px;color:var(--app-color-accent-contrast);cursor:pointer;display:block;overflow:hidden;padding:16px 12px 12px;position:relative;width:100%}.purchase-coupon-item[_ngcontent-%COMP%] + .purchase-coupon-item[_ngcontent-%COMP%]{margin-top:16px}.purchase-coupon-item-name[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:600}.purchase-coupon-item-detail[_ngcontent-%COMP%]{align-items:stretch;display:flex;justify-content:center}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.5rem;margin-right:.2em}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]{align-items:baseline;display:flex;justify-content:center;line-height:1.4}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-family:var(--app-number-font-family);font-size:1.7rem;margin-right:.2em}.purchase-coupon-item-detail[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .unit[_ngcontent-%COMP%]{font-size:1rem}.purchase-coupon-provider[_ngcontent-%COMP%]{margin-top:24px;text-align:center}.purchase-coupon-provider-link[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:inline-flex;font-size:1.5rem;position:relative}.purchase-coupon-provider-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.3rem;margin-right:.1em}.purchase-coupon-provider-link[_ngcontent-%COMP%]:after{background-color:var(--app-color-text);bottom:-1px;content:"";height:1px;left:0;position:absolute;width:100%}.purchase-bottom[_ngcontent-%COMP%]{margin-top:32px;text-align:center}.purchase-usage[_ngcontent-%COMP%]{align-items:center;background-color:var(--app-color-background);border:2px solid var(--app-color-primary);border-radius:100px;color:var(--app-color-primary);cursor:pointer;display:inline-flex;padding:4px 20px;position:relative}.purchase-usage[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:2.1rem}.purchase-usage[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:700;line-height:1;margin-left:2px}.rarities[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.rarities-heading[_ngcontent-%COMP%]{text-align:center}.rarities-heading[_ngcontent-%COMP%]   .en[_ngcontent-%COMP%]{font-family:var(--app-latin-font-family);font-weight:var(--app-latin-font-weight);letter-spacing:var(--app-latin-font-letter-spacing);text-indent:var(--app-latin-font-letter-spacing);font-size:4rem;line-height:1}.rarities-heading[_ngcontent-%COMP%]   .ja[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600}.rarities-heading-note[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:600;line-height:1.75;margin-top:8px;text-align:center}.layout-small[_ngcontent-%COMP%]   .rarities-heading-note[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:4px}.rarities-item[_ngcontent-%COMP%]{display:block;margin-top:var(--section-margin)}.rarities-note[_ngcontent-%COMP%]{margin-top:32px}.rarities-note-item[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:flex-start}.rarities-note-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:var(--app-color-accent);font-size:2.7rem}.rarities-note-item[_ngcontent-%COMP%]   .icon.small[_ngcontent-%COMP%]{font-size:1.9rem;padding:0 4px}.rarities-note-item[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:1.4rem;line-height:1.4}.rarities-note-item[_ngcontent-%COMP%] + .rarities-note-item[_ngcontent-%COMP%]{margin-top:16px}.bonus-item[_ngcontent-%COMP%]{margin-top:var(--section-margin)}.how-to[_ngcontent-%COMP%]{margin:var(--section-margin) auto 0;width:360px}.how-to[_ngcontent-%COMP%]   sl-button[_ngcontent-%COMP%]{--width: 100%}.how-to[_ngcontent-%COMP%]   sl-button[_ngcontent-%COMP%] + sl-button[_ngcontent-%COMP%]{margin-top:16px}.layout-small[_ngcontent-%COMP%]   .how-to[_ngcontent-%COMP%]{width:280px}.share[_ngcontent-%COMP%]{margin-top:calc(var(--section-margin) * 2)}.page-bottom[_ngcontent-%COMP%]{padding-bottom:80px}']});let t=i;return t})();function ar(t,i){if(t&1&&(G(0),l(1,"sl-breadcrumb")(2,"sl-breadcrumb-item",1),s(3,"storeUrl"),d(4),c(),l(5,"sl-breadcrumb-item",1),s(6,"storeUrl"),d(7),s(8,"locale"),c(),l(9,"sl-breadcrumb-item"),d(10),c()(),l(11,"sl-layout",2)(12,"div",3)(13,"div",4),d(14),s(15,"localDate"),c(),l(16,"div",5),d(17),c()(),y(18,"tbx-wysiwyg-body",6),l(19,"div",7)(20,"sl-button",8),s(21,"storeUrl"),d(22),s(23,"locale"),c()()(),U()),t&2){let e=i.slLoading;r(2),_("path",S(3,10,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(e==null||e.store==null?null:e.store.name),r(),_("path",S(6,13,e==null||e.store==null?null:e.store.id,"store_notification_list")),r(2),g(u(8,16,"shared.breadcrumbs.notification")),r(3),g(e==null||e.notification==null?null:e.notification.name),r(4),g(S(15,18,e==null||e.notification==null?null:e.notification.publishedAt,"mediumDate")),r(3),g(e==null||e.notification==null?null:e.notification.name),r(),_("body",e==null||e.notification==null?null:e.notification.body),r(2),_("defaultHref",S(21,21,e==null||e.store==null?null:e.store.id,"store_notification_list")),r(2),g(u(23,24,"shared.navigation.back"))}}var on=(()=>{let i=class i{constructor(){var o;this.loading=!1,this.lotteryStoreService=p(J),this.storeNotificationService=p(Wt),this.route=p($),this.metaTagsService=p(et),this.titleService=p(Y),this.localeService=p(N),this.slug=p(A,{optional:!0}
1),(o=this.slug)!=null||(this.slug=this.route.snapshot.paramMap.get("storeSlug")),this.notificationId=this.route.snapshot.paramMap.get("notificationId"),this.state$=X({store:this.lotteryStoreService.selectStore(this.slug),notification:this.storeNotificationService.selectStoreNotification(this.slug,this.notificationId)}).pipe(P(n=>{var a,C,v,x,M,b,at;this.titleService.setTitle(`${(a=n==null?void 0:n.notification)==null?void 0:a.name} - ${this.localeService.translate("shared.breadcrumbs.notification")} - ${(C=n==null?void 0:n.store)==null?void 0:C.name}`),this.metaTagsService.updateTags(`${(v=n==null?void 0:n.notification)==null?void 0:v.name} - ${(x=n==null?void 0:n.store)==null?void 0:x.name} - ${this.localeService.translate("common.appFullName")}`,(at=(b=(M=n==null?void 0:n.store)==null?void 0:M.mainImage)==null?void 0:b.readingUrls)==null?void 0:at.medium)}))}ngOnInit(){this.loading=!0,j([this.lotteryStoreService.fetchStore(this.slug),this.storeNotificationService.fetchNotification(this.slug,this.notificationId)]).subscribe(()=>{this.loading=!1})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-notification-detail"]],standalone:!0,features:[O],decls:2,vars:3,consts:[[4,"slLoading"],[3,"path"],["size","small",1,"news"],[1,"heading"],[1,"heading-date"],[1,"heading-title"],[1,"body",3,"body"],[1,"back-button"],["type","stroked","slBackButton","",3,"defaultHref"]],template:function(n,a){n&1&&(h(0,ar,24,26,"ng-container",0),s(1,"async")),n&2&&_("slLoading",u(1,1,a.state$))},dependencies:[z,ot,nt,R,Ot,W,Ft,q,It,I,tt],styles:[".news[_ngcontent-%COMP%]{padding-bottom:80px}.heading[_ngcontent-%COMP%]{border-bottom:1px solid var(--app-color-border);margin-bottom:24px;padding:56px 0 24px}.layout-small[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:16px;padding:32px 0 16px}.layout-small[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .heading-title[_ngcontent-%COMP%]{font-size:2rem}.heading-date[_ngcontent-%COMP%]{font-family:var(--app-latin-font-family);font-weight:var(--app-latin-font-weight);letter-spacing:var(--app-latin-font-letter-spacing);font-size:1.7rem}.heading-title[_ngcontent-%COMP%]{font-size:2.4rem;line-height:1.5}.back-button[_ngcontent-%COMP%]{margin-top:56px;text-align:center}"]});let t=i;return t})();var rr=(t,i)=>i.id;function lr(t,i){if(t&1&&y(0,"sl-notification-item",4),t&2){let e=i.$implicit;_("notification",e)("routerLink",e==null?null:e.id)}}function cr(t,i){if(t&1){let e=V();G(0),l(1,"sl-breadcrumb")(2,"sl-breadcrumb-item",1),s(3,"storeUrl"),d(4),c(),l(5,"sl-breadcrumb-item"),d(6),s(7,"locale"),c()(),l(8,"sl-page-header"),d(9),s(10,"locale"),c(),l(11,"sl-layout",2),F("scrolled",function(){E(e);let n=m();return k(n.onScroll())}),l(12,"div",3),B(13,lr,1,2,"sl-notification-item",4,rr),c(),l(15,"div",5)(16,"sl-button",6),s(17,"storeUrl"),d(18),s(19,"locale"),c()()(),U()}if(t&2){let e=i.slLoading;r(2),_("path",S(3,6,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(e==null||e.store==null?null:e.store.name),r(2),g(u(7,9,"shared.breadcrumbs.notification")),r(3),g(u(10,11,"shared.breadcrumbs.notification")),r(4),T(e==null?null:e.notifications),r(3),_("defaultHref",S(17,13,e==null||e.store==null?null:e.store.id,"store_top")),r(2),g(u(19,16,"shared.navigation.back"))}}var an=(()=>{let i=class i{constructor(){var o;this.loading=!1,this.loadingMore=!1,this.lotteryStoreService=p(J),this.storeNotificationService=p(Wt),this.route=p($),this.metaTagsService=p(et),this.titleService=p(Y),this.localeService=p(N),this.slug=p(A,{optional:!0}),(o=this.slug)!=null||(this.slug=this.route.snapshot.paramMap.get("storeSlug")),this.state$=X({store:this.lotteryStoreService.selectStore(this.slug),notifications:this.storeNotificationService.selectNotifications(this.slug)}).pipe(P(n=>{var a,C,v,x,M;this.titleService.setTitle(`${this.localeService.translate("shared.breadcrumbs.notification")} - ${(a=n==null?void 0:n.store)==null?void 0:a.name}`),this.metaTagsService.updateTags(`${this.localeService.translate("shared.breadcrumbs.notification")} - ${(C=n==null?void 0:n.store)==null?void 0:C.name} - ${this.localeService.translate("common.appFullName")}`,(M=(x=(v=n==null?void 0:n.store)==null?void 0:v.mainImage)==null?void 0:x.readingUrls)==null?void 0:M.medium)}))}ngOnInit(){this.loading=!0,j([this.lotteryStoreService.fetchStore(this.slug),this.storeNotificationService.fetchNotifications(this.slug,!0)]).subscribe(()=>{this.loading=!1})}
1onScroll(){!this.loadingMore&&!this.storeNotificationService.notificationPages[this.slug].isComplete&&(this.loadingMore=!0,this.storeNotificationService.fetchNotifications(this.slug).subscribe(()=>{this.loadingMore=!1}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-notification"]],standalone:!0,features:[O],decls:2,vars:3,consts:[[4,"slLoading"],[3,"path"],["size","small","infiniteScroll","",1,"body",3,"scrolled"],[1,"news-list"],[3,"notification","routerLink"],[1,"back-button"],["type","stroked","slBackButton","",3,"defaultHref"]],template:function(n,a){n&1&&(h(0,cr,20,18,"ng-container",0),s(1,"async")),n&2&&_("slLoading",u(1,1,a.state$))},dependencies:[z,ot,nt,kt,R,yt,Ie,K,W,Ft,q,I,tt],styles:[".body[_ngcontent-%COMP%]{padding-bottom:80px}.back-button[_ngcontent-%COMP%]{margin-top:56px;text-align:center}"]});let t=i;return t})();var rn=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["sl-store-item"]],inputs:{store:"store"},standalone:!0,features:[O],decls:5,vars:5,consts:[["slLayout","",1,"thumbnail"],["alt","",1,"thumbnail-image",3,"src"],[1,"name"]],template:function(n,a){n&1&&(l(0,"div",0),y(1,"img",1),s(2,"imageSize"),c(),l(3,"div",2),d(4),c()),n&2&&(r(),_("src",S(2,2,a.store==null?null:a.store.mainImage,"medium"),it),r(3),g(a.store.name))},dependencies:[Ht,ct],styles:["[_nghost-%COMP%]{cursor:pointer}[_nghost-%COMP%]:focus{outline:none}.thumbnail[_ngcontent-%COMP%]{aspect-ratio:16/9;position:relative}.thumbnail.layout-small[_ngcontent-%COMP%]{margin:0 -16px}.thumbnail-image[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}.name[_ngcontent-%COMP%]{-webkit-box-orient:vertical;display:-webkit-box;font-size:2rem;font-weight:600;-webkit-line-clamp:2;line-height:1.6;margin-top:12px;max-height:3.2em;overflow:hidden}"],changeDetection:0});let t=i;return t})();var sr=(t,i)=>i.id;function pr(t,i){if(t&1&&y(0,"sl-store-item",4),t&2){let e=i.$implicit;_("store",e)("routerLink",e==null?null:e.id)}}function mr(t,i){if(t&1&&(l(0,"div",3),B(1,pr,1,2,"sl-store-item",4,sr),c()),t&2){let e=m();r(),T(e)}}function dr(t,i){t&1&&(l(0,"sl-empty"),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeRoot.emptyStoreMessage")))}function ur(t,i){if(t&1){let e=V();l(0,"sl-layout",2),F("scrolled",function(){E(e);let n=m(2);return k(n.onScroll())}),h(1,mr,3,0,"div",3)(2,dr,3,3,"sl-empty"),c()}if(t&2){let e=i;r(),f(e!=null&&e.length?1:2)}}function _r(t,i){if(t&1&&(G(0),h(1,ur,3,1,"sl-layout",1),s(2,"async"),U()),t&2){let e,o=m();r(),f((e=u(2,1,o.stores$))?1:-1,e)}}var ln=(()=>{let i=class i{constructor(){this.loading=!0,this.loadingMore=!1,this.lotteryStoreService=p(J),this.stores$=this.lotteryStoreService.stores$}ngOnInit(){this.loading=!0,this.lotteryStoreService.fetchStores(!0).subscribe(()=>{this.loading=!1})}onScroll(){!this.loadingMore&&!this.lotteryStoreService.storePage.isComplete&&(this.loadingMore=!0,this.lotteryStoreService.fetchStores().subscribe(()=>{this.loadingMore=!1}))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-root"]],standalone:!0,features:[O],decls:4,vars:4,consts:[[4,"slLoading"],["size","small","infiniteScroll",""],["size","small","infiniteScroll","",3,"scrolled"],[1,"list"],[3,"store","routerLink"]],template:function(n,a){n&1&&(l(0,"sl-page-header"),d(1),s(2,"locale"),c(),h(3,_r,3,3,"ng-container",0)),n&2&&(r(),g(u(2,2,"pages.storeRoot.pageHeader")),r(2),_("slLoading",!a.loading))},dependencies:[kt,z,R,yt,rn,K,Et,q,I],styles:[".list[_ngcontent-%COMP%]{display:grid;gap:40px 30px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));padding-bottom:80px}.layout-small[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}"]});let t=i;return t})();var gr=["scrolling"],hr=(t,i)=>i.id,fr=(t,i)=>[t,i];function yr(t,i){if(t&1&&(y(0,"sl-lottery-item",11),s(1,"storeUrl")),t&2){let e=i.$implicit;m(5);let o=Ct(0);_("routerLink",rt(5,fr,S(1,2,o.id,"store_lottery_list"),e.id))("machine",e)}}function Cr(t,i){t&1&&y(0,"sl-spinner")}function Sr(t,i){if(t&1&&(l(0,"div",10),B(1,yr,2,8,"sl-lottery-item",11,hr),c(),h(3,Cr,1,0,"sl-spinner")),t&2){let e=m(4),o=Ct(2);r(),T(o),r(2),f(e.loadingMore?3:-1)}}function vr(t,i){t&1&&(l(0,"sl-empty"),d(1),s(2,"locale"),c()),t&2&&(r(),g(u(2,1,"pages.storeLotteryHistory.emptyMessage")))}function xr(t,i){if(t&1&&(G(0),h(1,Sr,4,1)(2,vr,3,3,"sl-empty"),U()),t&2){m(3);let e=Ct(2);r(),f(e!=null&&e.length?1:2)}}function Pr(t,i){if(t&1){let e=V();l(0,"sl-breadcrumb")(1,"sl-breadcrumb-item",2),s(2,"storeUrl"),d(3),c(),l(4,"sl-breadcrumb-item"),d(5),c()(),l(6,"sl-page-header"),d(7),c(),l(8,"sl-layout",3),F("scrolled",function(){E(e);let n=m(2);return k(n.onScroll())}),l(9,"div",4)(10,"mat-checkbox",5),F("ngModelChange",function(){E(e);let n=m(2);return k(n.updateFilter())}),l(11,"span",6),d(12),s(13,"locale"),c()()(),l(14,"div",7,0),h(16,xr,3,1,"ng-container",1),c(),l(17,"div",8)(18,"sl-button",9),s(19,"storeUrl"),d(20),s(21,"locale"),c()()()}if(t&2){let e=m(2),o=Ct(0),n=Ct(1);r(),_("path",S(2,9,o.id,"store_top")),r(2),g(o.name),r(2),g(n.name),r(2),g(n.name),r(3),_("ngModel",e.availableOnly()),r(2),g(u(13,12,"pages.storeSection.showOnlyAvailable")),r(4),_("slLoading",!e.loadingMachines),r(2),_("defaultHref",S(19,14,o.id,"store_top")),r(2),g(u(21,17,"shared.navigation.back"))}}function Mr(t,i){if(t&1&&(G(0),h(1,Pr,22,19),U()),t&2){m();let e=Ct(0),o=Ct(1),n=Ct(2);r(),f(e&&o&&n?1:-1)}}var cn=(()=>{let i=class i{constructor(){var v,x,M;this.loading=!1,this.loadingMore=!1,this.loadingMachines=!1,this.availableOnly=li(!1),this.scrollingRef=ci("scrolling"),this.route=p($),this.router=p(Lt),this.lotteryStoreService=p(J),this.metaTagsService=p(et),this.titleService=p(Y),this.storeUrlService=p(wt),this.localeService=p(N),this.lotteryMachineGroupService=p(De),this.storageService=p(Pi),this.viewportScroller=p(gi),this.storeSlug=p(A,{optional:!0}
1),(v=this.storeSlug)!=null||(this.storeSlug=this.route.snapshot.paramMap.get("storeSlug")),this.groupId=this.route.snapshot.paramMap.get("sectionSlug"),this.store$=Ge(this.lotteryStoreService.fetchStore(this.storeSlug)),this.section$=this.lotteryMachineGroupService.selectSignalMachineGroup(this.groupId),this.machines$=this.lotteryMachineGroupService.selectSignalMachineGroupMachines(this.storeSlug,this.groupId);let o=this.machines$(),n=(x=this.router.getCurrentNavigation())!=null?x:this.router.lastSuccessfulNavigation,a=this.lotteryMachineGroupService.lastGroupMachinesFetchStartedTimestamp[this.groupId];this.isFirstLoad=!(o!=null&&o.length)||(n==null?void 0:n.trigger)!=="popstate"||((M=history.state)==null?void 0:M.navigationId)!==(n==null?void 0:n.id)||a&&new Date().getTime()-a>15*60*1e3;let C=Ge(this.router.events.pipe(Dt(b=>b instanceof fi),xt(b=>b.position||[0,0]),Ci()));ui(()=>{var ii,ni;this.scrollingRef()&&C()&&!this.isFirstLoad&&this.viewportScroller.scrollToPosition(C());let b=this.section$(),at=this.store$();b&&at&&(this.titleService.setTitle(`${b.name} - ${at.name}`),this.metaTagsService.updateTags(`${b.name} - ${at.name} - ${this.localeService.translate("common.appFullName")}`,(ni=(ii=at.mainImage)==null?void 0:ii.readingUrls)==null?void 0:ni.medium))})}updateFilter(){this.availableOnly.set(!this.availableOnly()),this.loadingMachines=!0,this.saveFilter(this.availableOnly()),this.lotteryMachineGroupService.fetchMachineGroupMachines(this.storeSlug,this.groupId,this.availableOnly(),!0).subscribe(()=>{this.loadingMachines=!1})}ngOnInit(){return vt(this,null,function*(){yield this.restoreFilter(),this.isFirstLoad&&(this.loading=!0,j([this.lotteryMachineGroupService.fetchMachineGroup(this.storeSlug,this.groupId),this.lotteryMachineGroupService.fetchMachineGroupMachines(this.storeSlug,this.groupId,this.availableOnly(),this.isFirstLoad)]).subscribe(()=>{this.loading=!1},o=>{this.router.navigateByUrl(this.storeUrlService.transform(this.storeSlug,"store_top"))}))})}onScroll(){var o;!this.loadingMore&&!((o=this.lotteryMachineGroupService.machineGroupMachinePages[this.groupId])!=null&&o.isComplete)&&(this.loadingMore=!0,this.lotteryMachineGroupService.fetchMachineGroupMachines(this.storeSlug,this.groupId,this.availableOnly()).subscribe(()=>{this.loadingMore=!1}))}getStorageKey(){return"section_filter_value"}saveFilter(o){return vt(this,null,function*(){let n=o?"available":"all",a=this.getStorageKey();n==="available"?this.storageService.set(a,n):this.storageService.remove(a)})}restoreFilter(){return vt(this,null,function*(){let o=this.getStorageKey(),n=yield this.storageService.get(o);n&&this.availableOnly.set(n==="available")})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=L({type:i,selectors:[["page-store-section"]],viewQuery:function(n,a){n&1&&pi(a.scrollingRef,gr,5),n&2&&mi()},standalone:!0,features:[O],decls:4,vars:4,consts:[["scrolling",""],[4,"slLoading"],[3,"path"],["size","small","infiniteScroll","",1,"container",3,"scrolled"],[1,"filter"],[1,"filter-item",3,"ngModelChange","ngModel"],[1,"filter-item-label"],[1,"lottery-container"],[1,"back-button"],["type","stroked","slBackButton","",3,"defaultHref"],[1,"lottery-list"],[1,"lottery-list-item",3,"routerLink","machine"]],template:function(n,a){n&1&&(di(0)(1)(2),h(3,Mr,2,1,"ng-container",1)),n&2&&(ce(a.store$()),r(),ce(a.section$()),r(),ce(a.machines$()),r(),_("slLoading",!a.loading))},dependencies:[z,ot,nt,kt,R,yt,Mi,xi,Si,vi,Qt,K,Et,W,Ft,I,tt,Li],styles:[".container[_ngcontent-%COMP%]{padding-bottom:80px}.filter[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:-20px}.filter-item[_ngcontent-%COMP%]{text-align:left}.filter-item[_ngcontent-%COMP%]  .mat-mdc-checkbox-layout{white-space:pre-wrap}.filter-item-label[_ngcontent-%COMP%]{margin-left:-.4em}.lottery-list[_ngcontent-%COMP%]{display:grid;gap:40px 30px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:32px}.back-button[_ngcontent-%COMP%]{margin-top:56px;text-align:center}"]});let t=i;return t})();var br=[{path:"",canActivate:[qe],canDeactivate:[qe],children:[{path:"top",component:Ii,canActivate:[Ei("/store")]},{path:"",component:ln},{path:"mobile_check_out",component:ki},{path:":storeSlug",component:zi,children:[{path:"",component:Qi},{path:"category/:sectionSlug",component:cn},{path:"lottery",children:[{path:"",component:tn},{path:":lotterySlug",component:nn}]},{path:"limited/:lotterySlug",component:Yi},{path:"lottery-not-found",component:en},{path:"notification",children:[{path:"",component:an},{path:":notificationId",component:on}]}]}]}],Q0=br;export{Yc as a,Rl as b,Xr as c,sc as d,ki as e,zi as f,Qi as g,Yi as h,tn as i,en as j,nn as k,on as l,an as m,cn as n,Q0 as o};
2//# sourceMappingURL=chunk-XXYJONOD.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.