PageSourceSearch

https://www.djclub.pro/_astro/PlatformOnboardingForm.CDiB_MTC.js

js djclub.pro collected 2026-10-04 20:22:33 UTC 3,608 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`569cce8a29e15fc435f8f927b138254c8678c8a2`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a616f126-b0e2-4888-b76a-95bc86e4654c`,e._sentryDebugIdIdentifier=`sentry-dbid-a616f126-b0e2-4888-b76a-95bc86e4654c`)}catch{}})();import{r as e}from"./rolldown-runtime.2HvrYDJM.js?dpl=dpl_4JkTYz25ye5TxcdU9jwo7MUexnCE";import{t}from"./react.CKqAtP4w.js?dpl=dpl_4JkTYz25ye5TxcdU9jwo7MUexnCE";import{t as n}from"./jsx-runtime.DJQwgOMv.js?dpl=dpl_4JkTYz25ye5TxcdU9jwo7MUexnCE";var r=e(t(),1),i=n();function a({apiBase:e,runbookMarkdown:t}){let[n,a]=(0,r.useState)(``),[o,s]=(0,r.useState)(``),[c,l]=(0,r.useState)(``),[u,d]=(0,r.useState)(``),[f,p]=(0,r.useState)(`idle`),[m,h]=(0,r.useState)(``);async function g(t){t.preventDefault(),p(`saving`),h(``);try{let t=await fetch(`${e}/hub/admin/platforms`,{method:`POST`,headers:{"Content-Type":`application/json`},credentials:`include`,body:JSON.stringify({slug:n.trim(),domain:o.trim(),display_name:c.trim(),canonical_host:u.trim()||void 0})});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.detail||`Error ${t.status}`)}let r=await t.json();p(`ok`),h(`Marca "${r.slug}" creada (inactiva). Completa el runbook antes de activarla.`)}catch(e){p(`error`),h(e instanceof Error?e.message:`No se pudo crear la marca.`)}}return(0,i.jsxs)(`div`,{className:`jm-onboard`,children:[(0,i.jsxs)(`form`,{className:`jm-form`,onSubmit:g,children:[(0,i.jsxs)(`label`,{className:`jm-form__row`,children:[(0,i.jsx)(`span`,{className:`jm-form__label`,children:`Slug`}),(0,i.jsx)(`input`,{className:`jm-form__input`,value:n,onChange:e=>a(e.target.value),placeholder:`p. ej. jazzclub`,pattern:`[a-z][a-z0-9_]*`,title:`Minúsculas, empieza por letra, solo letras/números/guion bajo`,required:!0})]}),(0,i.jsxs)(`label`,{className:`jm-form__row`,children:[(0,i.jsx)(`span`,{className:`jm-form__label`,children:`Dominio`}),(0,i.jsx)(`input`,{className:`jm-form__input`,value:o,onChange:e=>s(e.target.value),placeholder:`jazzclub.pro`,required:!0})]}),(0,i.jsxs)(`label`,{className:`jm-form__row`,children:[(0,i.jsx)(`span`,{className:`jm-form__label`,children:`Nombre visible`}),(0,i.jsx)(`input`,{className:`jm-form__input`,value:c,onChange:e=>l(e.target.value),placeholder:`Jazz Club`,required:!0})]}),(0,i.jsxs)(`label`,{className:`jm-form__row`,children:[(0,i.jsxs)(`span`,{className:`jm-form__label`,children:[`Host canónico `,(0,i.jsx)(`em`,{className:`jm-form__optional`,children:`(opcional)`})]}),(0,i.jsx)(`input`,{className:`jm-form__input`,value:u,onChange:e=>d(e.target.value),placeholder:`www.jazzclub.pro — vacío usa el dominio tal cual`}),(0,i.jsx)(`small`,{className:`jm-form__hint`,children:`Solo si la marca sirve bajo un subdominio, como djclub bajo www.djclub.pro. Define los canonicals y el sitemap — cambiarlo después mueve URLs indexadas.`})]}),(0,i.jsx)(`button`,{className:`jm-form__submit`,type:`submit`,disabled:f===`saving`,children:f===`saving`?`Creando…`:`Crear marca`}),m&&(0,i.jsx)(`p`,{className:f===`error`?`jm-form__error`:`jm-form__ok`,role:`status`,children:m})]}),f===`ok`&&(0,i.jsxs)(`section`,{className:`jm-onboard__runbook`,children:[(0,i.jsx)(`h2`,{children:`Falta esto para que la marca funcione`}),(0,i.jsx)(`p`,{className:`jm-form__hint`,children:`La fila ya está creada — eso era el paso 1 de 7. El resto es infraestructura manual:`}),(0,i.jsx)(`pre`,{className:`jm-onboard__runbook-body`,children:t})]})]})}export{a 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.