PageSourceSearch

https://little-dvc.com/assets/index-BTZpIyYW.js

js little-dvc.com collected 2026-10-05 11:29:27 UTC 34,789 bytes, 9 lines download raw bytes

1import{d as q,r as c,N as Se,c as d,o as a,a as e,g as x,m as b,F as z,x as J,e as $,R as Le,S as Me,f as C,h as _,t as j,_ as ie,b as fe,M as Be,H as F,J as Y,w as E,B as xe,C as Q,G as Ve,j as Fe,U as je,k as Ne,s as Ue,K as Ze,L as Pe,T as Re,E as de,A as ze}from"./index-BuPjKr-4.js";import{_ as Oe}from"./index.vue_vue_type_script_setup_true_lang-Ku2-TfIn.js";import{_ as Ge}from"./index.vue_vue_type_script_setup_true_lang-C-JCJJrI.js";import{I as He}from"./image-slider-DvdmpJx_.js";import{_ as Je,A as qe}from"./art-comment-p-lBeJ0d.js";import{_ as ge}from"./index.vue_vue_type_script_setup_true_lang-D7wncfON.js";import{u as we}from"./use-click-outside-CbGwOMEW.js";import{h as Ke,b as We,u as Ye,e as Qe,d as Xe,r as et}from"./arts-Byxvnno3.js";import{_ as tt}from"./invitation.vue_vue_type_script_setup_true_lang-DpLqnS5P.js";import{C as lt}from"./index-CG-hwf3A.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang-OQg5YfSo.js";import{G as st,_ as nt}from"./gallery.vue_vue_type_script_setup_true_lang-DvRovIG1.js";import{i as at}from"./image-modal-NDwnXoVI.js";import{b as ot}from"./families-CnXUMEIK.js";import{l as it}from"./contests-zHpaeBzs.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang-kw1-2xR6.js";import{I as ut}from"./image-Dme2eRFj.js";import{A as ct}from"./index-B8u-VgkE.js";import{t as dt}from"./truncate-text-D4flJ4Rt.js";import{_ as mt}from"./bar-complete-mdD5jE9z.js";import{a as pt,S as vt}from"./create-element-if-not-defined-B_R0RAdo.js";import{P as ft}from"./pagination-_i7se3SW.js";import{C as xt}from"./contest-thumb-B4ImiSGa.js";import{_ as gt}from"./close-without-background.vue_vue_type_script_setup_true_lang-Bddz8uY4.js";import{C as wt}from"./index-vQGP3Lmk.js";import{_ as ht}from"./index.vue_vue_type_script_setup_true_lang-CS2AQ3q-.js";import{g as Ct}from"./categories-DDDz_xmX.js";import{_ as _t}from"./entry-form.vue_vue_type_script_setup_true_lang-B7K2ARlt.js";import{P as yt}from"./index-DuzVNcxM.js";import{d as bt}from"./differenceInYears-BqhU9yen.js";import"./index-CI8lwzdF.js";import"./index.vue_vue_type_script_setup_true_lang-BzwNYFry.js";import"./is-same-domain-BUaRjeN9.js";import"./icon-gh-4BgTjrvQ.js";import"./format-CBg0M6Mo.js";import"./protectedTokens-Dh4lzD5L.js";import"./toDate-DfcsLdrM.js";import"./normalizeDates-BWVzq3RB.js";import"./anonymous.vue_vue_type_script_setup_true_lang-Dd8tXLPN.js";import"./copy-to-clipboard-Bo87bOjv.js";/* empty css                                                              */import"./index.vue_vue_type_script_setup_true_lang-D_GTWXqt.js";import"./index.vue_vue_type_script_setup_true_lang-DveKDvw0.js";import"./index-BGmlwpCy.js";import"./payment-D_kl55Lk.js";import"./account-oYH05LQX.js";const kt="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.5'%20cy='16.5'%20r='2.5'%20fill='%2326211E'%20/%3e%3ccircle%20cx='16.5'%20cy='16.5'%20r='2.5'%20fill='%2326211E'%20/%3e%3ccircle%20cx='25.5'%20cy='16.5'%20r='2.5'%20fill='%2326211E'%20/%3e%3c/svg%3e",Dt={class:"flex items-center justify-end transform translate-x-[0]"},It=["src"],$t={class:"w-[max-content] rounded-[20px] shadow-md bg-white"},At=q({name:"FeaturesActionMenu",__name:"action-menu",setup(N){const p=c(!1),u=c(null),m=c(null);we([u,m],()=>{p.value=!1});const k=Se(),S=k.default?k.default():[];return(g,t)=>(a(),d("div",Dt,[e("button",{class:"mr-[-4px]",onClick:t[0]||(t[0]=A=>p.value=!p.value),ref_key:"dropdownRef",ref:u},[e("img",{src:b(kt)},null,8,It)],512),p.value?(a(),d("div",{key:0,ref_key:"menuRef",ref:m,class:"fixed top-[16px] right-[16px]"},[e("div",$t,[(a(!0),d(z,null,J(b(S),(A,h)=>(a(),$(Le(A),Me({key:h,ref_for:!0},{...A.props,class:"block p-[1em] first:pb-[0.5em] last:pt-[0.5em]"}),null,16))),128))])],512)):x("",!0)]))}}),pe="data:image/svg+xml,%3csvg%20width='20'%20height='22'%20viewBox='0%200%2020%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2011.4881C14.647%2011.4881%2014.3203%2011.3016%2014.1401%2010.9988C13.0981%209.24204%2011.791%207.68534%2010.3603%206.49494C10.1318%206.30544%209.9999%206.
102324%209.9999%205.72634C9.9999%205.42944%2010.1322%205.14724%2010.3607%204.95684C11.7899%203.76934%2013.0965%202.21274%2014.14%200.454838C14.5004%20-0.150662%2015.4994%20-0.152562%2015.8597%200.454838C16.9036%202.21264%2018.2103%203.76934%2019.639%204.95774C19.8675%205.14724%2019.9998%205.42944%2019.9998%205.72634C19.9998%206.02324%2019.868%206.30544%2019.6394%206.49494C18.2092%207.68534%2016.9021%209.24204%2015.8596%2010.9988C15.6794%2011.3015%2015.3531%2011.4881%2015%2011.4881ZM12.502%205.72644C13.4043%206.58684%2014.2476%207.57314%2015%208.64634C15.7529%207.57314%2016.5962%206.58674%2017.4985%205.72644C16.5966%204.86704%2015.7534%203.88074%2015%202.80654C14.2466%203.88074%2013.4038%204.86704%2012.502%205.72644Z'%20fill='white'%20/%3e%3cpath%20d='M6%2021.869C5.647%2021.869%205.3203%2021.6835%205.1401%2021.3797C3.8213%2019.159%202.1684%2017.1902%200.3608%2015.6863C0.1323%2015.4968%200%2015.2146%200%2014.9177C0%2014.6208%200.1323%2014.3386%200.3608%2014.1482C2.1684%2012.6462%203.8212%2010.6775%205.1401%208.45584C5.5005%207.85034%206.4995%207.85034%206.8598%208.45584C8.1786%2010.6775%209.8315%2012.6462%2011.6391%2014.1482C11.8676%2014.3386%2011.9999%2014.6209%2011.9999%2014.9177C11.9999%2015.2145%2011.8676%2015.4968%2011.6391%2015.6863C9.8315%2017.1902%208.1787%2019.159%206.8598%2021.3797C6.6796%2021.6834%206.3531%2021.869%206%2021.869ZM2.5127%2014.9178C3.7832%2016.1004%204.9644%2017.4862%206%2019.0076C7.0356%2017.4861%208.2168%2016.1004%209.4873%2014.9178C8.2168%2013.7362%207.0356%2012.3504%206%2010.8289C4.9644%2012.3504%203.7832%2013.7361%202.5127%2014.9178Z'%20fill='white'%20/%3e%3c/svg%3e",Et="data:image/svg+xml,%3csvg%20width='21'%20height='22'%20viewBox='0%200%2021%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3161%200C4.61867%200%200%204.61867%200%2010.3161C0%2013.4977%201.4411%2016.3418%203.70513%2018.2341L2.96124%2021.3379C2.84767%2021.8118%203.3747%2022.1787%203.77972%2021.9077L6.67636%2019.9697C7.80847%2020.3968%209.03457%2020.6323%2010.3161%2020.6323C16.0136%2020.6323%2020.6323%2016.0136%2020.6323%2010.3161C20.6323%204.61867%2016.0136%200%2010.3161%200ZM6.06454%207.70923C6.06454%207.08371%206.57162%206.5766%207.19717%206.5766C7.82272%206.5766%208.3298%207.08368%208.3298%207.70923C8.3298%208.33478%207.82269%208.84185%207.19717%208.84185C6.57165%208.84185%206.06454%208.33478%206.06454%207.70923ZM13.4438%2011.8846C13.011%2013.1477%2011.8134%2014.0557%2010.4036%2014.0557C8.99379%2014.0557%207.7961%2013.1477%207.36337%2011.8846C7.1879%2011.3725%207.58936%2010.8428%208.13074%2010.8428H12.6764C13.2178%2010.8428%2013.6193%2011.3725%2013.4438%2011.8846ZM13.61%208.84185C12.9844%208.84185%2012.4773%208.33478%2012.4773%207.70923C12.4773%207.08368%2012.9844%206.5766%2013.61%206.5766C14.2355%206.5766%2014.7426%207.08368%2014.7426%207.70923C14.7426%208.33478%2014.2355%208.84185%2013.61%208.84185Z'%20fill='white'%20/%3e%3c/svg%3e",Tt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.41883%203.05022C0.833046%202.46444%200.833046%201.51469%201.41883%200.928903C2.00462%200.343116%202.95437%200.343117%203.54015%200.928903L15.561%2012.9497C16.1468%2013.5355%2016.1468%2014.4853%2015.561%2015.071C14.9752%2015.6568%2014.0254%2015.6568%2013.4396%2015.071L1.41883%203.05022Z'%20fill='%2326211E'%20/%3e%3cpath%20d='M3.54015%2015.071C2.95437%2015.6568%202.00462%2015.6568%201.41883%2015.071C0.833046%2014.4853%200.833046%2013.5355%201.41883%2012.9497L13.4396%200.928903C14.0254%200.343116%2014.9752%200.343116%2015.561%200.928903C16.1468%201.51469%2016.1468%202.46444%2015.561%203.05022L3.54015%2015.071Z'%20fill='%2326211E'%20/%3e%3c/svg%3e",St={class:"art-information text-neutral-gray"},Lt={class:"flex items-center gap-[5px] font-bold text-black"},Mt=q({name:"FeaturesArtInfo",__name:"art-info",props:{child:{},postedBy:{},postedAt:{},createdDate:{}},setup(N){const p=N;return(u,m)=>(a(),d("dl",St,[m[2]||(m[2]=e("dt",null,"作者:",-1)),e("dd",Lt,[C(ge,{src:p.child.iconThumbnailUrl||p.child.iconUrl||"",class:"min-w-[20px] min-h-[20px] w-[20px] h-[20px]"},null,8,["src"]),_(" "+j(p.child.name),1)]),m[3]||(m[3]=e("dt",null,"投稿者:",-1)),e("dd",null,j(p.postedBy||"unknown"),1),e("div",null,[p.postedAt?(a(),d(z,{key:0},[m[0]||(m[0]=e("dt",null,"投稿日:",-1)),e("dd",null,j(p.postedAt.toLocaleDateString("ja-JP")),1)],64)):x("",!0),p.createdDate?(a(),d(z,{key:1},[m[1]||(m[1]=e("dt",null,"作成日:",-1)),e("dd",null,j(p.createdDate.toLocaleDateString("ja-JP")),1)],64)):x("",!0)])]))}}),Bt=ie(Mt,[["__scopeId","data-v-8a9d2b82"]]),Vt="/assets/ai-DopJuMWD.svg",Ft="/assets/character-Ch2GkCKo.png",jt={class:"mt-[15px] overflow-hidden"},Nt={class:"base-slider"},Ut={class:"w-full bg-white p-[16px] rounded-[20px]"},Zt=["src"],Pt={key:0,class:"absolute -top-[30%] -left-[35%] w-[110%]"},Rt=["src"],zt=["onClick","disabled"],Ot=["onClick"],Gt=q({name:"ViewsArtDetailImageSlider",__name:"contest-slider",props:{class:{},gap:{},user:{},contests:{},art:{},isLink:{type:Boolean}},emits:["select"],setup(N,{emit:p}){const u=N,m=p,k=fe(),S={clickable:!0,renderBullet:function(f,n){return u.contests.length>1?w.value(u.contests[f])?`<span class="${n}">
2          <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3            <path d="M10.868 4.82241C11.2243 3.72586 12.7757 3.72586 13.132 4.82241L14.2046 8.12353C14.3639 8.61392 14.8209 8.94595 15.3365 8.94595H18.8075C19.9605 8.94595 20.4399 10.4213 19.5071 11.0991L16.699 13.1393C16.2818 13.4423 16.1073 13.9796 16.2666 14.4699L17.3392 17.7711C17.6955 18.8676 16.4405 19.7795 15.5077 19.1018L12.6996 17.0616C12.2824 16.7585 11.7176 16.7585 11.3004 17.0616L8.49231 19.1018C7.55953 19.7795 6.30448 18.8676 6.66077 17.7711L7.73337 14.4699C7.89271 13.9796 7.71815 13.4423 7.301 13.1393L4.4929 11.0991C3.56012 10.4213 4.03951 8.94595 5.19249 8.94595H8.66349C9.17912 8.94595 9.63611 8.61392 9.79545 8.12353L10.868 4.82241Z"/>
4          </svg>
5        </span>`:`<span class="${n}">
6        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
7          <circle cx="12" cy="12" r="6"/>
8        </svg>
9      </span>`:""}},g=[ft,st],t=Be({padding:`0 ${u.gap||0}px`}),A=c(null),h=f=>{A.value=f,A&&T(f)&&m("select",A.value)},w=F(()=>f=>{var n,s;return(n=u.user)!=null&&n.family&&(s=u.art)!=null&&s.child?f.enteredChildrenIds.includes(u.art.child.id??0):!0}),v=f=>{k.push(`/contest/${f}/entries`)},r=f=>{switch(f.name){case"『Little Da Vinci アートフェスティバル in 石垣島』":return"../../../img/concours/ishikaki.png";case"『Little Da Vinci アートフェスティバル in 石垣島 Vol.2』":return"../../../img/concours/ishigaki-vol2.png";case"『コートジボワール × 日本 子どもアートフェスティバル 2026』":return"../../../img/concours/cotedivoire2026-half.png";case"『Little Da Vinci アートフェスティバル in 札幌』":return"../../../img/concours/sapporo.png";case"「大好きな食べ物」お絵かきコンクール":return"../../../img/concours/fudoribon.png";case"「今年食べたいクリスマスケーキ」お絵かきコンクール":return"../../../img/concours/mirai-chiketto.png";default:return""}},L=f=>
9{const n=new Date(new Date().toLocaleString("en-US",{timeZone:"Asia/Tokyo",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));let s,o;switch(f.name){case"『Little Da Vinci アートフェスティバル in 石垣島』":return s=new Date("2025-07-01T00:00:00+09:00"),o=new Date("2025-08-31T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する";case"『Little Da Vinci アートフェスティバル in 石垣島 Vol.2』":return s=new Date("2026-07-24T00:00:00+09:00"),o=new Date("2026-09-30T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する";case"『コートジボワール × 日本 子どもアートフェスティバル 2026』":return s=new Date("2026-07-24T00:00:00+09:00"),o=new Date("2026-10-31T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する";case"『Little Da Vinci アートフェスティバル in 札幌』":return s=new Date("2026-04-01T00:00:00+09:00"),o=new Date("2026-05-10T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する";case"「大好きな食べ物」お絵かきコンクール":return s=new Date("2025-09-01T00:00:00+09:00"),o=new Date("2025-10-31T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する";case"「今年食べたいクリスマスケーキ」お絵かきコンクール":return s=new Date("2025-11-01T00:00:00+09:00"),o=new Date("2025-12-10T23:59:59+09:00"),n<s?"受付前":n>o?"応募終了":"応募する"}return"応募する"},T=f=>{const n=new Date(new Date().toLocaleString("en-US",{timeZone:"Asia/Tokyo",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));let s,o;switch(f.name){case"『Little Da Vinci アートフェスティバル in 石垣島』":return s=new Date("2025-07-01T00:00:00+09:00"),o=new Date("2025-08-31T23:59:59+09:00"),n>=s&&n<=o;case"『Little Da Vinci アートフェスティバル in 石垣島 Vol.2』":return s=new Date("2026-07-24T00:00:00+09:00"),o=new Date("2026-09-30T23:59:59+09:00"),n>=s&&n<=o;case"『コートジボワール × 日本 子どもアートフェスティバル 2026』":return s=new Date("2026-07-24T00:00:00+09:00"),o=new Date("2026-10-31T23:59:59+09:00"),n>=s&&n<=o;case"『Little Da Vinci アートフェスティバル in 札幌』":return s=new Date("2026-04-01T00:00:00+09:00"),o=new Date("2026-05-10T23:59:59+09:00"),n>=s&&n<=o;case"「大好きな食べ物」お絵かきコンクール":return s=new Date("2025-09-01T00:00:00+09:00"),o=new Date("2025-10-31T23:59:59+09:00"),n>=s&&n<=o;case"「今年食べたいクリスマスケーキ」お絵かきコンクール":return s=new Date("2025-11-01T00:00:00+09:00"),o=new Date("2025-12-10T23:59:59+09:00"),n>=s&&n<=o}return!0},M=f=>{if(f===null)return!1;const n=new Date(new Date().toLocaleString("en-US",{timeZone:"Asia/Tokyo",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));let s;switch(f.name){case"『Little Da Vinci アートフェスティバル in 石垣島』":return s=new Date("2025-08-31T23:59:59+09:00"),n>s;case"『Little Da Vinci アートフェスティバル in 石垣島 Vol.2』":return s=new Date("2026-09-30T23:59:59+09:00"),n>s;case"『コートジボワール × 日本 子どもアートフェスティバル 2026』":return s=new Date("2026-10-31T23:59:59+09:00"),n>s;case"『Little Da Vinci アートフェスティバル in 札幌』":return s=new Date("2026-05-10T23:59:59+09:00"),n>s;case"「大好きな食べ物」お絵かきコンクール":return s=new Date("2025-10-31T23:59:59+09:00"),n>s;case"「今年食べたいクリスマスケーキ」お絵かきコンクール":return s=new Date("2025-12-10T23:59:59+09:00"),n>s}return!1};return(f,n)=>{const s=Y("router-link");return a(),d("div",jt,[C(b(vt),{class:Q(["mt-0",[u.class]]),pagination:S,modules:g,"slides-per-view":2,grid:{rows:1},breakpoints:{0:{slidesPerView:2}}},{default:E(()=>[(a(!0),d(z,null,J(u.contests,(o,G)=>(a(),$(b(pt),{style:xe(t),class:"flex justify-center items-center"},{default:E(()=>{var K,U;return[e("div",Nt,[e("div",Ut,[u.isLink?(a(),$(s,{key:0,to:`/contest/${o.id}/show`,class:"block relative overflow-hidden rounded-t-[8px]"},{default:E(()=>[e("img",{src:r(o),class:"img-style"},null,8,Zt),M(o)&&o.id!==4?(a(),d("div",Pt,n[0]||(n[0]=[e("img",{src:mt,alt:"completed"},null,-1)]))):x("",!0)]),_:2},1032,["to"])):(a(),d("img",{key:1,src:r(o),class:"img-style"},null,8,Rt)),u.user&&u.art&&"familyId"in u.art&&((U=(K=u.user)==null?void 0:K.family)==null?void 0:U.id)===u.art.familyId?(a(),d("button",{key:2,onClick:Z=>h(o),disabled:w.value(o)||"isEntered"in u.art&&u.art.isEntered||L(o)==="応募終了",class:Q(["w-full flex justify-center items-center rounded-full min-h-[40px] mt-[12px] text-[15px] swiper-no-swiping",w.value(o)||"isEntered"in u.art&&u.art.isEntered||L(o)==="応募終了"?"bg-light-glay text-[#A2A0A0]":"bg-orange-peach text-white"])},j(w.value(o)?"応募済み":L(o)),11,zt)):x("",!0),u.user&&w.value(o)?(a(),d("button",{key:3,onClick:Z=>v(o.id),class:"w-full flex justify-center items-center rounded-full min-h-[40px] mt-[8px] bg-orange-peach text-white text-[15px] swiper-no-swiping"},"応募済み作品",8,Ot)):x("",!0)])])]}),_:2}
9,1032,["style"]))),256))]),_:1},8,["class"])])}}}),Ht=ie(Gt,[["__scopeId","data-v-7fbd4e5e"]]),Jt={class:"relative w-full"},qt=["onClick"],Kt=q({name:"ViewsAccountCategorySelect",__name:"category-select",props:{class:{},current:{},contest:{},onChange:{type:Function}},setup(N){const p=N,u=F(()=>Ct(p.contest??null).map(w=>({label:w.label,value:String(w.value)}))),m=c(!1),k=c(null),S=c(null),g=c(null);we([k,S],()=>{m.value=!1});const t=async()=>{m.value=!0,S.value&&g.value&&(S.value.scrollTop=g.value.offsetTop-S.value.offsetHeight/2)},A=w=>{p.onChange(w),m.value=!1},h=F(()=>{var w;return((w=u.value.find(v=>v.value===p.current))==null?void 0:w.label)??""});return(w,v)=>(a(),d("div",Jt,[e("button",{ref_key:"dropdown",ref:k,class:Q(["w-full px-[15px] py-[9px] flex items-center justify-between rounded-full text-[14px] text-[#FB9773] border-[#FB9773]",[p.class,h.value===""?" bg-[#FFF0F0]":" bg-white"]]),onClick:t},[_(j(h.value||"選択してください")+" ",1),v[0]||(v[0]=e("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.736 1.09787C11.384 0.777274 10.8133 0.777274 10.4614 1.09787L5.99999 5.16128L1.53866 1.09789C1.18667 0.777301 0.615981 0.777301 0.263992 1.09789C-0.0879976 1.41848 -0.087997 1.93827 0.263992 2.25886L5.36265 6.90272C5.67066 7.18325 6.14611 7.21831 6.49597 7.00789C6.51941 6.99379 6.54229 6.97859 6.56452 6.96229C6.58968 6.94384 6.614 6.92397 6.63736 6.9027L11.736 2.25883C12.088 1.93824 12.088 1.41846 11.736 1.09787Z",fill:"#FB9773"})],-1))],2),m.value?(a(),d("ul",{key:0,ref_key:"menu",ref:S,style:{"box-shadow":"0px 4px 6px rgba(0, 0, 0, 0.1)"},class:"absolute z-10 bottom-[50px] w-full bg-white rounded-[20px] shadow-[0px 2px 4px rgba(0, 0, 0, 0.1)] overflow-y-scroll p-[10
9px] h-fit"},[(a(!0),d(z,null,J(u.value,r=>(a(),d("li",{key:r.value,class:"rounded-full p-[10px] hover:bg-light-glay",ref_for:!0,ref:L=>{p.current===r.value&&(g.value=L)},onClick:L=>A(r)},j(r.label),9,qt))),128))],512)):x("",!0)]))}}),Wt={class:"contest-modal-overlay fixed bg-black bg-opacity-80 top-0 left-0 w-full md:!left-[50%] md:-translate-x-1/2 md:!w-[420px] h-[100dvh] z-[100] overflow-auto"},Yt={class:"bg-white rounded-t-[20px] mt-[30dvh]"},Qt={class:"px-[20px] pt-[30px]"},Xt={class:"flex items-center justify-between"},el={class:"p-[20px] pb-[30px]"},tl={key:0,class:"mt-[15px] font-bold text-[22px]"},ll={key:1,class:"mt-[15px] font-bold text-[22px]"},sl={class:"px-[20px] py-[30px]"},nl={class:"pb-[20px]"},al=["disabled"],ol=q({__name:"contest-modal",props:{contest:{}},emits:["close","entry"],setup(N,{emit:p}){const u=N,m=p,k=c(null),S=v=>{k.value=v},g=c(!1),t=()=>{g.value=!g.value},A=F(()=>g.value&&k.value&&k.value.value!==""),h=()=>{k.value=null,g.value=!1,m("close")},w=()=>{m("entry",k.value)};return(v,r)=>{var T,M,f,n;const L=Y("router-link");return a(),d("div",Wt,[e("div",Yt,[e("div",Qt,[e("div",Xt,[r[0]||(r[0]=e("p",{class:"text-[18px] font-bold"},"コンクール応募について",-1)),e("button",{onClick:h},[C(gt,{class:"w-[15.02px] h-auto"})])]),r[1]||(r[1]=e("p",{class:"mt-[20px] mb-[20px]"}," コンクール概要、規約について確認の上応募に進んでください。 ",-1))]),r[7]||(r[7]=e("hr",null,null,-1)),e("div",el,[C(ht,{contest:v.contest},null,8,["contest"]),((T=v.contest)==null?void 0:T.name)==="「大好きな食べ物」お絵かきコンクール"?(a(),d("p",tl," 「大好きな食べ物」お絵かきコンクール ")):((M=v.contest)==null?void 0:M.name)==="「今年食べたいクリスマスケーキ」お絵かきコンクール"?(a(),d("p",ll," 「今年食べたいクリスマスケーキ」お絵かきコンクール ")):x("",!0),r[3]||(r[3]=e("p",{class:"mt-[15px]"},"応募について",-1)),r[4]||(r[4]=e("div",{class:"mt-[10px] bg-[#F6F6F6] rounded-[20px] p-[15px]"},[e("p",{class:"font-bold"},"ご注意"),e("ul",{class:"list-disc ml-[10px] mt-[10px] pl-[10px] text-[14px]"},[e("li",null,"応募には応募情報の登録が必要です。"),e("li",null,"作者が複数の場合は同時に応募可能です。"),e("li",null,"応募作品は、2か月に1回、毎回応募できます。"),e("li",null,"応募後の作品の変更はできません。"),e("li",null,"応募作品は一般に公開されます。")])],-1)),C(wt,{class:"w-full mt-[15px]",checked:g.value,onClick:t},{default:E(()=>r[2]||(r[2]=[e("a",{class:"text-[#4199F6] underline",href:"/terms.html",target:"_blank",rel:"noopener"},"利用規約",-1),_("・ご注意事項に同意の上ご応募ください。 ")])),_:1},8,["checked"])]),r[8]||(r[8]=e("hr",null,null,-1)),e("div",sl,[e("div",nl,[r[5]||(r[5]=e("p",{class:"text-[18px] font-bold"},"応募する部門を選択してください",-1)),C(Kt,{current:((f=k.value)==null?void 0:f.value)||"",contest:v.contest,onChange:s=>S(s),class:"mt-[10px] border-[2px]"},null,8,["current","contest","onChange"])]),e("button",{disabled:!A.value,onClick:w,class:Q(["w-full flex justify-center items-center py-3 rounded-full min-h-[48px] text-[#A2A0A0] text-[22px]",A.value?"bg-orange-peach text-white":"bg-[#E4E4E4]"])}," 応募する ",10,al),C(L,{to:"/contest/"+((n=u.contest)==null?void 0:n.id)+"/show",class:"block mt-[20px] text-center text-link-blue underline text-[14px]"},{default:E(()=>r[6]||(r[6]=[_("コンクールの内容を確認する")])),_:1},8,["to"])])])])}}}),il={class:"flex items-center justify-between mx-[20px] relative z-10"},rl={class:"flex items-center gap-[5px]"},ul={class:"flex items-center avatar-group"},cl={class:"w-[28px] h-[28px] overflow-hidden"},dl={class:"mx-[20px] mt-[15px]"},ml={class:"text-lg font-bold mb-[0.5rem]"},pl={class:"whitespace-pre-wrap break-words"},vl={key:0,class:"mt-[20px] mx-[20px] relative"},fl=["src"],xl={key:0,class:"mt-[10px] text-sm"},gl={key:1},wl={class:"flex items-start gap-[15px] m-[20px]"},hl=["src"],Cl={class:"relative flex-1 bg-light-glay rounded-[20px] p-[20px]"},_l={class:"text-center"},yl={class:"bg-[#EDE0D0] pt-[30px] pb-[20px]"},bl={class:"flex items-center gap-[5px] px-[20px]"},kl={key:3,class:"m-[20px]"},Dl=["src"],Il={key:4},$l={class:"bg-white w-[80%] rounded-[30px] px-[20px] py-[40px]"},Al=["onClick"],El=["src"],Tl=["src"],Sl={class:"input-comment roun
9ded-t-[20px] z-[11]"},Ll={class:"flex items-center justify-between"},Ml=["src"],Bl={class:"relative flex m-[10px] mt-0 rounded-[10px] bg-light-glay"},Vl={class:"flex flex-col justify-end absolute right-0"},Fl=["disabled"],ve="__PROCESSING__",jl=q({name:"ViewsArtDetail",__name:"index",setup(N){const p=F(()=>history.state.showAiMentor),u=c(!1),m=i=>{u.value=i},k=fe(),S=Fe(),g=Ve(),t=c(null),A=Number(S.params.artId),h=c(null),w=c(!1),v=c(""),r=c(!1),L=c(!1),T=c(-1),M=c(""),f=c(""),n=c([]),s=c(void 0),o=c("1"),G=c(!1),{isLoggedIn:K}=je(),U=c(!1),Z=c(!1),he=F(()=>{if(t.value)return{...t.value,userId:t.value.postedId,likeCount:t.value.likes.length,commentCount:t.value.comments.length,isLiked:h.value?t.value.likes.some(i=>i.userId===h.value.id):!1}}),Ce=async()=>{if(!h.value||!t.value)return;const{url:i}=await ot(t.value.familyId);f.value=i},_e=()=>{f.value=""},ne=c(()=>{}),H=c(),ye=()=>{w.value=!0,ne.value=async()=>{t.value&&(await Qe(t.value.id),k.push("/"),g.addNotification("削除しました"))}},be=i=>{w.value=!0,ne.value=async()=>{t.value&&(await Xe(t.value.id,i),t.value.comments=t.value.comments.filter(l=>l.id!==i),g.addNotification("削除しました"),w.value=!1)}},re=async(i=!1)=>{var l,y,O,ee,W;if(!(!((l=t.value)!=null&&l.id)||T.value<=0)){if(i){if(U.value)return;U.value=!0}else{Z.value=!1;const D=t.value.images.find(B=>B.id===T.value);D&&(D.aiEvaluation=ve),L.value=!1,r.value=!0,setTimeout(()=>{r.value=!1},2e3)}try{M.value="AIメンターの診断中!しばらくしたらまた来てね。";const D=await et(t.value.id,T.value,i);if(D.status==="success")D.data&&(M.value=((y=D.data)==null?void 0:y.aiEvaluation)??"",g.addNotification("AI評価が完了しました。通知をご確認ください。")),Z.value=!1;else if(D.status==="timeout")if(!i)g.addNotification("AIの評価の処理中にエラーが発生しました。しばらくしてから通知をご確認ください。"),await re(!0);else{U.value=!1;const B=(O=t.value)==null?void 0:O.images.find(P=>P.id===T.value);B&&(B.aiEvaluation=null),Z.value=!0,g.addNotification("AI評価に時間がかかっています。しばらくしてから再度お試しください。"),M.value=""}else if(D.status==="openai_error"){U.value=!1;const B=(ee=t.value)==null?void 0:ee.images.find(P=>P.id===T.value);B&&(B.aiEvaluation=null),Z.value=!0,g.addNotification(D.message||"AI評価の処理中にエラーが発生しました。"),M.value=""}}catch(D){U.value=!1;const B=(W=t.value)==null?void 0:W.images.find(le=>le.id===T.value);B&&(B.aiEvaluation=null),r.value=!1,M.value="";const P=D instanceof ze,te=P?D.code:void 0;P&&te===409?(g.addNotification("既に評価済みです。"),Z.value=!1):(Z.value=!0,g.addNotification("エラーが発生しました。再度お試しください。"),console.error("AI evaluation request error:",D))}}};Ne(async()=>{var l,y;K.value&&(h.value=await Ue()),t.value=await Ke(A);const i=((l=t.value.images.find(O=>!!O.aiEvaluation))==null?void 0:l.aiEvaluation)||"";M.value=ce.value?"AIメンターの診断中!しばらくしたらまた来てね。":i,T.value=(y=t.value.images[0])==null?void 0:y.id,n.value=await it(),n.value.forEach(O=>{O.imageUrl=xt}),U.value=!1});const ke=F(()=>{var i;if(ct.isEnabled())if((i=t.value)!=null&&i.child){if(!t.value.createdDate)return"";const l=new Date(t.value.createdDate);return`(${bt(new Date(l),new Date(t.value.child.birthday))}歳)`}else return"";else return""}),X=c(!1),De=i=>{s.value=i,X.value=!0},Ie=()=>{s.value=void 0,X.value=!1},ae=c(!1),$e=i=>{X.value=!1,ae.value=!0,i&&(o.value=i.value)},ue=F(()=>{var i,l,y;return((i=t.value)==null?void 0:i.familyId)===((y=(l=h.value)==null?void 0:l.family)==null?void 0:y.id)}),Ae=F(()=>{var i;return(i=t.value)==null?void 0:i.images.some(l=>{const y=l.aiEvaluation;return y&&y.length>0})}),ce=F(()=>{var i;return(i=t.value)==null?void 0:i.images.some(l=>{const y=l.aiEvaluation;return y&&y==ve})}),Ee=i=>{t.value.likes.filter(l=>l.userId===i.addedLike.userId).length===0&&(t.value.likes=[...t.value.likes,i.addedLike]),t.value.ghCount=i.count,G.value=!1};return(i,l)=>{var W,D,B,P,te,le;const y=Y("router-link"),O=Y("SwiperSlide"),ee=Y("Swiper");return a(),d(z,null,[t.value?(a(),$(Oe,{key:0,class:"bg-white"},{default:E(()=>{var R;return[C(Ge,{title:`${b(dt)(t.value.child.name,10)} ${ke.value}`},null,8,["title"]),C(He,{images:t.value.images},null,8,["images"]),e("div",il,[e("div",rl,[C(Je,{id:t.value.id,liked:t.value.likes.some(I=>{var V;return I.userId===((V=h.value)==null?void 0:V.id)}),count:t.value.ghCount??0,onClick:()=>{b(K)&&(G.value=!0)}},null,8,["id","liked","count","onClick"]),e("ul",ul,[(a(!0),d(z,null,J(t.value.likes,I=>(a(),d("li",cl,[C(ge,{src:I.userIconUrl||"",class:"w-[28px] h-[28px] border-3 border-white"},null,8,["src"])]))),256))])]),t.value.canEdit?(a(),$(At,{key:0},{default:E(()=>[C(y,{to:`/arts/${t.value.id}/edit`},{default:E(()=>l[8]||(l[8]=[_("編集")])),_:1},8,["to"]),e("button",{onClick:ye},"削除")]),_:1})):x("",!0)]),e("div",dl,[e("h3",ml,j(t.value.name),1),e("p",pl,j(t.value.overview),1)]),(ue.value||t.value.isSameFamily)&&!Ae.value&&!ce.value&&p.value?(a(),d("div",vl,[e("button",{class:"flex justify-center items-center rounded-full bg-orange-peach w-full min-h-[48px]",onClick:l[0]||(l[0]=I=>L.value=!0)},[e("img",{src:b(pe)},null,8,fl),l[9]||(l[9]=e("span",{class:"font-bold leading-none text-white ml-[8px]"},[e("ruby",null,[_(" AIメンター"),e("rt",null,"えーあいめんたー")]),_(" に "),e("ruby",null,[_(" 見"),e("rt",null,"み")]),_(" てもらう ")],-1))]),Z.value?(a(),d("p",xl,l[10]||(l[10]=[_(" システムエラーのためAIメンターに見てもらうことができませんでした。"),e("br",null,null,-1),_(" 誠に恐れ入りますが、しばらく時間をおいてから、再度上記ボタンを実行してください。 ")]))):x("",!0)])):x("",!0),M.value.length>0&&p.value?(a(),d("div",gl,[e("div",wl,[e("img",{src:b(Ft),alt:"",class:"w-[80px] h-[80px]"}
9,null,8,hl),e("div",Cl,[l[11]||(l[11]=e("h3",{class:"font-bold mb-[10px] leading-none"},"AIメンター",-1)),e("p",_l,j(M.value),1)])])])):x("",!0),l[19]||(l[19]=e("hr",{class:"mt-[20px]"},null,-1)),t.value.isSameFamily?(a(),$(Bt,{key:2,class:"m-[20px]",child:t.value.child,"posted-by":t.value.postedBy,postedAt:t.value.postedAt,createdDate:t.value.createdDate},null,8,["child","posted-by","postedAt","createdDate"])):x("",!0),e("div",yl,[e("div",bl,[C(nt),l[12]||(l[12]=e("div",{class:"font-bold text-almost-black"},"開催中のコンクール",-1))]),C(Ht,{class:"m-[20px]",contests:n.value,onSelect:De,art:he.value,"show-entry-button":!0,user:h.value,"is-link":!0},null,8,["contests","art","user"])]),ue.value||t.value.postedId===((R=h.value)==null?void 0:R.id)||t.value.isSameFamily?(a(),d("div",kl,[e("button",{class:"flex justify-center items-center rounded-full bg-orange-peach w-full min-h-[48px]",onClick:l[1]||(l[1]=()=>{H.value=async()=>{var I;if(t.value&&v.value.length>0){const V=await b(We)(t.value.id,v.value);(I=t.value)==null||I.comments.push(V),v.value="",m(!1),b(g).addNotification("送信しました"),H.value=async()=>{}}},v.value="",m(!0)})},[e("img",{src:b(Et)},null,8,Dl),l[13]||(l[13]=e("span",{class:"font-bold leading-none text-white ml-[8px]"},[e("ruby",null,[_(" 作品"),e("rt",null,"さくひん")]),_(" にコメントする ")],-1))])])):x("",!0),t.value.isSameFamily&&t.value.comments.length>0?(a(),d("hr",Il)):x("",!0),t.value.isSameFamily?(a(!0),d(z,{key:5},J(t.value.comments,I=>{var V;return a(),$(qe,{class:"m-[20px]",comment:I,userId:((V=h.value)==null?void 0:V.id)??-1,onEdit:()=>{H.value=async()=>{var se;if(t.value&&v.value.length>0){await b(Ye)(t.value.id,I.id,v.value);const oe=(se=t.value)==null?void 0:se.comments.find(Te=>Te.id===I.id);oe&&(oe.comment=v.value),v.value="",m(!1),H.value=async()=>{}}},v.value=I.comment,m(!0)},onDelete:()=>{be(I.id)}},null,8,["comment","userId","onEdit","onDelete"])}),256)):x("",!0),t.value.canInvite?(a(),d("button",{key:6,onClick:Ce,class:"w-[60px] h-[60px] rounded-full bg-beige-light flex justify-center items-center shadow fixed right-[20px] bottom-[80px] z-[9]"},[C(tt,{class:"w-[22px] h-[26px] text-orange-peach"})])):x("",!0),w.value?(a(),$(lt,{key:7,onCommit:()=>{ne.value()},onCancel:()=>{w.value=!1},commitText:"削除",cancelText:"キャンセル"},{default:E(()=>[C(me,null,{default:E(()=>l[14]||(l[14]=[_("削除しますか?")])),_:1})]),_:1},8,["onCommit","onCancel"])):x("",!0),L.value?(a(),$(de,{key:8,class:"flex justify-center items-center",onClose:()=>{L.value=!1}},{default:E(()=>{var I;return[e("div",$l,[C(me,null,{default:E(()=>l[15]||(l[15]=[_("AI評価する画像を選択")])),_:1}),C(ee,{"slides-per-view":"auto","space-between":"10px",class:Q(["p-[20px] flex items-center gap-[20px]",((I=t.value.images)==null?void 0:I.length)===1?"justify-center":"justify-start overflow-x-scroll"])},{default:E(()=>[(a(!0),d(z,null,J(t.value.images,(V,se)=>(a(),$(O,{key:se,class:"w-auto"},{default:E(()=>[e("button",{onClick:oe=>T.value=V.id},[C(ut,{src:V.imageUrl||"",evaluated:V.id===T.value},null,8,["src","evaluated"])],8,Al)]),_:2},1024))),128))]),_:1},8,["class"]),e("button",{class:"flex justify-center items-center rounded-full bg-orange-peach w-full min-h-[48px]",onClick:l[2]||(l[2]=()=>re())},[e("img",{src:b(pe)},null,8,El),l[16]||(l[16]=e("span",{class:"font-bold leading-none text-white ml-[8px]"},[e("ruby",null,[_(" AI評価"),e("rt",null,"えーあいひょうか")]),_(" する ")],-1))])])]}),_:1},8,["onClose"])):x("",!0),r.value?(a(),$(de,{key:9,class:"flex justify-center items-center",onClose:()=>{r.value=!1}},{default:E(()=>[e("div",{class:"imageBackground rounded-[30px] bg-beige-light px-[20px] py-[40px] flex justify-center items-center flex-col",style:xe({"background-image":`url(${b(at)})`,backgroundSize:"100% auto"})},[e("img",{src:b(Vt),alt:""},null,8,Tl),l[17]||(l[17]=e("div",{class:"mb-[10px] font-bold text-[18px]"},"AIが評価しています",-1)),l[18]||(l[18]=e("div",{class:"text-[18px]"},"評価完了までしばらくお待ちください",-1))],4)]),_:1},8,["onClose"])):x("",!0),f.value?(a(),$(rt,{key:10,href:f.value,onClose:_e},null,8,["href"])):x("",!0)]}),_:1})):x("",!0),u.value?(a(),$(Re,{key:1,to:"main"},[e("button",{class:"fixed inset-0 bg-black bg-opacity-20 z-[9]",onClick:l[3]||(l[3]=R=>m(!1))}),e("div",Sl,[e("div",Ll,[l[20]||(l[20]=e("b",{class:"ml-[20px]"},"作品にコメントする",-1)),e("button",{class:"p-[20px]",onClick:l[4]||(l[4]=R=>m(!1))},[e("img",{src:b(Tt)},null,8,Ml)])]),e("div",Bl,[Ze(e("textarea",{class:"flex-1 p-[15px] pr-[5.5em] bg-transparent w-full min-h-[calc(30px+3em)]",type:"text",placeholder:"作品への感想やメッセージを送ろう。","onUpdate:modelValue":l[5]||(l[5]=R=>v.value=R)},null,512),[[Pe,v.value]]),e("div",Vl,[e("button",{disabled:v.value.length<=0,class:"m-[15px] w-[4em] h-[3em] rounded-full font-bold commentButton",onClick:l[6]||(l[6]=async()=>{H.value&&await H.value()})},l[21]||(l[21]=[e("ruby",null,[_(" 送信"),e("rt",null,"そうしん")],-1)]),8,Fl)])])])])):x("",!0),X.value?(a(),$(ol,{key:2,contest:s.value,onClose:Ie,onEntry:$e},null,8,["contest"])):x("",!0),ae.value?(a(),$(_t,{key:3,"from-art-detail":!0,"contest-id":((W=s.value)==null?void 0:W.id)??0,user:h.value,"selected-art-list":t.value?[{art:{id:(D=t.value)==null?void 0:D.id,name:(B=t.value)==null?void 0:B.name,imageUrl:(te=(P=t.value)==null?void 0:P.images[0])==null?void 0:te.imageUrl,child:(le=t.value)==null?void 0:le.child},categoryValue:o.value}
9]:[],onClose:l[7]||(l[7]=R=>ae.value=!1)},null,8,["contest-id","user","selected-art-list"])):x("",!0),G.value?(a(),$(yt,{key:4,type:"gh",artId:b(A),send:R=>{Ee(R)},buy:()=>{G.value=!1},close:()=>{G.value=!1}},null,8,["artId","send","buy","close"])):x("",!0)],64)}}}),Ss=ie(jl,[["__scopeId","data-v-c2841f3a"]]);export{Ss as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.