PageSourceSearch

https://onepe.ai/build/assets/PlanModal-CWfJcGL8.js

js onepe.ai collected 2026-10-05 14:39:13 UTC 1,432 bytes, 1 lines download raw bytes

1import{a as h,j as e}from"./app-D4IBpXEE.js";import"./Tabs-CO9UBWDc.js";import{M as o}from"./Modal-BG2UZmBH.js";import S from"./PlanForm-DvuJsouP.js";import{u as j}from"./useTranslation-mV-gvqqz.js";import"./Button-CB4LXud6.js";import"./Input-DMapwj6G.js";import"./Toggle-CQYoAYtM.js";import"./PlanLimits-BQNCyQK8.js";import"./PlanFeatures-Cv_g25P_.js";import"./plus-BtmR7ya-.js";import"./createLucideIcon-CNbh77gd.js";import"./trash-2-BoxiPtFH.js";const v=(s="USD")=>({name:"",slug:"",description:"",currency_code:s,monthly_price_cents:null,yearly_price_cents:null,trial_days:0,stripe_monthly_id:"",stripe_yearly_id:"",features:[],limits:{},enabled:!0,featured:!1,popular:!1,sort_order:0});function T({show:s,onClose:r,plan:t=null,currencies:l=[],defaultCurrency:n="USD"}){const{t:a}=j(),i=!!(t!=null&&t.id),{data:u,setData:d,post:c,put:p,processing:f,errors:_,reset:m}=h(t?{...t,limits:t.limits??{},features:t.features??[]}:v(n)),y=x=>{x.preventDefault(),i?p(route("admin.plans.update",t.id),{preserveScroll:!0,onSuccess:()=>{m(),r()}}):c(route("admin.plans.store"),{preserveScroll:!0,onSuccess:()=>{m(),r()}})};return e.jsxs(o,{show:s,onClose:r,maxWidth:"3xl",children:[e.jsx(o.Header,{title:a(i?"admin.edit_plan":"admin.add_plan"),onClose:r}),e.jsx(o.Body,{className:"max-h-[70vh] overflow-y-auto",children:e.jsx(S,{data:u,setData:d,errors:_,processing:f,onSubmit:y,onCancel:r,isEdit:i,currencies:l})})]})}export{T 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.