PageSourceSearch

https://rebake.me/_nuxt/SharedFavoriteKindBreadModal.d4e66548.js

js rebake.me collected 2026-09-24 19:19:16 UTC 3,185 bytes, 1 lines download raw bytes

1import{d as I,O as P,U as x,r as $,M as q,w,c as G,e as s,j as H,h as g,i as r,k as J,P as S,R as O,p as e,g as b,q as Q,f as n,G as B,J as C,a4 as W,a2 as X,y as Y,F as D,ac as Z,aE as ee,Q as ae,z as te,A as se,B as oe,C as ne}from"./entry.d64401cf.js";console.debug=function(){};const v=i=>(te("data-v-431e8b61"),i=i(),se(),i),ie={class:"f12 p-3"},de={class:"f12 pb-2 border-bottom"},re={key:0,class:"text-center py-6"},le={key:1,class:"kind_box pt-3 border-bottom"},ce={class:"cate2"},_e={class:"radio-tile-group s-tags"},pe=["value","disabled"],ue={class:"radio-tile-label"},be=v(()=>e("p",{class:"f12 pt-2 pb-1 text-gray-600"}," ※ お選びいただいたパンが入ることを約束するものではありませんのでご了承ください ",-1)),ve={class:"text-center"},fe=v(()=>e("p",{class:"pt-3 pb-1 text-gray-600"},"ご協力ありがとうございます",-1)),he=v(()=>e("span",{class:"px-5"},"送信する",-1)),me=I({__name:"SharedFavoriteKindBreadModal",props:{isShow:{type:Boolean}},emits:["update:isShow","hideModal","updateDashboard"],async setup(i,{emit:M}){let l,f;const{$toast:V}=oe(),F=i,d=P({get:()=>F.isShow,set:a=>{u("update:isShow",a)}});let h=x({}),t=x({});const p=$(!1),{data:A,execute:L}=([l,f]=q(()=>S("/user/favorite_kind_bread",{immediate:!1})),l=await l,f(),l);w(d,async()=>{d.value&&await L()}),w(A,async a=>{h=a,t=h.favorite_kind_bread,await W(),p.value=!0});const u=M,N=a=>a===0?"食事パン":a===1?"惣菜パン":"お菓子パン",m=a=>t.favorite_kind_bread?t.favorite_kind_bread.length>=3&&!t.favorite_kind_bread.includes(a):!1,R=async()=>{const a={favorite_kind_bread:t.favorite_kind_bread.join(",")};await S("/user/update_favorite_kind_bread",{method:"PUT",body:{...a},displayLoadingLayer:!0}),u("updateDashboard"),k(),V("アンケートのご協力ありがとうございます")},k=()=>{u("hideModal"),p.value=!1,t.favorite_kind_bread=[]};return(a,o)=>{const T=G("font-awesome-icon"),U=X,K=Y,j=O;return s(),H(j,{modelValue:r(d),"onUpdate:modelValue":o[2]||(o[2]=c=>J(d)?d.value=c:null),title:"アンケートにご協力ください","hide-footer":"","body-class":"p-0","no-close-on-backdrop":"",scrollable:"","hide-header-close":""},{default:g(()=>[e("div",ie,[e("p",de,[b(T,{icon:["fal","bread-loaf"],class:"me-1"}),Q("好きなパンを3つ選んでください ")]),r(p)?(s(),n("div",le,[(s(!0),n(B,null,C(r(t).kind_bread,(c,y)=>(s(),n("div",{key:"kind"+y},[e("p",ce,D(N(y)),1),e("div",_e,[(s(!0),n(B,null,C(c,(_,z)=>(s(),n("div",{key:z,class:"input-container"},[Z(e("input",{"onUpdate:modelValue":o[0]||(o[0]=E=>r(t).favorite_kind_bread=E),value:_[1],class:"radio-button",type:"checkbox",disabled:m(_[1])},null,8,pe),[[ee,r(t).favorite_kind_bread]]),e("div",{class:ae(["radio-tile mini",{disabled_label:m(_[1])}])},[e("label",ue,D(_[0]),1)],2)]))),128))])]))),128))])):(s(),n("div",re,[b(U,{variant:"gray-300"})])),be,e("div",ve,[fe,b(K,{pill:"",variant:"secondary",onClick:o[1]||(o[1]=c=>R())},{default:g(()=>[he]),_:1}),e("div",{class:"pt-3"},[e("span",{class:"text_underline cursor_pointer",onClick:k},"回答しない")])])])]),_:1},8,["modelValue"])}}});const ye=ne(me,[["__scopeId","data-v-431e8b61"]]);export{ye as _};

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.