PageSourceSearch

https://www.czechicehockey.tv/build/p-ba441755.entry.js

js czechicehockey.tv collected 2026-09-26 19:03:20 UTC 2,998 bytes, 1 lines download raw bytes

1import{r as e,h as a,a as t}from"./p-CLQce7zD.js";import{a2 as c,ar as o,a4 as s,A as i,a as d,i as n}from"./p-BStZpeKB.js";import{T as b}from"./p-Bvqigy63.js";import"./p-YZTT4Nu5.js";import"./p-AuPLCHfl.js";import"./p-E-ZsRS8r.js";const r=class{constructor(a){e(this,a),this.termsAccepted=!1,this.isLoading=!1}componentWillLoad(){console.log("componentWillLoad")}async openReadTermsModal(){await b.open()}async acceptTerms(){if(this.termsAccepted){this.isLoading=!0;try{const e=i.currentUser.id,a=i.siteConfig.siteId,t=i.siteConfig.termsApprovedVersion.version,d=(await c.getUserTermsConsentByUserId({userId:e,siteId:a,category:s.TERMS_AND_CONDITIONS,targetType:o.SITE})).find((e=>e.category===s.TERMS_AND_CONDITIONS));if(d)await c.updateUserTermsConsent(Object.assign(Object.assign({},d),{version:t,date:new Date}));else{const i={userId:e,siteId:a,category:s.TERMS_AND_CONDITIONS,version:t,targetType:o.SITE,date:new Date};await c.createUserTermsConsent(i)}}catch(e){console.error("Error accepting terms:",e),d.presentErrorToast({message:n("TERMS.ERROR_ACCEPTING")})}finally{await this.el.closest("ion-modal").dismiss({termsAccepted:!0}),this.isLoading=!1}}}render(){return[a("ion-header",{key:"adb3fc401e9f929581093efb22a16c3abe397c4c"},a("ion-toolbar",{key:"0386ca4090e22c906d740908f7333b13af443527",color:"primary"},a("ion-title",{key:"edc652691599bb3b002f261190d3fa69e6c5660b",class:"bold"},n("TERMS_AND_CONDITIONS_PAGE.MODAL_TITLE")))),a("ion-content",{key:"7f558266df7d55ddaf8a60b63d61ad84e83c6a1f",class:"ion-padding"},a("div",{key:"16be50e0b9e71e7f8595767bb4b644f17fdeefb7",style:{display:"flex",flexDirection:"column",height:"100%"}},a("div",{key:"ad1f93b3254f4dad0319299b4536766d19b95c91"},a("h2",{key:"bb3245d9da7cb205c88c5f72a9c0cdfeb816396f"},n("TERMS_AND_CONDITIONS_PAGE.MODAL_HEADER")),a("p",{key:"7d09760e436783c6e788dca04a301931f1486024"},n("TERMS_AND_CONDITIONS_PAGE.MODAL_DESCRIPTION")),a("p",{key:"02b259b8bd92675cdb4c3f30dc3b959d2e06eb20"},n("TERMS_AND_CONDITIONS_PAGE.MODAL_INFO"))),a("ion-button",{key:"26a75ee4cf1e5c0f35fc7c8a14ddfb23e1f9c080",expand:"block",class:"ion-margin-top",color:"dark",onClick:()=>this.openReadTermsModal(),fill:"outline"},a("ion-icon",{key:"ab6344ebc49a715d3574dcf003b6a3cfbf37af05",slot:"start",name:"document-text-outline"}),n("TERMS_AND_CONDITIONS_PAGE.MODAL_READ_BUTTON")),a("div",{key:"75c2564e539599989103a7d4773aaccdbe19cc58",style:{marginTop:"auto"}},a("ion-item",{key:"7b293c4c1b65a13a2f0efe85d3317ed608641a1d"},a("ion-checkbox",{key:"c70adab56c0bb8b02858cd48a92a7ab406b65aab",slot:"start",checked:this.termsAccepted,onIonChange:e=>this.termsAccepted=e.detail.checked,labelPlacement:"end"},n("TERMS_AND_CONDITIONS_PAGE.MODAL_ACCEPT_LABEL")))))),a("app-modal-footer",{key:"f5734f601653a86c516885e99ac5dce18d8691e4",showSave:!0,showCancel:!1,saveText:n("TERMS_AND_CONDITIONS_PAGE.MODAL_ACCEPT_BUTTON"),save:()=>this.acceptTerms(),disableSaveBtn:!this.termsAccepted||this.isLoading})]}get el(){return t(this)}};export{r as app_terms_modal}

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.