1import{I as r}from"./BiYk0gkn.js";import{A as d}from"./CAyhup6h.js";import{aG as l,aX as h,aJ as c,aN as f,bs as i,aT as u,aU as m,aH as g,aS as b,aK as t,aL as o}from"./Duq0Yqab.js";import"./C2hCVKqV.js";import"./DMtPCzz6.js";import"./BcSY3436.js";import"./BqExOCGq.js";import"./D31hZUl6.js";import"./DhmNBdcb.js";import"./BYP6NDu9.js";import"./ChTxgJ-I.js";import"./Cl7o38Nv.js";import"./C7ywycqe.js";import"./B-IS3rf0.js";import"./BBZpJyqX.js";import"./CnezNapr.js";import"./YlxzaPLx.js";import"./pbwz9hsu.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"bb082cde4d1a2072e36f45763ce4b2e1c8ea0cc5"}}catch{}})();try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="1e1006d6-c69f-4d3f-a568-bf431150e1a7",s._sentryDebugIdIdentifier="sentry-dbid-1e1006d6-c69f-4d3f-a568-bf431150e1a7")})()}catch{}const _={setup(){const s=u(),{t:e}=m();return g({title:e("shops.Business profile"),meta:[{hid:"description",name:"description",content:e("shops.Business profile")}]}),{nuxtApp:s}},name:"shop-services",components:{AlertMessage:d,Index:r},data(){var s=this.$store?.state.main.host?.includes("zapchasti");return{langId:this.$i18n.locale==="ru"?2:4,shop_id:0,is_zapchasti:s}},async created(){await this.getUserShops()},methods:{async getUserShops(){this.loading=1;var{data:s}=await this.$axios.get(`psp/shopsInfoList/?langId=${this.langId}`);console.log(s),s&&s.shopDataList&&s.shopDataList[8]&&(this.shop_id=s.shopDataList[8].shop_id),this.shop_id>0?(this.loading=0,await i({path:`${this.langId==4?"/uk":""}/cabinet/shops/${this.shop_id}/`})):this.loading=0},async createShop(){if(this.shop_id>0)await i({path:`${this.langId==4?"/uk":""}/cabinet/shops/${this.shop_id}/`});else{var{data:s}=await this.$axios.post(`psp/shop/add/?langId=${this.langId}`,{category_id:8});console.log(s),s&&s.shop_id&&await this.getUserShops()}}}},y={class:"alert__buttons mt-6 mb-6"};function w(s,e,I,$,v,a){const n=b("AlertMessage");return c(),h(n,{customClass:"mb0",type:"info","show-button-close":!1},{default:f(()=>[t("h4",null,o(s.$t("shops.Would you like to create a Business Profile")),1),t("p",null,o(s.$t("shops.You can add your company name, phone number, logo, address")),1),t("div",y,[t("span",{class:"button w-middle size16 _transparent",onClick:e[0]||(e[0]=(...p)=>a.createShop&&a.createShop(...p))},o(s.$t("shops.Create")),1)])]),_:1})}const J=l(_,[["render",w]]);export{J as default};
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.