addError( ___1396365338(4), Loc::getMessage(___1396365338(5))); return false;}} else if(!Restriction\Site::isEmailConfirmed($_641730900)){ $_469902038->addError( ___1396365338(6), Loc::getMessage(___1396365338(7))); return false;} return true;} private static function __727178566(): bool{ if(Manager::getOption(___1396365338(8)) === ___1396365338(9)){ return true;} if(!\Bitrix\Main\Loader::includeModule(___1396365338(10))){ return true;} return Feature::isFeatureEnabled(___1396365338(11));} public static function landingPublication(Landing $landing, $_325054842= null, bool $_321509901= false): bool{ static $_359536254=[]; static $_2015153948=[]; Manager::disableAllFeaturesTmp(); if(!$landing->exist()){ return false;} $_1492941727= new Event(___1396365338(12), ___1396365338(13), array( ___1396365338(14) => $landing->getId(), ___1396365338(15) => $_325054842, ___1396365338(16) => $landing->getSiteId())); $_1492941727->send(); foreach($_1492941727->getResults() as $_2091180478){ if($_2091180478->getType() == EventResult::ERROR){ foreach($_2091180478->getErrors() as $_469902038){ $landing->getError()->addError( $_469902038->getCode(), $_469902038->getMessage());} return false;}} if(!self::checkSiteVerification($landing->getSiteId(), $landing->getError())){ return false;} if((974-2*487)) if($_974677035= Configuration::getValue(___1396365338(17))){ $_1260515337=[]; $_18924637= Block::getList([ ___1396365338(18) =>[ ___1396365338(19)], ___1396365338(20) =>[ ___1396365338(21) => $landing->getId(), ___1396365338(22) => ___1396365338(23), ___1396365338(24) => ___1396365338(25), ___1396365338(26) => ___1396365338(27)]]); while($_96539598= $_18924637->fetch()){ if($GLOBALS['____90189501'][2](___1396365338(28), $_96539598[___1396365338(29)], $_377156942)){ $_1260515337= $GLOBALS['____90189501'][3]($_1260515337, $_377156942[round(0+0.33333333333333+0.33333333333333+0.33333333333333)]);}} $_1260515337= $GLOBALS['____90189501'][4]($GLOBALS['____90189501'][5]($_1260515337)); $_892213839= new HttpClient; if($_1260515337){ $_1704555329= $_892213839->post(___1396365338(30),[ ___1396365338(31) => $_974677035, ___1396365338(32) => $_1260515337, ___1396365338(33) => \Bitrix\Main\Application::getInstance()->getContext()->getServer()->get(___1396365338(34))]); if($_1704555329 && $_1704555329 !== ___1396365338(35)){ $landing->getError()->addError( ___1396365338(36), Loc::getMessage(___1396365338(37))); return false;}}} if(!Manager::checkFeature( Manager::FEATURE_PUBLICATION_PAGE, array( ___1396365338(38) => array( ___1396365338(39) => $landing->getId())))){ $landing->getError()->addError( ___1396365338(40), Restriction\Manager::getSystemErrorMessage(___1396365338(41))); return false;} $_41486098= $landing->getMeta(); if( isset($_41486098[___1396365338(42)]) && \Bitrix\Main\Loader::includeModule(___1396365338(43))){ $_18924637= AppTable::getList([ ___1396365338(44) =>[ ___1396365338(45) => $_41486098[___1396365338(46)]]]); if($_96539598= $_18924637->fetch()){ $_361062461= AppTable::getAppStatusInfo($_96539598, ___1396365338(47)); if($_361062461[___1396365338(48)] != ___1396365338(49)){ $landing->getError()->addError( ___1396365338(50), Restriction\Manager::getSystemErrorMessage(___1396365338(51))); return false;}}} $_1082140011=[]; $_18924637= Block::getList([ ___1396365338(52) =>[ ___1396365338(53)], ___1396365338(54) =>[ ___1396365338(55) => $landing->getId(), ___1396365338(56) => ___1396365338(57), ___1396365338(58) => ___1396365338(59), ___1396365338(60) => ___1396365338(61), ___1396365338(62) => ___1396365338(63)]]); while($_96539598= $_18924637->fetch()){ $_1082140011[]= $GLOBALS['____90189501'][6]($_96539598[___1396365338(64)], round(0+5));} if(!empty($_1082140011)){ foreach(Repo::getAppInfo($_1082140011) as $_302307716){ if(($_302307716[___1396365338(65)] ?? ___1396365338(66)) !== ___1396365338(67)){ $landing->getError()->addError( ___1396365338(68), Restriction\Manager::getSystemErrorMessage(___1396365338(69))); return false;}}} if(!$GLOBALS['____90189501'][7]($landing->getSiteId(), $_2015153948)){ $_2015153948[]= $landing->getSiteId(); $_18924637= Site::getList(array( ___1396365338(70) => array( ___1396365338(71), ___1396365338(72)), ___1396365338(73) => array( ___1396365338(74) => $landing->getSiteId(), ___1396365338(75) => ___1396365338(76), ___1396365338(77) => ___1396365338(78)))); if($_96539598= $_18924637->fetch()){ if(!Manager::checkFeature( Manager::FEATURE_PUBLICATION_SITE,[ ___1396365338(79) =>[ ___1396365338(80) => $_96539598[___1396365338(81)]], ___1396365338(82) => $_96539598[___1396365338(83)]])){ $_885437625= Manager::licenseIsFreeSite($_96539598[___1396365338(84)]) &&!Manager::isFreePublicAllowed()? ___1396365338(85): ___1396365338(86); $_751351997= Manager::licenseIsFreeSite($_96539598[___1396365338(87)]) &&!Manager::isFreePublicAllowed()? ___1396365338(88): ___1396365338(89); $landing->getError()->addError( $_885437625, Restriction\Manager::getSystemErrorMessage($_751351997)); return false;}}} if(\Bitrix\Landing\Hook\Page\HeadBlock::isLockedFeature()){ $_2144685263=[$landing->getId()]; $_18924637= Landing::getList([ ___1396365338(90) =>[ ___1396365338(91)], ___1396365338(92) =>[ ___1396365338(93) => $landing->getSiteId(), ___1396365338(94) => ___1396365338(95)]]); while($_96539598= $_18924637->fetch()){ $_2144685263[]= $_96539598[___1396365338(96)];} $_18924637= HookData::getList([ ___1396365338(97) =>[ ___1396365338(98), ___1396365338(99), ___1396365338(100)], ___1396365338(101) =>[[ ___1396365338(102) => ___1396365338(103),[ ___1396365338(104) => Hook::ENTITY_TYPE_SITE, ___1396365338(105) => $landing->getSiteId()],[ ___1396365338(106) => Hook::ENTITY_TYPE_LANDING, ___1396365338(107) => $_2144685263]], ___1396365338(108) => ___1396365338(109), ___1396365338(110) => ___1396365338(111), ___1396365338(112) => ___1396365338(113)], ___1396365338(114) => round(0+0.33333333333333+0.33333333333333+0.33333333333333)]); if($_96539598= $_18924637->fetch()){ $landing->getError()->addError( ___1396365338(115). $_96539598[___1396365338(116)]. $_96539598[___1396365338(117)]. ___1396365338(118), Restriction\Manager::getSystemErrorMessage(___1396365338(119))); return false;}} $_1492941727= new Event(___1396365338(120), ___1396365338(121), array( ___1396365338(122) => $landing->getId(), ___1396365338(123) => $_325054842, ___1396365338(124) => $_41486098[___1396365338(125)],)); $_1492941727->send(); foreach($_1492941727->getResults() as $_2091180478){ if($_2091180478->getResultType() == EventResult::ERROR){ foreach($_2091180478->getErrors() as $_469902038){ $landing->getError()->addError( $_469902038->getCode(), $_469902038->getMessage());} return false;}} if($_321509901){ return true;} if(!\Bitrix\Main\ModuleManager::isModuleInstalled(___1396365338(126))){ $_8213619= $GLOBALS[___1396365338(127)]->Query(___1396365338(128), true); if($_18924637= $_8213619->Fetch()){ $_1183923284= $_18924637[___1396365338(129)]; list($_293043437, $_1631377892)= $GLOBALS['____90189501'][8](___1396365338(130), $_1183923284); $_114984023= $GLOBALS['____90189501'][9](___1396365338(131), $_293043437); $_1152961288= ___1396365338(132).$GLOBALS['____90189501'][10]($GLOBALS['____90189501'][11](___1396365338(133))); $_1610176152= $GLOBALS['____90189501'][12](___1396365338(134), $_1631377892, $_1152961288, true); if($GLOBALS['____90189501'][13]($_1610176152, $_114984023) !==(1008/2-504)){ $_1631377892= ___1396365338(135);}} else{ $_1631377892= ___1396365338(136);} if(!empty($_1631377892)){ $_1712258096= $GLOBALS['____90189501'][14](___1396365338(137), $_1631377892); $_1492896756= $GLOBALS['____90189501'][15]((920-2*460),(974-2*487), min(186,0,62), $_1712258096[round(0+0.25+0.25+0.25+0.25)], $_1712258096[round(0+2)], $_1712258096[(178*2-356)]); if($_1492896756 <= $GLOBALS['____90189501'][16]()){ $landing->getError()->addError( ___1396365338(138), Loc::getMessage(___1396365338(139))); return false;}}}if(!\Bitrix\Main\ModuleManager::isModuleInstalled(___1396365338(140))){ $_8213619= $GLOBALS[___1396365338(141)]->Query(___1396365338(142), true); if($_18924637= $_8213619->Fetch()){ $_1183923284= $_18924637[___1396365338(143)]; list($_293043437, $_1631377892)= $GLOBALS['____90189501'][17](___1396365338(144), $_1183923284); $_114984023= $GLOBALS['____90189501'][18](___1396365338(145), $_293043437); $_1152961288= ___1396365338(146).$GLOBALS['____90189501'][19]($GLOBALS['____90189501'][20](___1396365338(147))); $_1610176152= $GLOBALS['____90189501'][21](___1396365338(148), $_1631377892, $_1152961288, true); if($GLOBALS['____90189501'][22]($_1610176152, $_114984023) !== min(42,0,14)){ $_1631377892= ___1396365338(149);}} else{ $_1631377892= ___1396365338(150);} if(!empty($_1631377892)){ $_1712258096= $GLOBALS['____90189501'][23](___1396365338(151), $_1631377892); $_1492896756= $GLOBALS['____90189501'][24]((219*2-438),(188*2-376),(233*2-466), $_1712258096[round(0+0.2+0.2+0.2+0.2+0.2)], $_1712258096[round(0+1+1)], $_1712258096[(1168/2-584)]); if($_1492896756 <= $GLOBALS['____90189501'][25]()){ $landing->getError()->addError( ___1396365338(152), Loc::getMessage(___1396365338(153))); return false;}}} if($landing->getFolderId()){ Site::publicationFolder($landing->getFolderId());} if(!$_325054842){ Hook::setEditMode(); Hook::publicationSite($landing->getSiteId()); Hook::publicationLanding($landing->getId());} Assets\Manager::rebuildWebpackForLanding($landing->getId()); self::blocksPublication($landing, $_325054842); $_496848213= new \Bitrix\Main\Type\DateTime; $_18924637= Landing::update($landing->getId(), array( ___1396365338(154) => ___1396365338(155), ___1396365338(156) => ___1396365338(157), ___1396365338(158) => $_496848213, ___1396365338(159) => false)); if($_18924637->isSuccess()){ if(!$GLOBALS['____90189501'][26]($landing->getSiteId(), $_359536254)){ $_359536254[]= $landing->getSiteId(); $_18924637= Site::update($landing->getSiteId(), array( ___1396365338(160) => ___1396365338(161))); if(!$_18924637->isSuccess()){ $landing->getError()->addFromResult( $_18924637); return false;}} return true;} else{ $landing->getError()->addFromResult( $_18924637);} return false;} public static function blocksPublication(\Bitrix\Landing\Landing $landing, $_325054842= null): void{ if($landing->exist()){ $_1898584849= $landing->getId(); $_2006599622= array(); $_1522776284= array(); $_327743291= array(); $_1427991218= ___1396365338(162); $_95042698=[ ___1396365338(163) => $landing->getId(), ___1396365338(164) => ___1396365338(165)]; if($_325054842){ $_95042698[___1396365338(166)]= $_325054842; $_18924637= Block::getList([ ___1396365338(167) =>[ ___1396365338(168), ___1396365338(169)], ___1396365338(170) => $_95042698]); $_95042698[___1396365338(171)]= (array)$_95042698[___1396365338(172)]; while($_96539598= $_18924637->fetch()){ $_95042698[___1396365338(173)][]= $_96539598[___1396365338(174)];}} $_18924637= Block::getList([ ___1396365338(175) =>[ ___1396365338(176), ___1396365338(177), ___1396365338(178), ___1396365338(179), ___1396365338(180), ___1396365338(181), ___1396365338(182), ___1396365338(183), ___1396365338(184), ___1396365338(185), ___1396365338(186), ___1396365338(187), ___1396365338(188), ___1396365338(189), ___1396365338(190)], ___1396365338(191) => $_95042698]); while($_96539598= $_18924637->fetch()){ $_2006599622[$_96539598[___1396365338(192)]]= $_96539598;} foreach($_2006599622 as $_1405719121 => $_717839680){ if($_717839680[___1396365338(193)] != ___1396365338(194)){ $_717839680[___1396365338(195)]= $GLOBALS['____90189501'][27]( ___1396365338(196), function($_1656423438){ return ___1396365338(197). PublicAction\Utils::getIblockURL( $_1656423438[round(0+3)], $GLOBALS['____90189501'][28]($_1656423438[round(0+2)])). ___1396365338(198);}, $_717839680[___1396365338(199)]); $_717839680[___1396365338(200)]= $GLOBALS['____90189501'][29]( ___1396365338(201), function($_1656423438){ $_1656423438[round(0+1)]= $GLOBALS['____90189501'][30]( ___1396365338(202), function($_1076996645){ return PublicAction\Utils::getIblockURL( $_1076996645[round(0+1.5+1.5)], $GLOBALS['____90189501'][31]($_1076996645[round(0+0.4+0.4+0.4+0.4+0.4)]));}, $_1656423438[round(0+1)]); return $_1656423438[round(0+1)]. $_1656423438[round(0+1.6666666666667+1.6666666666667+1.6666666666667)];}, $_717839680[___1396365338(203)]); $_717839680[___1396365338(204)]= Subtype\Form::prepareFormsToPublication( $_717839680[___1396365338(205)]); $_717839680[___1396365338(206)]= $GLOBALS['____90189501'][32]( ___1396365338(207), ___1396365338(208), $_717839680[___1396365338(209)]); $_1559094459= isset($_2006599622[$_717839680[___1396365338(210)]])? $_2006599622[$_717839680[___1396365338(211)]][___1396365338(212)]:(228*2-456); if($_1559094459){ Cache::clear($_1559094459); $_18924637= Block::update($_1559094459, array( ___1396365338(213) => $_717839680[___1396365338(214)], ___1396365338(215) => $_717839680[___1396365338(216)], ___1396365338(217) => $_717839680[___1396365338(218)], ___1396365338(219) => $_717839680[___1396365338(220)], ___1396365338(221) => $_717839680[___1396365338(222)], ___1396365338(223) => $_717839680[___1396365338(224)], ___1396365338(225) => $_717839680[___1396365338(226)], ___1396365338(227) => $_717839680[___1396365338(228)], ___1396365338(229) => $_717839680[___1396365338(230)], ___1396365338(231) => $_717839680[___1396365338(232)])); $_18924637->isSuccess(); unset($_2006599622[$_717839680[___1396365338(233)]]); File::replaceInBlock( $_1559094459, File::getFilesFromBlockContent( $_1405719121, $_717839680[___1396365338(234)]));} else{ $_18924637= Block::add(array( ___1396365338(235) => $_1898584849, ___1396365338(236) => $_717839680[___1396365338(237)], ___1396365338(238) => $_717839680[___1396365338(239)], ___1396365338(240) => $_717839680[___1396365338(241)], ___1396365338(242) => $_717839680[___1396365338(243)]?: ___1396365338(244). $_1405719121, ___1396365338(245) => $_717839680[___1396365338(246)], ___1396365338(247) => $_717839680[___1396365338(248)], ___1396365338(249) => $_717839680[___1396365338(250)], ___1396365338(251) => $_717839680[___1396365338(252)], ___1396365338(253) => $_717839680[___1396365338(254)], ___1396365338(255) => $_717839680[___1396365338(256)], ___1396365338(257) => $_717839680[___1396365338(258)], ___1396365338(259) => $_717839680[___1396365338(260)])); if($_18924637->isSuccess()){ $_1559094459= $_18924637->getId(); $_18924637= Block::update($_1405719121, array( ___1396365338(261) => $_1559094459)); $_18924637->isSuccess(); File::addToBlock( $_1559094459, File::getFilesFromBlockContent( $_1405719121, $_717839680[___1396365338(262)]));}} if($_1559094459){ $_197774267= new Block($_1559094459); Assets\PreProcessing::blockPublicationProcessing($_197774267); $_717839680[___1396365338(263)]= $_197774267->getContent(); unset($_197774267);} if($GLOBALS['____90189501'][33]($_1427991218, $_717839680[___1396365338(264)])){ $_1522776284[$_1559094459]= $_717839680[___1396365338(265)];} $_327743291[$_1405719121]= $_1559094459; unset($_2006599622[$_1405719121]);}} foreach($_2006599622 as $_1405719121 => $_717839680){ $_18924637= Block::delete($_1405719121); $_18924637->isSuccess();} foreach($_1522776284 as $_1405719121 => $_1627795133){ $_1627795133= $GLOBALS['____90189501'][34]( $_1427991218, function($_1214220864) use($_327743291){ if(isset($_327743291[$_1214220864[round(0+0.66666666666667+0.66666666666667+0.66666666666667)]])){ return $_1214220864[round(0+0.2+0.2+0.2+0.2+0.2)]. ___1396365338(266). $_327743291[$_1214220864[round(0+0.66666666666667+0.66666666666667+0.66666666666667)]]. $_1214220864[round(0+0.75+0.75+0.75+0.75)];} else{ return $_1214220864[round(0+0.2+0.2+0.2+0.2+0.2)]. ___1396365338(267). $_1214220864[round(0+0.4+0.4+0.4+0.4+0.4)]. $_1214220864[round(0+1+1+1)];}}, $_1627795133); $_18924637= Block::update($_1405719121, array( ___1396365338(268) => $_1627795133)); $_18924637->isSuccess();}}}}?>