function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./BWrnu2zc.js","./CrXZR5ie.js","./bdrFovXZ.js","./entry.D08378P0.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } import{d as L,s as C,u as D,A as c,p as z,E as M,O as x,o as t,c as i,f as n,t as f,a5 as I,v as y,V as N,g as d,b,w as B,a as _,x as R,y as A,$ as K,e as T,R as O,T as S,a6 as U,a7 as P,_ as j}from"./bdrFovXZ.js";import{_ as F}from"./7_VjD77d.js";import{t as Y}from"./DEVfuFrL.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{};o.sentry_release={id:"dcd43fef1e4af7f7614a43abf36301348c5fce67"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{},l=new o.Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="c98ad445-02b7-4f77-8e92-b5a8cb4c2201",o._sentryDebugIdIdentifier="sentry-dbid-c98ad445-02b7-4f77-8e92-b5a8cb4c2201")})()}catch{}const Z=U(()=>P(()=>import("./BWrnu2zc.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(o=>o.default||o)),q=["for"],G={key:1,class:"flex items-center justify-center"},H={class:"relative"},J=["id","name","placeholder","disabled","type","maxlength","aria-busy","aria-describedby"],Q=["id"],oe=L({__name:"Base",props:C({label:{},name:{},path:{},field:{},error:{},inputKey:{},placeholder:{},optional:{type:Boolean},disabled:{type:Boolean},tooltip:{},icon:{},loading:{type:Boolean},iconClasses:{},canClickIcon:{type:Boolean},type:{},maxLength:{},autofocus:{type:Boolean},srOnlyLabel:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:C(["iconClick","blur"],["update:modelValue"]),setup(o,{emit:l}){const s=o,[m,g]=D(o,"modelValue",{set(e){return g.trimallspaces?e.replace(/\s+/g,""):g.lowercase?e.toLowerCase():e}}),p=l,u=c(()=>`${s.name}_${s.inputKey}`),v=c(()=>`${u.value}-error`),h=c(()=>`${u.value}-loading`),$=c(()=>{if(s.error)return v.value;if(s.loading)return h.value}),k=z(null);return M(()=>{s.autofocus&&x(()=>{var e;(e=k.value)==null||e.focus()})}),(e,a)=>{const w=j,E=F,V=Z;return t(),i("div",null,[e.label?(t(),i("label",{key:0,for:n(u),class:f(["mb-2 flex items-center gap-1 text-bt-blue-dark text-subtitle-2",{"sr-only":e.srOnlyLabel}])},[I(y(e.label)+" ",1),e.optional?(t(),i(N,{key:0},[I(" ("+y(e.$t("forms.optional"))+") ",1)],64)):d("",!0),e.tooltip?(t(),i("div",G,[b(E,{text:e.tooltip,"tooltip-style":"white",hoverable:""},{default:B(()=>[b(w,{name:"common/outline-info",size:"sm"})]),_:1},8,["text"])])):d("",!0)],10,q)):d("",!0),_("div",H,[R(_("input",{id:n(u),ref_key:"inputElement",ref:k,"onUpdate:modelValue":a[0]||(a[0]=r=>K(m)?m.value=r:null),name:s.name,class:f(["w-full rounded border border-border px-4 py-3 text-bt-blue-dark outline-bt-blue-ui text-body-1 disabled:bg-grey",{"border-dark-error":e.error,"pr-10":!!e.icon||e.loading}]),placeholder:e.placeholder,disabled:e.disabled,type:e.type,maxlength:e.maxLength,"aria-busy":e.loading||void 0,"aria-describedby":n($),onBlur:a[1]||(a[1]=r=>p("blur",r))},null,42,J),[[A,n(m)]]),e.loading?(t(),T(V,{key:0,id:n(h),text:e.$t("aria.loading"),"sr-only-text":"",size:"md",class:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-bt-green"},null,8,["id","text"])):e.icon?(t(),T(w,{key:1,name:e.icon,size:"md",class:f(["absolute right-3 top-1/2 -translate-y-1/2",e.iconClasses]),tabindex:e.canClickIcon?0:-1,onClick:a[2]||(a[2]=r=>e.canClickIcon&&p("iconClick")),onKeydown:a[3]||(a[3]=O(r=>e.canClickIcon&&p("iconClick"),["enter"]))},null,8,["name","class","tabindex"])):d("",!0)]),b(S,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 max-h-0 transform -translate-y-2","enter-to-class":"opacity-100 max-h-20 transform translate-y-0","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-20 transform translate-y-0","leave-to-class":"opacity-0 max-h-0 transform -translate-y-2"},{default:B(()=>[e.error?(t(),i("div",{key:0,id:n(v),class:f([{error:e.error},"mt-2 block text-dark-error text-body-3"])},y(e.$t(...n(Y)(e.error))),11,Q)):d("",!0)]),_:1})])}}});export{oe as _}; //# sourceMappingURL=D778TWcu.js.map

AltStyle によって変換されたページ (->オリジナル) /