@wizleap-inc/wiz-ui-next 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wiz-ui.es.js +1 -4
- package/dist/wiz-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/wiz-ui.es.js
CHANGED
|
@@ -7718,10 +7718,7 @@ const $7 = s({
|
|
|
7718
7718
|
class: i([e(w7), t.border && e(b7)]),
|
|
7719
7719
|
style: A({ width: t.width })
|
|
7720
7720
|
}, [
|
|
7721
|
-
m(e(G), {
|
|
7722
|
-
align: "center",
|
|
7723
|
-
gap: "xs"
|
|
7724
|
-
}, {
|
|
7721
|
+
m(e(G), { gap: "xs" }, {
|
|
7725
7722
|
default: y(() => [
|
|
7726
7723
|
(n(!0), c(P, null, O(t.messages, (f) => (n(), c("div", {
|
|
7727
7724
|
key: f.text,
|
package/dist/wiz-ui.umd.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
a ${e.unref(ne)} ${e.unref(ne)} 0 0 1 0 ${e.unref(Ae)}
|
|
10
10
|
a ${e.unref(ne)} ${e.unref(ne)} 0 0 1 0 ${-1*e.unref(Ae)}`,transform:`rotate(${-e.unref(He)*360/100/2}, ${e.unref(de)}, ${e.unref(de)})`},null,10,L3),t.percentage>0?(e.openBlock(),e.createElementBlock("path",{key:0,class:e.normalizeClass([e.unref(M3),e.unref(qs)[e.unref(r)]]),"stroke-dasharray":`${e.unref(l)*e.unref(He)}, 100`,"stroke-width":e.unref(il),d:`M${e.unref(de)} ${e.unref(ol)}
|
|
11
11
|
a ${e.unref(ne)} ${e.unref(ne)} 0 0 1 0 ${e.unref(Ae)}
|
|
12
|
-
a ${e.unref(ne)} ${e.unref(ne)} 0 0 1 0 ${-1*e.unref(Ae)}`,transform:`rotate(${-e.unref(He)*360/100/2}, ${e.unref(de)}, ${e.unref(de)})`},null,10,A3)):e.createCommentVNode("",!0)],10,F3)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(T3))},[e.renderSlot(a.$slots,"default")],2)],2))}}),tu="";var P3="_1rbueow1",O3="_1rbueow0";const j3=e.defineComponent({name:f.LineGraph}),St=e.defineComponent({...j3,props:{percentage:{type:Number,required:!0}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(O3))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(P3)),style:e.normalizeStyle({width:`${t.percentage}%`})},null,6)],2))}}),R3=e.defineComponent({name:f.PopupContainer}),qt=e.defineComponent({...R3,props:{message:{type:String,required:!0},bottom:{type:String,required:!1,default:"0"},left:{type:String,required:!1,default:"0"},isStatic:{type:Boolean,required:!1,default:!1}},emits:["delete"],setup(t,{emit:n}){const r=t,l=e.ref(),a=e.ref(!r.isStatic),i=()=>{a.value=!0,setTimeout(()=>n("delete"),200)};return r.isStatic||setTimeout(i,3e3),e.onMounted(()=>{var o;(o=l.value)!=null&&o.clientWidth&&(a.value=!1)}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(Kl),!t.isStatic&&e.unref(Ul),a.value&&e.unref(Gl)]),style:e.normalizeStyle({bottom:`${t.bottom}`,left:`${t.left}`}),ref_key:"snackbarRef",ref:l},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(Zl))},[e.createVNode(e.unref(V),{color:"white.800",icon:e.unref(Ie)},null,8,["icon"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(Yl))},[e.createVNode(e.unref(T),{color:"white.800",fontSize:"sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.message),1)]),_:1})],2),e.createElementVNode("button",{class:e.normalizeClass(e.unref(Rl)),onClick:i},[e.createVNode(e.unref(V),{color:"white.800",icon:e.unref(ae)},null,8,["icon"])],2)],2)],6))}}),nu="";var Z3={no:"_1mq37f42",xs2:"_1mq37f43",xs:"_1mq37f44",sm:"_1mq37f45",md:"_1mq37f46",lg:"_1mq37f47",xl:"_1mq37f48",xl2:"_1mq37f49",xl3:"_1mq37f4a",xl4:"_1mq37f4b",max:"_1mq37f4c",at:"_1mq37f4d"},Q3="_1mq37f4e",dl={enabled:"_1mq37f4f",disabled:"_1mq37f4g"},fl="_1mq37f41",U3="_1mq37f4k",G3="_1mq37f4l",Y3="_1mq37f40",K3="_1mq37f4h",ml={enabled:"_1mq37f4i",disabled:"_1mq37f4j"};const X3={key:1},J3={key:2},v3=["onClick","onMouseover","onMouseout","onMousedown","onKeypress"],e0=e.defineComponent({name:f.PopupButtonGroup}),Se=e.defineComponent({...e0,props:{options:{type:Array,required:!0},width:{type:String,required:!1,default:"10rem"},p:{type:String,required:!1,default:"no"},borderRadius:{type:String,required:!1,default:"no"},disabled:{type:Boolean,required:!1,default:!1},expand:{type:Boolean,required:!1},groupDivider:{type:Boolean,required:!1,default:!1},buttonDivider:{type:Boolean,required:!1,default:!1},depth:{type:Number,required:!1,default:0}},setup(t){const n=t,r=e.computed(()=>{const _={kind:"divider"};return n.options.map((u,S)=>{if(u.kind==="divider")return[_];const w={kind:"item",item:u};if(S+1===n.options.length)return[w];switch(n.options[S].kind){case"group":return n.groupDivider?[w,_]:[w];case"button":return n.buttonDivider&&n.options[S+1].kind==="button"?[w,_]:[w];case"divider":return[]}}).flat()}),l=e.ref(null),a=e.ref(null),i=_=>{if(!n.disabled&&_.kind==="button"&&!_.option.disabled){l.value=_.option.value;const C=()=>{l.value=null,document.removeEventListener("mouseup",C)};document.addEventListener("mouseup",C)}},o=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&_.option.onClick()},s=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&(a.value=_.option.value)},d=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&(a.value=null)},m=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&_.option.onClick()},h=e.computed(()=>n.expand?"100%":n.width);return(_,C)=>(e.openBlock(),e.createBlock(e.unref(N),{gap:"xs2",class:e.normalizeClass([e.unref(Y3),t.disabled&&e.unref(fl),t.depth===0&&e.unref(Z3)[t.borderRadius]]),style:e.normalizeStyle({minWidth:e.unref(h)}),p:t.depth===0?t.p:"no"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),u=>(e.openBlock(),e.createElementBlock("div",null,[u.kind==="divider"?(e.openBlock(),e.createElementBlock("hr",{key:0,class:e.normalizeClass(e.unref(U3))},null,2)):u.item.kind==="group"?(e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(K3),t.disabled?e.unref(ml).disabled:e.unref(ml).enabled]),style:e.normalizeStyle({paddingLeft:`calc(${e.unref(D).spacing.xs2} + ${t.depth} * ${e.unref(D).spacing.lg})`})},e.toDisplayString(u.item.title),7),e.createVNode(e.unref(Se),{options:u.item.items,groupDivider:u.item.groupDivider,buttonDivider:u.item.buttonDivider,disabled:t.disabled,depth:t.depth+1},null,8,["options","groupDivider","buttonDivider","disabled","depth"])])):u.item.kind==="button"?(e.openBlock(),e.createElementBlock("div",J3,[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(Q3),t.disabled||u.item.option.disabled?e.unref(dl).disabled:e.unref(dl).enabled,u.item.option.disabled&&e.unref(fl)]),style:e.normalizeStyle({paddingLeft:`calc(${e.unref(D).spacing.xs2} + ${t.depth} * ${e.unref(D).spacing.lg})`}),onClick:S=>o(u.item),onMouseover:S=>s(u.item),onMouseout:S=>d(u.item),onMousedown:S=>i(u.item),onKeypress:e.withKeys(S=>m(u.item),["enter"]),tabIndex:0,key:`${u.item.option.label}-${u.item.option.value}`},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(G3))},[e.createElementVNode("span",null,e.toDisplayString(u.item.option.label),1),u.item.option.icon?(e.openBlock(),e.createBlock(e.unref(V),{key:0,icon:u.item.option.icon,color:u.item.option.value===l.value?"white.800":t.disabled||u.item.option.disabled?"gray.400":u.item.option.value===a.value?"green.800":u.item.option.iconDefaultColor??"gray.500",size:"md"},null,8,["icon","color"])):e.createCommentVNode("",!0)],2)],46,v3))])):e.createCommentVNode("",!0)]))),256))]),_:1},8,["class","style","p"]))}}),ru="";var t0="zs5t923",n0="zs5t920",r0="zs5t924",l0="zs5t921",a0="zs5t925",o0="zs5t922";const pl=e.defineComponent({__name:"show-more-less",props:{isOpen:{type:Boolean,required:!0},openMessage:{type:String,required:!1,default:"もっと見る"},closeMessage:{type:String,required:!1,default:"閉じる"},width:{type:String,required:!1,default:"20rem"},bgColor:{type:String,required:!1},fontColor:{type:String,required:!1,default:"gray.600"}},emits:["toggle"],setup(t,{emit:n}){const r=e.ref(),l=e.ref(!1),a=e.computed(()=>{const o=r.value;return(o==null?void 0:o.scrollHeight)+"px"}),i=o=>{n("toggle"),o.preventDefault()};return(o,s)=>(e.openBlock(),e.createBlock(e.unref(N),{class:e.normalizeClass([e.unref(n0),t.bgColor&&e.unref(G)[t.bgColor]]),style:e.normalizeStyle({width:t.width}),open:t.isOpen||l.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"contentRef",ref:r,class:e.normalizeClass([e.unref(t0)]),style:e.normalizeStyle({maxHeight:t.isOpen?e.unref(a):0})},[e.renderSlot(o.$slots,"default")],6),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o0)),onClick:i},[e.createVNode(e.unref(z),{align:"center",justify:"between",gap:"xs2",class:e.normalizeClass([e.unref(l0),t.bgColor&&e.unref(G)[t.bgColor],e.unref(v)[t.fontColor]])},{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(t.isOpen?t.closeMessage:t.openMessage),1),e.createVNode(e.unref(V),{size:"xl2",icon:e.unref(J),color:t.fontColor,class:e.normalizeClass([e.unref(r0),t.isOpen&&e.unref(a0)])},null,8,["icon","color","class"])]),_:1},8,["class"])],2)]),_:3},8,["class","style","open"]))}}),lu="";var i0="_1wetl2k1",s0={default:"_1wetl2k2",error:"_1wetl2k3"},c0="_1wetl2k4",d0="_1wetl2k0";const f0=e.defineComponent({name:f.InformationPanel}),hl=e.defineComponent({...f0,props:{modelValue:{type:Boolean,required:!0},messages:{type:Array,required:!0},width:{type:String,required:!1},border:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,l=e.computed({get:()=>r.modelValue,set:i=>n("update:modelValue",i)}),a=()=>{l.value=!1};return(i,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(d0),t.border&&e.unref(i0)]),style:e.normalizeStyle({width:t.width})},[e.createVNode(e.unref(N),{align:"center",gap:"xs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,s=>(e.openBlock(),e.createElementBlock("div",{key:s.text,class:e.normalizeClass([e.unref(s0)[s.type]])},e.toDisplayString(s.text),3))),128))]),_:1}),e.createElementVNode("div",{class:e.normalizeClass([e.unref(c0)])},[e.createVNode(e.unref(N),{align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(ie),{variant:"transparent",icon:e.unref(ae),onClick:a},null,8,["icon"])]),_:1})],2)],6)),[[e.vShow,e.unref(l)]])}}),au="";var m0="_15958hn0";const p0=e.defineComponent({name:f.ChatCard}),ul=e.defineComponent({...p0,props:{modelValue:{type:String,required:!0},username:{type:String,required:!0},placeholder:{type:String,required:!1},messages:{type:Array,required:!0},isOpen:{type:Boolean,required:!1,default:!1},haveNewMessage:{type:Boolean,required:!1},formRows:{type:Number,required:!1},typingUsername:{type:String,required:!1},status:{type:Number,required:!1},statusOptions:{type:Array,required:!1},statusPlaceholder:{type:String,required:!1}},emits:["update:modelValue","submit","toggleDisplay","update:status"],setup(t,{emit:n}){const r=t,l=e.ref(!1),a=e.ref(0),i=e.ref(),o=e.ref(),s=()=>{i.value&&(a.value=i.value.$el.clientHeight)};e.onMounted(()=>{s(),o.value&&o.value.$el.scrollTo(0,o.value.$el.scrollHeight)});const d=e.computed(()=>{const u=r.messages,S=[];return u.forEach(w=>{const b=new Date(w.time),x=S.find(q=>q.date.getFullYear()===b.getFullYear()&&q.date.getMonth()===b.getMonth()&&q.date.getDate()===b.getDate());x?x.contents.push(w):S.push({date:b,contents:[w]})}),S});e.watch(r.messages,()=>{e.nextTick(()=>{o.value&&o.value.$el.scrollTo(0,o.value.$el.scrollHeight)})}),e.watch(r,()=>{e.nextTick(s)});const m=e.computed({get:()=>r.modelValue,set:u=>n("update:modelValue",u)}),h=e.computed({get:()=>r.status||NaN,set:u=>u&&n("update:status",u)}),_=()=>n("submit"),C=()=>{l.value=!0,n("toggleDisplay"),e.nextTick(()=>l.value=!1)};return(u,S)=>(e.openBlock(),e.createBlock(e.unref(K),{position:"fixed",bottom:t.isOpen?"0":`calc(${e.unref(D).fontSize.xl2} + ${e.unref(D).spacing.md} * 2 - ${a.value}px)`,right:"1.5rem",width:"20rem",transition:`bottom ${l.value?"0.3s":"0s"} ease-in-out`,ref_key:"floatChatCardRef",ref:i,zIndex:"floating"},{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{shadow:"",align:"stretch"},{mainHeaderArea:e.withCtx(()=>[e.createVNode(e.unref(z),{align:"center",gap:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{color:"gray.700",as:"span",bold:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.username),1)]),_:1}),t.haveNewMessage?(e.openBlock(),e.createBlock(e.unref(K),{key:0,width:e.unref(D).fontSize.md,height:e.unref(D).fontSize.md,bgColor:"red.800",round:"max"},null,8,["width","height"])):e.createCommentVNode("",!0)]),_:1})]),subHeaderArea:e.withCtx(()=>[e.createVNode(e.unref(V),{size:"xl2",color:"gray.500",icon:t.isOpen?e.unref(J):e.unref(oe)},null,8,["icon"])]),footer:e.withCtx(()=>[e.createVNode(e.unref(N),{width:"100%",justify:"end",gap:"xs"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ct),{modelValue:e.unref(m),"onUpdate:modelValue":S[0]||(S[0]=w=>e.isRef(m)?m.value=w:null),onSubmit:_,placeholder:t.placeholder,formRows:t.formRows},null,8,["modelValue","placeholder","formRows"]),t.status!==void 0&&t.statusOptions!==void 0?(e.openBlock(),e.createBlock(e.unref(z),{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(at),{options:t.statusOptions,modelValue:e.unref(h),"onUpdate:modelValue":S[1]||(S[1]=w=>e.isRef(h)?h.value=w:null),placeholder:t.statusPlaceholder,expand:""},null,8,["options","modelValue","placeholder"]),e.createElementVNode("div",{style:e.normalizeStyle({width:e.unref(D).spacing.xl4,flexShrink:0})},null,4)]),_:1})):e.createCommentVNode("",!0),t.typingUsername?(e.openBlock(),e.createBlock(e.unref(T),{key:1,color:"gray.600",as:"p",fontSize:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{as:"span",bold:"",fontSize:"xs2",color:"gray.700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.typingUsername),1)]),_:1}),e.createTextVNode(" さんが入力しています... ")]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(le)),e.createVNode(e.unref(K),{overflowY:"scroll",ref_key:"chatListRef",ref:o},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{gap:"xs",py:"xs",height:"320px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.date.toDateString()},[e.createVNode(e.unref(z),{justify:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(Me),{label:e.unref(pf)(w.date),variant:"mono",fontSize:"xs2"},null,8,["label"])]),_:2},1024),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.contents,(b,x)=>(e.openBlock(),e.createBlock(e.unref(kt),{key:w.date.toDateString()+x,content:b,maxChatItemWidth:"192px"},null,8,["content"]))),128))],64))),128))]),_:1})]),_:1},512)]),_:1}),e.createElementVNode("button",{class:e.normalizeClass(e.unref(m0)),onClick:C},null,2)]),_:1},8,["bottom","transition"]))}}),h0=e.defineComponent({name:f.ChatForm}),Ct=e.defineComponent({...h0,props:{disabled:{type:Boolean,required:!1},placeholder:{type:String,required:!1},modelValue:{type:String,required:!0},formRows:{type:Number,required:!1}},emits:["update:modelValue","submit"],setup(t,{emit:n}){const r=t,l=e.computed({get:()=>r.modelValue,set:i=>n("update:modelValue",i)}),a=()=>n("submit");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(z),{align:"center",gap:"xs"},{default:e.withCtx(()=>[e.createVNode(e.unref(ht),{modelValue:e.unref(l),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(l)?l.value=s:null),placeholder:t.placeholder,name:"chat-form__textarea",disabled:t.disabled,rows:t.formRows,expand:""},null,8,["modelValue","placeholder","disabled","rows"]),e.createElementVNode("div",null,[e.createVNode(e.unref(ie),{icon:e.unref(ve),disabled:t.disabled,onClick:a},null,8,["icon","disabled"])])]),_:1}))}}),u0=e.defineComponent({name:f.ChatItem}),kt=e.defineComponent({...u0,props:{content:{type:Object,required:!0},maxChatItemWidth:{type:String,required:!1}},setup(t){const n=t,r=e.computed(()=>{var a;const l=((a=n.content.readers)==null?void 0:a.length)??-1;return l<1?"未読":l===1?"既読":`既読${l}`});return(l,a)=>(e.openBlock(),e.createBlock(e.unref(N),{align:t.content.sender==="me"?"end":"start"},{default:e.withCtx(()=>[t.content.username?(e.openBlock(),e.createBlock(e.unref(T),{key:0,as:"span",fontSize:"xs2",color:"gray.600"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content.username),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(z),{align:"end",reverse:t.content.sender==="me",gap:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{border:"",fit:"",px:"md",py:"xs",borderColor:"gray.300",maxWidth:t.maxChatItemWidth},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(yf)(t.content.message),(i,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.type==="link"?(e.openBlock(),e.createBlock(e.unref(nt),{to:i.content,key:"anchor"+o,target:"_blank",fontSize:"xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.content),1)]),_:2},1032,["to"])):(e.openBlock(),e.createBlock(e.unref(T),{as:"span",fontSize:"xs",color:"gray.700",whiteSpace:"preLine",breakAll:"",key:"text"+o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.content),1)]),_:2},1024))],64))),256))]),_:1},8,["maxWidth"]),e.createVNode(e.unref(N),{align:t.content.sender==="me"?"end":"start"},{default:e.withCtx(()=>{var i;return[e.createVNode(e.unref(ge),null,e.createSlots({default:e.withCtx(()=>[t.content.readers!==void 0?(e.openBlock(),e.createBlock(e.unref(T),{key:0,as:"span",fontSize:"xs2",color:"gray.500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},[(i=t.content.readers)!=null&&i.length?{name:"content",fn:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=t.content.readers)==null?void 0:o.join(`
|
|
12
|
+
a ${e.unref(ne)} ${e.unref(ne)} 0 0 1 0 ${-1*e.unref(Ae)}`,transform:`rotate(${-e.unref(He)*360/100/2}, ${e.unref(de)}, ${e.unref(de)})`},null,10,A3)):e.createCommentVNode("",!0)],10,F3)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(T3))},[e.renderSlot(a.$slots,"default")],2)],2))}}),tu="";var P3="_1rbueow1",O3="_1rbueow0";const j3=e.defineComponent({name:f.LineGraph}),St=e.defineComponent({...j3,props:{percentage:{type:Number,required:!0}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(O3))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(P3)),style:e.normalizeStyle({width:`${t.percentage}%`})},null,6)],2))}}),R3=e.defineComponent({name:f.PopupContainer}),qt=e.defineComponent({...R3,props:{message:{type:String,required:!0},bottom:{type:String,required:!1,default:"0"},left:{type:String,required:!1,default:"0"},isStatic:{type:Boolean,required:!1,default:!1}},emits:["delete"],setup(t,{emit:n}){const r=t,l=e.ref(),a=e.ref(!r.isStatic),i=()=>{a.value=!0,setTimeout(()=>n("delete"),200)};return r.isStatic||setTimeout(i,3e3),e.onMounted(()=>{var o;(o=l.value)!=null&&o.clientWidth&&(a.value=!1)}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(Kl),!t.isStatic&&e.unref(Ul),a.value&&e.unref(Gl)]),style:e.normalizeStyle({bottom:`${t.bottom}`,left:`${t.left}`}),ref_key:"snackbarRef",ref:l},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(Zl))},[e.createVNode(e.unref(V),{color:"white.800",icon:e.unref(Ie)},null,8,["icon"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(Yl))},[e.createVNode(e.unref(T),{color:"white.800",fontSize:"sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.message),1)]),_:1})],2),e.createElementVNode("button",{class:e.normalizeClass(e.unref(Rl)),onClick:i},[e.createVNode(e.unref(V),{color:"white.800",icon:e.unref(ae)},null,8,["icon"])],2)],2)],6))}}),nu="";var Z3={no:"_1mq37f42",xs2:"_1mq37f43",xs:"_1mq37f44",sm:"_1mq37f45",md:"_1mq37f46",lg:"_1mq37f47",xl:"_1mq37f48",xl2:"_1mq37f49",xl3:"_1mq37f4a",xl4:"_1mq37f4b",max:"_1mq37f4c",at:"_1mq37f4d"},Q3="_1mq37f4e",dl={enabled:"_1mq37f4f",disabled:"_1mq37f4g"},fl="_1mq37f41",U3="_1mq37f4k",G3="_1mq37f4l",Y3="_1mq37f40",K3="_1mq37f4h",ml={enabled:"_1mq37f4i",disabled:"_1mq37f4j"};const X3={key:1},J3={key:2},v3=["onClick","onMouseover","onMouseout","onMousedown","onKeypress"],e0=e.defineComponent({name:f.PopupButtonGroup}),Se=e.defineComponent({...e0,props:{options:{type:Array,required:!0},width:{type:String,required:!1,default:"10rem"},p:{type:String,required:!1,default:"no"},borderRadius:{type:String,required:!1,default:"no"},disabled:{type:Boolean,required:!1,default:!1},expand:{type:Boolean,required:!1},groupDivider:{type:Boolean,required:!1,default:!1},buttonDivider:{type:Boolean,required:!1,default:!1},depth:{type:Number,required:!1,default:0}},setup(t){const n=t,r=e.computed(()=>{const _={kind:"divider"};return n.options.map((u,S)=>{if(u.kind==="divider")return[_];const w={kind:"item",item:u};if(S+1===n.options.length)return[w];switch(n.options[S].kind){case"group":return n.groupDivider?[w,_]:[w];case"button":return n.buttonDivider&&n.options[S+1].kind==="button"?[w,_]:[w];case"divider":return[]}}).flat()}),l=e.ref(null),a=e.ref(null),i=_=>{if(!n.disabled&&_.kind==="button"&&!_.option.disabled){l.value=_.option.value;const C=()=>{l.value=null,document.removeEventListener("mouseup",C)};document.addEventListener("mouseup",C)}},o=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&_.option.onClick()},s=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&(a.value=_.option.value)},d=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&(a.value=null)},m=_=>{n.disabled||_.kind==="button"&&!_.option.disabled&&_.option.onClick()},h=e.computed(()=>n.expand?"100%":n.width);return(_,C)=>(e.openBlock(),e.createBlock(e.unref(N),{gap:"xs2",class:e.normalizeClass([e.unref(Y3),t.disabled&&e.unref(fl),t.depth===0&&e.unref(Z3)[t.borderRadius]]),style:e.normalizeStyle({minWidth:e.unref(h)}),p:t.depth===0?t.p:"no"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),u=>(e.openBlock(),e.createElementBlock("div",null,[u.kind==="divider"?(e.openBlock(),e.createElementBlock("hr",{key:0,class:e.normalizeClass(e.unref(U3))},null,2)):u.item.kind==="group"?(e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(K3),t.disabled?e.unref(ml).disabled:e.unref(ml).enabled]),style:e.normalizeStyle({paddingLeft:`calc(${e.unref(D).spacing.xs2} + ${t.depth} * ${e.unref(D).spacing.lg})`})},e.toDisplayString(u.item.title),7),e.createVNode(e.unref(Se),{options:u.item.items,groupDivider:u.item.groupDivider,buttonDivider:u.item.buttonDivider,disabled:t.disabled,depth:t.depth+1},null,8,["options","groupDivider","buttonDivider","disabled","depth"])])):u.item.kind==="button"?(e.openBlock(),e.createElementBlock("div",J3,[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(Q3),t.disabled||u.item.option.disabled?e.unref(dl).disabled:e.unref(dl).enabled,u.item.option.disabled&&e.unref(fl)]),style:e.normalizeStyle({paddingLeft:`calc(${e.unref(D).spacing.xs2} + ${t.depth} * ${e.unref(D).spacing.lg})`}),onClick:S=>o(u.item),onMouseover:S=>s(u.item),onMouseout:S=>d(u.item),onMousedown:S=>i(u.item),onKeypress:e.withKeys(S=>m(u.item),["enter"]),tabIndex:0,key:`${u.item.option.label}-${u.item.option.value}`},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(G3))},[e.createElementVNode("span",null,e.toDisplayString(u.item.option.label),1),u.item.option.icon?(e.openBlock(),e.createBlock(e.unref(V),{key:0,icon:u.item.option.icon,color:u.item.option.value===l.value?"white.800":t.disabled||u.item.option.disabled?"gray.400":u.item.option.value===a.value?"green.800":u.item.option.iconDefaultColor??"gray.500",size:"md"},null,8,["icon","color"])):e.createCommentVNode("",!0)],2)],46,v3))])):e.createCommentVNode("",!0)]))),256))]),_:1},8,["class","style","p"]))}}),ru="";var t0="zs5t923",n0="zs5t920",r0="zs5t924",l0="zs5t921",a0="zs5t925",o0="zs5t922";const pl=e.defineComponent({__name:"show-more-less",props:{isOpen:{type:Boolean,required:!0},openMessage:{type:String,required:!1,default:"もっと見る"},closeMessage:{type:String,required:!1,default:"閉じる"},width:{type:String,required:!1,default:"20rem"},bgColor:{type:String,required:!1},fontColor:{type:String,required:!1,default:"gray.600"}},emits:["toggle"],setup(t,{emit:n}){const r=e.ref(),l=e.ref(!1),a=e.computed(()=>{const o=r.value;return(o==null?void 0:o.scrollHeight)+"px"}),i=o=>{n("toggle"),o.preventDefault()};return(o,s)=>(e.openBlock(),e.createBlock(e.unref(N),{class:e.normalizeClass([e.unref(n0),t.bgColor&&e.unref(G)[t.bgColor]]),style:e.normalizeStyle({width:t.width}),open:t.isOpen||l.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"contentRef",ref:r,class:e.normalizeClass([e.unref(t0)]),style:e.normalizeStyle({maxHeight:t.isOpen?e.unref(a):0})},[e.renderSlot(o.$slots,"default")],6),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o0)),onClick:i},[e.createVNode(e.unref(z),{align:"center",justify:"between",gap:"xs2",class:e.normalizeClass([e.unref(l0),t.bgColor&&e.unref(G)[t.bgColor],e.unref(v)[t.fontColor]])},{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(t.isOpen?t.closeMessage:t.openMessage),1),e.createVNode(e.unref(V),{size:"xl2",icon:e.unref(J),color:t.fontColor,class:e.normalizeClass([e.unref(r0),t.isOpen&&e.unref(a0)])},null,8,["icon","color","class"])]),_:1},8,["class"])],2)]),_:3},8,["class","style","open"]))}}),lu="";var i0="_1wetl2k1",s0={default:"_1wetl2k2",error:"_1wetl2k3"},c0="_1wetl2k4",d0="_1wetl2k0";const f0=e.defineComponent({name:f.InformationPanel}),hl=e.defineComponent({...f0,props:{modelValue:{type:Boolean,required:!0},messages:{type:Array,required:!0},width:{type:String,required:!1},border:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,l=e.computed({get:()=>r.modelValue,set:i=>n("update:modelValue",i)}),a=()=>{l.value=!1};return(i,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(d0),t.border&&e.unref(i0)]),style:e.normalizeStyle({width:t.width})},[e.createVNode(e.unref(N),{gap:"xs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,s=>(e.openBlock(),e.createElementBlock("div",{key:s.text,class:e.normalizeClass([e.unref(s0)[s.type]])},e.toDisplayString(s.text),3))),128))]),_:1}),e.createElementVNode("div",{class:e.normalizeClass([e.unref(c0)])},[e.createVNode(e.unref(N),{align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(ie),{variant:"transparent",icon:e.unref(ae),onClick:a},null,8,["icon"])]),_:1})],2)],6)),[[e.vShow,e.unref(l)]])}}),au="";var m0="_15958hn0";const p0=e.defineComponent({name:f.ChatCard}),ul=e.defineComponent({...p0,props:{modelValue:{type:String,required:!0},username:{type:String,required:!0},placeholder:{type:String,required:!1},messages:{type:Array,required:!0},isOpen:{type:Boolean,required:!1,default:!1},haveNewMessage:{type:Boolean,required:!1},formRows:{type:Number,required:!1},typingUsername:{type:String,required:!1},status:{type:Number,required:!1},statusOptions:{type:Array,required:!1},statusPlaceholder:{type:String,required:!1}},emits:["update:modelValue","submit","toggleDisplay","update:status"],setup(t,{emit:n}){const r=t,l=e.ref(!1),a=e.ref(0),i=e.ref(),o=e.ref(),s=()=>{i.value&&(a.value=i.value.$el.clientHeight)};e.onMounted(()=>{s(),o.value&&o.value.$el.scrollTo(0,o.value.$el.scrollHeight)});const d=e.computed(()=>{const u=r.messages,S=[];return u.forEach(w=>{const b=new Date(w.time),x=S.find(q=>q.date.getFullYear()===b.getFullYear()&&q.date.getMonth()===b.getMonth()&&q.date.getDate()===b.getDate());x?x.contents.push(w):S.push({date:b,contents:[w]})}),S});e.watch(r.messages,()=>{e.nextTick(()=>{o.value&&o.value.$el.scrollTo(0,o.value.$el.scrollHeight)})}),e.watch(r,()=>{e.nextTick(s)});const m=e.computed({get:()=>r.modelValue,set:u=>n("update:modelValue",u)}),h=e.computed({get:()=>r.status||NaN,set:u=>u&&n("update:status",u)}),_=()=>n("submit"),C=()=>{l.value=!0,n("toggleDisplay"),e.nextTick(()=>l.value=!1)};return(u,S)=>(e.openBlock(),e.createBlock(e.unref(K),{position:"fixed",bottom:t.isOpen?"0":`calc(${e.unref(D).fontSize.xl2} + ${e.unref(D).spacing.md} * 2 - ${a.value}px)`,right:"1.5rem",width:"20rem",transition:`bottom ${l.value?"0.3s":"0s"} ease-in-out`,ref_key:"floatChatCardRef",ref:i,zIndex:"floating"},{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{shadow:"",align:"stretch"},{mainHeaderArea:e.withCtx(()=>[e.createVNode(e.unref(z),{align:"center",gap:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{color:"gray.700",as:"span",bold:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.username),1)]),_:1}),t.haveNewMessage?(e.openBlock(),e.createBlock(e.unref(K),{key:0,width:e.unref(D).fontSize.md,height:e.unref(D).fontSize.md,bgColor:"red.800",round:"max"},null,8,["width","height"])):e.createCommentVNode("",!0)]),_:1})]),subHeaderArea:e.withCtx(()=>[e.createVNode(e.unref(V),{size:"xl2",color:"gray.500",icon:t.isOpen?e.unref(J):e.unref(oe)},null,8,["icon"])]),footer:e.withCtx(()=>[e.createVNode(e.unref(N),{width:"100%",justify:"end",gap:"xs"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ct),{modelValue:e.unref(m),"onUpdate:modelValue":S[0]||(S[0]=w=>e.isRef(m)?m.value=w:null),onSubmit:_,placeholder:t.placeholder,formRows:t.formRows},null,8,["modelValue","placeholder","formRows"]),t.status!==void 0&&t.statusOptions!==void 0?(e.openBlock(),e.createBlock(e.unref(z),{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(at),{options:t.statusOptions,modelValue:e.unref(h),"onUpdate:modelValue":S[1]||(S[1]=w=>e.isRef(h)?h.value=w:null),placeholder:t.statusPlaceholder,expand:""},null,8,["options","modelValue","placeholder"]),e.createElementVNode("div",{style:e.normalizeStyle({width:e.unref(D).spacing.xl4,flexShrink:0})},null,4)]),_:1})):e.createCommentVNode("",!0),t.typingUsername?(e.openBlock(),e.createBlock(e.unref(T),{key:1,color:"gray.600",as:"p",fontSize:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{as:"span",bold:"",fontSize:"xs2",color:"gray.700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.typingUsername),1)]),_:1}),e.createTextVNode(" さんが入力しています... ")]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(le)),e.createVNode(e.unref(K),{overflowY:"scroll",ref_key:"chatListRef",ref:o},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{gap:"xs",py:"xs",height:"320px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.date.toDateString()},[e.createVNode(e.unref(z),{justify:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(Me),{label:e.unref(pf)(w.date),variant:"mono",fontSize:"xs2"},null,8,["label"])]),_:2},1024),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.contents,(b,x)=>(e.openBlock(),e.createBlock(e.unref(kt),{key:w.date.toDateString()+x,content:b,maxChatItemWidth:"192px"},null,8,["content"]))),128))],64))),128))]),_:1})]),_:1},512)]),_:1}),e.createElementVNode("button",{class:e.normalizeClass(e.unref(m0)),onClick:C},null,2)]),_:1},8,["bottom","transition"]))}}),h0=e.defineComponent({name:f.ChatForm}),Ct=e.defineComponent({...h0,props:{disabled:{type:Boolean,required:!1},placeholder:{type:String,required:!1},modelValue:{type:String,required:!0},formRows:{type:Number,required:!1}},emits:["update:modelValue","submit"],setup(t,{emit:n}){const r=t,l=e.computed({get:()=>r.modelValue,set:i=>n("update:modelValue",i)}),a=()=>n("submit");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(z),{align:"center",gap:"xs"},{default:e.withCtx(()=>[e.createVNode(e.unref(ht),{modelValue:e.unref(l),"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(l)?l.value=s:null),placeholder:t.placeholder,name:"chat-form__textarea",disabled:t.disabled,rows:t.formRows,expand:""},null,8,["modelValue","placeholder","disabled","rows"]),e.createElementVNode("div",null,[e.createVNode(e.unref(ie),{icon:e.unref(ve),disabled:t.disabled,onClick:a},null,8,["icon","disabled"])])]),_:1}))}}),u0=e.defineComponent({name:f.ChatItem}),kt=e.defineComponent({...u0,props:{content:{type:Object,required:!0},maxChatItemWidth:{type:String,required:!1}},setup(t){const n=t,r=e.computed(()=>{var a;const l=((a=n.content.readers)==null?void 0:a.length)??-1;return l<1?"未読":l===1?"既読":`既読${l}`});return(l,a)=>(e.openBlock(),e.createBlock(e.unref(N),{align:t.content.sender==="me"?"end":"start"},{default:e.withCtx(()=>[t.content.username?(e.openBlock(),e.createBlock(e.unref(T),{key:0,as:"span",fontSize:"xs2",color:"gray.600"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content.username),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(z),{align:"end",reverse:t.content.sender==="me",gap:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{border:"",fit:"",px:"md",py:"xs",borderColor:"gray.300",maxWidth:t.maxChatItemWidth},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(yf)(t.content.message),(i,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.type==="link"?(e.openBlock(),e.createBlock(e.unref(nt),{to:i.content,key:"anchor"+o,target:"_blank",fontSize:"xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.content),1)]),_:2},1032,["to"])):(e.openBlock(),e.createBlock(e.unref(T),{as:"span",fontSize:"xs",color:"gray.700",whiteSpace:"preLine",breakAll:"",key:"text"+o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.content),1)]),_:2},1024))],64))),256))]),_:1},8,["maxWidth"]),e.createVNode(e.unref(N),{align:t.content.sender==="me"?"end":"start"},{default:e.withCtx(()=>{var i;return[e.createVNode(e.unref(ge),null,e.createSlots({default:e.withCtx(()=>[t.content.readers!==void 0?(e.openBlock(),e.createBlock(e.unref(T),{key:0,as:"span",fontSize:"xs2",color:"gray.500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},[(i=t.content.readers)!=null&&i.length?{name:"content",fn:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=t.content.readers)==null?void 0:o.join(`
|
|
13
13
|
`)),1)]}),key:"0"}:void 0]),1024),e.createVNode(e.unref(T),{as:"span",fontSize:"xs2",color:"gray.500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(df)(t.content.time)),1)]),_:1})]}),_:1},8,["align"])]),_:1},8,["reverse"])]),_:1},8,["align"]))}}),y0=()=>{const t=e.ref(""),n=o=>{t.value=o},r=e.ref("gray.900"),l=o=>{r.value=o},a=e.ref("md"),i=o=>{a.value=o};return{labelWidth:e.readonly(t),setLabelWidth:n,labelColor:e.readonly(r),setLabelColor:l,labelFontSize:e.readonly(a),setLabelFontSize:i}},yl=Symbol("FormGroup"),gl=e.defineComponent({__name:"control",props:{htmlFor:{type:String,required:!1},label:{type:String,required:!0},required:{type:Boolean,default:!1},error:{type:String,required:!1}},setup(t){const n=t,r=e.inject(yl),l=e.computed(()=>(r==null?void 0:r.labelWidth.value)||"8rem"),a=e.computed(()=>(r==null?void 0:r.labelColor.value)||"gray.900"),i=e.computed(()=>(r==null?void 0:r.labelFontSize.value)||"md"),o=cd();e.provide(X,o);const{setIsError:s}=o;return e.watch(n,d=>s(!!d.error)),e.onMounted(()=>s(!!n.error)),(d,m)=>(e.openBlock(),e.createBlock(e.unref(N),null,{default:e.withCtx(()=>[e.createVNode(e.unref(z),null,{default:e.withCtx(()=>[e.createVNode(e.unref(z),{width:e.unref(l),align:"center",gap:"xs2"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{as:"label",htmlFor:t.htmlFor,color:e.unref(a),"font-size":e.unref(i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["htmlFor","color","font-size"]),t.required?(e.openBlock(),e.createBlock(e.unref(Me),{key:0,"font-size":"xs2",label:"必須"})):e.createCommentVNode("",!0)]),_:1},8,["width"]),e.createVNode(e.unref(N),null,{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3})]),_:3}),e.createVNode(e.unref(z),{height:e.unref(D).fontSize.sm},{default:e.withCtx(()=>[e.createVNode(e.unref(K),{width:e.unref(l)},null,8,["width"]),e.createVNode(e.unref(T),{"font-size":"xs2","line-height":"sm",color:"red.800"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.error),1)]),_:1})]),_:1},8,["height"])]),_:3}))}}),_l=e.defineComponent({__name:"group",props:{labelWidth:{type:String,required:!1},gap:{type:String,required:!1},labelColor:{type:String,required:!1},labelFontSize:{type:String,required:!1}},setup(t){const n=t,r=y0();e.provide(yl,r);const{setLabelWidth:l,setLabelColor:a,setLabelFontSize:i}=r;return e.watch(n,o=>o.labelWidth&&l(o.labelWidth)),e.onMounted(()=>n.labelWidth&&l(n.labelWidth)),e.watch(n,o=>o.labelColor&&a(o.labelColor)),e.onMounted(()=>n.labelColor&&a(n.labelColor)),e.watch(n,o=>o.labelFontSize&&i(o.labelFontSize)),e.onMounted(()=>n.labelFontSize&&i(n.labelFontSize)),(o,s)=>(e.openBlock(),e.createBlock(e.unref(N),{gap:t.gap},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["gap"]))}}),g0=e.defineComponent({name:f.NotificationPanel}),bt=e.defineComponent({...g0,props:{title:{type:String,required:!0},timestamp:{type:Date,required:!0},variant:{type:String,required:!1,default:"primary"},read:{type:Boolean,required:!0},tableInfo:{type:Array,required:!1}},emits:["click"],setup(t,{emit:n}){const r=t,l=e.computed(()=>ff(r.timestamp)),a=e.computed(()=>mf(r.timestamp)),i=e.ref(!1),o=e.ref(!1),s=()=>{n("click")};return(d,m)=>(e.openBlock(),e.createBlock(e.unref(K),{onMouseover:m[0]||(m[0]=h=>i.value=!0),onMouseleave:m[1]||(m[1]=h=>i.value=!1),onPointerdown:m[2]||(m[2]=h=>o.value=!0),onPointerup:m[3]||(m[3]=h=>o.value=!1),onClick:s,bgColor:i.value?"green.300":"white.800",opacity:o.value?.5:1,height:"fit-content",cursor:"pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(z),{px:"md",py:"xs",justify:"between",align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{gap:"xs",position:"relative",width:"100%"},{default:e.withCtx(()=>[t.variant==="primary"?(e.openBlock(),e.createBlock(e.unref(z),{key:0,justify:"between",align:"start"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{gap:"xs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableInfo,(h,_)=>(e.openBlock(),e.createBlock(e.unref(z),{gap:"xl",key:_},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{bold:!t.read,fontSize:"xs",color:"gray.700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.title),1)]),_:2},1032,["bold"]),e.createVNode(e.unref(T),{bold:!t.read,fontSize:"xs",color:"gray.700"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.content),1)]),_:2},1032,["bold"])]),_:2},1024))),128))]),_:1}),e.createVNode(e.unref(T),{color:"gray.600",fontSize:"xs2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(T),{color:"gray.700",fontSize:"xs",maxLines:2,bold:!t.read},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["bold"]),t.variant==="secondary"?(e.openBlock(),e.createBlock(e.unref(T),{key:1,color:"gray.600",fontSize:"xs2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.unref(V),{icon:e.unref(Q),color:i.value||o.value?"green.800":"gray.500"},null,8,["icon","color"])]),_:1})]),_:1},8,["bgColor","opacity"]))}}),_0=e.defineComponent({name:f.NotificationList}),xt=e.defineComponent({..._0,props:{variant:{type:String,required:!1},notifications:{type:Array,required:!0},height:{type:String,required:!1},emptyMessage:{type:String,required:!1}},emits:["click"],setup(t,{emit:n}){const r=l=>n("click",l);return(l,a)=>(e.openBlock(),e.createBlock(e.unref(K),{height:t.height,overflowY:"scroll"},{default:e.withCtx(()=>[t.notifications.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.notifications,(i,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i.id},[e.createVNode(e.unref(bt),{variant:t.variant,read:i.read,title:i.title,timestamp:i.timestamp,tableInfo:i.tableInfo,onClick:s=>r(i.id)},null,8,["variant","read","title","timestamp","tableInfo","onClick"]),o!==t.notifications.length-1?(e.openBlock(),e.createBlock(e.unref(le),{key:"divider"+o})):e.createCommentVNode("",!0)],64))),128)):(e.openBlock(),e.createBlock(e.unref(z),{key:1,align:"center",justify:"center",height:"100%"},{default:e.withCtx(()=>[e.createVNode(e.unref(T),{color:"gray.600",fontSize:"sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.emptyMessage),1)]),_:1})]),_:1}))]),_:1},8,["height"]))}}),S0=e.defineComponent({name:f.Notification}),Sl=e.defineComponent({...S0,props:{tabs:{type:Array,required:!0},notifications:{type:Array,required:!0},height:{type:String,required:!1},emptyMessage:{type:String,required:!1}},emits:["click"],setup(t,{emit:n}){const r=t,l=s=>n("click",s),a=e.ref(r.tabs[0].name),i=e.computed(()=>r.notifications.filter(s=>s.tabName===a.value)),o=e.computed(()=>{var s;return(s=r.tabs.find(d=>d.name===a.value))==null?void 0:s.variant});return(s,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(pt),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=m=>a.value=m),items:t.tabs},null,8,["modelValue","items"]),e.createVNode(e.unref(K),{bgColor:"white.800",roundB:"xs2",overflow:"hidden"},{default:e.withCtx(()=>[e.createVNode(e.unref(xt),{notifications:e.unref(i),variant:e.unref(o),height:t.height,emptyMessage:t.emptyMessage,onClick:l},null,8,["notifications","variant","height","emptyMessage"])]),_:1})]))}}),ou="";var q0={primary:"_1y5ec1i2 _1y5ec1i1",secondary:"_1y5ec1i3 _1y5ec1i1",tertiary:"_1y5ec1i4 _1y5ec1i1"},C0="_1y5ec1i9",k0="_1y5ec1ia",b0="_1y5ec1i0",x0="_1y5ec1i6",w0="_1y5ec1i7",B0="_1y5ec1i8";const z0=e.defineComponent({name:f.ScheduleCard}),wt=e.defineComponent({...z0,props:{id:{type:String,required:!0},variant:{type:String,default:"primary",required:!1},text:{type:String,required:!0},gridRow:{type:String,required:!0},gridColumn:{type:String,required:!0},show:{type:Boolean,required:!1,default:!0}},emits:["scheduleClick"],setup(t,{emit:n}){const r=t,l=e.computed(()=>{const[a,i]=r.gridRow.split("/").map(o=>o.trim()).map(Number);return i-a>2?r.text:""});return(a,i)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([q0[t.variant]]),style:e.normalizeStyle({gridRow:t.gridRow,gridColumn:t.gridColumn}),onClick:i[0]||(i[0]=o=>n("scheduleClick",t.id))},e.toDisplayString(e.unref(l)),7)),[[e.vShow,t.show]])}}),Bt=0,zt=23,$0=8,E0=22,qe=4,V0=(t,n)=>`startHourはendHour以下の値を指定してください。
|
|
14
14
|
startHour: ${t}, endHour: ${n}`,ql=(t,n)=>`${t}Hourは${Bt}以上${zt}以下の値を指定してください。
|
|
15
15
|
${t}Hour: ${n}`,I0=(t,n)=>`Scheduleは${t}時以降から始まる必要があります
|