import{d as g,c as d,a as v,ad as f,s as S,o as a,q as r,w as _,v as u,F as i,A as h,r as p}from"./index-p1BAR2Hc.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const w={class:"web-page creative-shell"},$={class:"creative-shell__content"},x={key:0,class:"creative-shell__heading"},F={class:"creative-shell__scroll"},I=g({__name:"CreativeShell",props:{pageTitle:{default:""}},setup(e){return(c,m)=>(a(),d("div",w,[v("main",$,[c.$slots.heading?(a(),d("header",x,[f(c.$slots,"heading",{},void 0,!0)])):S("",!0),v("div",F,[f(c.$slots,"default",{},void 0,!0)])])]))}}),E=y(I,[["__scopeId","data-v-5549e50b"]]),N=g({__name:"CreativeSelect",props:{modelValue:{},options:{},placeholder:{default:"请选择"},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{default:"bottom-start"}},emits:["update:modelValue"],setup(e,{emit:c}){const m=e,k=c,b=h(()=>{const s=new Map;for(const o of m.options){const t=o.group||"";s.has(t)||s.set(t,[]),s.get(t).push(o)}return[...s.entries()].map(([o,t])=>({label:o,options:t}))}),C=h(()=>b.value.some(s=>s.label));return(s,o)=>{const t=p("el-option"),B=p("el-option-group"),V=p("el-select");return a(),r(V,{class:"creative-select","model-value":e.modelValue,placeholder:e.placeholder,multiple:e.multiple,"collapse-tags":e.multiple,"collapse-tags-tooltip":e.multiple,filterable:e.filterable,clearable:e.clearable,disabled:e.disabled,placement:e.placement,teleported:!0,"popper-class":"creative-select-popper","onUpdate:modelValue":o[0]||(o[0]=l=>k("update:modelValue",l))},{default:_(()=>[C.value?(a(!0),d(i,{key:0},u(b.value,l=>(a(),r(B,{key:l.label,label:l.label},{default:_(()=>[(a(!0),d(i,null,u(l.options,n=>(a(),r(t,{key:n.value,label:n.label,value:n.value,disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:2},1032,["label"]))),128)):(a(!0),d(i,{key:1},u(e.options,l=>(a(),r(t,{key:l.value,label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","placeholder","multiple","collapse-tags","collapse-tags-tooltip","filterable","clearable","disabled","placement"])}}}),L=y(N,[["__scopeId","data-v-c088bbce"]]);export{E as C,L as a};
