import{u as a,r as s,o as t,A as l,B as e,c as u,w as r,i as n,b as o,d as i,e as p,h as _,j as c,k as f,F as d,m,f as v,t as b,$ as w,a as g,n as h,l as k}from"./index-CNEGAsaa.js";import{_ as y}from"./uni-icons.CcyQXHWh.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=j({__name:"choose",props:{url:{type:String,default:""}},setup(j){const x=a(),C=j,$=s([]),z=()=>{if(C.url.includes("api://")){let a=C.url.split("api://")[1];a&&(async a=>{const s=await w(a);g(s,(()=>{$.value=s.data.list}))})(a)}},A=()=>{z()},B=s(null),F=a=>{B.value||(B.value=a,A())};return t((()=>{B.value&&A()})),(a,s)=>{const t=n,w=k,g=l(e("uni-icons"),y);return o(),u(t,null,{default:r((()=>[i(x).config?(o(),u(t,{key:0},{default:r((()=>[p(t,{ref:F})])),_:1})):_("",!0),p(t,{class:"button_list_wrapper"},{default:r((()=>[(o(!0),c(d,null,f($.value,((a,s)=>(o(),u(t,{onClick:s=>{var t;(t=a).url?h({url:t.url}):uni.$lu.toast("暂未开放")},class:"button_item_wrapper",key:s},{default:r((()=>[p(t,{class:"button_icon_wrapper"},{default:r((()=>[p(w,{src:i(m)(a.logo)},null,8,["src"])])),_:2},1024),p(t,{class:"button_name_wrapper"},{default:r((()=>[v(b(a.name),1)])),_:2},1024),p(t,{class:"button_right_wrapper"},{default:r((()=>[p(g,{type:"right",size:"20"})])),_:1})])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-860350bd"]]);export{x as default};
