import{_ as p}from"./BCol.vue_vue_type_script_setup_true_lang-D0xTJQ30-C8E8teuV.js";import{_ as u}from"./BContainer.vue_vue_type_script_setup_true_lang-Bi1hGl0B-Bd4Gid1V.js";import{_}from"./BRow.vue_vue_type_script_setup_true_lang-BDkBauhk-2kwIwZ0y.js";import{_ as b,d as g,o as c,a as t,c as v,h as w,b as n,g as l,t as o,i as I,w as s}from"./index-D02r7Zsc.js";import"./getClasses-CsgNQabU-zDOdZIGY.js";import"./useDefaults-DESCdb0p-CFLjYrdG.js";import"./useAlignment-Cw-9AVid-Db1FQC5G.js";const $={data:function(){return{userInfos:{},helpMessage:this.$t("barcodeInfo.helpMessage"),phoneOrientation:null,deactivate:!1}},methods:{changeOrientation(e){this.phoneOrientation=e.target.screen.orientation.angle}},created:function(){this.userInfos=this.get("accountInfos"),this.phoneOrientation=window.screen.orientation.angle,window.addEventListener("orientationchange",this.changeOrientation),this.subscribe("accountChange",()=>{this.publish("reload")})},beforeUnmount:function(){window.removeEventListener("orientationchange",this.changeOrientation)},beforeRouteLeave:function(e,a,i){e.name!=="login"?(this.deactivate=!0,this.subscribe("deactivationFinished",()=>{i()})):i()}},y={class:"d-flex justify-content-around align-items-baseline mb-2"},O={class:"h3 text-center title text-secondary"},k={class:"h5 text-center"},C={class:"text-center border border-gray shadow m-3 rounded"},z={class:"barcode"};function B(e,a,i,L,M,E){const d=l("accountselector"),f=l("help"),r=p,h=_,m=u;return c(),g("div",null,[t("div",y,[n(d,{deactivate:e.deactivate},null,8,["deactivate"]),t("h1",O,o(e.$t("menusLabels.barcodeInfo.full")),1),n(f,{help:this.helpMessage},null,8,["help"])]),t("h2",k,o(e.userInfos.personal_information.lastname.toUpperCase())+", "+o(e.userInfos.personal_information.firstname),1),t("div",C,[t("div",z,"*"+o(e.userInfos.cb)+"*",1),t("div",{style:I(`font-size:${e.getConfig().smallerFontSize}rem;`)},o(e.userInfos.cb),5)]),e.phoneOrientation===0?(c(),v(m,{key:0,class:"mt-5 p-3"},{default:s(()=>[n(h,{"align-h":"center"},{default:s(()=>[n(r,{cols:"3"},{default:s(()=>[...a[0]||(a[0]=[t("div",{class:"position-relative d-inline-block",style:{width:"5rem",height:"5rem"}},[t("i",{class:"bi bi-phone text-dark position-absolute start-0",style:{"font-size":"5rem",top:"-2rem"}}),t("i",{class:"bi bi-arrow-repeat text-info position-absolute icon-fade-loop",style:{"font-size":"2rem",top:"0rem",left:"1.5rem"}})],-1)])]),_:1}),n(r,{cols:"7"},{default:s(()=>[t("p",null,o(e.$t("barcodeInfo.landscapeModeAdvice")),1)]),_:1})]),_:1})]),_:1})):w("",!0)])}const A=b($,[["render",B]]);export{A as default};
