(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776264056705-b139a53649"}catch(l){}})();import{o as a,e as t,a as r,n,s as e,b as i,u as h,l as u,d as b,r as g,p as f}from"./c2kxmmw2.js";const v=t(["add","edit"]);v.Enum;var d;(function(l){l.free="free",l.pro="pro",l["free-team"]="free-team",l.team="team",l.business="business",l.captain="captain"})(d||(d={}));var p;(function(l){l.free="free",l["free-team"]="free-team",l.pro="pro",l.team="team",l.business="business",l.government="government",l.captain="captain",l["dvp-team"]="dvp-team",l["dvp-business"]="dvp-business",l.dsos="dsos",l.partner="partner",l.ci="ci"})(p||(p={}));const y=t(["free","free-team","pro","team","business","captain","dsos","dvp-team","dvp-business","partner","ci"]);t(["free-team","team","business"]);t(["free","pro"]);t(["free-team","team","business","dsos","dvp-team","dvp-business"]);t(["free","pro","captain"]);const o=t(["monthly","annual"]),S=t(["inactive","active","past_due"]),x=a({duration:o,seats:n(),cost:n(),renewal:e(),amount_due:n(),next:a({change:e(),seats:n(),cost:n()}).optional().nullable(),state:S});a({name:y,seats:n(),duration:h([o,u("")]),invoice_billing:i(),subscriptions:r(x).optional().nullable()});const m=a({total:n(),subtotal:n(),tax:n().nullish(),tax_rate:n().nullish(),available_credit:n().optional(),outstanding_balance:n().optional(),amount_due:n()});a({due_now:m,due_next:m,renewal_date:e().nullish()});const A=a({display_name:e(),product_name:t(["scout","core","plan","hub"]),tier_name:y,billing_cycle:o.nullable(),quantity:a({value:n(),unit:e()}),renewal_enabled:i(),renewal_date:e().nullable(),renewal_quote:a({estimated_total:n(),subtotal:n(),estimated_tax:n()}).nullable().optional(),end_date:e().nullable(),period_start_date:e(),period_end_date:e(),origin:t(["inside-sales","self-serve","unknown"]).nullable().optional(),status:e().nullable().optional(),grace_days:n().nullable().optional(),total_amount:n().nullable().optional(),renewal_amount:n().nullable().optional(),pending_changes:r(a({type:t(["quantity_decrease","quantity_increase","product_change","tier_change","cycle_change"]).nullable(),product_name:t(["cloudbuild","core","hub","plan","scout"]).nullable().optional(),start_date:e().nullable(),tier_name:e().nullable(),billing_cycle:o.nullable(),quantity:a({value:n(),unit:e()}).nullable()})).nullable().optional(),collection_method:t(["pay_automatically","pay_manually"]).nullish()});a({display_name:e(),product_name:e(),tier_name:e(),billing_cycle:o.nullable(),quantity:a({value:n(),unit:e()}).optional(),renewal_enabled:i(),renewal_date:e().nullable(),renewal_amount:n().nullable().optional(),end_date:e().nullable(),period_start_date:e(),period_end_date:e(),origin:t(["inside-sales","self-serve","unknown"]).nullable().optional(),status:e().nullable().optional(),entitlements:a({repositories_limit:n().nullable().optional(),customization_limit:n().nullable().optional()}).optional()});a({renewal:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()}),cancel:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()}),reactivate:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()}),tier_change:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()}),quantity_change:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()}),cycle_change:a({enabled:i(),managed_by:t(["customer","docker","partner"]).nullable()})});a({manage_url:e()});const k=a({line1:e(),line2:e().nullish(),city:e(),state:e().nullish(),postal_code:e().nullish(),country:e()});a({email:e(),first_name:e().nullish(),last_name:e().nullish(),business_name:e().nullish(),phone:e().nullish(),tax_id:e().nullish(),job_title:e().nullish(),address:k});const w=a({amount_due:n(),amount_paid:n(),amount_remaining:n(),description:e(),due_date:e().nullable(),paid_date:e().nullable(),retry_date:e().nullish(),created_date:e(),number:e(),state:e(),invoice_url:e().url(),invoice_pdf_url:e().url(),payment_method_type:e().optional(),has_pending_ach_payment:i()});a({next:e().nullable(),previous:e().nullable(),results:r(w)});const P=t(["amex","diners","discover","eftpos_au","jcb","mastercard","unionpay","visa","unknown"]),q=a({brand:P,last_four:e().length(4),expiration_month:n().gte(1).lte(12).int(),expiration_year:n()}),B=a({email:e(),country:e().optional()}),M=a({identifier:e(),last_four:e().optional()}),c=a({id:e(),default:i().optional(),status:t(["active","pending_verification"]).optional(),verification_url:e().optional()}),C=b("payment_method_type",[c.extend({payment_method_type:t(["card"]),payment_type_card:q}),c.extend({payment_method_type:t(["link"]),payment_type_link:B}),c.extend({payment_method_type:t(["bank"]),payment_type_bank:M})]);r(C).nullable();a({external_token:e()});a({cardId:e()});const j=a({is_3ds_required:u(!0),client_secret_for_3ds:e()}),D=a({is_3ds_required:u(!1)});b("is_3ds_required",[j,D]);a({message:e(),errinfo:a({call_to_action:e().nullish(),description:e().nullish()})});a({name:e(),displayName:e(),code:e().optional(),numberOfUsers:n().optional(),billing:a({type:o,currency:a({name:e(),code:e(),symbol:e()}),pricePerSeat:n(),priceStartAt:n(),minSeats:n(),priceDescription:e()}).array(),priceDescription:e(),description:e(),action:e(),loggedInAction:e(),minSeats:n(),maxSeats:n(),features:g(e(),a({name:e(),description:e().optional()}).array())}).strict();const s=a({code:e(),name:e(),included:n(),additional:a({prePaidPrice:n(),postPaidPrice:n()}).optional()}),_=a({type:o,currency:a({name:e(),code:e(),symbol:e()}),pricePerSeat:n()});a({name:e(),displayName:e(),loggedInAction:e().optional(),code:e().optional(),maxSeats:n(),description:e(),billing:a({monthly:_.optional(),annual:_}),features:a({manage:a({pulls:s,storage:s,scout:s,build:s,testcontainers:s}),cancel:a({name:e(),code:e(),info:e().optional()}).array()})}).strict();a({reason:t(["free-version","cost","unneeded","issues","other"]),comment:e().optional(),followUp:f(l=>l==="on",i())});export{A as B,p as H};