PageSourceSearch

https://meetborderless.com/build/assets/create-CB77JENi.js

js meetborderless.com collected 2026-10-09 22:41:48 UTC 8,819 bytes, 1 lines download raw bytes

1import{j as t}from"./app-C1iegf7Q.js";import{u as h,b as u,H as g,L as l}from"./inertia-BpyZy4w-.js";import{I as j}from"./IconPicker-Cl-fhE5I.js";import{B as d}from"./button-BE4q1_FS.js";import{I as s}from"./input-DJt0nBB3.js";import{L as p}from"./label-Czc25Mye.js";import{T as f}from"./textarea-CXLxrYIG.js";import{a as v}from"./admin-layout-BhXWbUlP.js";import{A as N}from"./arrow-left-DCX0fhKH.js";/* empty css            */import"./lucide-react-CfMZLD62.js";import"./createLucideIcon-wqc1LSWg.js";import"./folder-cog-6sjgGayB.js";import"./columns-3-DBhLDfU_.js";import"./settings-2-BIdvrjXz.js";import"./gauge-DL0bVHaV.js";import"./arrow-right-CQhEyoMD.js";import"./arrow-up-right-B21lSD-k.js";import"./arrow-up-BHnbhhO7.js";import"./award-BziOa6p_.js";import"./badge-check-CQa_6p0Q.js";import"./scale-DNFIsonz.js";import"./bell-BvDZckLh.js";import"./link-DKPEjeqT.js";import"./book-open-DVFlG_9t.js";import"./rocket-C1QyJ8QE.js";import"./bookmark-check-Dlib6mAI.js";import"./bookmark-NL3u0C0t.js";import"./briefcase-CaOXuslt.js";import"./building-2-Bm2I7vEj.js";import"./calendar-check-Qh7pLIha.js";import"./calendar-clock-CNQtO705.js";import"./calendar-days-CT1ztEQ-.js";import"./check-check-B77TJnTp.js";import"./unplug-CF7ICeYs.js";import"./calendar-C9IvR7oY.js";import"./chart-column-B_x9vOsC.js";import"./check-0O-UND6N.js";import"./chevron-down-B1YaU0K5.js";import"./chevron-left-BC-feIS7.js";import"./chevron-right-ymZwGCJO.js";import"./chevron-up-CLp5HMgA.js";import"./circle-alert-D8tEThd5.js";import"./circle-check-big-AJlsIacq.js";import"./circle-check-BMWvzPMx.js";import"./circle-dot-D4DhtLx-.js";import"./circle-help-CLje27Z2.js";import"./circle-play-ri1AJb9Y.js";import"./circle-stop-XVmKWSyl.js";import"./circle-user-BGRnThUj.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-CLXJbTMk.js";import"./clipboard-check-CjgTm5I1.js";import"./clipboard-list-O4HZX3KF.js";import"./clipboard-DVTW5dV8.js";import"./clock-BtI_SZvJ.js";import"./undo-BjvUJKje.js";import"./compass-Sjw0tQtp.js";import"./copy-DmjhZUbe.js";import"./credit-card-DS8hXeZ4.js";import"./database-D9VIgS0m.js";import"./dollar-sign-Ck66Jney.js";import"./download-CXbkSkxk.js";import"./ellipsis-dh0qVsjB.js";import"./external-link-avvfS30C.js";import"./eye-off-MvQ-AuyG.js";import"./eye-DoZffUO5.js";import"./file-check-2-B1qpw3Tn.js";import"./file-check-B8N_5iiV.js";import"./file-pen-line-ByvL5wyC.js";import"./file-search-CM0E7Jpo.js";import"./file-text-XcQuIA-l.js";import"./file-up-AxOtJHrH.js";import"./youtube-D44Ae3nQ.js";import"./filter-BZ7kFyR8.js";import"./route-iOdXYI3Y.js";import"./flag-CaFXrtTk.js";import"./flask-conical-DDq57r4G.js";import"./folder-open-I72SPUVk.js";import"./globe-1VarvlLW.js";import"./graduation-cap-CCVaA_o7.js";import"./grip-vertical-B7cOZWqO.js";import"./unlink-CeG1DYqQ.js";import"./headset-DgQ-NORx.js";import"./history-29VTm3ac.js";import"./house-XJaf3ukP.js";import"./image-plus-Drz-1lbN.js";import"./image-vCg-0Xge.js";import"./inbox-EL5oFErb.js";import"./info-D2ZN_yLm.js";import"./languages-CzPZxd4i.js";import"./layers-DnTtLc5p.js";import"./flash-toast-C6O0iVL1.js";import"./triangle-alert-C7AVwNi-.js";import"./x-DQSeRCcH.js";import"./layout-grid-PlAvcMDs.js";import"./layout-template-DhGF-5eq.js";import"./life-buoy-C3CKqgTN.js";import"./lightbulb-nUeyUDZn.js";import"./link-2-D0ZKUr8N.js";import"./linkedin-DJEnv-8I.js";import"./list-checks-Bawt066a.js";import"./underline-BUwyLhKb.js";import"./list-BgP0xxm1.js";import"./loader-circle-C_KBZAGS.js";import"./shield-ban-DYFCjczX.js";import"./lock-eEI5w3jQ.js";import"./log-in-Dg2nNREu.js";import"./mail-check-CMWNPRbj.js";import"./mail-Dwbp3545.js";import"./map-pin-CrQmCnbd.js";import"./map-BNV3OJ1S.js";import"./megaphone-opizzcRj.js";import"./menu-BR3Nc3Gr.js";import"./message-circle-c43k_fjC.js";import"./message-square-plus-DhS9yu8k.js";import"./message-square-text-D-t9hVeQ.js";import"./message-square-E9C1K8Gx.js";import"./minus-BxBzNlIL.js";import"./monitor-CQjW_Bsm.js";import"./sun--Q8JB_4i.js";import"./music-CsdxzPnB.js";import"./package-65QLf_ad.js";import"./paperclip-Cc7CaGPI.js";import"./party-popper-BbNiBfbI.js";import"./pause-CCF2qwpD.js";import"./pen-line-DxMOfwPU.js";import"./pencil-DJkCCH8r.js";import"./phone-call-C0bmjy7g.js";import"./phone-BkT_aCYJ.js";import"./pin-BGkO2dwr.js";import"./plane-B5evcQu0.js";import"./play-FaiXzTos.js";import"./plus-BJl-aJiX.js";import"./pound-sterling-D16GLaAZ.js";import"./quote-BLp7dxmt.js";import"./receipt-CX8afdgY.js";import"./refresh-cw-Cog2DILh.js";import"./rotate-ccw-29DaKli5.js";import"./scroll-text-D2y_6MMB.js";import"./scroll-BhV8fbOX.js";import"./search-BY9GDMxP.js";import"./send-COySMMwK.js";import"./shield-alert-CGX6PHoz.js";import"./shield-check-CdWPLoDE.js";import"./shield-off-KOaPd0RW.js";import"./shield-x-ZI1yi9nG.js";import"./shield-E3smhAzV.js";import"./sliders-horizontal-BN9hBO0Y.js";import"./smartphone-CH_9476b.js";import"./sparkles-C0aC1RHI.js";import"./square-check-big-Dm8_6ZnG.js";import"./square-check-CTjGeuh-.js";import"./square-pen-DgHxGDPS.js";import"./stamp-DioeSsh-.js";import"./star-C_kjJuSS.js";import"./tag-Y9khOy55.js";import"./target-Cj5tDbkI.js";import"./thumbs-up-BUoe2j5t.js";import"./timer-BSIo1jdW.js";import"./toggle-right-DeJAaLt4.js";
1import"./trash-2-CrI9a2Po.js";import"./trending-up-BfKjCZdl.js";import"./upload-C1CGckSw.js";import"./user-check-SeZyvKBM.js";import"./user-plus-Fc74DwlK.js";import"./user-x-B--CBM7t.js";import"./user-zm6AyDtY.js";import"./users-BCcupCXV.js";import"./video-CJHgxwGi.js";import"./wallet-CGPJOgxP.js";import"./wrench-DYTITa-m.js";import"./zap-Bczke022.js";import"./utils-BiuKVCuu.js";import"./index-CGXdj8xB.js";import"./index-DdRFMukF.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";function Hi({type:e}){const{data:i,setData:m,post:c,processing:a,errors:o}=h({name:"",slug:"",description:"",icon:null,order:""});u.useEffect(()=>{if(i.name&&!i.slug){const r=i.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");m("slug",r)}},[i.name]);const x=r=>{r.preventDefault(),c(`/admin/categories/${e}`)},n=e==="event"?"Event":"Resource";return t.jsxs(v,{children:[t.jsx(g,{title:`Create ${n} Category · Admin`}),t.jsx("div",{className:"px-4 py-5 sm:px-6 sm:py-7",children:t.jsxs("div",{className:"mx-auto max-w-2xl",children:[t.jsxs("div",{className:"mb-5",children:[t.jsxs(l,{href:`/admin/categories/${e}`,className:"mb-2 inline-flex items-center gap-1 text-xs font-medium text-ink-3 hover:text-ink",children:[t.jsx(N,{className:"h-3.5 w-3.5"})," Back to Categories"]}),t.jsxs("h1",{className:"text-xl font-semibold text-ink",children:["Create ",n," Category"]})]}),t.jsxs("form",{onSubmit:x,children:[t.jsxs("div",{className:"rounded-card border border-line bg-white p-5",children:[t.jsx("h2",{className:"mb-4 text-sm font-semibold text-ink",children:"Category Details"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx(p,{htmlFor:"name",children:"Name *"}),t.jsx(s,{id:"name",value:i.name,onChange:r=>m("name",r.target.value),required:!0,placeholder:"e.g., Workshops"}),o.name&&t.jsx("p",{className:"mt-1 text-xs text-red",children:o.name})]}),t.jsxs("div",{children:[t.jsx(p,{htmlFor:"slug",children:"Slug *"}),t.jsx(s,{id:"slug",value:i.slug,onChange:r=>m("slug",r.target.value),required:!0,placeholder:"e.g., workshops",pattern:"[a-z0-9]+(?:-[a-z0-9]+)*"}),t.jsx("p",{className:"mt-1 text-xs text-ink-3",children:"Lowercase letters, numbers, and hyphens only"}),o.slug&&t.jsx("p",{className:"mt-1 text-xs text-red",children:o.slug})]}),t.jsxs("div",{children:[t.jsx(p,{htmlFor:"description",children:"Description"}),t.jsx(f,{id:"description",value:i.description,onChange:r=>m("description",r.target.value),rows:3,placeholder:"Brief description of this category (max 1000 characters)",maxLength:1e3}),t.jsxs("p",{className:"mt-1 text-xs text-ink-3",children:[i.description.length," / 1000 characters"]}),o.description&&t.jsx("p",{className:"mt-1 text-xs text-red",children:o.description})]}),t.jsx(j,{value:i.icon,onChange:r=>m("icon",r)}),o.icon&&t.jsx("p",{className:"mt-1 text-xs text-red",children:o.icon}),t.jsxs("div",{children:[t.jsx(p,{htmlFor:"order",children:"Display Order"}),t.jsx(s,{id:"order",type:"number",min:"0",value:i.order,onChange:r=>m("order",r.target.value),placeholder:"Leave empty to add at end"}),t.jsx("p",{className:"mt-1 text-xs text-ink-3",children:"Lower numbers appear first. Leave empty to add at the end."}),o.order&&t.jsx("p",{className:"mt-1 text-xs text-red",children:o.order})]})]})]}),t.jsxs("div",{className:"mt-6 flex justify-end gap-3",children:[t.jsx(d,{type:"button",variant:"outline",asChild:!0,children:t.jsx(l,{href:`/admin/categories/${e}`,children:"Cancel"})}),t.jsx(d,{type:"submit",disabled:a,children:a?"Creating...":"Create Category"})]})]})]})})]})}export{Hi 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.