PageSourceSearch

https://portal.hamaphone.com/build/assets/Index-HDpTh11M.js

js hamaphone.com collected 2026-10-09 22:59:30 UTC 7,750 bytes, 1 lines download raw bytes

1import{r as g,p as N,o as p,a as _,b as o,u as l,h as U,w as a,d as e,e as i,t as n,P as O,f as I,F as y,j as V,J as L,q as P,K as k,L as q,n as A,_ as J}from"./app-DQ3Lmg7R.js";import{_ as K}from"./AuthenticatedLayout-DZzLa9WV.js";import{_ as M}from"./PageHeader-W4EaXpDB.js";import{_ as C}from"./RowActionButton-PFkziCG4.js";import{_ as w}from"./InputError-BPX2hOj3.js";import{_ as h}from"./TextInput-DSZCX-J4.js";import{_ as T}from"./SaveButton-Da7Ure9B.js";import{r as G}from"./BuildingLibraryIcon-B0-sOlOp.js";import{r as H}from"./PlusIcon-_7Sqd1Gr.js";import{r as Q}from"./PencilSquareIcon-Bgpp8QEi.js";import{r as F}from"./TrashIcon-DQr1RWmN.js";/* empty css            *//* empty css               */import"./brand-DNxjMu0Z.js";import"./HomeIcon-D_8S1pV2.js";import"./BuildingOffice2Icon-BvSdehie.js";import"./UsersIcon-_6WDciic.js";import"./EnvelopeIcon-eSAjBeGS.js";import"./DevicePhoneMobileIcon-0eAoq0bt.js";import"./ChartBarIcon-Ddf0WfXZ.js";import"./ExclamationTriangleIcon-BmJ-Hcqq.js";import"./ChatBubbleLeftRightIcon-BJJvKhHK.js";import"./ArrowDownTrayIcon-HNlKnUHL.js";import"./WrenchScrewdriverIcon-BCUysQGB.js";import"./SwatchIcon-EYwE7me4.js";import"./PhoneArrowUpRightIcon-_hDt_I1l.js";import"./PhoneIcon-1UTCsWNK.js";import"./DocumentTextIcon-BsoWIxh7.js";import"./UserGroupIcon-ytx2Mt60.js";import"./ClockIcon-82BP0OYy.js";import"./ClipboardDocumentListIcon-DWwTMvJC.js";import"./PaperAirplaneIcon-BHk6Cm6R.js";import"./KeyIcon-BDUPPNHV.js";import"./GuideLink-eJs-hZ4b.js";import"./QuestionMarkCircleIcon-COzzA0iW.js";import"./fieldErrorRegistry-BCgGW0nd.js";import"./CheckIcon-m1iiQeO7.js";const R={class:"py-8"},W={class:"mx-auto max-w-7xl space-y-6 sm:px-6 lg:px-8"},X={class:"overflow-hidden rounded-lg bg-naruko-surface shadow"},Y={class:"flex items-center justify-between border-b border-gray-100 px-6 py-4"},Z={class:"text-sm text-naruko-text-muted"},ee={class:"overflow-x-auto"},te={class:"min-w-full divide-y divide-gray-100"},oe={class:"divide-y divide-gray-100"},re={key:0},se={class:"whitespace-nowrap px-6 py-4 text-sm text-naruko-text-muted"},le={class:"px-6 py-4 align-top text-sm font-medium text-naruko-text break-words"},ae={class:"whitespace-nowrap px-6 py-4 text-sm text-naruko-text-muted"},ie={class:"whitespace-nowrap px-6 py-4 text-right text-sm"},ne={class:"inline-flex flex-wrap items-center justify-end gap-2"},de={class:"text-lg font-medium text-naruko-text"},me={class:"grid grid-cols-1 gap-4 sm:grid-cols-2"},ue={class:"flex justify-end gap-3"},Re={__name:"Index",props:{carriers:{type:Array,default:()=>[]}},setup(v){const S=[{key:"inbound_callee_remove_prefix",label:"着信 着番 除去"},{key:"inbound_callee_add_prefix",label:"着信 着番 付与"},{key:"inbound_caller_remove_prefix",label:"着信 発番 除去"},{key:"inbound_caller_add_prefix",label:"着信 発番 付与"},{key:"outbound_callee_remove_prefix",label:"発信 着番 除去"},{key:"outbound_callee_add_prefix",label:"発信 着番 付与"},{key:"outbound_caller_remove_prefix",label:"発信 発番 除去"},{key:"outbound_caller_add_prefix",label:"発信 発番 付与"},{key:"remove_prefix",label:"remove_prefix"}],d=g(null),m=g(null),c=g(!1),x=()=>({name:"",inbound_callee_remove_prefix:"",inbound_callee_add_prefix:"",inbound_caller_remove_prefix:"",inbound_caller_add_prefix:"",outbound_callee_remove_prefix:"",outbound_callee_add_prefix:"",outbound_caller_remove_prefix:"",outbound_caller_add_prefix:"",remove_prefix:"",remove_prefix_digit:0}),r=N(x()),j=()=>{d.value=null,r.clearErrors(),Object.assign(r,x()),c.value=!0},D=u=>{d.value=u,r.clearErrors(),Object.assign(r,x());for(const t of Object.keys(x()))r[t]=u[t]??(t==="remove_prefix_digit"?0:"");c.value=!0},f=()=>{c.value=!1,r.clearErrors()},E=()=>{d.value?r.put(route("admin.carriers.update",d.value.id),{preserveScroll:!0,onSuccess:f}):r.post(route("admin.carriers.store"),{preserveScroll:!0,onSuccess:f})},z=u=>{m.value=u},$=()=>{m.value=null},B=()=>{r.delete(route("admin.carriers.destroy",m.value.id),{preserveScroll:!0,onSuccess:$})};return(u,t)=>(p(),_(y,null,[o(l(U),{title:"キャリア管理"}),o(K,null,{default:a(()=>[e("div",R,[e("div",W,[o(M,{icon:l(G),title:"テレフォニー — キャリア管理"},{default:a(()=>t[2]||(t[2]=[i(" 発着信に使うキャリア(電話会社)の登録・設定を管理します。 ",-1)])),_:1,__:[2]},8,["icon"]),e("div",X,[e("div",Y,[e("p",Z," 登録キャリア: "+n(v.carriers.length)+" 件 ",1),o(O,{onClick:j},{default:a(()=>[o(l(H),{class:"mr-1 size-4","aria-hidden":"true"}),t[3]||(t[3]=i(" 新規作成 ",-1))]),_:1,__:[3]})]),e("div",ee,[e("table",te,[t[7]||(t[7]=e("thead",{class:"bg-naruko-bg"},[e("tr",null,[e("th",{class:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-naruko-text-muted"}," ID "),e("th",{class:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-naruko-text-muted"}," 名称 "),e("th",{class:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-naruko-text-muted"}," remove_prefix_digit "),e("th",{class:"px-6 py-3 text-right text-xs font-medium uppercase tracking-wider text-naruko-text-muted"}," 操作 ")])],-1)),e("tbody",oe,[v.carriers.length===0?(p(),_("tr",re,t[4]||(t[4]=[e("td",{colspan:"4",class:"px-6 py-8 text-center text-sm text-naruko-text-muted"}," キャリアがまだありません。 ",-1)]))):I("",!0),(p(!0),_(y,null,V(v.carriers,s=>(p(),_("tr",{key:s.id,class:"hover:bg-naruko-bg/50"},[e("td",se,n(s.id),1),e("td",le,n(s.name),1),e("td",ae,n(s.remove_prefix_digit),1),e("td",ie,[e("span",ne,[o(C,{type:"button",onClick:b=>D(s)},{default:a(()=>
1[o(l(Q),{class:"size-4 shrink-0","aria-hidden":"true"}),t[5]||(t[5]=i("編集 ",-1))]),_:2,__:[5]},1032,["onClick"]),o(C,{variant:"danger",type:"button",onClick:b=>z(s)},{default:a(()=>[o(l(F),{class:"size-4 shrink-0","aria-hidden":"true"}),t[6]||(t[6]=i("削除 ",-1))]),_:2,__:[6]},1032,["onClick"])])])]))),128))])])])])])]),o(L,{show:c.value,onClose:f,"max-width":"2xl"},{default:a(()=>[e("form",{onSubmit:P(E,["prevent"]),class:"space-y-6 p-6"},[e("h2",de,n(d.value?"キャリアを編集":"キャリアを新規作成"),1),e("div",null,[o(k,{for:"name",value:"名称"}),o(h,{id:"name",modelValue:l(r).name,"onUpdate:modelValue":t[0]||(t[0]=s=>l(r).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),o(w,{class:"mt-2",message:l(r).errors.name},null,8,["message"])]),e("div",me,[(p(),_(y,null,V(S,s=>e("div",{key:s.key},[o(k,{for:s.key,value:s.label},null,8,["for","value"]),o(h,{id:s.key,modelValue:l(r)[s.key],"onUpdate:modelValue":b=>l(r)[s.key]=b,type:"text",class:"mt-1 block w-full"},null,8,["id","modelValue","onUpdate:modelValue"]),o(w,{class:"mt-2",message:l(r).errors[s.key]},null,8,["message"])])),64)),e("div",null,[o(k,{for:"remove_prefix_digit",value:"remove_prefix_digit"}),o(h,{id:"remove_prefix_digit",modelValue:l(r).remove_prefix_digit,"onUpdate:modelValue":t[1]||(t[1]=s=>l(r).remove_prefix_digit=s),type:"number",class:"mt-1 block w-full"},null,8,["modelValue"]),o(w,{class:"mt-2",message:l(r).errors.remove_prefix_digit},null,8,["message"])])]),e("div",ue,[o(q,{onClick:f},{default:a(()=>t[8]||(t[8]=[i(" キャンセル ",-1)])),_:1,__:[8]}),o(T,{class:A({"opacity-25":l(r).processing}),disabled:l(r).processing},null,8,["class","disabled"])])],32)]),_:1},8,["show"]),o(J,{show:m.value!==null,title:"キャリアを削除しますか?",icon:l(F),"confirm-label":"削除",processing:l(r).processing,onConfirm:B,onClose:$},{default:a(()=>{var s;return[i(" 「"+n((s=m.value)==null?void 0:s.name)+"」を削除します。",1),t[9]||(t[9]=e("strong",null,"この操作は元に戻せません。",-1))]}),_:1,__:[9]},8,["show","icon","processing"])]),_:1})],64))}};export{Re 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.