"use strict";const t=require("../../../../common/vendor.js"),e=require("../common/utils.js"),a={data:()=>({distanceTop:0}),props:{usingCustomNavbar:{type:Boolean,default:!1},customNavbarHeight:{type:Number,default:0}},created(){this.usingCustomNavbar&&this.calculateCustomNavbarDistanceTop()},methods:{calculateCustomNavbarDistanceTop(){const{statusBarHeight:a}=e.systemInfo;let s=0;const o=t.index.getMenuButtonBoundingClientRect();s=o.top+o.bottom-a,this.distanceTop=Math.max(s,this.customNavbarHeight+a)}}};exports.useCustomNavbarBehavior=a;
