<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Type; use Illuminate\Support\Str; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use ModStart\Core\Util\ConstantUtil; class TypeUtil { public static function dumpJsFile($NBPbH) { goto wlUKC; eiMEV: $ohNZt = array(); goto ahRKj; cJT5C: return Response::raw(join('
', $ohNZt), array('Content-Type' => 'text/plain')); goto YAtup; pU946: foreach ($NBPbH as $gJGJ7) { $m0yca[class_basename($gJGJ7)] = TypeUtil::dump($gJGJ7); } goto eiMEV; wlUKC: $m0yca = array(); goto pU946; ahRKj: $ohNZt[] = '// This file is created by ' . Request::currentPageUrl() . '
'; goto tRbOs; tRbOs: foreach ($m0yca as $XggBq => $xoOBk) { $ohNZt[] = "export const {$XggBq} = " . json_encode($xoOBk, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto cJT5C; YAtup: } public static function name($f6h3S, $ib3B9) { goto wsPA0; ZYMpp: foreach ($ctQO9 as $F_a6B => $JiRHR) { if ($F_a6B == $ib3B9) { return $JiRHR; } } goto L7bzg; wsPA0: $ctQO9 = $f6h3S::getList(); goto ZYMpp; L7bzg: return null; goto MtYbo; MtYbo: } public static function filter($f6h3S, $bP0d3) { goto nocGX; BBnMR: foreach ($ctQO9 as $F_a6B => $JiRHR) { if (in_array($F_a6B, $bP0d3)) { $pvsQp[$F_a6B] = $JiRHR; } } goto jm35r; nocGX: $ctQO9 = $f6h3S::getList(); goto Zsu31; Zsu31: $pvsQp = array(); goto BBnMR; jm35r: return $pvsQp; goto biCTN; biCTN: } public static function dump($lIzQw) { goto W1ofC; p2YWP: return $bP0d3; goto b3FLM; LOWiT: foreach ($m7u0j as $GUcFO => $ib3B9) { goto lz2mL; x28dS: $bP0d3[$GUcFO]['name'] = isset($S904X[$ib3B9]) ? $S904X[$ib3B9] : null; goto KpbKO; lz2mL: $bP0d3[$GUcFO]['key'] = $GUcFO; goto IkkAO; IkkAO: $bP0d3[$GUcFO]['value'] = $ib3B9; goto x28dS; KpbKO: } goto p2YWP; W1ofC: $m7u0j = ConstantUtil::dump($lIzQw); goto XPgMu; XPgMu: $S904X = $lIzQw::getList(); goto LOWiT; b3FLM: } public static function colorGuessMap($TNn3L) { goto kVjo9; Atp5k: if (isset($m4mJt[$TNn3L])) { return $m4mJt[$TNn3L]; } goto OKv9Q; kVjo9: static $m4mJt = array(); goto Atp5k; gbtTi: return $S904X; goto mcP6s; ZGrks: $m4mJt[$TNn3L] = $S904X; goto gbtTi; iqVV5: foreach (ConstantUtil::dump($TNn3L) as $F_a6B => $JiRHR) { $F_a6B = strtolower($F_a6B); foreach ($X5WbG as $YbhHy => $ft00V) { if (Str::contains($F_a6B, $YbhHy)) { $S904X[$JiRHR] = $ft00V; break; } } } goto ZGrks; OKv9Q: $S904X = array(); goto nq__1; nq__1: $X5WbG = array('fail' => 'danger', 'error' => 'danger', 'wait_verify' => 'danger', 'wait_pay' => 'warning', 'danger' => 'warning', 'running' => 'warning', 'refund' => 'warning', 'success' => 'success', 'verified' => 'success', 'pass' => 'success', 'reject' => 'danger', 'wait' => 'muted', 'canceled' => 'muted', 'disabled' => 'muted', 'completed' => 'success', 'finish' => 'success', 'converting' => 'warning', 'sending' => 'warning', 'ignore' => 'muted', 'expired' => 'muted', 'info' => 'primary', 'unread' => 'danger', 'read' => 'muted', 'processed' => 'success', 'verifying' => 'warning', 'online' => 'success', 'payed' => 'success', 'wait_process' => 'warning', 'deleted' => 'muted', 'invalid' => 'warning', 'valid' => 'success'); goto iqVV5; mcP6s: } }