<?php
namespace Plugin\ProductsEditorExt; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Eccube\Event\TemplateEvent; use Plugin\ProductsEditorExt\Repository\ConfigRepository; use Plugin\ProductsEditorExt\Twig\Extension\AppendToHeadExtension; class Event implements EventSubscriberInterface { protected $configRepository; public function __construct(ConfigRepository $wbBop) { $this->configRepository = $wbBop; } public static function getSubscribedEvents() { return ["\100\x61\x64\155\151\156\57\120\x72\x6f\x64\x75\143\164\57\160\162\157\144\x75\143\164\x2e\x74\167\151\147" => "\x6f\x6e\122\145\156\144\x65\x72\101\144\x6d\151\156\x50\162\157\144\x75\143\164\x54\167\151\147", "\100\x61\144\x6d\x69\x6e\57\103\157\156\x74\145\156\x74\57\156\145\x77\163\137\145\144\x69\164\56\x74\x77\x69\x67" => "\x6f\x6e\122\x65\156\x64\x65\162\x41\x64\155\x69\156\x4e\x65\167\x73\124\167\x69\x67", "\100\x61\144\155\151\x6e\x2f\103\157\156\x74\x65\x6e\x74\x2f\142\154\x6f\x63\x6b\137\145\144\x69\164\x2e\x74\x77\x69\x67" => "\x6f\x6e\x52\145\156\x64\x65\162\x41\x64\x6d\x69\x6e\102\x6c\x6f\143\x6b\105\144\x69\164\124\167\x69\147", "\x40\141\144\x6d\151\156\57\103\x6f\x6e\164\x65\156\x74\x2f\160\x61\147\x65\137\145\144\x69\x74\x2e\164\x77\x69\147" => "\157\156\122\145\x6e\x64\x65\x72\x41\144\155\151\156\x50\141\x67\145\x45\144\151\x74\x54\x77\x69\x67", "\x50\162\157\144\x75\143\x74\57\144\x65\164\141\x69\154\x2e\164\x77\x69\147" => "\x6f\156\x52\x65\156\x64\x65\x72\x44\145\164\141\151\x6c\124\x77\151\147", "\x42\154\157\x63\x6b\57\x6e\x65\167\163\x2e\x74\167\151\x67" => "\x6f\156\x52\x65\156\x64\x65\162\116\x65\x77\163\124\x77\x69\x67", "\x64\x65\x66\141\x75\154\164\x5f\x66\x72\141\x6d\x65\x2e\164\167\x69\x67" => "\157\x6e\x52\145\156\144\x65\162\104\x65\x66\x61\x75\154\164\106\x72\141\x6d\145\x54\x77\x69\147"]; } public function onRenderAdminProductTwig(TemplateEvent $B5eA2) { goto OXjs9; OXjs9: $benVJ = $this->configRepository->get(); goto nzS0H; nzS0H: if (!(!$benVJ || !$benVJ->getEnableFreeArea() && !$benVJ->getEnableDescriptionDetail())) { goto A9dV4; } goto JSPAw; V3yAu: A9dV4: goto IS_h_; IS_h_: $this->addConfigParamter($benVJ, $B5eA2); goto gxLHK; gxLHK: $B5eA2->addSnippet("\100\x50\162\157\x64\x75\x63\x74\163\x45\144\x69\164\157\x72\x45\170\164\x2f\141\x64\x6d\151\x6e\x2f\x50\162\157\x64\x75\x63\x74\57\160\x72\157\x64\x75\143\164\x2e\164\167\x69\x67"); goto zz6kM; JSPAw: return; goto V3yAu; zz6kM: } public function onRenderAdminNewsTwig(TemplateEvent $B5eA2) { goto KLrYd; X5M2f: $B5eA2->addSnippet("\x40\x50\162\157\x64\x75\x63\x74\163\105\x64\151\164\x6f\x72\105\170\x74\x2f\x61\144\155\151\x6e\57\103\x6f\x6e\164\145\x6e\164\57\x6e\x65\x77\x73\x2e\164\x77\x69\147"); goto Ij_4I; kfH66: $this->addConfigParamter($benVJ, $B5eA2); goto X5M2f; cTQQQ: if (!(!$benVJ || !$benVJ->getEnableNews())) { goto LLuRk; } goto YDrAk; YDrAk: return; goto Gi5LK; Gi5LK: LLuRk: goto kfH66; KLrYd: $benVJ = $this->configRepository->get(); goto cTQQQ; Ij_4I: } public function onRenderAdminBlockEditTwig(TemplateEvent $B5eA2) { goto G9U1g; NgGOU: $this->addConfigParamter($benVJ, $B5eA2); goto jyTWk; jyTWk: $B5eA2->addSnippet("\x40\120\162\x6f\144\x75\143\164\163\105\144\x69\x74\x6f\x72\x45\x78\164\x2f\141\x64\x6d\x69\x6e\x2f\103\x6f\x6e\x74\x65\x6e\x74\x2f\142\x6c\x6f\x63\x6b\x5f\145\x64\x69\x74\x2e\164\x77\151\x67"); goto OSC7Q; G9U1g: $benVJ = $this->configRepository->get(); goto NgGOU; OSC7Q: } public function onRenderAdminPageEditTwig(TemplateEvent $B5eA2) { goto Hg6Sp; xd8sF: $B5eA2->addSnippet("\100\120\x72\x6f\144\x75\x63\x74\x73\x45\x64\151\164\x6f\x72\x45\170\164\x2f\x61\x64\x6d\151\156\57\x43\x6f\x6e\x74\145\156\164\57\160\141\x67\145\137\x65\144\x69\x74\x2e\x74\x77\151\147"); goto qEm4C; f2k4p: $this->addConfigParamter($benVJ, $B5eA2); goto xd8sF; Hg6Sp: $benVJ = $this->configRepository->get(); goto f2k4p; qEm4C: } public function onRenderNewsTwig(TemplateEvent $B5eA2) { goto DyGLE; PiqY1: if ($benVJ->isAddTinymceClass()) { goto Qm11S; } goto sYTsc; uQwnG: t7N75: goto U0EhL; DyGLE: $benVJ = $this->configRepository->get(); goto Xb1aU; Xb1aU: if (!(!$benVJ || !$benVJ->getEnableNews())) { goto t7N75; } goto h0Rec; sYTsc: $i5FVD = str_replace("\x7b\x7b\40\x4e\x65\167\163\x2e\x64\x65\163\x63\162\x69\160\164\151\x6f\156\174\x72\x61\167\174\156\x6c\62\x62\x72\x20\x7d\175", "\x7b\173\40\x4e\145\x77\163\x2e\x64\145\x73\x63\x72\x69\160\164\151\157\x6e\174\x72\x61\167\40\175\x7d", $i5FVD); goto YurBc; TcZZC: $B5eA2->setSource($i5FVD); goto gR3Av; w2MIv: Qm11S: goto wknXB; YurBc: goto pq1N0; goto w2MIv; wknXB: $i5FVD = str_replace("\173\173\40\x4e\145\167\x73\56\144\x65\163\143\162\151\x70\164\x69\157\156\174\162\x61\x77\x7c\156\x6c\62\x62\x72\40\x7d\175", "\74\x64\x69\166\40\143\x6c\x61\163\x73\x3d\x22\x65\144\55\x70\141\x72\164\42\76\173\x7b\x20\x4e\145\167\x73\x2e\x64\x65\x73\143\162\151\160\164\x69\157\156\x7c\162\x61\x77\40\175\x7d\74\x2f\x64\x69\x76\x3e", $i5FVD); goto fZYPS; U0EhL: $i5FVD = $B5eA2->getSource(); goto PiqY1; h0Rec: return; goto uQwnG; fZYPS: pq1N0: goto TcZZC; gR3Av: } public function onRenderDetailTwig(TemplateEvent $B5eA2) { goto zH_5t; yLwl7: sbnvI: goto t07Tp; AA1NS: $i5FVD = $B5eA2->getSource(); goto t9Nl9; xA0NO: $i5FVD = str_replace("\x7b\173\x20\120\162\157\x64\x75\143\x74\56\144\145\x73\143\x72\x69\160\164\151\157\156\x5f\144\x65\x74\141\x69\154\174\x72\141\x77\x7c\156\154\x32\142\162\40\175\x7d", "\x7b\173\40\120\162\157\x64\165\143\x74\x2e\144\145\x73\x63\x72\x69\x70\x74\151\157\x6e\137\144\145\x74\x61\151\154\x7c\162\141\167\40\175\x7d", $i5FVD); goto nugf9; t07Tp: $B5eA2->setSource($i5FVD); goto nF3Uf; zH_5t: $benVJ = $this->configRepository->get(); goto w5J7L; BpntD: $i5FVD = str_replace("\173\173\x20\120\162\157\144\165\143\x74\56\144\145\x73\143\x72\x69\160\164\151\x6f\x6e\x5f\x64\x65\164\141\x69\154\174\x72\141\167\x7c\x6e\x6c\62\x62\162\40\x7d\x7d", "\x3c\144\151\x76\x20\143\154\x61\163\x73\75\x22\x65\x64\x2d\160\141\162\x74\42\76\173\173\x20\120\162\157\x64\165\x63\x74\56\144\x65\163\x63\162\151\160\x74\151\x6f\156\137\144\145\164\x61\151\154\x7c\162\x61\x77\40\175\175\x3c\x2f\x64\151\x76\76", $i5FVD); goto yLwl7; vdkKb: iJ44Y: goto AA1NS; nugf9: goto sbnvI; goto cEW5n; cEW5n: SdVxV: goto BpntD; sY8X_: return; goto vdkKb; w5J7L: if (!(!$benVJ || !$benVJ->getEnableDescriptionDetail())) { goto iJ44Y; } goto sY8X_; t9Nl9: if ($benVJ->isAddTinymceClass()) { goto SdVxV; } goto xA0NO; nF3Uf: } public function onRenderDefaultFrameTwig(TemplateEvent $B5eA2) { goto Nm5GZ; hPjCo: lB_p1: goto j134l; pDxbM: $fG4v7 = $B5eA2->getParameter("\x70\154\165\x67\151\156\137\141\x73\x73\145\x74\163"); goto H1c4h; zdKr5: kC0Nd: goto u6qX8; N6KHm: $i5FVD = $B5eA2->getSource(); goto JxLqw; hdMWN: if (!preg_match("\x2f\x5e\x28\56\x2a\x29\x28\74\142\157\x64\x79\56\x2a\77\x5c\x2f\142\x6f\x64\x79\76\51\x28\x2e\52\x3f\x29\x28\x3c\134\x2f\150\164\155\154\x3e\51\50\x2e\52\x29\44\57\x69\163", $i5FVD, $f26BG)) { goto Nw3RL; } goto EbkMV; Pcj06: if ($B5eA2->hasParameter("\160\154\165\147\151\x6e\137\x61\163\163\x65\164\163")) { goto HPPAK; } goto Y0ZEY; E2XY_: Nw3RL: goto sAaaI; BcSiA: $B5eA2->setSource($i5FVD); goto qaFU0; H1c4h: Go_wp: goto bS0lS; NxRWn: if ($benVJ) { goto lB_p1; } goto WXNi4; JxLqw: $B5eA2->setSource($i5FVD); goto hdMWN; Nm5GZ: $benVJ = $this->configRepository->get(); goto NxRWn; niAho: ZdrSI: goto N6KHm; gkw_Q: AppendToHeadExtension::$htmlForHead .= "\74\163\164\171\154\x65\x3e" . $trcJE . "\74\x2f\x73\164\171\x6c\145\x3e"; goto LM2Iy; EbkMV: $W8FGH = str_replace("\x3c\57\x68\x65\x61\144\x3e", "\173\173\141\x70\x70\145\156\x64\145\x64\137\x68\x65\x61\x64\x28\51\175\x7d\x3c\x2f\150\145\x61\144\76", $f26BG[1]); goto e_00D; LM2Iy: NTypf: goto E2XY_; wGYHW: goto Go_wp; goto npE_Z; wiet8: if (!empty($trcJE)) { goto kC0Nd; } goto FDUNw; u6qX8: AppendToHeadExtension::$htmlForHead .= "\x3c\163\x74\x79\x6c\x65\76" . $trcJE . "\x3c\57\x73\x74\171\154\x65\x3e"; goto Pcj06; fM5iZ: $B5eA2->addAsset("\100\120\162\x6f\144\165\x63\164\x73\105\144\151\x74\x6f\162\x45\x78\164\57\146\162\157\x6e\x74\x5f\x74\x69\x6e\x79\155\x63\x65\56\164\x77\151\147"); goto Ue4_h; WXNi4: return; goto hPjCo; Y0ZEY: $fG4v7 = []; goto wGYHW; TvMh_: FiIcg: goto i1vln; ZfjVl: if ($benVJ->isAppendToHead()) { goto ZdrSI; } goto wiet8; zp89S: goto FiIcg; goto zdKr5; Ue4_h: $B5eA2->setParameter("\160\x6c\165\x67\x69\156\137\x61\x73\163\x65\x74\x73", $fG4v7); goto TvMh_; bS0lS: $fG4v7["\x40\120\x72\157\144\x75\143\x74\163\105\144\x69\x74\x6f\162\x45\x78\x74\57\x66\x72\x6f\156\x74\137\164\x69\x6e\171\x6d\x63\x65\56\164\167\x69\x67"] = true; goto fM5iZ; qaFU0: if (empty($trcJE)) { goto NTypf; } goto gkw_Q; npE_Z: HPPAK: goto pDxbM; FDUNw: goto FiIcg; goto niAho; sAaaI: error_log("\150\x65\162\145\x31" . AppendToHeadExtension::$htmlForHead); goto zp89S; e_00D: $i5FVD = "\x7b\x25\40\163\x65\164\x20\137\142\x6f\144\171\137\x63\x6f\156\x74\x65\156\164\40\x25\175" . $f26BG[2] . "\173\45\x20\145\x6e\x64\163\145\164\40\x25\x7d" . $W8FGH . $f26BG[3] . "\x7b\x7b\x20\137\x62\157\x64\x79\137\143\x6f\156\x74\x65\156\x74\174\x72\141\167\x20\175\x7d" . $f26BG[4] . $f26BG[5]; goto BcSiA; j134l: $trcJE = $benVJ->getCssForTinymce(); goto ZfjVl; i1vln: } public function addConfigParamter($benVJ, $B5eA2) { goto eNzDJ; IwiEy: if ($B72zt) { goto bHVkL; } goto jZUkr; qpxtZ: LltQ0: goto I975a; jZUkr: $B72zt = []; goto WyYnS; Ea3Oa: $B5eA2->setParameters($jQlec); goto qpxtZ; HCSZF: $jQlec["\141\x6c\x6c\143\x73\163"] = $B72zt; goto Ea3Oa; sU1VQ: $jQlec = $B5eA2->getParameters(); goto hAk2e; hAk2e: $jQlec["\160\x72\157\144\165\x63\x74\x73\x45\x64\x69\x74\x6f\x72\105\170\103\157\156\x66\x69\147"] = $benVJ; goto HCSZF; eNzDJ: if (!$benVJ) { goto LltQ0; } goto uiU2W; WyYnS: bHVkL: goto sU1VQ; uiU2W: $B72zt = preg_split("\x2f\x5b\x5c\x73\135\53\57", $benVJ->getPreviewCss()); goto IwiEy; I975a: } }