niucloud-admin/niucloud/public/admin/assets/edit-carousel-search-e1f48f71.js
全栈小学生 d680214fd1 up
2025-06-11 09:21:43 +08:00

2 lines
24 KiB
JavaScript

import{d as Ve,k as n,l as F,r as v,ap as te,aI as ve,O as ke,aj as Te,z as oe,N as ae,h as b,c as _,J as w,ac as y,u as e,a as r,t as p,e as t,w as i,i as h,B as R,m as z,aM as $,F as W,T as D,n as Ue,a4 as Ie,ad as We,ae as Pe,G as Be,b4 as Ee,H as Re,Q as ze,D as De,E as He,S as Ae,b6 as Ne,ax as Me,a3 as Fe,a5 as $e,Y as je,Z as Le,M as Oe}from"./index-e05985b6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as Ge}from"./index.vue_vue_type_script_setup_true_lang-de519c71.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{_ as Je}from"./index.vue_vue_type_style_index_0_lang-6860038b.js";import Qe from"./index-627b9e4a.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import{u as Ye}from"./diy-17e91366.js";import{S as j}from"./sortable.esm-be94e56d.js";import{a as Ze}from"./diy-9db2525d.js";import{r as L}from"./range-e90b089a.js";const qe={class:"content-wrap"},Ke={class:"edit-attr-item-wrap"},Xe={class:"mb-[10px]"},el={key:0,class:"text-sm text-gray-400 mb-[10px]"},ll={class:"edit-attr-item-wrap"},tl={class:"mb-[10px]"},ol={class:"text-sm text-gray-400 mb-[10px]"},al={class:"text-sm text-gray-400 mt-[10px] leading-[1.5]"},nl={class:"flex flex-wrap"},il=["onClick"],dl=["src"],rl={class:"dialog-footer"},sl={class:"edit-attr-item-wrap mb-[20px]"},pl={class:"mb-[10px]"},ml={class:"text-sm text-gray-400 mb-[10px]"},ul=["onClick"],cl={class:"edit-attr-item-wrap"},hl={class:"text-sm text-gray-400 mb-[10px]"},fl=["onClick"],bl=["onClick"],Cl={class:"mt-[16px] flex justify-end"},_l={class:"flex items-center justify-end mt-[15px]"},gl={class:"text-sm text-gray-400 mb-[10px]"},xl=["onClick"],wl={class:"style-wrap"},yl={key:0,class:"edit-attr-item-wrap"},Sl={class:"mb-[10px]"},Vl={key:1,class:"edit-attr-item-wrap"},vl={class:"mb-[10px]"},kl={class:"edit-attr-item-wrap"},Tl={class:"mb-[10px]"},Ul={class:"edit-attr-item-wrap"},Il={class:"mb-[10px]"},Wl={class:"edit-attr-item-wrap"},Pl={class:"mb-[10px]"},Bl={class:"edit-attr-item-wrap"},El={class:"mb-[10px]"},Rl=Ve({__name:"edit-carousel-search",setup(zl,{expose:ne}){const l=Ye();l.editComponent.ignore=["componentBgColor","componentBgUrl","marginTop","marginBottom","topRounded","bottomRounded","pageBgColor","marginBoth"],l.editComponent.verify=m=>{const o={code:!0,message:""};return l.value[m].search.hotWord.list.forEach(s=>{if(s.text=="")return o.code=!1,o.message=n("carouselSearchHotWordTextPlaceholder"),o}),l.value[m].tab.list.forEach(s=>{if(s.text=="")return o.code=!1,o.message=n("carouselSearchTabCategoryTextPlaceholder"),o}),l.value[m].swiper.control&&l.value[m].swiper.list.forEach(s=>{if(s.imageUrl=="")return o.code=!1,o.message=n("imageUrlTip"),o}),o};const S=F({title:l.editComponent.search.styleName,value:l.editComponent.search.style}),k=v(!1),ie=()=>{k.value=!0,S.title=l.editComponent.search.styleName,S.value=l.editComponent.search.style},de=m=>{S.title=m.title,S.value=m.value},re=()=>{l.editComponent.search.styleName=S.title,l.editComponent.search.style=S.value,k.value=!1},se=F([{url:"static/resource/images/diy/carousel_search/style_1.png",title:"风格1",value:"style-1"},{url:"static/resource/images/diy/carousel_search/style_2.png",title:"风格2",value:"style-2"}]);l.editComponent.search.hotWord.list.forEach(m=>{m.id||(m.id=l.generateRandom())}),l.editComponent.tab.list.forEach(m=>{m.id||(m.id=l.generateRandom())}),l.editComponent.swiper.list.forEach(m=>{m.id||(m.id=l.generateRandom())});const O=v(["tab","swiper"]),pe=m=>{};te(()=>{H()});const me=()=>{l.editComponent.search.hotWord.list.push({id:l.generateRandom(),text:"关键词"})},ue=m=>{l.editComponent.tab.list[m].diy_id=0,l.editComponent.tab.list[m].diy_title=""},ce=()=>{l.editComponent.tab.list.push({id:l.generateRandom(),text:"分类名称",source:"diy_page",diy_id:"",diy_title:""})},G=v(),J=v(),Q=v();te(()=>{ve(()=>{j.create(G.value,{group:"item-wrap",animation:200,onEnd:s=>{const u=l.editComponent.search.hotWord.list[s.oldIndex];l.editComponent.search.hotWord.list.splice(s.oldIndex,1),l.editComponent.search.hotWord.list.splice(s.newIndex,0,u),m.sort(L(l.editComponent.search.hotWord.list.length).map(d=>d.toString()))}});const m=j.create(J.value,{group:"item-wrap",animation:200,onEnd:s=>{const u=l.editComponent.tab.list[s.oldIndex];l.editComponent.tab.list.splice(s.oldIndex,1),l.editComponent.tab.list.splice(s.newIndex,0,u),m.sort(L(l.editComponent.tab.list.length).map(d=>d.toString()))}}),o=j.create(Q.value,{group:"item-wrap",animation:200,onEnd:s=>{const u=l.editComponent.swiper.list[s.oldIndex];l.editComponent.swiper.list.splice(s.oldIndex,1),l.editComponent.swiper.list.splice(s.newIndex,0,u),o.sort(L(l.editComponent.swiper.list.length).map(d=>d.toString())),P(!0)}})})});const T=v(!1),f=F({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{}}),Y=v(),H=(m=1)=>{f.loading=!0,f.page=m,Ze({page:f.page,limit:f.limit,...f.searchParam}).then(o=>{f.loading=!1;let s=o.data.data,u=[],d=0;if(l.id)for(let c=0;c<s.length;c++)s[c].id==l.id?d++:u.push(s[c]);else u=ke(s);d&&(o.data.total=o.data.total-d),f.data=u,f.total=o.data.total}).catch(()=>{f.loading=!1})};let U={},A=0;const he=m=>{U=m},fe=()=>{l.editComponent.tab.list[A].diy_id=U.id,l.editComponent.tab.list[A].diy_title=U.title,T.value=!1},be=m=>{T.value=!0,A=m,U&&setTimeout(()=>{Y.value.setCurrentRow(U)},200)};Te(()=>l.editComponent.swiper.list,(m,o)=>{P()},{deep:!0});const Ce=()=>{l.editComponent.swiper.list.push({id:l.generateRandom(),imageUrl:"",imgWidth:0,imgHeight:0,link:{name:""}})},_e=m=>{P(!0)},ge=m=>{P(!0)},P=(m=!1)=>{l.editComponent.swiper.list.forEach((o,s)=>{const u=new Image;u.src=oe(o.imageUrl),u.onload=async()=>{if(o.imgWidth=u.width,o.imgHeight=u.height,m&&s==0){const d=o.imgHeight/o.imgWidth;l.editComponent.swiper.swiperStyle=="style-1"?o.width=375*.92:o.width=355,o.height=o.width*d,l.editComponent.swiper.imageHeight=parseInt(o.height)}}})};return ne({}),(m,o)=>{const s=We,u=Pe,d=Be,c=Ee,g=Re,Z=ae("ArrowRight"),N=ze,I=De,q=Qe,K=Je,V=He,X=Ae,B=Ne,E=Ge,ee=Me,xe=ae("Close"),M=Fe,we=$e,le=je,ye=Le,Se=Oe;return b(),_(W,null,[w(r("div",qe,[r("div",Ke,[r("h3",Xe,p(e(n)("carouselSearchShowPosition")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchShowWay")},{default:i(()=>[t(u,{modelValue:e(l).editComponent.positionWay,"onUpdate:modelValue":o[0]||(o[0]=a=>e(l).editComponent.positionWay=a)},{default:i(()=>[t(s,{label:"static"},{default:i(()=>[h(p(e(n)("carouselSearchShowWayStatic")),1)]),_:1}),t(s,{label:"fixed"},{default:i(()=>[h(p(e(n)("carouselSearchShowWayFixed")),1)]),_:1})]),_:1},8,["modelValue"]),e(l).editComponent.positionWay=="fixed"?(b(),_("div",el,"滑动页面查看效果")):R("",!0)]),_:1},8,["label"]),w(t(d,{label:e(n)("carouselSearchFixedBgColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.fixedBgColor,"onUpdate:modelValue":o[1]||(o[1]=a=>e(l).editComponent.fixedBgColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),[[y,e(l).editComponent.positionWay=="fixed"]]),t(d,{label:e(n)("carouselSearchBgGradient")},{default:i(()=>[t(u,{modelValue:e(l).editComponent.bgGradient,"onUpdate:modelValue":o[2]||(o[2]=a=>e(l).editComponent.bgGradient=a)},{default:i(()=>[t(s,{label:!0},{default:i(()=>[h(p(e(n)("carouselSearchOpen")),1)]),_:1}),t(s,{label:!1},{default:i(()=>[h(p(e(n)("carouselSearchClose")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),r("div",ll,[r("h3",tl,p(e(n)("carouselSearchSet")),1),t(g,{"label-width":"100px",class:"px-[10px]",onSubmit:o[7]||(o[7]=$(()=>{},["prevent"]))},{default:i(()=>[t(d,{label:e(n)("selectStyle"),class:"flex"},{default:i(()=>[r("span",{class:"text-primary flex-1 cursor-pointer",onClick:ie},p(e(l).editComponent.search.styleName),1),t(N,null,{default:i(()=>[t(Z)]),_:1})]),_:1},8,["label"]),e(l).editComponent.search.style=="style-2"?(b(),z(d,{key:0,label:e(n)("carouselSearchSubTitle")},{default:i(()=>[t(I,{modelValue:e(l).editComponent.search.subTitle.text,"onUpdate:modelValue":o[3]||(o[3]=a=>e(l).editComponent.search.subTitle.text=a),modelModifiers:{trim:!0},placeholder:e(n)("carouselSearchSubTitlePlaceholder"),clearable:"",maxlength:"10","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):R("",!0),t(d,{label:e(n)("logo")},{default:i(()=>[t(q,{modelValue:e(l).editComponent.search.logo,"onUpdate:modelValue":o[4]||(o[4]=a=>e(l).editComponent.search.logo=a),limit:1},null,8,["modelValue"]),r("div",ol,p(e(n)("carouselSearchLogoTips")),1)]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchText")},{default:i(()=>[r("div",null,[t(I,{modelValue:e(l).editComponent.search.text,"onUpdate:modelValue":o[5]||(o[5]=a=>e(l).editComponent.search.text=a),modelModifiers:{trim:!0},placeholder:e(n)("carouselSearchPlaceholder"),clearable:"",maxlength:"20","show-word-limit":""},null,8,["modelValue","placeholder"]),r("p",al,p(e(n)("carouselSearchTextTips")),1)])]),_:1},8,["label"]),t(d,{label:e(n)("link")},{default:i(()=>[t(K,{modelValue:e(l).editComponent.search.link,"onUpdate:modelValue":o[6]||(o[6]=a=>e(l).editComponent.search.link=a)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),t(X,{modelValue:k.value,"onUpdate:modelValue":o[9]||(o[9]=a=>k.value=a),title:e(n)("selectStyle"),width:"500px"},{footer:i(()=>[r("span",rl,[t(V,{onClick:o[8]||(o[8]=a=>k.value=!1)},{default:i(()=>[h(p(e(n)("cancel")),1)]),_:1}),t(V,{type:"primary",onClick:re},{default:i(()=>[h(p(e(n)("confirm")),1)]),_:1})])]),default:i(()=>[r("div",nl,[(b(!0),_(W,null,D(se,(a,x)=>(b(),_("div",{key:x,class:Ue([{"border-primary":S.value==a.value},"flex items-center justify-center overflow-hidden w-[200px] h-[100px] m-[6px] cursor-pointer border bg-[#eee]"]),onClick:C=>de(a)},[r("img",{src:e(oe)(a.url)},null,8,dl)],10,il))),128))])]),_:1},8,["modelValue","title"])]),r("div",sl,[r("h3",pl,p(e(n)("carouselSearchHotWordSet")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchHotWordInterval")},{default:i(()=>[t(B,{modelValue:e(l).editComponent.search.hotWord.interval,"onUpdate:modelValue":o[10]||(o[10]=a=>e(l).editComponent.search.hotWord.interval=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",min:1,max:10},null,8,["modelValue"])]),_:1},8,["label"]),r("p",ml,p(e(n)("dragMouseAdjustOrder")),1),r("div",{ref_key:"searchHotWordTabBoxRef",ref:G},[(b(!0),_(W,null,D(e(l).editComponent.search.hotWord.list,(a,x)=>(b(),_("div",{key:a.id,class:"item-wrap p-[10px] relative border border-dashed border-gray-300 mb-[16px]"},[t(d,{label:e(n)("carouselSearchHotWordText"),class:"!mb-0"},{default:i(()=>[t(I,{modelValue:a.text,"onUpdate:modelValue":C=>a.text=C,modelModifiers:{trim:!0},placeholder:e(n)("carouselSearchHotWordTextPlaceholder"),clearable:"",maxlength:"4","show-word-limit":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]),r("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:C=>e(l).editComponent.search.hotWord.list.splice(x,1)},[t(E,{name:"element CircleCloseFilled",color:"#bbb",size:"20px"})],8,ul)]))),128)),w(t(V,{class:"w-full",onClick:me},{default:i(()=>[h(p(e(n)("carouselSearchAddHotWordItem")),1)]),_:1},512),[[y,e(l).editComponent.search.hotWord.list.length<50]])],512)]),_:1})]),t(ye,{modelValue:O.value,"onUpdate:modelValue":o[19]||(o[19]=a=>O.value=a),onChange:pe,class:"collapse-wrap"},{default:i(()=>[t(le,{title:e(n)("carouselSearchTabSet"),name:"tab"},{default:i(()=>[r("div",cl,[t(g,{"label-width":"100px",class:"px-[10px]",onSubmit:o[16]||(o[16]=$(()=>{},["prevent"]))},{default:i(()=>[t(d,{label:e(n)("carouselSearchTabControl")},{default:i(()=>[t(ee,{modelValue:e(l).editComponent.tab.control,"onUpdate:modelValue":o[11]||(o[11]=a=>e(l).editComponent.tab.control=a)},null,8,["modelValue"])]),_:1},8,["label"]),r("p",hl,p(e(n)("dragMouseAdjustOrder")),1),r("div",{ref_key:"tabBoxRef",ref:J},[(b(!0),_(W,null,D(e(l).editComponent.tab.list,(a,x)=>(b(),_("div",{key:a.id,class:"item-wrap p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[t(d,{label:e(n)("carouselSearchTabCategoryText")},{default:i(()=>[t(I,{modelValue:a.text,"onUpdate:modelValue":C=>a.text=C,modelModifiers:{trim:!0},placeholder:e(n)("carouselSearchTabCategoryTextPlaceholder"),clearable:"",maxlength:"4","show-word-limit":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]),t(d,{label:e(n)("dataSources")},{default:i(()=>[t(I,{modelValue:a.diy_title,"onUpdate:modelValue":C=>a.diy_title=C,modelModifiers:{trim:!0},placeholder:e(n)("selectDiyPagePlaceholder"),readonly:"",class:"select-diy-page-input",onClick:C=>be(x)},{suffix:i(()=>[r("div",{onClick:$(C=>ue(x),["stop"])},[a.diy_title?(b(),z(N,{key:0},{default:i(()=>[t(xe)]),_:1})):(b(),z(N,{key:1},{default:i(()=>[t(Z)]),_:1}))],8,fl)]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onClick"])]),_:2},1032,["label"]),w(r("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:C=>e(l).editComponent.tab.list.splice(x,1)},[t(E,{name:"element CircleCloseFilled",color:"#bbb",size:"20px"})],8,bl),[[y,e(l).editComponent.tab.list.length>1]])]))),128)),w(t(V,{class:"w-full",onClick:ce},{default:i(()=>[h(p(e(n)("carouselSearchAddTabItem")),1)]),_:1},512),[[y,e(l).editComponent.tab.list.length<50]])],512),t(X,{modelValue:T.value,"onUpdate:modelValue":o[15]||(o[15]=a=>T.value=a),title:e(n)("selectSourcesDiyPage"),width:"1000px","close-on-press-escape":!0,"destroy-on-close":!0,"close-on-click-modal":!1},{default:i(()=>[w((b(),z(e(Ie),{data:f.data,ref_key:"diyPageTableRef",ref:Y,size:"large",height:"490px",onCurrentChange:he,"row-key":"id","highlight-current-row":""},{empty:i(()=>[r("span",null,p(f.loading?"":e(n)("emptyData")),1)]),default:i(()=>[t(M,{prop:"page_title",label:e(n)("diyPageTitle"),"min-width":"120"},null,8,["label"]),t(M,{prop:"addon_name",label:e(n)("diyPageTypeName"),"min-width":"80"},null,8,["label"]),t(M,{prop:"type_name",label:e(n)("diyPageForAddon"),"min-width":"80"},null,8,["label"])]),_:1},8,["data"])),[[Se,f.loading]]),r("div",Cl,[t(we,{"current-page":f.page,"onUpdate:current-page":o[12]||(o[12]=a=>f.page=a),"page-size":f.limit,"onUpdate:page-size":o[13]||(o[13]=a=>f.limit=a),layout:"total, sizes, prev, pager, next, jumper",total:f.total,onSizeChange:H,onCurrentChange:H},null,8,["current-page","page-size","total"])]),r("div",_l,[t(V,{type:"primary",onClick:fe},{default:i(()=>[h(p(e(n)("confirm")),1)]),_:1}),t(V,{onClick:o[14]||(o[14]=a=>T.value=!1)},{default:i(()=>[h(p(e(n)("cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])]),_:1})])]),_:1},8,["title"]),t(le,{title:e(n)("carouselSearchSwiperSet"),name:"swiper"},{default:i(()=>[t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchSwiperControl")},{default:i(()=>[t(ee,{modelValue:e(l).editComponent.swiper.control,"onUpdate:modelValue":o[17]||(o[17]=a=>e(l).editComponent.swiper.control=a)},null,8,["modelValue"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchSwiperInterval")},{default:i(()=>[t(B,{modelValue:e(l).editComponent.swiper.interval,"onUpdate:modelValue":o[18]||(o[18]=a=>e(l).editComponent.swiper.interval=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",min:1,max:10},null,8,["modelValue"])]),_:1},8,["label"]),r("div",gl,p(e(n)("carouselSearchSwiperTips")),1),r("div",{ref_key:"imageBoxRef",ref:Q},[(b(!0),_(W,null,D(e(l).editComponent.swiper.list,(a,x)=>(b(),_("div",{key:a.id,class:"item-wrap p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[t(d,{label:e(n)("image")},{default:i(()=>[t(q,{modelValue:a.imageUrl,"onUpdate:modelValue":C=>a.imageUrl=C,limit:1,onChange:_e},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),w(r("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:C=>e(l).editComponent.swiper.list.splice(x,1)},[t(E,{name:"element CircleCloseFilled",color:"#bbb",size:"20px"})],8,xl),[[y,e(l).editComponent.swiper.list.length>1]]),t(d,{label:e(n)("link")},{default:i(()=>[t(K,{modelValue:a.link,"onUpdate:modelValue":C=>a.link=C},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]))),128))],512),w(t(V,{class:"w-full",onClick:Ce},{default:i(()=>[h(p(e(n)("addImageAd")),1)]),_:1},512),[[y,e(l).editComponent.swiper.list.length<10]])]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"])],512),[[y,e(l).editTab=="content"]]),w(r("div",wl,[e(l).editComponent.search.style=="style-2"?(b(),_("div",yl,[r("h3",Sl,p(e(n)("carouselSearchPositionStyle")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchTextColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.positionColor,"onUpdate:modelValue":o[20]||(o[20]=a=>e(l).editComponent.search.positionColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])]),_:1})])):R("",!0),e(l).editComponent.search.style=="style-2"?(b(),_("div",Vl,[r("h3",vl,p(e(n)("carouselSearchSubTitleStyle")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchTextColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.subTitle.textColor,"onUpdate:modelValue":o[21]||(o[21]=a=>e(l).editComponent.search.subTitle.textColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchBgColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.subTitle.startColor,"onUpdate:modelValue":o[22]||(o[22]=a=>e(l).editComponent.search.subTitle.startColor=a),predefine:e(l).predefineColors,"show-alpha":""},null,8,["modelValue","predefine"]),t(E,{name:"iconfont iconmap-connect",size:"20px",class:"block !text-gray-400 mx-[5px]"}),t(c,{modelValue:e(l).editComponent.search.subTitle.endColor,"onUpdate:modelValue":o[23]||(o[23]=a=>e(l).editComponent.search.subTitle.endColor=a),predefine:e(l).predefineColors,"show-alpha":""},null,8,["modelValue","predefine"])]),_:1},8,["label"])]),_:1})])):R("",!0),r("div",kl,[r("h3",Tl,p(e(n)("carouselSearchStyle")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchTextColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.color,"onUpdate:modelValue":o[24]||(o[24]=a=>e(l).editComponent.search.color=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchBgColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.bgColor,"onUpdate:modelValue":o[25]||(o[25]=a=>e(l).editComponent.search.bgColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchBtnColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.btnColor,"onUpdate:modelValue":o[26]||(o[26]=a=>e(l).editComponent.search.btnColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchBtnBgColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.search.btnBgColor,"onUpdate:modelValue":o[27]||(o[27]=a=>e(l).editComponent.search.btnBgColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])]),_:1})]),r("div",Ul,[r("h3",Il,p(e(n)("carouselSearchTabStyle")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("noColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.tab.noColor,"onUpdate:modelValue":o[28]||(o[28]=a=>e(l).editComponent.tab.noColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("selectColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.tab.selectColor,"onUpdate:modelValue":o[29]||(o[29]=a=>e(l).editComponent.tab.selectColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("fixedNoColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.tab.fixedNoColor,"onUpdate:modelValue":o[30]||(o[30]=a=>e(l).editComponent.tab.fixedNoColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("fixedSelectColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.tab.fixedSelectColor,"onUpdate:modelValue":o[31]||(o[31]=a=>e(l).editComponent.tab.fixedSelectColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])]),_:1})]),r("div",Wl,[r("h3",Pl,p(e(n)("carouselSearchSwiperSet")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchSwiperStyle"),onChange:ge},{default:i(()=>[t(u,{modelValue:e(l).editComponent.swiper.swiperStyle,"onUpdate:modelValue":o[32]||(o[32]=a=>e(l).editComponent.swiper.swiperStyle=a)},{default:i(()=>[t(s,{label:"style-1"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle1")),1)]),_:1}),t(s,{label:"style-2"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle2")),1)]),_:1}),t(s,{label:"style-3"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle3")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(d,{label:e(n)("topRounded")},{default:i(()=>[t(B,{modelValue:e(l).editComponent.swiper.topRounded,"onUpdate:modelValue":o[33]||(o[33]=a=>e(l).editComponent.swiper.topRounded=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"]),t(d,{label:e(n)("bottomRounded")},{default:i(()=>[t(B,{modelValue:e(l).editComponent.swiper.bottomRounded,"onUpdate:modelValue":o[34]||(o[34]=a=>e(l).editComponent.swiper.bottomRounded=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),r("div",Bl,[r("h3",El,p(e(n)("carouselSearchSwiperIndicatorSet")),1),t(g,{"label-width":"100px",class:"px-[10px]"},{default:i(()=>[t(d,{label:e(n)("carouselSearchSwiperIndicatorStyle")},{default:i(()=>[t(u,{modelValue:e(l).editComponent.swiper.indicatorStyle,"onUpdate:modelValue":o[35]||(o[35]=a=>e(l).editComponent.swiper.indicatorStyle=a)},{default:i(()=>[t(s,{label:"style-1"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle1")),1)]),_:1}),t(s,{label:"style-2"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle2")),1)]),_:1}),t(s,{label:"style-3"},{default:i(()=>[h(p(e(n)("carouselSearchSwiperIndicatorStyle3")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(d,{label:e(n)("carouselSearchSwiperIndicatorAlign")},{default:i(()=>[t(u,{modelValue:e(l).editComponent.swiper.indicatorAlign,"onUpdate:modelValue":o[36]||(o[36]=a=>e(l).editComponent.swiper.indicatorAlign=a)},{default:i(()=>[t(s,{label:"left"},{default:i(()=>[h(p(e(n)("alignLeft")),1)]),_:1}),t(s,{label:"center"},{default:i(()=>[h(p(e(n)("alignCenter")),1)]),_:1}),t(s,{label:"right"},{default:i(()=>[h(p(e(n)("alignRight")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(d,{label:e(n)("noColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.swiper.indicatorColor,"onUpdate:modelValue":o[37]||(o[37]=a=>e(l).editComponent.swiper.indicatorColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),t(d,{label:e(n)("selectColor")},{default:i(()=>[t(c,{modelValue:e(l).editComponent.swiper.indicatorActiveColor,"onUpdate:modelValue":o[38]||(o[38]=a=>e(l).editComponent.swiper.indicatorActiveColor=a),"show-alpha":"",predefine:e(l).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])]),_:1})])],512),[[y,e(l).editTab=="style"]])],64)}}});const ct=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"}));export{ct as _};