——ê—$T—(t—WŒ—W¬—É—72—?Ö—5õ—1S—9— á—<é—5—>9—2—&Ó—6— m—0©—;Ì—[· —M!—)b%—@ª%—wù&—>°'—OC(—NB)—MA*—Q+—L@+—A¸+—KG,—JF-—uÚ-—IE.—HD/—Ot/—!0—WK0—V“0—\£0—§0—V»0—[¢1—U²1—Uº1—T‘2—T™2—T¹2—S3—S°3—S¸3—D 4—Qc4—R—4—R·4—R¿4—Q¶5—Q¾5—^¥6—Pµ6—_å:—\X;—Y]>—RŒ?—é˜G—ÞßH—çI—yJ—ä$K—ÌK—ùP—ÿwP—®ÆQ—óÑR—ühS—þT—ñ=V—ÿ¿X—®ÎY—®ÍZ—ü [—®Ê]—E^—…^—ú _—çD_—ý _—þöa—b—ãd—þód—þòe— tg—þðg— ƒh—9&i—5ºi— ¾i—þýj—5zm—5n— ¾q—ÿr—Îäs—t—%v—Ñv—Øw—Îàw—ßx—áVy—èjy—Îy—Îîy—&}—Îê}——Tn—©W„—¡ †—­Å†—¬ü‡—²ˆ—¢@‹—ª—¨®—°Ð“—±2•—¿€——²“˜—·˜—9Ö™—²þ™—|4›—Šíž—Üß —r¶¡—Çe¢—Τ—Ùˤ—ô®¥—„Ê‡L§—‚©—Á?¬—Ëo¬—õÿ¬—šš­—ðê­—›p¯—Ö°—»¯°—Øø³—Ð+´—¨âµ—Þþµ—Ù¹—`R¹—Ðƹ—Ùò¹—׺—§{À—b†Å—n1Æ—o\Ç—stÇ—o/È—9†É—’MÊ—lÊ—aÌ—w»Ð—vºÑ—dqÒ—t¸Ó—}3Ô—|@×—mwÜ—AóÜ—{ß—wà—)bá—´ªá—â—‰²å—æå—¾¹æ—°ìç—Jé—‹ ê—¶ ê—Rí—‹jí—†±î—}Åî—C ï—Ngð—¦ñ—Neò—Ÿáò—*õ—•¾õ—‘Ü÷—œƒø—•ø—’“ø—ž6ù—Nnù—nù—”‘ú—„ñú—>”˜;ì˜XR˜8Ø$˜-ɘ7w˜0<˜Q ˜‘ ˜2ñ ˜<~ ˜= ˜ B˜–˜=Ö˜.û˜T˜+^˜áŠ˜áŽ˜á˜á€˜°˜-˜]˜í˜6˜0~˜=æ˜áƒ˜ R˜'˜,d ˜7 !˜K5!˜?N"˜1º"˜"î"˜1¼$˜2Ð$˜Z%˜7I%˜7Y%˜&˜](˜_Œ(˜'¸(˜O})˜.)˜/*˜.b*˜1²*˜/ú*˜-c+˜!å-˜[å-˜_í-˜T.˜".˜@Š.˜)/˜L#/˜[Û/˜R 0˜ œ0˜W1˜((4˜(84˜3H4˜˜ïW?˜1g?˜àA˜ìB˜è C˜ÑÛC˜ãGG˜æ˜H˜æ–J˜ÑÓK˜ÚN˜üêN˜í#O˜Ñ×O˜ÍqQ˜ÿR˜úZR˜ÄºR˜ÄÚR˜ùœT˜óŽV˜ý¢V˜ø¾V˜¡ÎV˜óiY˜ðc[˜ÿó[˜Ì&^˜ÿ†^˜Ï?_˜Âo_˜`˜?È`˜a˜b˜àd˜ée˜f˜g˜ñ»g˜Ëg˜Ï•i˜ñòj˜ k˜÷k˜˜l˜™m˜ 'o˜›o˜å\p˜þq˜ 1q˜åmq˜âr˜êFr˜ä²r˜Áës˜ ¤t˜¸t˜Áíu˜nv˜õÂv˜åw˜çw˜¨x˜äx˜ªz˜‹{˜Ÿ{˜«{˜þë{˜|˜}˜.~˜Áæ~˜˜Áç˜Ø€˜·€˜¢p€˜Üx€˜£è€˜§ ˜~1˜¶F‚˜Ùoƒ˜£˜„˜V‡˜®ˆ˜kĈ˜vȈ˜V ‰˜¥U‰˜¤Y‰˜u:Š˜cΊ˜©‹˜V‹˜t;‹˜³G‹˜b¿‹˜¨Ó‹˜s<Œ˜j=˜q>Ž˜®RŽ˜´~Ž˜p?˜¡˜§»˜a˜b˜˜s¸˜¹à˜b ‘˜š‰‘˜dZ’˜~Š’˜{ž’˜b;“˜zŸ“˜}£“˜e¸”˜·•˜eI•˜n•˜cŠ–˜lƒ—˜F›—˜²˜˜a™˜aš˜±òš˜e¬œ˜²Á˜d¶ž˜aŸ˜½cŸ˜~“Ÿ˜Û¢˜Þ‚¢˜ÔY©˜–ú®˜k¯˜ý¸°˜ÛÄ°˜n±˜)±˜È-±˜m²˜Ì®²˜§â²˜Ý<´˜-µ˜À1µ˜i¶˜b6¶˜Ç¦¶˜ ¸˜!¹˜q»˜û"¾˜ùg¿˜b À˜NpÀ˜WøÀ˜QYÁ˜veÁ˜›ÙÁ˜o#ØeÿØhèĘz¬È˜n]ɘF­É˜L“˘o“˘Kì̘oí͘uþΘ¢ϘQWϘHÿϘ]˜Ð˜\™Ñ˜|¡Ñ˜Ò˜%.Ò˜xgÓ˜%ëÓ˜!LÔ˜c¼Ô˜")Õ˜enÖ˜i–Ö˜\¢Ö˜rêÖ˜NûטUÔؘyÜؘP9٘٘pùÙ˜}÷Û˜sDܘxtܘÁݘk<à˜jÔà˜jØà˜Mìà˜qUá˜u‰á˜jÕá˜Kâ˜vk㘃ð䘄©å˜pJ昃ªæ˜Êæ˜mè˜nÈè˜Eäè˜kôè˜kZê˜kjê˜kvê˜Cæê˜_ë˜oÏë˜~Ûë˜jPì˜qtì˜Aàì˜m-í˜i1í˜quí˜@áí˜yrî˜qvî˜lªî˜‹Úî˜w/ï˜ugï˜Nãï˜hð˜GØð˜–Eñ˜Aiñ˜zÙñ˜Ajò˜zÞò˜{/ó˜Ždô˜C¬ô˜B­õ˜}vö˜’ö˜ˆw÷˜}Ÿ÷˜š|ø˜tø˜uØø˜Aaù˜uêú˜Ipü˜•ý˜Aeý˜x&þ˜|‚þ˜›Šþ˜|ªþ˜}7ÿ˜’óÿ˜!y™5`™"¸™-3™(n™$Á™#¶™0Ú™%]™*ó ™Q˜ ™[ä ™4g™6&™0Ô™8왜™K™Þ™>¡™2å™(¬™1î™™ù™?÷™n< ™Wu ™|À!™Hç"™!m$™Cx%™7è%™\{&™A'™N¡,™B>/™T–/™¨1™SÌ1™!Û2™\ 4™U•4™óH5™Sd5™_Ô5™RÓ6™Xß6™P:™$<™%,=™F>™\K>™õ5@™ám@™ÀA™ÂB™å†C™é…D™äS™ÄjS™ëmT™óWV™ ³V™ýX™þìY™ù§Z™ö[™ Â[™ø)\™ Å\™ Ä]™Æ+^™a™0a™$#b™ãb™^c™ì‚c™ ’c™¼e™§f™ßf™ g™,i™Fk™)%l™ Íl™Èm™n™:ƒn™CÛn™ Ñp™(q™õt™ gv™íŸv™Vw™f{™¢{™4}™ãç~™ –™#Å€™"É€™#Í€™#Õ€™  ™ $™"Ä™"Ì™ßЙ©Ç‚™!ׂ™ 2ƒ™ Öƒ™©©„™°3†™§‰ˆ™­Ýˆ™¬„‰™¬Ü‰™YÏŠ™ªßŠ™ªóŠ™¨j‹™&È™¯ƒŽ™%ÃŽ™$Ê™©Ê™›m™„陕陂`‘™‡è‘™»Ÿ’™‡Þ“™»Å”™¹Ç–™¼Þ—™·y˜™¨™™¨<™™ P™™ X™™¶#š™¸j›™(Æ›™³™¡4™µd™ƒx™¿Kž™³öŸ™°9 ™Ù¡™¢™ÛL¥™ªÔ¥™ªü¥™ÍY¨™°0©™Â”©™Ë[ª™Å&¯™Ár¯™Ï‚¯™lö¯™ªE°™§±™Ò¸±™Ù^³™€-´™«í´™×3º™Ê³¾™Ëî¿™~ðÁ™`ÿÆ™r"Ç™`<É™oÈÉ™mÊ™n/Ê™aâË™`EÌ™eÀÍ™TGΙB½Ð™~éЙ˜àÑ™DGÒ™B*Ó™hÍÔ™réØ™iáÜ™yáÜ™\¼Ý™{ÔÝ™ Fß™tNß™Dîß™¿ à™‰Eà™»ᙎÊã™'æ™hç™p~癑é™Üé™pr뙉5왃”í™ìñ™š_ò™@kò™gó™r2ó™u]ô™kùô™Ê÷™`xù™ñü™˜Tý™™ÿ™7zš ’š _š$vš)7 š" šZë š! š2 šš4jš6¦š;Κ*hš*pš5iš5qš7¥š0^š3_šš5¢š9š=éš2^šíºš1»š3š¨šN·%š&šMP&ši'šE)š@3)š&;)šXC)š{=+šK¦,š~h.šxü.šG±/šSÎ0š$o1š$«1šV\2šR4šZÂ4š¯5šH86šV\6šHV8š :šJ•;šWW=š>š6,>š.¦@šñÓAšàöDšîEšàxFšé|FšàøFšá GšáUGšä HšìÂHšKš$YOš÷&Pšê›Qšþ4Ršë!SšðUšñ¿UšõœVšðÀVšò™WšùõWš9;YšìDZš÷å[šÿ.\šð+]šþ5_š þ`šycš Ácš :dš zdšŸeš akšæykšþlš mš:#mš,nš;ùoš5qš£qšæEsš‘sšìvš Ywšåwš#yš—yšJ|š#}šöo}š§}š“€š Ãš·@‚š“ƒšß%ƒš“„š£ †š¡ˆš“ˆšüljš¯„Šš´#š¥Ÿš®,ŽšÞ4Žš¢lŽš¦Ýš˜m“šc•š¾W•š·–šc –š»6˜š“R˜šc™š}Ÿ™šª5›šØ€žšwuŸšµõŸšÇ ¥šÄ¥šÆXªšÁY«š—D®šÅø®š–‘¯š–¹¯šƒ*°šƒ+±š s±šƒ(²šù@²šÚ´šÓÆ´šƒ,¶šÛ·šß¦¸šÈ¹šÙ:¼šÉƼšÚʼšÚß½š'õ¿š~2Àšv¢ÀšSYÚp±ÃšzñÚuÚÄšS_ÅšcàÆša Éšf˜Êša™ËšjÌšaÀΚSUÏškÑšAIÓšsáÓš#NÔšz¶ÔšEKÕšpóÕš#LÖš±qךVÅךAÎØš#CÙšwCÙšs³Ùšy»Ùš#@ÚšyÁÛš#GÝšo\Þšszàš’àšAãšsyãš>䚃Ô暎£éšspꚃ5뚃i뚃íšstîš„ŒîšMïon( 'number_format_i18n', 'number_format_i18n', ['is_safe' => ['all']] ), new TwigFunction( 'mailpoet_locale', [$this, 'getTwoLettersLocale'], ['is_safe' => ['all']] ), new TwigFunction( 'mailpoet_free_domains', [$this, 'getFreeDomains'], ['is_safe' => ['all']] ), new TwigFunction( 'is_woocommerce_active', [$this, 'isWoocommerceActive'], ['is_safe' => ['all']] ), new TwigFunction( 'get_woocommerce_version', [$this, 'getWooCommerceVersion'], ['is_safe' => ['all']] ), new TwigFunction( 'wp_start_of_week', [$this, 'getWPStartOfWeek'], ['is_safe' => ['all']] ), new TwigFunction( 'stats_color', [$this, 'statsColor'], ['is_safe' => ['all']] ), new TwigFunction( 'clicked_stats_text', [$this, 'clickedStatsText'], ['is_safe' => ['all']] ), new TwigFunction( 'stats_number_format_i18n', [$this, 'statsNumberFormatI18n'], ['is_safe' => ['all']] ), new TwigFunction( 'add_referral_id', [$this, 'addReferralId'], ['is_safe' => ['all']] ), new TwigFunction( 'is_loading_3rd_party_enabled', [$this, 'libs3rdPartyEnabled'], ['is_safe' => ['all']] ), new TwigFunction( 'is_dotcom_ecommerce_plan', [$this, 'isDotcomEcommercePlan'], ['is_safe' => ['all']] ), new TwigFunction( 'is_dotcom', [$this, 'isDotcom'], ['is_safe' => ['all']] ), new TwigFunction( 'pending_approval_message', [$this, 'pendingApprovalMessage'], ['is_safe' => ['html']] ), ]; } public function getSendingFrequency() { /** @var string[] $args */ $args = func_get_args(); $value = (int)array_shift($args); $label = null; $labels = [ 'minute' => __('every minute', 'mailpoet'), // translators: %1$d is the amount of minutes. 'minutes' => __('every %1$d minutes', 'mailpoet'), 'hour' => __('every hour', 'mailpoet'), // translators: %1$d is the amount of hours. 'hours' => __('every %1$d hours', 'mailpoet'), ]; if ($value >= 60) { // we're dealing with hours if ($value === 60) { $label = $labels['hour']; } else { $label = $labels['hours']; } $value /= 60; } else { // we're dealing with minutes if ($value === 1) { $label = $labels['minute']; } else { $label = $labels['minutes']; } } return sprintf($label, $value); } public function getWPDateFormat() { return $this->getWp()->getOption('date_format') ?: 'F j, Y'; } public function getWPStartOfWeek() { return $this->getWp()->getOption('start_of_week') ?: 0; } public function getMailPoetVersion() { return MAILPOET_VERSION; } public function getMailPoetPremiumVersion() { return (defined('MAILPOET_PREMIUM_VERSION')) ? MAILPOET_PREMIUM_VERSION : false; } public function getWPTimeFormat() { return $this->getWp()->getOption('time_format') ?: 'g:i a'; } public function getWPDateTimeFormat() { return sprintf('%s %s', $this->getWPDateFormat(), $this->getWPTimeFormat()); } public function params($key = null) { $args = $this->getWp()->stripslashesDeep($_GET); if (array_key_exists($key, $args)) { return $args[$key]; } return null; } public function installedInLastTwoWeeks() { $maxNumberOfWeeks = 2; $installedAt = Carbon::createFromFormat('Y-m-d H:i:s', $this->getSettings()->get('installed_at')); if ($installedAt === false) { return false; } return $installedAt->diffInWeeks(Carbon::now()) < $maxNumberOfWeeks; } public function isRtl() { return $this->getWp()->isRtl(); } public function getTwoLettersLocale() { return explode('_', $this->getWp()->getLocale())[0]; } public function getFreeDomains() { return FreeDomains::FREE_DOMAINS; } public function isWoocommerceActive() { return $this->getWooCommerceHelper()->isWooCommerceActive(); } public function getWooCommerceVersion() { return $this->getWooCommerceHelper()->getWooCommerceVersion(); } public function statsColor($percentage) { if ($percentage > 3) { return '#7ed321'; } elseif ($percentage > 1) { return '#ff9f00'; } else { return '#f559c3'; } } public function clickedStatsText($clicked) { if ($clicked > 3) { return __('Excellent', 'mailpoet'); } elseif ($clicked > 1) { return __('Good', 'mailpoet'); } else { return __('Average', 'mailpoet'); } } /** * Wrapper around number_format_i18n() to return two decimals digits if the number * is smaller than 0.1 and one decimal digit if the number is equal or greater * than 0.1. * * @param int|float $number * * @return string */ public function statsNumberFormatI18n($number) { if ($number < 0.1) { $decimals = 2; } else { $decimals = 1; } return number_format_i18n($number, $decimals); } public function addReferralId($url) { return $this->getreferralUrlDecorator()->decorate($url); } public function libs3rdPartyEnabled(): bool { return $this->getSettings()->get('3rd_party_libs.enabled') === '1'; } public function isDotcomEcommercePlan(): bool { if (function_exists('wc_calypso_bridge_is_ecommerce_plan')) { return wc_calypso_bridge_is_ecommerce_plan(); } return false; } public function isDotcom(): bool { return $this->getDotcomHelperFunctions()->isDotcom(); } public function pendingApprovalMessage(): string { return $this->getPendingApprovalNotice()->getPendingApprovalMessage(); } }