1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3227],{21834:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,X:()=>r});var i=a(14232);let r={Auto:"auto",Manual:"manual",Never:"never"},s=(e={size:"invisible"})=>{let t=(0,i.useRef)(null),[a,s]=(0,i.useState)(!1),[n,d]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),u=(0,i.useRef)(!1),o=(0,i.useRef)(!1),x=(0,i.useCallback)(()=>e.siteKey||"0x4AAAAAABGR2exxRproizri",[e.siteKey]),h=(0,i.useCallback)(()=>!!window.turnstile&&!!t.current&&!!e.action&&"invisible"!==e.size&&(o.current=!0,d(null),window.turnstile.render(t.current,{sitekey:x(),callback:e=>{d(e)},theme:e.theme||"light",size:e.size,action:e.action,"expired-callback":()=>{d(null)},"error-callback":()=>{o.current=!1}}),!0),[e.action,e.size,e.theme,x]);return(0,i.useEffect)(()=>{let e=document.createElement("script");return e.src="https://challenges.cloudflare.com/turnstile/v0/api.js",e.async=!0,e.defer=!0,e.id="turnstileScript",document.body.appendChild(e),e.onload=()=>{s(!0)},()=>{document.querySelectorAll("script").forEach(e=>{("text/javascript"===e.type&&e.src.includes("turnstil.e")||"turnstileScript"===e.id)&&e.remove()})}},[e.theme,e.size]),(0,i.useEffect)(()=>{let t;if(!a||!e.action||"invisible"===e.size||o.current||h())return;let i=0,r=()=>{i++,o.current||!h()&&i<50&&(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[a,e.action,e.size,h]),{turnstileRef:t,token:n,execute:(a,i,s,n)=>{window.turnstile&&t.current&&(u.current=!1,window.turnstile.remove(t.current),window.turnstile&&t.current&&(c(!0),window.turnstile.render(t.current,{sitekey:x(),callback:e=>{(s!==r.Never||!u.current)&&(d(()=>e),c(!1),i&&i(e))},theme:e.theme||"light",size:e.size||"invisible",action:a,"refresh-expired":s===r.Auto?"auto":"manual","expired-callback":()=>{s===r.Never&&(u.current=!0,d(null),c(!1))},"error-callback":()=>{c(!1),n?.()}})))},reset:()=>{window.turnstile&&t.current&&(window.turnstile.remove(t.current),o.current=!1,d(null),h())},isReady:a,loading:l}}},31702:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/item_drafts/[id]/edit/detail",function(){return a(35375)}])},35375:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>f,default:()=>p});var i=a(37876),r=a(89099),s=a(85556),n=a(14232),d=a(53723),l=a(31625),c=a(92170),u=a(24288),o=a(15038),x=a(21834),h=a(96041);let m=({categories:e})=>{let{t}=(0,s.Bd)("locale"),a=(0,r.useRouter)(),d=(0,o.A)(),m=a.query.id,[f,p]=(0,u.wMg)(),j=d.loading||!a.isReady||!m,g=(0,x.A)(),_=(0,u.iUY)({variables:{ids:[m]},skip:j});(0,n.useEffect)(()=>{if(!_.data)return;let e=_.data;if(0===e.me.itemDrafts.length)return void a.replace("/404");let t=e.me.itemDrafts[0];t?.modelType===u.e3q.Gpts&&a.replace("/404")},[_.data,a]);let[A,w]=(0,u.k64)(),b=_.data?.me.itemDrafts?_.data.me.itemDrafts[0]:null,v=[{title:t("ããã³ãã使"),path:`/item_drafts/${b?.id}/edit/prompt`},{title:t("ããã³ãã詳細è¨å®"),path:`/item_drafts/${b?.id}/edit/detail`}],y=(0,h._9)(t,`${b?.title??""} - ${t("ããã³ãã詳細è¨å®")}`),k=(0,h.qn)(t,`${b?.title??""} - ${t("ããã³ããã®è©³ç´°è¨å®ã§ãã")}`);return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(l.A,{title:y,description:k,enableOgp:!1,noIndex:!0}),(0,i.jsx)(c.A,{queryLoading:j||!_.data||_.loading,mutationLoading:w.loading||p.loading||!p.called&&!!w.data?.updateItemDraft?.id||p.called&&w.data?.updateItemDraft===null||g.loading,item:b,categories:e,isDraft:!0,updateMutation:A,updateMutationResult:w,riskCheckQuery:f,menuItems:v,turnstileExecute:g.execute,turnstileRef:g.turnstileRef})]})};m.getLayout=d.b;var f=!0;let p=m},53723:(e,t,a)=>{"use strict";a.d(t,{A:()=>p,b:()=>f});var i=a(37876),r=a(75776),s=a(63911),n=a(94208),d=a.n(n),l=a(14232),c=a(15414),u=a(84160);let o=new String(".f-Main.jsx-46384db955562a3{padding:53px 0 0 0}.f-BreadPosition.jsx-46384db955562a3{display:flex;flex-direction:column-reverse}.f-BreadcrumbList.jsx-46384db955562a3{max-width:1200px;padding:0 20px;width:100%;margin:12px auto}.f-Template.jsx-46384db955562a3{max-width:1200px;width:100%;margin:0 auto 32px auto;padding:0 20px}.c-ErrorBox.jsx-46384db955562a3{width:100%;margin:20px auto}@media(max-width:768px){.f-Main.jsx-46384db955562a3{padding:24px 0 0 0}.f-Template.jsx-46384db955562a3{padding:0 6%}}");o.__hash="46384db955562a3";let x=({error:e,children:t,mutationLoading:a})=>(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(c.A,{mutationLoading:a}),(0,i.jsxs)("div",{className:`jsx-${o.__hash} f-Main`,children:[Array.isArray(t)&&t.length>2&&(0,i.jsx)("div",{className:`jsx-${o.__hash} f-BreadcrumbList`,children:t[2]}),(0,i.jsxs)("div",{className:`jsx-${o.__hash} f-Template`,children:[Array.isArray(t)&&t.length>0&&(0,i.jsx)(l.Fragment,{children:t[0]}),e&&(0,i.jsx)("div",{className:`jsx-${o.__hash} c-ErrorBox`,children:(0,i.jsx)(u.A,{children:e})}),Array.isArray(t)&&t.length>1&&(0,i.jsx)(l.Fragment,{children:t[1]})]})]}),(0,i.jsx)(d(),{id:o.__hash,children:o})]}),h=new String(".f-Main.jsx-e0c7df91484adfd2{padding:53px 0 0 0}.f-BreadPosition.jsx-e0c7df91484adfd2{display:flex;flex-direction:column-reverse}.f-BreadcrumbList.jsx-e0c7df91484adfd2{width:100%;margin:12px auto;padding:0 6%}.f-Template.jsx-e0c7df91484adfd2{width:100%;margin:0 auto 32px auto;padding:0 6%}.c-ErrorBox.jsx-e0c7df91484adfd2{width:100%;margin:20px 0}@media(max-width:768px){.f-Main.jsx-e0c7df91484adfd2{padding:24px 0 0 0}}");h.__hash="e0c7df91484adfd2";let m=({error:e,children:t,mutationLoading:a})=>(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(c.A,{mutationLoading:a}),(0,i.jsx)("div",{className:`jsx-${h.__hash} f-Main`,children:(0,i.jsxs)("div",{className:`jsx-${h.__hash} f-BreadPosition`,children:[Array.isArray(t)&&t.length>2&&(0,i.jsx)("div",{className:`jsx-${h.__hash} f-BreadcrumbList`,children:t[2]}),(0,i.jsxs)("div",{className:`jsx-${h.__hash} f-Template`,children:[Array.isArray(t)&&t.length>0&&(0,i.jsx)(l.Fragment,{children:t[0]}),e&&(0,i.jsx)("div",{className:`jsx-${h.__hash} c-ErrorBox`,children:(0,i.jsx)(u.A,{children:e})}),Array.isArray(t)&&t.length>1&&(0,i.jsx)(l.Fragment,{children:t[1]})]})]})}),(0,i.jsx)(d(),{id:h.__hash,children:h})]}),f=(e,t)=>(0,i.jsx)(s.A,{...t,children:e}),p=e=>(0,r.A)(x,m)(e)}},e=>{e.O(0,[8805,8707,3268,7981,7847,3911,2170,636,6593,8792],()=>e(e.s=31702)),_N_E=e.O()}]);
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.