Plugin Directory

Changeset 2729124


Ignore:
Timestamp:
05/24/2022 07:08:51 AM (3 years ago)
Author:
nirweb
Message:

update 02

Location:
nirweb-smart-sms/trunk
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • nirweb-smart-sms/trunk/assets/admin.css

    r2729089 r2729124  
    66    flex-direction: column;
    77}
    8 .nirweb_smart_sms_admin_container form label{
     8.nirweb_smart_sms_admin_container label{
    99    width: 100%;
    1010    margin-bottom: 15px;
    1111    font-weight: 600;font-size: 16px;display: flex;flex-direction: column;}
    12 .nirweb_smart_sms_admin_container form select{
     12.nirweb_smart_sms_admin_container select{
    1313    width:100%;
    1414
    1515    margin-top: 20px;border: 1px solid #e1e1e1;font-weight: 400;max-width: 100%;height: 45px;}
    16 .nirweb_smart_sms_admin_container form label input{
     16.nirweb_smart_sms_admin_container input{
    1717    width:100%;
    1818    margin-top: 14px;height: 40px;border: 1px solid #e1e1e1;}
     
    7575.pi_nav_tb:hover svg,
    7676.pi_nav_tb.nav-tab-active svg{fill:var(--main-color); }
    77 .nirweb_smart_sms_admin_container > h2{
     77.nirweb_smart_sms_admin_container h2{
    7878    position:relative;
    7979    font-family: Tahoma,Arial,sans-serif;color: var(--main-color);
    8080    display: flex;align-items: center;border-bottom: 1px solid #DDD;padding-bottom: 10px;margin-bottom: 25px;}
    81 .nirweb_smart_sms_admin_container > h2 svg{
     81.nirweb_smart_sms_admin_container h2 svg{
    8282    fill:var(--main-color);
    8383    width:40px;
    8484    height:40px;
    8585    margin-left: 12px;border: 1px solid var(--main-color);padding: 5px;border-radius: 5px;background-color: rgb(255 195 0 / 8%);}
    86 .nirweb_smart_sms_admin_container > h2::after{
     86.nirweb_smart_sms_admin_container h2::after{
    8787    content:'';
    8888    display:block;
     
    107107    }
    108108}
     109.nirwb_smart_sms_settings{
     110    display: flex;
     111}
     112.w-75{
     113    width:75%;
     114}
     115.nirweb_sms_group{
     116    display:flex;
     117    /* align-items: center; */margin-bottom: 30px;}
     118.nirweb_sms_group label{margin:0}
     119.nirweb_sms_group input{margin:0}
     120.nirweb_sms_group label{width: 25%;font-weight: 600;font-size: 14px;margin-left: 20px;}
     121.nirweb_sms_group label span{color: #727272;margin-top: 10px;font-weight: 400;}
     122.nirweb_smart_sms_tabs{width: 25%;margin: 0;}
     123.nirweb_sms_content_settings{width: 75%}
     124.nirweb_smart_sms_tabs li{border-bottom: 1px solid #e5e5e5;background-color: transparent;margin: 0;padding: 20px 10px;font-size: 14px;}
     125.nirweb_smart_sms_tabs li.active{background-color: #fff;border-right: 4px solid  var(--main-color);}
     126.nirweb_inner_tabs{display: flex;align-items: center;}
     127.nirweb_inner_tabs li{margin-left: 30px;font-size: 17px;padding-bottom: 15px;}
     128.nirweb_inner_tabs li.active{border-bottom: 3px solid  var(--main-color);color:var(--main-color)}
     129.nirweb_smart_sms_admin_container  input[type=checkbox]{width: 25px;height: 25px;margin: 0;display: flex;align-items: center;justify-content: center;margin-left: 5px;}
     130.checkbox_nirweb{display:flex;align-items: center;width: max-content;margin-bottom: 25px;}
     131.checkbox_nirweb label{margin:0;}
     132.nirweb_smart_sms_admin_container > div{display: none}
  • nirweb-smart-sms/trunk/assets/admin.js

    r2729089 r2729124  
     1jQuery(document).ready(function () {
     2    jQuery('.nirweb_smart_sms_admin_container >div').first().show();
     3    jQuery('.tab_in').first().show();
     4    jQuery('.nirweb_smart_sms_tabs li').on('click',function (){
     5        jQuery('.nirweb_smart_sms_tabs li').removeClass('active');
     6        jQuery(this).addClass('active');
     7        jQuery('.nirweb_smart_sms_admin_container >div').hide();
     8        jQuery('#'+ jQuery(this).attr('data-target')).show();
     9    });
     10    jQuery('.nirweb_inner_tabs li').on('click',function (){
     11        jQuery('.nirweb_inner_tabs li').removeClass('active');
     12        jQuery(this).addClass('active');
     13        jQuery('.tab_in').hide();
     14        jQuery('#'+ jQuery(this).attr('data-target')).show();
     15    });
     16});
  • nirweb-smart-sms/trunk/core/core.php

    r2729089 r2729124  
    301301}, 10, 2 );
    302302}
     303
    303304/***************************************************************************
    304305#   Send SMS
    305306 ***************************************************************************/
    306307add_action('admin_menu',function() {
     308
     309    add_submenu_page(
     310        'nirweb_ticket_manage_tickets',
     311        esc_html__( 'Settings', 'nss' ),
     312        esc_html__( 'Settings', 'nss' ),
     313        'manage_options',
     314        'nirweb_ticket_settings',
     315        'nirweb_ticket_settings_func'
     316    );
    307317
    308318    add_menu_page(
     
    847857        $tabs = array(
    848858            'export_all' =>  [esc_html__('all customers','nss'),__('export all woocommerce billing phones','nss'),'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
    849      viewBox="0 0 496 496" style="enable-background:new 0 0 496 496;" xml:space="preserve">
     859     viewBox="0 0 496 496" >
    850860<g>
    851861    <g>
  • nirweb-smart-sms/trunk/core/includes.php

    r2729089 r2729124  
    55require_once NIRWEB_SMART_SMS . 'core/Nirweb_smart_sms_data.php';
    66require_once NIRWEB_SMART_SMS . 'core/core.php';
    7 require_once NIRWEB_SMART_SMS . 'option/framework.php';
    8 require_once NIRWEB_SMART_SMS . 'option/options/options.php';
     7//require_once NIRWEB_SMART_SMS . 'option/framework.php';
     8//require_once NIRWEB_SMART_SMS . 'option/options/options.php';
    99require_once NIRWEB_SMART_SMS . 'inc/woocommerce.php';
    1010require_once NIRWEB_SMART_SMS . 'inc/wp.php';
     11require_once NIRWEB_SMART_SMS . 'option/codestar-framework.php';
     12require_once NIRWEB_SMART_SMS . 'option/options/options.php';
     13//require_once NIRWEB_SMART_SMS . 'settings/settings.php';
    1114
    1215add_action('wp_enqueue_scripts',function (){
  • nirweb-smart-sms/trunk/languages/nss-fa_IR.po

    r2729089 r2729124  
    22msgstr ""
    33"Project-Id-Version: Smart SMS For Wordpress\n"
    4 "POT-Creation-Date: 2022-05-14 07:49+0430\n"
    5 "PO-Revision-Date: 2022-05-15 10:40+0430\n"
     4"POT-Creation-Date: 2022-05-19 12:04+0430\n"
     5"PO-Revision-Date: 2022-05-19 12:10+0430\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    2323
    2424#: core/Nirweb_smart_sms_data.php:140 core/Nirweb_smart_sms_data.php:182
    25 #: core/Nirweb_smart_sms_data.php:246 core/Nirweb_smart_sms_data.php:304
    26 #: core/Nirweb_smart_sms_data.php:341 core/Nirweb_smart_sms_data.php:400
     25#: core/Nirweb_smart_sms_data.php:246 core/Nirweb_smart_sms_data.php:303
     26#: core/Nirweb_smart_sms_data.php:340 core/Nirweb_smart_sms_data.php:399
    2727msgid "on hold"
    2828msgstr "سفارشات در انتظار بررسی"
    2929
    3030#: core/Nirweb_smart_sms_data.php:143 core/Nirweb_smart_sms_data.php:187
    31 #: core/Nirweb_smart_sms_data.php:249 core/Nirweb_smart_sms_data.php:307
    32 #: core/Nirweb_smart_sms_data.php:346 core/Nirweb_smart_sms_data.php:403
     31#: core/Nirweb_smart_sms_data.php:249 core/Nirweb_smart_sms_data.php:306
     32#: core/Nirweb_smart_sms_data.php:345 core/Nirweb_smart_sms_data.php:402
    3333msgid "processing"
    3434msgstr "سفارشات در حال انجام"
    3535
    3636#: core/Nirweb_smart_sms_data.php:146 core/Nirweb_smart_sms_data.php:192
    37 #: core/Nirweb_smart_sms_data.php:252 core/Nirweb_smart_sms_data.php:310
    38 #: core/Nirweb_smart_sms_data.php:351 core/Nirweb_smart_sms_data.php:406
     37#: core/Nirweb_smart_sms_data.php:252 core/Nirweb_smart_sms_data.php:309
     38#: core/Nirweb_smart_sms_data.php:350 core/Nirweb_smart_sms_data.php:405
    3939msgid "completed"
    4040msgstr "سفارشات تکمیل شده"
    4141
    4242#: core/Nirweb_smart_sms_data.php:149 core/Nirweb_smart_sms_data.php:197
    43 #: core/Nirweb_smart_sms_data.php:255 core/Nirweb_smart_sms_data.php:313
    44 #: core/Nirweb_smart_sms_data.php:356 core/Nirweb_smart_sms_data.php:409
     43#: core/Nirweb_smart_sms_data.php:255 core/Nirweb_smart_sms_data.php:312
     44#: core/Nirweb_smart_sms_data.php:355 core/Nirweb_smart_sms_data.php:408
    4545msgid "cancelled"
    4646msgstr "سفارشات لغو شده"
    4747
    4848#: core/Nirweb_smart_sms_data.php:152 core/Nirweb_smart_sms_data.php:202
    49 #: core/Nirweb_smart_sms_data.php:258 core/Nirweb_smart_sms_data.php:316
    50 #: core/Nirweb_smart_sms_data.php:361 core/Nirweb_smart_sms_data.php:412
     49#: core/Nirweb_smart_sms_data.php:258 core/Nirweb_smart_sms_data.php:315
     50#: core/Nirweb_smart_sms_data.php:360 core/Nirweb_smart_sms_data.php:411
    5151msgid "refunded"
    5252msgstr "سفارشات مسترد شده"
    5353
    5454#: core/Nirweb_smart_sms_data.php:155 core/Nirweb_smart_sms_data.php:207
    55 #: core/Nirweb_smart_sms_data.php:261 core/Nirweb_smart_sms_data.php:319
    56 #: core/Nirweb_smart_sms_data.php:366 core/Nirweb_smart_sms_data.php:415
     55#: core/Nirweb_smart_sms_data.php:261 core/Nirweb_smart_sms_data.php:318
     56#: core/Nirweb_smart_sms_data.php:365 core/Nirweb_smart_sms_data.php:414
    5757msgid "failed"
    5858msgstr "سفارشات ناموفق"
     
    126126msgstr "اطلاع رسانی به کاربران وقتی محصول تخفیف دار شد"
    127127
    128 #: core/core.php:309 core/core.php:310
     128#: core/core.php:311 core/core.php:312 settings/settings.php:15
     129#: settings/settings.php:16 settings/settings.php:26
     130#, fuzzy
     131#| msgid "Settings saved."
     132msgid "Settings"
     133msgstr "تنظیمات ذخیره شد."
     134
     135#: core/core.php:319 core/core.php:320
    129136msgid "Nirweb Smart SMS"
    130137msgstr "پیامک نیروب"
    131138
    132 #: core/core.php:318 option/options/woocommerce/cancelled.php:17
     139#: core/core.php:328 option/options/woocommerce/cancelled.php:17
    133140#: option/options/woocommerce/cancelled.php:79
    134141#: option/options/woocommerce/cancelled.php:141
     
    151158msgstr "ارسال پیامک"
    152159
    153 #: core/core.php:322 core/core.php:587
     160#: core/core.php:332 core/core.php:598
    154161msgid "Send SMS To ALL Users"
    155162msgstr "ارسال پیام به همه کاربران"
    156163
    157 #: core/core.php:322
     164#: core/core.php:332
    158165msgid "send sms to all users."
    159166msgstr "به همه کاربرانی که ثبت نام کرده اند پیام بفرستید."
    160167
    161 #: core/core.php:380 core/core.php:678
     168#: core/core.php:390 core/core.php:689
    162169msgid "Send SMS To One User"
    163170msgstr "ارسال پیام به یک کاربر"
    164171
    165 #: core/core.php:380
     172#: core/core.php:390
    166173msgid "Send SMS To the user you want."
    167174msgstr "به یک کاربر خاص پیام بفرستید."
    168175
    169 #: core/core.php:438 core/core.php:788
     176#: core/core.php:448 core/core.php:799
    170177msgid "Send SMS To Product Customers"
    171178msgstr "ارسال پیام به مشتریان محصول"
    172179
    173 #: core/core.php:438
     180#: core/core.php:448
    174181msgid "Send SMS to users who have bought a product"
    175182msgstr "به همه کاربرانی که یک محصول خاص را خریداری کرده اند پیام بفرستید"
    176183
    177 #: core/core.php:590 core/core.php:681 core/core.php:791
     184#: core/core.php:601 core/core.php:692 core/core.php:802 core/core.php:1282
    178185msgid "professional version and tutorial"
    179186msgstr "فعال در نسخه حرفه ای"
    180187
    181 #: core/core.php:591 core/core.php:682 core/core.php:792
     188#: core/core.php:602 core/core.php:693 core/core.php:803 core/core.php:1283
    182189msgid ""
    183190"to use options below , you can easily purchase and download the pro version "
     
    187194"و دانلود کنید"
    188195
    189 #: core/core.php:599 core/core.php:699 core/core.php:814
     196#: core/core.php:610 core/core.php:710 core/core.php:825
    190197msgid "pattern code"
    191198msgstr "کد پترن"
    192199
    193 #: core/core.php:608 core/core.php:708
     200#: core/core.php:619 core/core.php:719
    194201msgid ""
    195202"use variable display_name for user's display name in your pattern.if you are "
     
    199206"پیامک استفاده میکنید از 0 استفاده کنید."
    200207
    201 #: core/core.php:611 core/core.php:711 core/core.php:825
     208#: core/core.php:622 core/core.php:722 core/core.php:836
    202209msgid "Send"
    203210msgstr "ارسال"
    204211
    205 #: core/core.php:690
     212#: core/core.php:701
    206213msgid "select the user"
    207214msgstr "انتخاب کاربر"
    208215
    209 #: core/core.php:692 core/core.php:802
     216#: core/core.php:703 core/core.php:813
    210217#: option/options/woocommerce/first-purchase.php:23
    211218#: option/options/wp/post.php:21
     
    213220msgstr "یک گزینه را انتخاب کنید"
    214221
    215 #: core/core.php:800
     222#: core/core.php:811
    216223msgid "select the product"
    217224msgstr "انتخاب محصول"
    218225
    219 #: core/core.php:823
     226#: core/core.php:834
    220227msgid ""
    221228"use product_title for product's title and display_name for users's "
     
    227234"و 1 برای نام محصول استفاده کنید"
    228235
    229 #: core/core.php:843
     236#: core/core.php:854
    230237msgid "Subscribers"
    231238msgstr "مشترکین"
    232239
    233 #: core/core.php:847
     240#: core/core.php:858 core/core.php:1130 core/core.php:1204
    234241msgid "all customers"
    235242msgstr "تمام مشتری ها"
    236243
    237 #: core/core.php:847
     244#: core/core.php:858
    238245msgid "export all woocommerce billing phones"
    239246msgstr "خروجی شماره تماس مشتریان ووکامرس"
    240247
    241 #: core/core.php:848
     248#: core/core.php:917
    242249msgid "product customers"
    243250msgstr "مشتریان محصولات"
    244251
    245 #: core/core.php:848
     252#: core/core.php:917
    246253msgid "export product customer phonenumbers"
    247254msgstr "خروجی شماره مشتریان محصول ووکامرس"
    248255
    249 #: core/core.php:915
     256#: core/core.php:984 core/core.php:1275
    250257msgid "newsletter"
    251258msgstr "خبرنامه"
    252259
    253 #: core/core.php:915
     260#: core/core.php:984
    254261msgid "export newsletter phonenumbers"
    255262msgstr "خروجی شماره های ثبت شده خبرنامه"
     
    281288msgstr "خبرنامه"
    282289
    283 #: option/classes/options.class.php:228
    284 msgid "Error while saving."
     290#: option/classes/admin-options.class.php:230
     291#, fuzzy
     292#| msgid "Error while saving."
     293msgid "Error while saving the changes."
    285294msgstr "خطا در ذخیره سازی."
    286295
    287 #: option/classes/options.class.php:288
    288 msgid "Success. Imported backup options."
    289 msgstr "تنظیمات با موفقیت وارد شد."
    290 
    291 #: option/classes/options.class.php:300
    292 msgid "Default options restored."
     296#: option/classes/admin-options.class.php:290
     297#, fuzzy
     298#| msgid "sent successfully"
     299msgid "Settings successfully imported."
     300msgstr "با موفقیت ارسال شد"
     301
     302#: option/classes/admin-options.class.php:302
     303#: option/classes/admin-options.class.php:318
     304#, fuzzy
     305#| msgid "Default options restored."
     306msgid "Default settings restored."
    293307msgstr "گزینه های پیش فرض بازیابی شد."
    294308
    295 #: option/classes/options.class.php:316
    296 msgid "Default options restored for only this section."
    297 msgstr ""
    298 
    299 #: option/classes/options.class.php:387
     309#: option/classes/admin-options.class.php:389
    300310msgid "Settings saved."
    301311msgstr "تنظیمات ذخیره شد."
    302312
    303 #: option/classes/options.class.php:504
    304 msgid "Nirweb team"
    305 msgstr "تیم نیروب"
    306 
    307 #: option/classes/options.class.php:574
    308 msgid "Settings have changed, you should save them!"
    309 msgstr "تنظیمات تغییر کرده اند ، باید آنها را ذخیره کنید!"
    310 
    311 #: option/classes/options.class.php:576
    312 msgid "show all options"
     313#: option/classes/admin-options.class.php:570
     314msgid "You have unsaved changes, save your changes!"
     315msgstr ""
     316
     317#: option/classes/admin-options.class.php:572
     318#, fuzzy
     319#| msgid "show all options"
     320msgid "show all settings"
    313321msgstr "نمایش همه گزینه ها"
    314322
    315 #: option/classes/options.class.php:578
    316 msgid "Search option(s)"
    317 msgstr "جستجوی گزینه‌(ها)"
    318 
    319 #: option/classes/options.class.php:581 option/classes/options.class.php:708
     323#: option/classes/admin-options.class.php:574
     324msgid "Search..."
     325msgstr ""
     326
     327#: option/classes/admin-options.class.php:577
     328#: option/classes/admin-options.class.php:700
    320329msgid "Save"
    321330msgstr "ذخیره"
    322331
    323 #: option/classes/options.class.php:581 option/classes/options.class.php:708
     332#: option/classes/admin-options.class.php:577
     333#: option/classes/admin-options.class.php:700
    324334msgid "Saving..."
    325335msgstr "در حال ذخیره ..."
    326336
    327 #: option/classes/options.class.php:582 option/classes/options.class.php:709
     337#: option/classes/admin-options.class.php:578
     338#: option/classes/admin-options.class.php:701
    328339msgid "Reset Section"
    329340msgstr "ریست کردن بخش"
    330341
    331 #: option/classes/options.class.php:582 option/classes/options.class.php:709
     342#: option/classes/admin-options.class.php:578
     343#: option/classes/admin-options.class.php:701
    332344msgid "Are you sure to reset this section options?"
    333345msgstr "آیا مطمئن هستید که گزینه های این بخش را دوباره تنظیم می کنید؟"
    334346
    335 #: option/classes/options.class.php:583 option/classes/options.class.php:710
    336 #: option/fields/backup/backup.php:34
     347#: option/classes/admin-options.class.php:579
     348#: option/classes/admin-options.class.php:702
    337349msgid "Reset All"
    338350msgstr "ریست تمامی مقادیر"
    339351
    340 #: option/classes/options.class.php:583 option/classes/options.class.php:710
    341 msgid "Are you sure to reset all options?"
    342 msgstr ""
    343 
    344 #: option/classes/options.class.php:683
    345 msgid "No option provided by developer."
    346 msgstr ""
    347 
    348 #: option/classes/setup.class.php:434
     352#: option/classes/admin-options.class.php:579
     353#: option/classes/admin-options.class.php:702
     354#, fuzzy
     355#| msgid "Reset All"
     356msgid "Reset"
     357msgstr "ریست تمامی مقادیر"
     358
     359#: option/classes/admin-options.class.php:579
     360#: option/classes/admin-options.class.php:702
     361#, fuzzy
     362#| msgid "Are you sure to reset this section options?"
     363msgid "Are you sure you want to reset all settings to default values?"
     364msgstr "آیا مطمئن هستید که گزینه های این بخش را دوباره تنظیم می کنید؟"
     365
     366#: option/classes/admin-options.class.php:677
     367#: option/fields/select/select.php:113 option/functions/actions.php:41
     368msgid "No data available."
     369msgstr ""
     370
     371#: option/classes/setup.class.php:603
    349372msgid "Are you sure?"
    350373msgstr "آیا مطمئن هستید؟"
    351374
    352 #: option/classes/setup.class.php:435
    353 msgid "Restoring options."
    354 msgstr ""
    355 
    356 #: option/classes/setup.class.php:436
    357 msgid "Importing options."
    358 msgstr ""
    359 
    360 #: option/classes/setup.class.php:439
     375#: option/classes/setup.class.php:604
    361376#, php-format
    362377msgid "Please enter %s or more characters"
    363378msgstr ""
    364379
    365 #: option/classes/setup.class.php:440
     380#: option/classes/setup.class.php:605
    366381msgid "Searching..."
    367382msgstr ""
    368383
    369 #: option/classes/setup.class.php:441
    370 msgid "No results match"
    371 msgstr ""
    372 
    373 #: option/classes/setup.class.php:512
    374 #, php-format
    375 msgid "Ooops! This field type (%s) can not be used here, yet."
    376 msgstr ""
    377 
    378 #: option/classes/setup.class.php:582
    379 msgid "This field class is not available!"
    380 msgstr ""
    381 
    382 #: option/classes/setup.class.php:586
    383 msgid "This type is not found!"
    384 msgstr ""
    385 
    386 #: option/fields/background/background.php:35
    387 msgid "No background selected"
    388 msgstr ""
    389 
    390 #: option/fields/background/background.php:66 option/fields/date/date.php:31
     384#: option/classes/setup.class.php:606
     385msgid "No results found."
     386msgstr ""
     387
     388#: option/classes/setup.class.php:707
     389msgid "Oops! Not allowed."
     390msgstr ""
     391
     392#: option/classes/setup.class.php:775 option/classes/setup.class.php:779
     393msgid "Field not found!"
     394msgstr ""
     395
     396#: option/fields/date/date.php:31
    391397msgid "From"
    392398msgstr ""
    393399
    394 #: option/fields/background/background.php:84 option/fields/date/date.php:32
     400#: option/fields/date/date.php:32
    395401msgid "To"
    396402msgstr ""
    397403
    398 #: option/fields/background/background.php:102
    399 msgid "Direction"
    400 msgstr ""
    401 
    402 #: option/fields/background/background.php:108
    403 msgid "Gradient Direction"
    404 msgstr ""
    405 
    406 #: option/fields/background/background.php:109
    407 msgid "&#8659; top to bottom"
    408 msgstr ""
    409 
    410 #: option/fields/background/background.php:110
    411 msgid "&#8658; left to right"
    412 msgstr ""
    413 
    414 #: option/fields/background/background.php:111
    415 msgid "&#8664; corner top to right"
    416 msgstr ""
    417 
    418 #: option/fields/background/background.php:112
    419 msgid "&#8665; corner top to left"
    420 msgstr ""
    421 
    422 #: option/fields/background/background.php:155
    423 msgid "Background Position"
    424 msgstr ""
    425 
    426 #: option/fields/background/background.php:156
    427 msgid "Left Top"
    428 msgstr ""
    429 
    430 #: option/fields/background/background.php:157
    431 msgid "Left Center"
    432 msgstr ""
    433 
    434 #: option/fields/background/background.php:158
    435 msgid "Left Bottom"
    436 msgstr ""
    437 
    438 #: option/fields/background/background.php:159
    439 msgid "Center Top"
    440 msgstr ""
    441 
    442 #: option/fields/background/background.php:160
    443 msgid "Center Center"
    444 msgstr ""
    445 
    446 #: option/fields/background/background.php:161
    447 msgid "Center Bottom"
    448 msgstr ""
    449 
    450 #: option/fields/background/background.php:162
    451 msgid "Right Top"
    452 msgstr ""
    453 
    454 #: option/fields/background/background.php:163
    455 msgid "Right Center"
    456 msgstr ""
    457 
    458 #: option/fields/background/background.php:164
    459 msgid "Right Bottom"
    460 msgstr ""
    461 
    462 #: option/fields/background/background.php:178
    463 msgid "Background Repeat"
    464 msgstr ""
    465 
    466 #: option/fields/background/background.php:179
    467 msgid "Repeat"
    468 msgstr ""
    469 
    470 #: option/fields/background/background.php:180
    471 msgid "No Repeat"
    472 msgstr ""
    473 
    474 #: option/fields/background/background.php:181
    475 msgid "Repeat Horizontally"
    476 msgstr ""
    477 
    478 #: option/fields/background/background.php:182
    479 msgid "Repeat Vertically"
    480 msgstr ""
    481 
    482 #: option/fields/background/background.php:196
    483 msgid "Background Attachment"
    484 msgstr ""
    485 
    486 #: option/fields/background/background.php:197
    487 msgid "Scroll"
    488 msgstr ""
    489 
    490 #: option/fields/background/background.php:198
    491 msgid "Fixed"
    492 msgstr ""
    493 
    494 #: option/fields/background/background.php:212
    495 msgid "Background Size"
    496 msgstr ""
    497 
    498 #: option/fields/background/background.php:213
    499 msgid "Cover"
    500 msgstr ""
    501 
    502 #: option/fields/background/background.php:214
    503 msgid "Contain"
    504 msgstr ""
    505 
    506 #: option/fields/background/background.php:228
    507 msgid "Background Origin"
    508 msgstr ""
    509 
    510 #: option/fields/background/background.php:229
    511 #: option/fields/background/background.php:247
    512 msgid "Padding Box"
    513 msgstr ""
    514 
    515 #: option/fields/background/background.php:230
    516 #: option/fields/background/background.php:246
    517 msgid "Border Box"
    518 msgstr ""
    519 
    520 #: option/fields/background/background.php:231
    521 #: option/fields/background/background.php:248
    522 msgid "Content Box"
    523 msgstr ""
    524 
    525 #: option/fields/background/background.php:245
    526 msgid "Background Clip"
    527 msgstr ""
    528 
    529 #: option/fields/background/background.php:262
    530 msgid "Background Blend Mode"
    531 msgstr ""
    532 
    533 #: option/fields/background/background.php:263
    534 #: option/fields/link_color/link_color.php:36
    535 #: option/fields/typography/typography.php:175
    536 msgid "Normal"
    537 msgstr ""
    538 
    539 #: option/fields/background/background.php:264
    540 msgid "Multiply"
    541 msgstr ""
    542 
    543 #: option/fields/background/background.php:265
    544 msgid "Screen"
    545 msgstr ""
    546 
    547 #: option/fields/background/background.php:266
    548 msgid "Overlay"
    549 msgstr ""
    550 
    551 #: option/fields/background/background.php:267
    552 msgid "Darken"
    553 msgstr ""
    554 
    555 #: option/fields/background/background.php:268
    556 msgid "Lighten"
    557 msgstr ""
    558 
    559 #: option/fields/background/background.php:269
    560 msgid "Color Dodge"
    561 msgstr ""
    562 
    563 #: option/fields/background/background.php:270
    564 msgid "Saturation"
    565 msgstr ""
    566 
    567 #: option/fields/background/background.php:271
    568 msgid "Color"
    569 msgstr ""
    570 
    571 #: option/fields/background/background.php:272
    572 msgid "Luminosity"
    573 msgstr ""
    574 
    575 #: option/fields/backup/backup.php:26
    576 msgid "Import"
    577 msgstr ""
    578 
    579 #: option/fields/backup/backup.php:27
    580 msgid "copy-paste your backup string here"
    581 msgstr ""
    582 
    583 #: option/fields/backup/backup.php:31
    584 msgid "Export and Download Backup"
    585 msgstr ""
    586 
    587 #: option/fields/backup/backup.php:35
    588 msgid "Please be sure for reset all of options."
    589 msgstr ""
    590 
    591 #: option/fields/border/border.php:25 option/fields/spacing/spacing.php:25
    592 msgid "top"
    593 msgstr ""
    594 
    595 #: option/fields/border/border.php:26 option/fields/spacing/spacing.php:26
    596 msgid "right"
    597 msgstr ""
    598 
    599 #: option/fields/border/border.php:27 option/fields/spacing/spacing.php:27
    600 msgid "bottom"
    601 msgstr ""
    602 
    603 #: option/fields/border/border.php:28 option/fields/spacing/spacing.php:28
    604 msgid "left"
    605 msgstr ""
    606 
    607 #: option/fields/border/border.php:29 option/fields/spacing/spacing.php:29
    608 msgid "all"
    609 msgstr ""
    610 
    611 #: option/fields/border/border.php:51
    612 #: option/fields/typography/typography.php:203
    613 msgid "Solid"
    614 msgstr ""
    615 
    616 #: option/fields/border/border.php:52
    617 #: option/fields/typography/typography.php:206
    618 msgid "Dashed"
    619 msgstr ""
    620 
    621 #: option/fields/border/border.php:53
    622 #: option/fields/typography/typography.php:205
    623 msgid "Dotted"
    624 msgstr ""
    625 
    626 #: option/fields/border/border.php:54
    627 #: option/fields/typography/typography.php:204
    628 msgid "Double"
    629 msgstr ""
    630 
    631 #: option/fields/border/border.php:55
    632 msgid "Inset"
    633 msgstr ""
    634 
    635 #: option/fields/border/border.php:56
    636 msgid "Outset"
    637 msgstr ""
    638 
    639 #: option/fields/border/border.php:57
    640 msgid "Groove"
    641 msgstr ""
    642 
    643 #: option/fields/border/border.php:58
    644 msgid "ridge"
    645 msgstr ""
    646 
    647 #: option/fields/border/border.php:59
    648 #: option/fields/typography/typography.php:188
    649 #: option/fields/typography/typography.php:202
    650 msgid "None"
    651 msgstr ""
    652 
    653 #: option/fields/button_set/button_set.php:56
    654 #: option/fields/checkbox/checkbox.php:63 option/fields/radio/radio.php:62
    655 #: option/fields/select/select.php:113
    656 msgid "No data provided for this option type."
    657 msgstr ""
    658 
    659 #: option/fields/dimensions/dimensions.php:22
    660 msgid "width"
    661 msgstr ""
    662 
    663 #: option/fields/dimensions/dimensions.php:23
    664 msgid "height"
    665 msgstr ""
    666 
    667 #: option/fields/gallery/gallery.php:20
    668 msgid "Add Gallery"
    669 msgstr ""
    670 
    671 #: option/fields/gallery/gallery.php:21
    672 msgid "Edit Gallery"
    673 msgstr ""
    674 
    675 #: option/fields/gallery/gallery.php:22
    676 msgid "Clear"
    677 msgstr ""
    678 
    679 #: option/fields/group/group.php:23
    680 msgid "Add New"
    681 msgstr ""
    682 
    683 #: option/fields/group/group.php:35 option/fields/repeater/repeater.php:30
    684 msgid "Error: Nested field id can not be same with another nested field id."
    685 msgstr ""
    686 
    687 #: option/fields/group/group.php:46 option/fields/group/group.php:87
    688 #: option/fields/repeater/repeater.php:51
    689 #: option/fields/repeater/repeater.php:82
     404#: option/fields/repeater/repeater.php:27
     405msgid "Error: Field ID conflict."
     406msgstr ""
     407
     408#: option/fields/repeater/repeater.php:48
     409#: option/fields/repeater/repeater.php:76
    690410msgid "Are you sure to delete this item?"
    691411msgstr ""
    692412
    693 #: option/fields/group/group.php:122 option/fields/repeater/repeater.php:96
    694 msgid "You can not add more than"
    695 msgstr ""
    696 
    697 #: option/fields/group/group.php:123 option/fields/repeater/repeater.php:97
    698 msgid "You can not remove less than"
    699 msgstr ""
    700 
    701 #: option/fields/icon/icon.php:20 option/functions/actions.php:209
    702 msgid "Add Icon"
    703 msgstr ""
    704 
    705 #: option/fields/icon/icon.php:21
    706 msgid "Remove Icon"
    707 msgstr ""
    708 
    709 #: option/fields/link_color/link_color.php:37
    710 msgid "Hover"
    711 msgstr ""
    712 
    713 #: option/fields/link_color/link_color.php:38
    714 msgid "Active"
    715 msgstr ""
    716 
    717 #: option/fields/link_color/link_color.php:39
    718 msgid "Visited"
    719 msgstr ""
    720 
    721 #: option/fields/link_color/link_color.php:40
    722 msgid "Focus"
    723 msgstr ""
    724 
    725 #: option/fields/map/map.php:23
    726 msgid "Search your address..."
    727 msgstr ""
    728 
    729 #: option/fields/map/map.php:24
    730 msgid "Latitude"
    731 msgstr ""
    732 
    733 #: option/fields/map/map.php:25
    734 msgid "Longitude"
    735 msgstr ""
    736 
    737 #: option/fields/media/media.php:23 option/fields/upload/upload.php:21
    738 msgid "Upload"
    739 msgstr ""
    740 
    741 #: option/fields/media/media.php:24 option/fields/upload/upload.php:22
    742 msgid "Remove"
    743 msgstr ""
    744 
    745 #: option/fields/media/media.php:57
    746 msgid "No media selected"
    747 msgstr ""
    748 
    749 #: option/fields/sorter/sorter.php:21
    750 msgid "Enabled"
    751 msgstr ""
    752 
    753 #: option/fields/sorter/sorter.php:22
    754 msgid "Disabled"
     413#: option/fields/repeater/repeater.php:89
     414msgid "You cannot add more."
     415msgstr ""
     416
     417#: option/fields/repeater/repeater.php:90
     418msgid "You cannot remove more."
    755419msgstr ""
    756420
     
    761425#: option/fields/switcher/switcher.php:21
    762426msgid "Off"
    763 msgstr ""
    764 
    765 #: option/fields/textarea/textarea.php:37
    766 msgid "Add Shortcode"
    767 msgstr ""
    768 
    769 #: option/fields/typography/typography.php:85
    770 msgid "Font Family"
    771 msgstr ""
    772 
    773 #: option/fields/typography/typography.php:86
    774 msgid "Select a font"
    775 msgstr ""
    776 
    777 #: option/fields/typography/typography.php:94
    778 msgid "Backup Font Family"
    779 msgstr ""
    780 
    781 #: option/fields/typography/typography.php:108
    782 #: option/fields/typography/typography.php:121
    783 #: option/fields/typography/typography.php:134
    784 #: option/fields/typography/typography.php:149
    785 #: option/fields/typography/typography.php:165
    786 #: option/fields/typography/typography.php:178
    787 #: option/fields/typography/typography.php:192
    788 #: option/fields/typography/typography.php:210
    789 msgid "Default"
    790 msgstr ""
    791 
    792 #: option/fields/typography/typography.php:119
    793 msgid "Font Style"
    794 msgstr ""
    795 
    796 #: option/fields/typography/typography.php:133
    797 #: option/fields/typography/typography.php:134
    798 msgid "Load Extra Styles"
    799 msgstr ""
    800 
    801 #: option/fields/typography/typography.php:147
    802 msgid "Subset"
    803 msgstr ""
    804 
    805 #: option/fields/typography/typography.php:157
    806 msgid "Text Align"
    807 msgstr ""
    808 
    809 #: option/fields/typography/typography.php:159
    810 msgid "Inherit"
    811 msgstr ""
    812 
    813 #: option/fields/typography/typography.php:160
    814 msgid "Left"
    815 msgstr ""
    816 
    817 #: option/fields/typography/typography.php:161
    818 msgid "Center"
    819 msgstr ""
    820 
    821 #: option/fields/typography/typography.php:162
    822 msgid "Right"
    823 msgstr ""
    824 
    825 #: option/fields/typography/typography.php:163
    826 msgid "Justify"
    827 msgstr ""
    828 
    829 #: option/fields/typography/typography.php:164
    830 msgid "Initial"
    831 msgstr ""
    832 
    833 #: option/fields/typography/typography.php:173
    834 msgid "Font Variant"
    835 msgstr ""
    836 
    837 #: option/fields/typography/typography.php:176
    838 msgid "Small Caps"
    839 msgstr ""
    840 
    841 #: option/fields/typography/typography.php:177
    842 msgid "All Small Caps"
    843 msgstr ""
    844 
    845 #: option/fields/typography/typography.php:186
    846 msgid "Text Transform"
    847 msgstr ""
    848 
    849 #: option/fields/typography/typography.php:189
    850 msgid "Capitalize"
    851 msgstr ""
    852 
    853 #: option/fields/typography/typography.php:190
    854 msgid "Uppercase"
    855 msgstr ""
    856 
    857 #: option/fields/typography/typography.php:191
    858 msgid "Lowercase"
    859 msgstr ""
    860 
    861 #: option/fields/typography/typography.php:200
    862 msgid "Text Decoration"
    863 msgstr ""
    864 
    865 #: option/fields/typography/typography.php:207
    866 msgid "Wavy"
    867 msgstr ""
    868 
    869 #: option/fields/typography/typography.php:208
    870 msgid "Overline"
    871 msgstr ""
    872 
    873 #: option/fields/typography/typography.php:209
    874 msgid "Line-through"
    875 msgstr ""
    876 
    877 #: option/fields/typography/typography.php:222
    878 msgid "Font Size"
    879 msgstr ""
    880 
    881 #: option/fields/typography/typography.php:234
    882 msgid "Line Height"
    883 msgstr ""
    884 
    885 #: option/fields/typography/typography.php:246
    886 msgid "Letter Spacing"
    887 msgstr ""
    888 
    889 #: option/fields/typography/typography.php:258
    890 msgid "Word Spacing"
    891 msgstr ""
    892 
    893 #: option/fields/typography/typography.php:273
    894 msgid "Font Color"
    895 msgstr ""
    896 
    897 #: option/fields/typography/typography.php:284
    898 msgid "Custom Style"
    899 msgstr ""
    900 
    901 #: option/fields/typography/typography.php:351
    902 msgid "Custom Web Fonts"
    903 msgstr ""
    904 
    905 #: option/fields/typography/typography.php:357
    906 msgid "Safe Web Fonts"
    907 msgstr ""
    908 
    909 #: option/fields/typography/typography.php:377
    910 msgid "Google Web Fonts"
    911427msgstr ""
    912428
     
    914430#: option/functions/actions.php:106 option/functions/actions.php:141
    915431#: option/functions/actions.php:170
    916 msgid "Error: Nonce verification has failed. Please try again."
    917 msgstr ""
    918 
    919 #: option/functions/actions.php:41
    920 msgid "No data provided by developer"
     432msgid "Error: Invalid nonce verification."
    921433msgstr ""
    922434
    923435#: option/functions/actions.php:72 option/functions/actions.php:110
    924 msgid "Error: Options unique id could not valid."
     436msgid "Error: Invalid key."
    925437msgstr ""
    926438
    927439#: option/functions/actions.php:114
    928 msgid "Error: Import data could not valid."
     440msgid "Error: The response is not a valid JSON response."
    929441msgstr ""
    930442
    931443#: option/functions/actions.php:174
    932 msgid "Error: Missing request arguments."
     444msgid "Error: Invalid term ID."
    933445msgstr ""
    934446
    935447#: option/functions/actions.php:180
    936 msgid "You do not have required permissions to access."
    937 msgstr ""
    938 
    939 #: option/functions/actions.php:213
    940 msgid "Search a Icon..."
     448msgid "Error: You do not have permission to do that."
    941449msgstr ""
    942450
    943451#: option/functions/validate.php:14 option/functions/validate.php:86
    944 msgid "Please write a valid email address!"
     452msgid "Please enter a valid email address."
    945453msgstr ""
    946454
    947455#: option/functions/validate.php:32 option/functions/validate.php:106
    948 msgid "Please write a numeric data!"
    949 msgstr ""
     456#, fuzzy
     457#| msgid "enter a valid phoneumber"
     458msgid "Please enter a valid number."
     459msgstr "یک تلفن همراه معتبر وارد کنید"
    950460
    951461#: option/functions/validate.php:50 option/functions/validate.php:126
    952 msgid "Error! This field is required!"
     462msgid "This field is required."
    953463msgstr ""
    954464
    955465#: option/functions/validate.php:68 option/functions/validate.php:146
    956 msgid "Please write a valid url!"
     466msgid "Please enter a valid URL."
    957467msgstr ""
    958468
     
    965475msgstr "تیم نیروب"
    966476
    967 #: option/options/options.php:18
     477#: option/options/options.php:18 settings/settings.php:35
    968478msgid "Woocommerce"
    969479msgstr "ووکامرس"
     
    1359869msgstr "سفارشات مسترد شده"
    1360870
    1361 #: option/options/woocommerce/general.php:3
     871#: option/options/woocommerce/general.php:3 settings/settings.php:34
     872#: settings/settings.php:39
    1362873msgid "General settings"
    1363874msgstr "تنظیمات عمومی"
     
    1369880msgstr "یک گزینه را انتخاب کنید"
    1370881
    1371 #: option/options/woocommerce/general.php:15
     882#: option/options/woocommerce/general.php:15 settings/settings.php:45
    1372883msgid "SMS Panel"
    1373884msgstr "پنل پیامکی"
     
    17411252"کنید ، اگر از ملی پیامک استفاده میکنید از متغیر 0 استفاده کنید"
    17421253
     1254#: option/options/wp/phone.php:3
     1255msgid "phone"
     1256msgstr ""
     1257
     1258#: option/options/wp/phone.php:8
     1259#, fuzzy
     1260#| msgid "use shortcode"
     1261msgid "active phone shortcode."
     1262msgstr "استفاده از کد کوتاه"
     1263
     1264#: option/options/wp/phone.php:9
     1265msgid "user's phone numbers will be saved and shown in admin panel."
     1266msgstr "شماره تلفن کاربر ذخیره خواهد شد و در پنل مدیریت نشان داده شده است."
     1267
     1268#: option/options/wp/phone.php:16
     1269#, fuzzy
     1270#| msgid "use shortcode [on_sale_nirweb]"
     1271msgid "use shortcode [phone_box_nirweb]"
     1272msgstr "استفاده از کد کوتاه [on_sale_nirweb]"
     1273
    17431274#: option/options/wp/post.php:3
    17441275msgid "New Post"
     
    18381369msgstr "افزودن فیلد شماره موبایل به فیلد پیش فرض ثبت نام ووکامرس"
    18391370
     1371#: settings/settings.php:48
     1372#, fuzzy
     1373#| msgid "SMS Panel"
     1374msgid "IP Panel"
     1375msgstr "پنل پیامکی"
     1376
     1377#: settings/settings.php:49
     1378#, fuzzy
     1379#| msgid "Melipayamak username"
     1380msgid "Melipayamak"
     1381msgstr "نام‌کاربری"
     1382
     1383#: settings/settings.php:50
     1384msgid "Sms.ir"
     1385msgstr ""
     1386
     1387#: settings/settings.php:55
     1388msgid "Username"
     1389msgstr "نام کاربری"
     1390
     1391#: settings/settings.php:56
     1392msgid "enter api key for melipayamak."
     1393msgstr "اگر از ملی پیامک استفاده میکنید api key را وارد کنید "
     1394
     1395#: settings/settings.php:62
     1396msgid "Password"
     1397msgstr "رمزعبور"
     1398
     1399#: settings/settings.php:63
     1400msgid "enter security key for melipayamak."
     1401msgstr "اگر از ملی پیامک استفاده میکنید  security key را وارد کنید "
     1402
     1403#: settings/settings.php:69
     1404msgid "sender number if you are using ip panel"
     1405msgstr "شماره فرستنده آی پی پنل "
     1406
     1407#: settings/settings.php:75
     1408msgid "Admin phone number"
     1409msgstr "شماره تلفن مدیر"
     1410
    18401411#. Plugin Name of the plugin/theme
    1841 msgid "پیامک رایگان نیروب"
    1842 msgstr ""
    1843 
    1844 #. Author of the plugin/theme
    1845 msgid "nirweb"
    1846 msgstr "نیروب"
    1847 
     1412msgid "پیامک رایگان ووکامرس و وردپرس نیر وب"
     1413msgstr ""
     1414
     1415#. Plugin URI of the plugin/theme
    18481416#. Author URI of the plugin/theme
    18491417msgid "https://nirweb.ir/"
    18501418msgstr ""
     1419
     1420#. Description of the plugin/theme
     1421msgid "کاملترین افزونه پیامک ووکامرس و وردپرس"
     1422msgstr ""
     1423
     1424#. Author of the plugin/theme
     1425#, fuzzy
     1426#| msgid "NirWeb Team"
     1427msgid "NirWeb"
     1428msgstr "تیم نیروب"
     1429
     1430#~ msgid "Success. Imported backup options."
     1431#~ msgstr "تنظیمات با موفقیت وارد شد."
     1432
     1433#~ msgid "Nirweb team"
     1434#~ msgstr "تیم نیروب"
     1435
     1436#~ msgid "Settings have changed, you should save them!"
     1437#~ msgstr "تنظیمات تغییر کرده اند ، باید آنها را ذخیره کنید!"
     1438
     1439#~ msgid "Search option(s)"
     1440#~ msgstr "جستجوی گزینه‌(ها)"
     1441
     1442#~ msgid "nirweb"
     1443#~ msgstr "نیروب"
    18511444
    18521445#~ msgid ""
     
    18641457#~ msgid "ID"
    18651458#~ msgstr "شناسه"
    1866 
    1867 #~ msgid "phone number"
    1868 #~ msgstr "شماره همراه"
    18691459
    18701460#~ msgid "Export"
  • nirweb-smart-sms/trunk/option/assets/css/style-rtl.min.css

    r2729089 r2729124  
    1 .csf-options{margin-left:20px;margin-right:0}.csf-header h1{float:right}.csf-header fieldset{float:left}.csf-buttons{float:left;direction:ltr}.csf-header-left{float:right}.csf-header-right{float:left}.csf-nav{float:right}.csf-nav ul{clear:right}.csf-nav ul li .csf-active:after{right:auto;left:0;border-left-color:#fff;border-right-color:transparent}.csf-nav ul li .csf-arrow:after{content:"\f053";right:auto;left:10px}.csf-nav ul li.csf-tab-expanded .csf-arrow:after{transform:rotate(-90deg)}.csf-nav ul ul li a{padding-right:25px;padding-left:15px}.csf-nav ul ul:before{left:auto;right:15px}.csf-nav .csf-tab-icon{margin-left:5px;margin-right:0}.csf-nav-background{left:auto;right:0}.csf-content{margin-left:0;margin-right:225px}.csf-sections{float:right}.csf-show-all .csf-content{margin-right:0;overflow:hidden}.csf-expand-all{float:right;right:auto;left:40px;margin-right:0;margin-left:4px}.csf-search{float:right}.csf-search input{margin:0 0 0 5px}.csf-copyright{float:right}.csf-metabox{margin:-6px -12px -12px -12px}.csf-metabox .csf-section-title{padding:20px}.csf-section-title .csf-section-icon{margin-left:5px;margin-right:0}.csf-field .csf-title{float:right}.csf-field .csf-fieldset{float:left}.csf-pseudo-field{padding:0 0 0 5px!important}.csf-field-typography select{margin:0;width:100%}.csf-field-typography .csf--blocks-inputs .csf--blocks{flex-direction:row-reverse}.csf-field-typography .csf--unit{left:4px;right:auto}.csf-field-checkbox ul ul li,.csf-field-radio ul ul li{margin-left:0;margin-right:8px}.csf-field-checkbox ul ul li:first-child,.csf-field-radio ul ul li:first-child{margin-right:0}.csf-field-checkbox .csf--inline-list li,.csf-field-radio .csf--inline-list li{margin-right:0;margin-left:15px}.csf-field-checkbox .csf--text,.csf-field-radio .csf--text{margin-left:0;margin-right:5px}.csf-field-switcher .csf--switcher{float:right}.csf-field-switcher .csf--label{float:right;margin-left:0;margin-right:5px}.csf-field-upload .csf--button,.csf-field-upload .csf--remove{margin-left:0;margin-right:5px}.csf-field-group .csf-cloneable-title{padding:15px 10px 15px 65px}.csf-field-group .csf-cloneable-helper{right:auto;left:10px}.csf-field-repeater .csf-repeater-helper{border-left:0;border-right:1px solid #eee}.csf-help{right:auto;left:5px}.csf-field-icon .button{margin-right:0;margin-left:5px}.csf-field-icon .csf-icon-preview i{margin-right:0;margin-left:5px}.csf-field-gallery ul li{margin-right:0;margin-left:5px}.csf-field-gallery .button{margin-right:0;margin-left:5px}.csf-field-tabbed .csf-tabbed-nav .csf--icon{padding-right:0;padding-left:5px}.csf-field-tabbed .csf-tabbed-nav a{margin-right:0;margin-left:5px}.csf-field-media .button{margin-left:0;margin-right:7px}.csf-field-media .hidden+.button{margin-right:0}.csf-notice{border-left:none;border-right-style:solid;border-right-width:4px}.csf-field-border .csf--input,.csf-field-border .csf-fieldset,.csf-field-dimensions .csf--input,.csf-field-dimensions .csf-fieldset,.csf-field-spacing .csf--input,.csf-field-spacing .csf-fieldset{direction:ltr}.csf-field-border .csf--color,.csf-field-border .csf--inputs,.csf-field-dimensions .csf--color,.csf-field-dimensions .csf--inputs,.csf-field-spacing .csf--color,.csf-field-spacing .csf--inputs{float:right}.csf-field-border .csf--color,.csf-field-dimensions .csf--color,.csf-field-spacing .csf--color{margin-right:4px;direction:rtl}.csf-field-background .csf--block{float:right}.csf-field-background .csf--media,.csf-field-background .csf--select{padding-right:0}.csf-field-background .csf--title{margin-right:0;margin-left:5px}.csf-field-spinner .csf--spin{float:right;direction:ltr}.csf-field-slider .csf-slider-ui{direction:ltr;margin-right:0;margin-left:15px}.csf-field-slider .csf--input{direction:ltr}.csf-field-button_set .csf--button-group{float:right}.csf-field-link_color .csf--left{float:right;margin-right:0;margin-left:10px}.csf-field-color_group .csf--left{float:right;margin-right:0;margin-left:10px}.csf-field-palette .csf--palette{margin-right:0;margin-left:10px}.csf-field-accordion .csf--icon{margin-right:0;margin-left:2px}.csf-field-date .csf--to{margin-left:0;margin-right:7px}.csf-field-map .csf--map-input:last-child{padding-left:0;padding-right:10px}.csf-field-sortable .csf-sortable-helper{border-left:none;border-right:1px solid #eee}.csf-field-number .csf--wrap{float:right}.csf-field-number .csf--unit{left:4px;right:auto}.csf-taxonomy-add-fields{margin-right:0;margin-left:30px}.csf-taxonomy-add-fields .csf-field>.csf-fieldset>.csf-help{left:-5px;right:auto}.csf-taxonomy-edit-fields{margin-right:0;margin-left:35px}.csf-taxonomy-edit-fields .csf-field>.csf-fieldset>.csf-help{right:auto;left:-5px}.csf-profile-options>h2>.fa{padding-right:0;padding-left:7px}.csf-profile-options>.csf-field>.csf-fieldset>.csf-help{left:-5px;right:auto}.csf-nav-menu-options>.csf-fields{margin-left:0;margin-right:-10px}.csf-nav-menu-title{padding-left:14px;padding-right:12px}.csf-nav-menu-icon{margin-right:0;margin-left:5px}.csf-modal-content .csf-field{padding:15px 15px 15px 30px}.csf-modal-title{padding:0 16px 0 36px}.csf-modal-close{right:auto;left:0}.control-section .csf-field .csf-fieldset{margin-right:0}@media only screen and (max-width:1200px){.csf-metabox .csf-field .csf-fieldset{margin-left:0}}@media only screen and (max-width:782px){.csf .csf-content,.csf .csf-fieldset{margin-right:0}}.csf-field .csf--transparent-slider{margin-left:0;margin-right:2px}.csf-field .csf--transparent-slider .ui-slider-handle{margin:0 -11px}.csf-field .csf--transparent-offset{background-position:center right}.csf-field .csf--transparent-text{right:auto;left:10px}
     1.CFSSMARTSMS-options{margin-left:20px;margin-right:0}.CFSSMARTSMS-header h1{float:right}.CFSSMARTSMS-header fieldset{float:left}.CFSSMARTSMS-buttons{float:left;direction:ltr}.CFSSMARTSMS-header-left{float:right}.CFSSMARTSMS-header-right{float:left}.CFSSMARTSMS-nav{float:right}.CFSSMARTSMS-nav ul{clear:right}.CFSSMARTSMS-nav ul li .CFSSMARTSMS-active:after{right:auto;left:0;border-left-color:#fff;border-right-color:transparent}.CFSSMARTSMS-nav ul li .CFSSMARTSMS-arrow:after{content:"\f053";right:auto;left:10px}.CFSSMARTSMS-nav ul li.CFSSMARTSMS-tab-expanded .CFSSMARTSMS-arrow:after{transform:rotate(-90deg)}.CFSSMARTSMS-nav ul ul li a{padding-right:25px;padding-left:15px}.CFSSMARTSMS-nav ul ul:before{left:auto;right:15px}.CFSSMARTSMS-nav .CFSSMARTSMS-tab-icon{margin-left:5px;margin-right:0}.CFSSMARTSMS-nav-background{left:auto;right:0}.CFSSMARTSMS-content{margin-left:0;margin-right:225px}.CFSSMARTSMS-sections{float:right}.CFSSMARTSMS-show-all .CFSSMARTSMS-content{margin-right:0;overflow:hidden}.CFSSMARTSMS-expand-all{float:right;right:auto;left:40px;margin-right:0;margin-left:4px}.CFSSMARTSMS-search{float:right}.CFSSMARTSMS-search input{margin:0 0 0 5px}.CFSSMARTSMS-copyright{float:right}.CFSSMARTSMS-metabox{margin:-6px -12px -12px -12px}.CFSSMARTSMS-metabox .CFSSMARTSMS-section-title{padding:20px}.CFSSMARTSMS-section-title .CFSSMARTSMS-section-icon{margin-left:5px;margin-right:0}.CFSSMARTSMS-field .CFSSMARTSMS-title{float:right}.CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:left}.CFSSMARTSMS-pseudo-field{padding:0 0 0 5px!important}.CFSSMARTSMS-field-typography select{margin:0;width:100%}.CFSSMARTSMS-field-typography .CFSSMARTSMS--blocks-inputs .CFSSMARTSMS--blocks{flex-direction:row-reverse}.CFSSMARTSMS-field-typography .CFSSMARTSMS--unit{left:4px;right:auto}.CFSSMARTSMS-field-checkbox ul ul li,.CFSSMARTSMS-field-radio ul ul li{margin-left:0;margin-right:8px}.CFSSMARTSMS-field-checkbox ul ul li:first-child,.CFSSMARTSMS-field-radio ul ul li:first-child{margin-right:0}.CFSSMARTSMS-field-checkbox .CFSSMARTSMS--inline-list li,.CFSSMARTSMS-field-radio .CFSSMARTSMS--inline-list li{margin-right:0;margin-left:15px}.CFSSMARTSMS-field-checkbox .CFSSMARTSMS--text,.CFSSMARTSMS-field-radio .CFSSMARTSMS--text{margin-left:0;margin-right:5px}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--switcher{float:right}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--label{float:right;margin-left:0;margin-right:5px}.CFSSMARTSMS-field-upload .CFSSMARTSMS--button,.CFSSMARTSMS-field-upload .CFSSMARTSMS--remove{margin-left:0;margin-right:5px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title{padding:15px 10px 15px 65px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-helper{right:auto;left:10px}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-helper{border-left:0;border-right:1px solid #eee}.CFSSMARTSMS-help{right:auto;left:5px}.CFSSMARTSMS-field-icon .button{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-icon .CFSSMARTSMS-icon-preview i{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-gallery ul li{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-gallery .button{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav .CFSSMARTSMS--icon{padding-right:0;padding-left:5px}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav a{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-media .button{margin-left:0;margin-right:7px}.CFSSMARTSMS-field-media .hidden+.button{margin-right:0}.CFSSMARTSMS-notice{border-left:none;border-right-style:solid;border-right-width:4px}.CFSSMARTSMS-field-border .CFSSMARTSMS--input,.CFSSMARTSMS-field-border .CFSSMARTSMS-fieldset,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--input,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS-fieldset,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--input,.CFSSMARTSMS-field-spacing .CFSSMARTSMS-fieldset{direction:ltr}.CFSSMARTSMS-field-border .CFSSMARTSMS--color,.CFSSMARTSMS-field-border .CFSSMARTSMS--inputs,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--color,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--inputs,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--color,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--inputs{float:right}.CFSSMARTSMS-field-border .CFSSMARTSMS--color,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--color,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--color{margin-right:4px;direction:rtl}.CFSSMARTSMS-field-background .CFSSMARTSMS--block{float:right}.CFSSMARTSMS-field-background .CFSSMARTSMS--media,.CFSSMARTSMS-field-background .CFSSMARTSMS--select{padding-right:0}.CFSSMARTSMS-field-background .CFSSMARTSMS--title{margin-right:0;margin-left:5px}.CFSSMARTSMS-field-spinner .CFSSMARTSMS--spin{float:right;direction:ltr}.CFSSMARTSMS-field-slider .CFSSMARTSMS-slider-ui{direction:ltr;margin-right:0;margin-left:15px}.CFSSMARTSMS-field-slider .CFSSMARTSMS--input{direction:ltr}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button-group{float:right}.CFSSMARTSMS-field-link_color .CFSSMARTSMS--left{float:right;margin-right:0;margin-left:10px}.CFSSMARTSMS-field-color_group .CFSSMARTSMS--left{float:right;margin-right:0;margin-left:10px}.CFSSMARTSMS-field-palette .CFSSMARTSMS--palette{margin-right:0;margin-left:10px}.CFSSMARTSMS-field-accordion .CFSSMARTSMS--icon{margin-right:0;margin-left:2px}.CFSSMARTSMS-field-date .CFSSMARTSMS--to{margin-left:0;margin-right:7px}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-input:last-child{padding-left:0;padding-right:10px}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-helper{border-left:none;border-right:1px solid #eee}.CFSSMARTSMS-field-number .CFSSMARTSMS--wrap{float:right}.CFSSMARTSMS-field-number .CFSSMARTSMS--unit{left:4px;right:auto}.CFSSMARTSMS-taxonomy-add-fields{margin-right:0;margin-left:30px}.CFSSMARTSMS-taxonomy-add-fields .CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{left:-5px;right:auto}.CFSSMARTSMS-taxonomy-edit-fields{margin-right:0;margin-left:35px}.CFSSMARTSMS-taxonomy-edit-fields .CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{right:auto;left:-5px}.CFSSMARTSMS-profile-options>h2>.fa{padding-right:0;padding-left:7px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{left:-5px;right:auto}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields{margin-left:0;margin-right:-10px}.CFSSMARTSMS-nav-menu-title{padding-left:14px;padding-right:12px}.CFSSMARTSMS-nav-menu-icon{margin-right:0;margin-left:5px}.CFSSMARTSMS-modal-content .CFSSMARTSMS-field{padding:15px 15px 15px 30px}.CFSSMARTSMS-modal-title{padding:0 16px 0 36px}.CFSSMARTSMS-modal-close{right:auto;left:0}.control-section .CFSSMARTSMS-field .CFSSMARTSMS-fieldset{margin-right:0}@media only screen and (max-width:1200px){.CFSSMARTSMS-metabox .CFSSMARTSMS-field .CFSSMARTSMS-fieldset{margin-left:0}}@media only screen and (max-width:782px){.CFSSMARTSMS .CFSSMARTSMS-content,.CFSSMARTSMS .CFSSMARTSMS-fieldset{margin-right:0}}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-slider{margin-left:0;margin-right:2px}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-slider .ui-slider-handle{margin:0 -11px}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-offset{background-position:center right}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-text{right:auto;left:10px}
  • nirweb-smart-sms/trunk/option/assets/css/style.min.css

    r2729089 r2729124  
    1 .csf{position:relative}.csf label{padding:0;margin:0;display:inline-block}.csf-ab-icon{top:2px}#screen-meta-links+.csf-options{margin-top:40px}.csf-options{margin-top:20px;margin-right:20px}.csf-header{position:relative}.csf-header-inner{padding:25px;transition:box-shadow .3s ease}.csf-header-inner h1{float:left;font-size:1.5em;line-height:26px;font-weight:400;margin:0}.csf-header-inner h1 small{font-size:11px;font-weight:500}.csf-sticky .csf-header-inner{position:fixed;z-index:99;top:32px;box-shadow:0 5px 10px rgba(0,0,0,.1)}.csf-buttons{float:right}.csf-buttons .button{margin:0 2px;line-height:26px}.csf-buttons .button:focus{outline:0!important;box-shadow:none!important}.csf-buttons .csf-save{min-width:72px}.csf-header-left{float:left}.csf-header-right{float:right}.csf-nav{display:block;position:relative;z-index:10;float:left}.csf-nav ul{clear:left;margin:0;list-style-type:none}.csf-nav ul li{margin-bottom:0}.csf-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;transition-property:color,background;transition-duration:.2s;transition-timing-function:ease}.csf-nav ul li a:focus{outline:0;box-shadow:none}.csf-nav ul li .csf-arrow:after{content:"\f054";display:inline-block;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px}.csf-nav ul li.csf-tab-expanded .csf-arrow:after{transform:rotate(90deg)}.csf-nav ul li.csf-tab-expanded ul{display:block}.csf-nav ul ul{display:none;position:relative}.csf-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.csf-nav .csf-tab-icon{width:20px;margin-right:5px;font-size:13px;text-align:center}.csf-nav .csf-label-error{margin-left:4px;vertical-align:top}.csf-nav-normal{width:225px}.csf-nav-normal+.csf-content{margin-left:225px}.csf-nav-inline{width:100%}.csf-nav-inline ul li{display:inline-block;vertical-align:top}.csf-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:225px}.csf-wrapper{position:relative}.csf-content{position:relative;background-color:#fff}.csf-sections{float:left;width:100%}.csf-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.csf-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.csf-section-title .csf-section-icon{margin-right:5px}.csf-footer{padding:20px;font-size:11px}.csf-copyright{float:left;margin-top:5px}.csf-search-all .csf-nav,.csf-search-all .csf-nav-background,.csf-show-all .csf-nav,.csf-show-all .csf-nav-background{display:none}.csf-search-all .csf-content,.csf-show-all .csf-content{margin-left:0}.csf-search-all .csf-section,.csf-search-all .csf-section-title,.csf-show-all .csf-section,.csf-show-all .csf-section-title{display:block!important}.csf-search-all .csf-section-title{display:none!important}.csf-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:13px;line-height:30px;cursor:pointer;user-select:none;border-radius:2px;transition:all .2s}.csf-expand-all span{font-size:11px;vertical-align:middle}.csf-search{float:left}.csf-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:30px;min-height:30px;text-align:inherit;padding:0 10px;border-radius:2px;box-shadow:none}.csf-search input:focus{box-shadow:none}.csf-saving .csf-buttons,.csf-saving .csf-content{cursor:default;pointer-events:none;opacity:.5}.csf-metabox{margin:-6px -12px -12px -12px}.csf-metabox .csf-field{padding:20px}.csf-metabox .csf-section-title{padding:20px}.block-editor-page .csf-metabox{margin:-6px -14px -14px -14px}.block-editor-editor-skeleton__content .csf-metabox{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.csf-sections-reset{float:left;width:100%;text-align:right;border-top:1px solid #eee}.csf-sections-reset .csf-button-cancel,.csf-sections-reset input{display:none}.csf-sections-reset label{padding:10px}.csf-sections-reset span{-webkit-user-select:none;user-select:none}.csf-sections-reset input:checked~.csf-button-reset{display:none}.csf-sections-reset input:checked~.csf-button-cancel{display:inline-block}#side-sortables .csf-section-title{padding:12px}#side-sortables .csf-field{padding:10px 15px}#side-sortables .csf-field .csf-title{float:none;width:100%;margin-bottom:6px}#side-sortables .csf-field .csf-fieldset{float:none;width:100%}#side-sortables .csf-field-text input{width:100%}#side-sortables .csf-notice{padding:10px 15px}.csf-comment-metabox{margin:-6px -12px -12px -12px}.csf-comment-metabox .csf-field{padding:20px}.csf-comment-metabox .csf-section-title{padding:20px}.csf-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:center;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);border-radius:4px}.csf-theme-dark .csf-header-inner{background-color:#050505}.csf-theme-dark .csf-header-inner h1{color:#fff}.csf-theme-dark .csf-header-inner h1 small{color:#555}.csf-theme-dark .csf-expand-all{color:#999;background-color:#222}.csf-theme-dark .csf-expand-all:hover{color:#fff;background-color:#333}.csf-theme-dark .csf-search input{color:#fff;background-color:#222}.csf-theme-dark .csf-search:focus{background-color:#444}.csf-theme-dark .csf-search::-webkit-input-placeholder{color:#666}.csf-theme-dark .csf-nav ul li a{color:#999;border-color:#2f2f2f;background-color:#222}.csf-theme-dark .csf-nav ul li a:hover{color:#fff}.csf-theme-dark .csf-nav ul li .csf-active{color:#fff;background-color:#111}.csf-theme-dark .csf-nav ul ul li a{border-color:#2f2f2f;background-color:#191919}.csf-theme-dark .csf-nav ul ul li .csf-active{background-color:#101010}.csf-theme-dark .csf-nav ul ul:before{background-color:rgba(34,34,34,.75)}.csf-theme-dark .csf-nav>ul>li:last-child>a{border:none}.csf-theme-dark .csf-nav-normal ul li a{border-bottom-width:1px;border-bottom-style:solid}.csf-theme-dark .csf-nav-normal ul li .csf-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.csf-theme-dark .csf-nav-inline{background-color:#222}.csf-theme-dark .csf-nav-inline ul li a{text-align:center;border-right-width:1px;border-right-style:solid}.csf-theme-dark .csf-nav-inline ul li .csf-active:after{content:" ";position:absolute;left:50%;bottom:0;height:0;width:0;pointer-events:none;border:solid transparent;border-bottom-color:#fff;border-width:4px;margin-left:-4px}.csf-theme-dark .csf-nav-background{background-color:#222}.csf-theme-dark .csf-footer{color:#555;background-color:#050505}.csf-theme-light .csf-container{border:1px solid #ccd0d4;box-shadow:0 0 15 rgba(0,0,0,.04)}.csf-theme-light .csf-header-inner{border-bottom:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fefefe,#f5f5f5)}.csf-theme-light .csf-header-inner h1 small{color:#999}.csf-theme-light .csf-expand-all{color:#999;background-color:#eee}.csf-theme-light .csf-expand-all:hover{color:#555}.csf-theme-light .csf-search input{color:#555;background-color:#eee}.csf-theme-light .csf-search input::-webkit-input-placeholder{color:#999}.csf-theme-light .csf-nav ul li a{font-weight:500;color:#444;background-color:#f5f5f5}.csf-theme-light .csf-nav ul li a:hover{color:#111;background-color:#fff}.csf-theme-light .csf-nav ul li .csf-active{color:#111;background-color:#fff}.csf-theme-light .csf-nav ul ul li a{background-color:#eee}.csf-theme-light .csf-nav-normal>ul{margin-right:-1px;margin-bottom:-1px}.csf-theme-light .csf-nav-normal>ul li a{border-bottom:1px solid #ccd0d4;border-right:1px solid #ccd0d4}.csf-theme-light .csf-nav-normal>ul li .csf-active{border-right-color:#fff}.csf-theme-light .csf-nav-inline{background-color:#f5f5f5;border-bottom:1px solid #ccd0d4}.csf-theme-light .csf-nav-inline>ul{margin-bottom:-1px}.csf-theme-light .csf-nav-inline>ul li a{text-align:center;border-right:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4}.csf-theme-light .csf-nav-inline>ul li .csf-active{border-bottom-color:#fff}.csf-theme-light .csf-nav-inline>ul ul{display:none!important}.csf-theme-light .csf-nav-inline .csf-arrow:after{display:none}.csf-theme-light .csf-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4}.csf-theme-light .csf-footer{color:#555;border-top:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.csf-field{position:relative;padding:30px}.csf-field+.csf-field{border-top:1px solid #eee}.csf-field p:first-child{margin-top:0}.csf-field p:last-child{margin-bottom:0}.csf-field:after,.csf-field:before{content:" ";display:table}.csf-field:after{clear:both}.csf-field h4{margin-top:0}.csf-field .csf-title{position:relative;width:20%;float:left}.csf-field .csf-title h4{margin:0;color:#23282d}.csf-field .csf-fieldset{float:right;width:calc(80% - 20px)}.csf-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.csf-pseudo-field+.csf-pseudo-field{border:0}.csf-pseudo-field pre{display:none}.csf-field-accordion .csf-accordion-item{position:relative;margin-bottom:5px}.csf-field-accordion .csf-accordion-item:last-child{margin-bottom:0}.csf-field-accordion .csf-accordion-item h4{font-size:1em}.csf-field-accordion .csf-accordion-title{display:block;cursor:pointer;position:relative;margin:0;padding:15px;min-height:0;font-size:100%;user-select:none;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.csf-field-accordion .csf-accordion-title:active,.csf-field-accordion .csf-accordion-title:focus,.csf-field-accordion .csf-accordion-title:hover{outline:0;border-color:#999}.csf-field-accordion .csf-accordion-title .csf--icon{width:20px;text-align:center;margin-right:2px}.csf-field-accordion .csf-accordion-icon{width:16px;text-align:center}.csf-field-accordion .csf-accordion-content{display:none;padding:0;border:1px solid #ccd0d4;border-top:none;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-field-accordion .csf-accordion-content>.csf-field{padding:15px}.csf-field-accordion .csf-accordion-open{display:block}.csf-field-background .csf-field{border:0!important;padding:0;margin-bottom:6px;margin-right:6px}.csf-field-background .csf--title{color:#777;font-size:12px}.csf-field-background .csf--background-colors{display:flex;flex-wrap:wrap}.csf-field-background .csf--background-attributes{display:flex;flex-wrap:wrap}.csf-field-background .csf--background-attributes select{min-width:100%;margin:0}.csf-field-background .csf--background-attributes .csf-field{flex:1}.csf-field-background .csf--attributes-hidden{display:none}.csf-field-backup textarea{width:100%;min-height:200px;margin-bottom:5px}.csf-field-backup small{display:inline-block;margin:5px}.csf-field-backup hr{margin:20px 0;border:none;border-bottom:1px solid #e5e5e5}.csf-field-border .csf--inputs,.csf-field-dimensions .csf--inputs,.csf-field-spacing .csf--inputs{float:left;display:flex;flex-wrap:wrap}.csf-field-border .csf--input,.csf-field-dimensions .csf--input,.csf-field-spacing .csf--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.csf-field-border .csf--input select,.csf-field-dimensions .csf--input select,.csf-field-spacing .csf--input select{margin:0}.csf-field-border .csf--input input,.csf-field-dimensions .csf--input input,.csf-field-spacing .csf--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;text-align:center}.csf-field-border .csf--color,.csf-field-dimensions .csf--color,.csf-field-spacing .csf--color{float:left}.csf-field-border .csf--label,.csf-field-dimensions .csf--label,.csf-field-spacing .csf--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.csf-field-border .csf--icon,.csf-field-dimensions .csf--icon,.csf-field-spacing .csf--icon{border-right:0;border-radius:4px 0 0 4px}.csf-field-border .csf--icon+input,.csf-field-dimensions .csf--icon+input,.csf-field-spacing .csf--icon+input{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.csf-field-border .csf--unit,.csf-field-dimensions .csf--unit,.csf-field-spacing .csf--unit{border-left:0;border-radius:0 4px 4px 0}.csf-field-border .csf--is-unit,.csf-field-dimensions .csf--is-unit,.csf-field-spacing .csf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.csf-field-button_set .csf--buttons{display:inline-block}.csf-field-button_set .csf--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:16px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.csf-field-button_set .csf--button:first-child{border-radius:4px 0 0 4px}.csf-field-button_set .csf--button:last-child{border-radius:0 4px 4px 0}.csf-field-button_set .csf--button:not(:first-child){margin-left:-1px}.csf-field-button_set .csf--button:hover{background-color:#eee}.csf-field-button_set .csf--active,.csf-field-button_set .csf--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.csf-field-button_set input{display:none}.csf-field-checkbox ul,.csf-field-radio ul{margin:0;padding:0;list-style-type:none;overflow-y:auto;max-height:305px}.csf-field-checkbox ul li,.csf-field-radio ul li{margin-bottom:6px}.csf-field-checkbox ul ul,.csf-field-radio ul ul{max-height:none}.csf-field-checkbox ul ul li,.csf-field-radio ul ul li{margin-left:8px}.csf-field-checkbox ul ul li:first-child,.csf-field-radio ul ul li:first-child{margin-left:0}.csf-field-checkbox input,.csf-field-radio input{margin:0 1px}.csf-field-checkbox .csf--inline-list li,.csf-field-radio .csf--inline-list li{display:inline-block;margin-right:15px}.csf-field-checkbox .csf--text,.csf-field-radio .csf--text{margin-left:5px;vertical-align:middle}.csf-field-checkbox .csf-checker,.csf-field-radio .csf-checker{cursor:pointer}.csf-field-code_editor .CodeMirror{width:100%;height:400px}.csf-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.csf-field-code_editor textarea{width:100%;height:400px}.csf-field-color>input{opacity:.75;width:115px;max-width:100%}.csf-field-color .button.wp-picker-clear{padding:0 8px;margin-left:6px;line-height:2.54545455;min-height:30px}.csf-field-color_group .csf--left{float:left;margin-right:10px;margin-bottom:5px}.csf-field-color_group .csf--title{color:#999;margin-bottom:5px}.csf-field-fieldset .csf-fieldset-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-field-fieldset .csf-fieldset-content>.csf-field{padding:15px}.csf-field-fieldset .csf-field-subheading{font-size:13px}.csf-field-date input{margin:0}.csf-field-date .csf--to{margin-left:7px}.csf-datepicker-wrapper{margin-top:5px;width:auto;background-color:#fff;z-index:9999999!important;box-shadow:0 0 30px rgba(0,0,0,.15)}.csf-datepicker-wrapper *{float:none;margin:0;padding:0;font-family:inherit;font-weight:400;font-style:normal;text-decoration:none;border:0;border-radius:0;box-shadow:none}.csf-datepicker-wrapper .ui-datepicker-header,.csf-datepicker-wrapper .ui-widget-header{color:#fff;background:#00a0d2}.csf-datepicker-wrapper .ui-datepicker-header .ui-state-hover{cursor:pointer}.csf-datepicker-wrapper .ui-datepicker-title{font-size:14px;line-height:40px;text-align:center}.csf-datepicker-wrapper .ui-datepicker-next,.csf-datepicker-wrapper .ui-datepicker-prev{position:static;top:auto;left:auto;right:auto;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;text-align:center;width:41px;height:40px;line-height:40px;color:#fff;background-color:rgba(255,255,255,.1);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.csf-datepicker-wrapper .ui-datepicker-next span,.csf-datepicker-wrapper .ui-datepicker-prev span{display:none}.csf-datepicker-wrapper .ui-datepicker-prev{float:left}.csf-datepicker-wrapper .ui-datepicker-next{float:right}.csf-datepicker-wrapper .ui-datepicker-prev:before{content:'\f053'}.csf-datepicker-wrapper .ui-datepicker-next:before{content:'\f054'}.csf-datepicker-wrapper .ui-datepicker-next-hover,.csf-datepicker-wrapper .ui-datepicker-prev-hover{opacity:.75}.csf-datepicker-wrapper tbody .ui-datepicker-week-col{background-color:#f7f7f7}.csf-datepicker-wrapper .ui-datepicker-buttonpane{padding:10px;text-align:center;background-color:#f7f7f7}.csf-datepicker-wrapper .ui-datepicker-buttonpane button{cursor:pointer;margin:0 5px;padding:7px 14px;border:1px solid #eee;background-color:#fff}.csf-datepicker-wrapper select{margin:0 4px}.csf-datepicker-wrapper select option{color:#555}.csf-datepicker-wrapper table{font-size:13px;border-collapse:collapse;width:100%}.csf-datepicker-wrapper thead{color:#fff;background:#32373c}.csf-datepicker-wrapper th{text-align:center;padding:7px;border:1px solid #444}.csf-datepicker-wrapper td{text-align:center;border:1px solid #f4f4f4}.csf-datepicker-wrapper td.ui-datepicker-other-month{border:transparent}.csf-datepicker-wrapper td .ui-state-default{color:#555;width:auto;display:block;padding:6px 12px}.csf-datepicker-wrapper td .ui-state-active,.csf-datepicker-wrapper td .ui-state-hover{color:#fff;background-color:#0073aa}.csf-datepicker-wrapper td.ui-state-disabled .ui-state-default{opacity:.5}.csf-field-datetime input{margin:0}.csf-field-datetime .csf--to{margin-left:7px}.csf-flatpickr input,.csf-flatpickr select{min-height:auto}.csf-flatpickr input:focus,.csf-flatpickr select:focus{box-shadow:none}.csf-flatpickr.open{z-index:9999999!important}.csf-field-gallery ul{margin:0;padding:0;list-style-type:none}.csf-field-gallery ul li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.08)}.csf-field-gallery ul li img{max-height:60px;display:inline-block;vertical-align:middle}.csf-field-gallery .button{margin-right:5px;margin-bottom:5px}.csf-field-group .csf-cloneable-hidden{display:none!important}.csf-field-group .csf-cloneable-wrapper{position:relative}.csf-field-group .csf-cloneable-item{display:none;position:relative;margin-bottom:5px}.csf-field-group .csf-cloneable-item h4{font-size:1em}.csf-field-group .ui-accordion .csf-cloneable-item{display:block}.csf-field-group .csf-cloneable-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-field-group .csf-cloneable-content>.csf-field{padding:15px}.csf-field-group .csf-cloneable-title{display:block;cursor:pointer;position:relative;user-select:none;margin:0;padding:15px 65px 15px 10px;min-height:0;font-size:100%;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.csf-field-group .csf-cloneable-title:active,.csf-field-group .csf-cloneable-title:focus,.csf-field-group .csf-cloneable-title:hover{border-color:#999;outline:0}.csf-field-group .csf-cloneable-helper{position:absolute;top:12px;right:10px;z-index:1;font-size:14px;line-height:1em}.csf-field-group .csf-cloneable-helper i{display:inline-block;cursor:pointer;padding:5px;color:#999}.csf-field-group .csf-cloneable-helper i:hover{color:#555}.csf-field-group .csf-cloneable-content{padding:0;border-top:0}.csf-field-group .csf-cloneable-title-number,.csf-field-group .csf-cloneable-title-prefix{margin-right:5px}.csf-field-group .csf-cloneable-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.csf-field-group .widget-placeholder{margin-bottom:10px;border:1px dashed #f1c40f;background-color:#fffae4}.csf-field-group .csf-cloneable-header-icon{display:inline-block;text-align:center;font-size:14px;width:17px;text-indent:0;vertical-align:text-top}.csf-field-group .csf-cloneable-placeholder{background-color:#ddd;margin-top:4px;width:100px;height:10px;font-size:10px;line-height:10px;display:inline-block;vertical-align:top;border-radius:2px}.csf-field-icon .csf-icon-select{display:flex;grid-gap:5px}.csf-field-icon .csf-icon-preview:not(.hidden){display:flex}.csf-field-icon .csf-icon-preview i{display:flex;justify-content:center;align-items:center;width:30px;font-size:14px;text-align:center;vertical-align:top;color:#555;border:1px solid #ccc;background-color:#f7f7f7;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08)}.csf-field-image_select .csf--image{display:inline-block;margin:0 5px 5px 0}.csf-field-image_select .csf--inline-list .csf--image{display:block}.csf-field-image_select figure{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;transition:all .2s}.csf-field-image_select figure:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.csf-field-image_select .csf--active figure{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.csf-field-image_select .csf--active figure:before{opacity:1}.csf-field-image_select img{max-width:100%;height:auto;vertical-align:top}.csf-field-image_select input{display:none}.csf-field-link_color .csf--left{float:left;margin-right:10px;margin-bottom:5px}.csf-field-link_color .csf--title{color:#777;margin-bottom:5px}.csf-field-map input{width:100%}.csf-field-map input[type=text].ui-autocomplete-loading{background-position-x:calc(100% - 5px)}.csf-field-map .csf--map-search+.csf--map-osm-wrap{margin-top:10px}.csf-field-map .csf--map-osm-wrap{position:relative;padding:5px;border:1px solid #eee;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-field-map .csf--map-osm{position:relative;z-index:1;min-height:250px}.csf-field-map .csf--map-inputs{margin-top:10px;display:flex;justify-content:space-between}.csf-field-map .csf--map-input{flex:1}.csf-field-map .csf--map-input:last-child{padding-left:10px}.csf-field-map label{display:block;color:#777;font-size:12px;margin:0 0 2px 0}.csf-map-ui-autocomplate{z-index:999999;border-radius:4px;overflow:hidden}.csf-field-media .csf--placeholder{display:flex;align-items:flex-start}.csf-field-media .csf--placeholder input{width:100%;margin:0}.csf-field-media .button{margin-left:5px}.csf-field-media .hidden+.button{margin-left:0}.csf-field-media .csf--preview{position:relative}.csf-field-palette .csf--palette{position:relative;display:inline-block;cursor:pointer;border:2px solid #ddd;margin-right:10px;margin-bottom:10px;user-select:none;-webkit-user-select:none;transition:all .2s}.csf-field-palette .csf--palette span{vertical-align:middle;display:inline-block;width:22px;height:60px;line-height:60px;overflow:hidden;text-indent:-999px}.csf-field-palette .csf--palette:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.csf-field-palette .csf--active{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.csf-field-palette .csf--active:before{opacity:1}.csf-field-palette input{display:none}.csf-field-repeater .csf-field-text input{width:100%}.csf-field-repeater .csf-repeater-hidden{display:none!important}.csf-field-repeater .csf-repeater-wrapper .csf-repeater-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.csf-field-repeater .csf-repeater-wrapper .csf-repeater-item h4{font-size:1em}.csf-field-repeater .csf-repeater-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.csf-field-repeater .csf-repeater-content>.csf-field{padding:15px}.csf-field-repeater .csf-repeater-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.csf-field-repeater .csf-repeater-helper i{display:inline-block;cursor:pointer;color:#999;padding:5px}.csf-field-repeater .csf-repeater-helper i:hover{color:#555}.csf-field-repeater .csf-repeater-helper-inner{width:75px}.csf-field-repeater .csf-repeater-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.csf-field-repeater .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.csf-field-repeater .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.csf-field-repeater .ui-sortable-helper .csf-repeater-content,.csf-field-repeater .ui-sortable-helper .csf-repeater-helper{display:none}.csf-field-select .csf-fieldset{min-height:30px}.csf-field-select .csf-chosen{display:none}.csf-field-select select{max-width:100%;margin:0}.csf-field-select .csf-hide-select{display:none!important}.csf-field-slider .csf--wrap{display:flex;align-items:center}.csf-field-slider .csf--input{display:flex}.csf-field-slider .csf--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.csf-field-slider .csf-slider-ui{margin-right:15px}.csf-field-slider input[type=number]{position:relative;z-index:1;margin:0;width:50px;text-align:center}.csf-field-slider .csf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.csf-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.csf-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.csf-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.csf-field-slider .ui-slider-handle:hover,.csf-field-slider .ui-state-active{cursor:pointer;background:#111}.csf-field-sortable .csf-field-text input{width:100%;max-width:100%}.csf-field-sortable .csf-sortable .csf-sortable-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.csf-field-sortable .csf-sortable .csf-sortable-item h4{font-size:1em}.csf-field-sortable .csf-sortable-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.csf-field-sortable .csf-sortable-content>.csf-field{padding:15px}.csf-field-sortable .csf-sortable-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.csf-field-sortable .csf-sortable-helper i{display:inline-block;cursor:pointer;width:50px;color:#555}.csf-field-sortable .csf-sortable-helper i:hover{opacity:.5}.csf-field-sortable .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.csf-field-sortable .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.csf-field-sortable .ui-sortable-helper .csf-sortable-content,.csf-field-sortable .ui-sortable-helper .csf-sortable-helper{display:none}.csf-field-sorter .ui-sortable-placeholder{height:20px;border:1px dashed #f1c40f;background-color:#fffae4}.csf-field-sorter .csf-modules{float:left;width:50%;box-sizing:border-box}.csf-field-sorter .csf-modules:first-child{padding-right:15px}.csf-field-sorter .csf-modules:last-child{padding-left:15px}.csf-field-sorter .csf-disabled,.csf-field-sorter .csf-enabled{padding:5px 15px;border:1px dashed #ddd;background-color:#fff}.csf-field-sorter .csf-disabled li{opacity:.5;transition:opacity .15s}.csf-field-sorter .csf-disabled .ui-sortable-helper{opacity:1}.csf-field-sorter .csf-sorter-title{font-size:13px;font-weight:600;padding:10px;text-align:center;border:1px dashed #ddd;border-bottom:none;background-color:#f8f8f8;text-transform:uppercase}.csf-field-sorter ul{list-style-type:none;margin:0;padding:0;min-height:62px}.csf-field-sorter ul li{margin:10px 0;padding:10px 15px;cursor:move;font-weight:700;text-align:center;border:1px solid #e5e5e5;background-color:#fafafa;transition:border-color .15s}.csf-field-sorter ul li:hover{border-color:#bbb}.csf-field-spinner .csf--spin{display:flex}.csf-field-spinner .ui-widget{font-family:inherit}.csf-field-spinner .ui-spinner{display:flex;align-items:stretch;overflow:unset;border:none;background:0 0;border-radius:0}.csf-field-spinner .ui-spinner .ui-button{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;margin:0;color:#555;background-color:#f5f5f5;border:1px solid #7e8993}.csf-field-spinner .ui-spinner .ui-spinner-button{position:relative;cursor:pointer;height:auto}.csf-field-spinner .ui-spinner .ui-spinner-button:hover{background-color:#e7e7e7}.csf-field-spinner .ui-spinner .ui-spinner-button:active{background-color:#ddd}.csf-field-spinner .ui-spinner .ui-spinner-button:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;line-height:14px}.csf-field-spinner .ui-spinner .ui-spinner-down{border-right:0;border-radius:4px 0 0 4px}.csf-field-spinner .ui-spinner .ui-spinner-down:before{content:"\f0d9"}.csf-field-spinner .ui-spinner .ui-spinner-up{border-left:0;border-radius:0 4px 4px 0}.csf-field-spinner .ui-spinner .ui-spinner-up:before{content:"\f0da"}.csf-field-spinner .ui-spinner .csf--unit{border-left:0;user-select:none}.csf-field-spinner .ui-spinner .ui-button-icon,.csf-field-spinner .ui-spinner .ui-button-icon-space,.csf-field-spinner .ui-spinner .ui-button-text{display:none}.csf-field-spinner .ui-spinner input{font-family:inherit;font-size:inherit;position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.csf-field-spinner .ui-spinner-down{order:1}.csf-field-spinner .ui-spinner-input{order:2}.csf-field-spinner .csf--unit{order:3}.csf-field-spinner .ui-spinner-up{order:4}.csf-field-switcher .csf--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.csf-field-switcher .csf--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.csf-field-switcher .csf--off,.csf-field-switcher .csf--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.csf-field-switcher .csf--off{padding-right:0;padding-left:28px;opacity:1}.csf-field-switcher .csf--active{background:#4fb845}.csf-field-switcher .csf--active .csf--on{opacity:1}.csf-field-switcher .csf--active .csf--off{opacity:0}.csf-field-switcher .csf--active .csf--ball{left:100%;margin-left:-28px}.csf-field-switcher .csf--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.csf-field-tabbed .csf-tabbed-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-field-tabbed .csf-tabbed-content>.csf-field{padding:15px}.csf-field-tabbed .csf-tabbed-nav .csf--icon{padding-right:5px}.csf-field-tabbed .csf-tabbed-nav a{display:inline-block;padding:12px 15px;margin-top:1px;margin-right:5px;margin-bottom:-1px;position:relative;text-decoration:none;color:#444;font-weight:600;border:1px solid #ccd0d4;background-color:#f3f3f3;transition:all .2s}.csf-field-tabbed .csf-tabbed-nav a:hover{background-color:#f9f9f9}.csf-field-tabbed .csf-tabbed-nav a.csf-tabbed-active{background-color:#fff;border-bottom-color:#fff}.csf-field-tabbed .csf-tabbed-nav a:focus{outline:0;box-shadow:none}.csf-field-text input{width:50%;max-width:100%;margin:0}.csf-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.csf-field-textarea .csf-shortcode-button{margin-bottom:10px;margin-right:5px}.csf-field-typography select,.csf-field-typography textarea{margin:0;min-width:100%;max-width:100%}.csf-field-typography .csf--title{color:#777;margin:0 0 2px 0;font-size:12px}.csf-field-typography .csf--title small{vertical-align:top}.csf-field-typography .csf--blocks{display:flex;flex-wrap:wrap}.csf-field-typography .csf--block{flex:1;max-width:100%;padding-right:6px;padding-bottom:6px}.csf-field-typography .csf--input{margin:0;min-width:100%}.csf-field-typography .csf--input-wrap{position:relative}.csf-field-typography .csf--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.csf-field-typography .csf--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.csf-field-typography .csf--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;max-width:100%}.csf-field-typography .csf--black-background{border-color:#000;background-color:#000}.csf-field-typography .csf--toggle{position:absolute;top:5px;right:10px;color:#999}.csf-field-typography .csf--block-extra-styles{margin-top:5px}.csf-field-upload input{width:100%;margin:0}.csf-field-upload .csf--wrap{display:flex;align-items:flex-start}.csf-field-upload .button{margin-left:5px}.csf-field-upload .csf--preview{position:relative}.csf-field-wp_editor .csf-wp-editor{float:left;width:100%}.csf-field-wp_editor .mce-toolbar-grp{border:none}.csf-field-wp_editor .mce-btn.mce-active button,.csf-field-wp_editor .mce-btn.mce-active i,.csf-field-wp_editor .mce-btn.mce-active:hover button,.csf-field-wp_editor .mce-btn.mce-active:hover i{color:#23282d}.csf-field-wp_editor .wp-media-buttons{position:relative;z-index:2}.csf-field-wp_editor .wp-editor-tabs{position:relative;z-index:1}.csf-field-wp_editor .csf-no-tinymce{border:1px solid #e5e5e5}.csf-field-wp_editor .csf-no-quicktags .wp-media-buttons{float:none;display:block}.csf-field-wp_editor .csf-no-quicktags .mce-tinymce{box-shadow:none;border:1px solid #e5e5e5}.csf-field-wp_editor textarea{width:100%;max-width:100%;margin:0;box-shadow:none}.csf-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.csf-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.csf-field-submessage{padding:0!important;border:0!important}.csf-field-submessage+.csf-field{border-top:0!important}.csf-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.csf-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.csf-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.csf-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.csf-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.csf-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.csf-field-notice{background-color:#f7f7f7}.csf-notice{padding:12px;background-color:#fff;border-left-style:solid;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.1)}.csf-notice-success{border-color:#46b450}.csf-notice-info{border-color:#339fd4}.csf-notice-warning{border-color:#ffbc00}.csf-notice-danger{border-color:#dc3232}.csf-notice-normal{border-color:#222}.csf-field-number input{width:100%;margin:0}.csf-field-number .csf--wrap{position:relative;float:left;width:100px}.csf-field-number .csf--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.csf-field-link .csf--result{display:inline-block;font-size:12px;line-height:16px;padding:7px 10px;margin-bottom:7px;color:#777;border:1px solid #e5e5e5;background-color:#f5f5f5;border-radius:2px;world-break:break-word}.csf-field-link .csf--wrap{position:relative;float:left;width:100px}.csf-field-link .csf--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.csf-help{cursor:help;position:absolute;top:0;right:0;padding:5px;font-size:13px;color:#aaa}.csf-help .csf-help-text{display:none}.csf--preview{max-width:100%}.csf-image-preview{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:6px;max-width:120px;max-height:120px;min-width:40px;min-height:40px;margin-bottom:10px;text-align:center;border-radius:2px;border:1px solid #ccc;background-color:#f9f9f9;box-shadow:0 1px 0 rgba(0,0,0,.08)}.csf-image-preview i{cursor:pointer;position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.75;border-radius:2px;transition:all .2s}.csf-image-preview i:hover{opacity:1}.csf-image-preview i:focus{box-shadow:none}.csf-image-preview span{position:relative;overflow:hidden;display:flex;height:100%;width:100%}.csf-image-preview img{max-width:100%;height:auto;object-fit:contain}.csf-field-custom .csf-field{padding:0}.csf-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.csf-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.csf-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.csf-field .chosen-container-single .chosen-single abbr:hover{color:#555}.csf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.csf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.csf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.csf-field .chosen-container-single .chosen-single div b{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;color:#aaa;background:0 0}.csf-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.csf-field .chosen-container-single .chosen-single div b:hover{color:#555}.csf-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.csf-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.csf-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.csf-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.csf-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.csf-field .chosen-container-single .chosen-search:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:11px;content:"\f002";position:absolute;right:12px;top:10px;color:#aaa}.csf-field .wp-picker-container{display:inline-block}.csf-field .wp-picker-container .wp-color-result.button{margin-bottom:0}.csf-field .csf--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.csf-field .wp-picker-active .csf--transparent-wrap{display:block}.csf-field .csf--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.csf-field .csf--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2)}.csf-field .csf--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.csf-field .csf--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;border-radius:2px;box-shadow:inset 0 0 5px rgba(0,0,0,.4)}.csf-field .csf--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.csf-field .csf--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.csf-field .csf--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.csf-field .csf--transparent-active .csf--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.csf-field .csf--transparent-active .fa:before{content:"\f205"}.csf-widgets>.csf-field{position:relative;top:-1px;margin-left:-15px;margin-right:-15px;padding:12px 15px}.csf-widgets>.csf-field .csf-title{float:none;width:100%;margin-bottom:5px}.csf-widgets>.csf-field .csf-fieldset{float:none;width:100%}.csf-widgets .csf-field-text input{width:100%}.csf-widgets .csf-field-notice .csf-notice{padding:15px}.control-section .csf-widgets>.csf-field{margin-left:-10px;margin-right:-10px;padding:10px 12px}.wp-block .csf-widgets{font-size:13px}.wp-block .csf-widgets>.csf-field{margin-left:-10px;margin-right:-10px}.wp-block .csf-widgets>.csf-field .button-primary{color:#fff}.wp-block .csf-widgets>.csf-field>.csf-title>h4{font-size:13px}.control-section .csf-field{padding:0}.control-section .csf-field .csf-title{float:none;width:100%;margin-bottom:6px}.control-section .csf-field .csf-title h4{display:block;font-size:13px;line-height:1;font-weight:600;color:inherit}.control-section .csf-field .csf-fieldset{float:none;width:100%}.control-section .csf-help{top:-5px;right:-5px}.control-section .csf-field-select select{width:100%}.control-section .csf-field-heading{color:inherit;font-size:14px;line-height:1em;margin-right:-15px;margin-left:-15px;padding:15px}.control-section .csf-field-subheading{color:inherit;font-size:11px;margin-right:-15px;margin-left:-15px;padding:10px 15px}.control-section .csf-subtitle-text{margin-top:4px;font-size:12px}.control-section .csf-field-submessage .csf-submessage{margin-right:-15px;margin-left:-15px;padding:15px}.control-section .csf-fieldset .csf-field-heading,.control-section .csf-fieldset .csf-field-subheading,.control-section .csf-fieldset .csf-field-submessage .csf-submessage{margin-left:0;margin-right:0}.control-section .csf-field-date label,.control-section .csf-field-datetime label{display:block}.control-section .csf-field-date .csf--to,.control-section .csf-field-datetime .csf--to{margin-top:4px;margin-left:0}.control-section .csf-field-sorter ul li{padding:5px}.control-section .csf-field-sorter .csf-modules{float:none;width:100%}.control-section .csf-field-sorter .csf-modules:first-child{padding-right:0;padding-bottom:15px}.control-section .csf-field-background .csf--background-attributes{flex-direction:column}.control-section .csf-field-spacing input{width:90px}.control-section .csf-field-border .csf--input{flex:1 50%}.control-section .csf-field-border input,.control-section .csf-field-border select{width:100%}.control-section .csf-field-spinner input{width:50px}.control-section .csf-field-number .csf--wrap{width:100%}.control-section .csf-field-backup .csf-export-data{display:none}.control-section .csf-field-fieldset .csf-fieldset-content{border-color:#e5e5e5}.control-section .csf-accordion-content>.csf-field,.control-section .csf-cloneable-content>.csf-field,.control-section .csf-fieldset-content>.csf-field,.control-section .csf-repeater-content>.csf-field,.control-section .csf-sortable-content>.csf-field,.control-section .csf-tabbed-content>.csf-field{padding:10px}.control-section .csf-accordion-content>.csf-field .csf-title,.control-section .csf-cloneable-content>.csf-field .csf-title,.control-section .csf-fieldset-content>.csf-field .csf-title,.control-section .csf-repeater-content>.csf-field .csf-title,.control-section .csf-sortable-content>.csf-field .csf-title,.control-section .csf-tabbed-content>.csf-field .csf-title{margin-bottom:5px}.control-section .csf-accordion-content>.csf-field h4,.control-section .csf-cloneable-content>.csf-field h4,.control-section .csf-fieldset-content>.csf-field h4,.control-section .csf-repeater-content>.csf-field h4,.control-section .csf-sortable-content>.csf-field h4,.control-section .csf-tabbed-content>.csf-field h4{font-size:12px}.control-section .csf-depend-hidden.csf-depend-on{display:none!important}.control-section .csf-depend-visible.csf-depend-on{border-top:0!important}.csf-taxonomy{max-width:95%}.csf-taxonomy>.csf-field{border-top:none!important}.csf-taxonomy>.csf-field-heading{font-size:1.1em;padding:20px!important;border:1px solid #ddd}.csf-taxonomy>.csf-field-subheading{font-size:12px;padding:15px!important;border:1px solid #ddd}.csf-taxonomy>.csf-field-submessage .csf-submessage{padding:15px;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid}.csf-taxonomy>.csf-field-notice{background-color:transparent}.csf-taxonomy .csf-section-title{display:block;padding:15px;background-color:#f9f9f9;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.csf-taxonomy-add-fields>.csf-field{padding:8px 0}.csf-taxonomy-add-fields>.csf-field>.csf-title{float:none;width:100%;padding:2px 2px 4px 0}.csf-taxonomy-add-fields>.csf-field>.csf-title h4{font-size:12px;font-weight:400}.csf-taxonomy-add-fields>.csf-field>.csf-fieldset{float:none;width:100%}.csf-taxonomy-add-fields>.csf-field>.csf-fieldset>.csf-help{right:-5px}.csf-taxonomy-add-fields+p.submit{margin-top:0}.csf-taxonomy-edit-fields>.csf-field{padding:20px 0}.csf-taxonomy-edit-fields>.csf-field>.csf-title{width:200px}.csf-taxonomy-edit-fields>.csf-field>.csf-title h4{font-size:14px;font-weight:600;line-height:1.3;display:inline-block;vertical-align:middle}.csf-taxonomy-edit-fields>.csf-field>.csf-fieldset{width:calc(100% - 220px)}.csf-taxonomy-edit-fields>.csf-field>.csf-fieldset>.csf-help{top:-5px;right:-5px}.csf-taxonomy-edit-fields>.csf-field-submessage{margin:20px 0}.csf-taxonomy-edit-fields>.csf-field-heading,.csf-taxonomy-edit-fields>.csf-field-subheading{margin:20px 0;border:1px solid #ddd}.csf-nav-menu-options{clear:both;float:left;width:100%}.csf-nav-menu-options>.csf-fields{margin:10px -10px;border-top:1px solid #eee;border-bottom:1px solid #eee}.csf-nav-menu-options>.csf-fields>.csf-field{padding:12px}.csf-nav-menu-options>.csf-fields>.csf-field .csf-title{float:none;width:100%;margin-bottom:5px}.csf-nav-menu-options>.csf-fields>.csf-field .csf-fieldset{float:none;width:100%}.csf-nav-menu-options .csf-field-text input{width:100%}.csf-nav-menu-options .csf-field-notice .csf-notice{padding:15px}.csf-nav-menu-title{padding:12px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.csf-nav-menu-title:first-child{border-top:0}.csf-nav-menu-title h4{margin:0;padding:0;color:#23282d}.csf-nav-menu-icon{margin-right:5px}.csf-profile-options>h2>.fa{padding-right:7px}.csf-profile-options>.csf-field{max-width:750px;padding:15px 0;border-top:none!important}.csf-profile-options>.csf-field>.csf-title{width:200px}.csf-profile-options>.csf-field>.csf-title h4{font-size:14px;font-weight:600;line-height:1.3;display:inline-block;vertical-align:middle}.csf-profile-options>.csf-field>.csf-fieldset{width:calc(100% - 220px)}.csf-profile-options>.csf-field>.csf-fieldset>.csf-help{top:-15px;right:-5px}.csf-profile-options>.csf-field-heading{font-size:1.1em}.csf-profile-options>.csf-field-subheading{font-size:12px}.csf-profile-options>.csf-field-heading,.csf-profile-options>.csf-field-subheading{margin:10px 0;padding:15px!important;border:1px solid #ddd}.csf-profile-options>.csf-field-submessage{margin:20px 0}.csf-profile-options>.csf-field-submessage .csf-submessage{padding:10px;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid}.csf-profile-options>.csf-field-notice{background-color:transparent}.csf-modal{position:fixed;z-index:100101;top:0;left:0;width:100%;height:100%}.csf-modal.hidden{display:none}.csf-modal-icon{z-index:100102}.csf-modal-table{display:table;width:100%;height:100%}.csf-modal-table-cell{display:table-cell;vertical-align:middle;margin:100px 0}.csf-modal-inner{position:relative;z-index:10;width:760px;height:750px;margin:0 auto;background-color:#fff}.csf-modal-content{position:relative;overflow:hidden;overflow-y:auto;height:595px}.csf-modal-content .csf-shortcode-button{display:none}.csf-modal-content .csf-field{padding:15px 30px 15px 15px}.csf-modal-content a:active,.csf-modal-content a:focus{outline:0;box-shadow:none}.csf-modal-content h4{font-size:13px}.csf-modal-content h4 small{font-style:italic;font-weight:400;color:#aaa}.csf-modal-title{position:relative;background-color:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:16px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.csf-modal-header{width:100%;padding:14px 0;background-color:#f5f5f5;border-bottom:1px solid #ddd}.csf-modal-header select{display:block;width:250px;margin:0 auto;font-size:13px;line-height:1;height:30px;min-height:30px;background-color:#fff}.csf-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}.csf-modal-close:before{font:normal 20px/36px dashicons;content:"\f158";vertical-align:top;width:36px;height:36px}.csf-modal-close:hover{opacity:.5}.csf-modal-insert-wrapper{text-align:center;width:100%;padding:15px 0;background-color:#f5f5f5;border-top:1px solid #ddd}.csf-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5}.csf--repeatable{padding:15px 15px 0 15px}.csf--repeat-button-block{text-align:center;padding-bottom:15px}.csf--repeat-shortcode{position:relative;margin-bottom:15px;border:1px dashed #ddd}.csf--repeat-shortcode:first-child .csf-repeat-remove{display:none}.csf--repeat-shortcode .csf-repeat-remove{position:absolute;right:10px;top:10px;z-index:10;cursor:pointer;display:inline-block;font-size:11px;width:18px;height:18px;line-height:18px;text-align:center;border-radius:2px;color:#fff;background-color:#e14d43;opacity:.5}.csf--repeat-shortcode .csf-repeat-remove:hover{opacity:.5}.csf-shortcode-single .csf-modal-inner{height:750px}.csf-shortcode-single .csf-modal-content{height:652px}.elementor-editor-active .csf-shortcode-button{margin-left:5px}.elementor-editor-active .csf-modal .hidden{display:none!important}.csf-shortcode-block{text-align:center;padding:14px;font-size:13px;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.csf-shortcode-block .components-button{margin-bottom:10px}.csf-modal-icon .csf-icon-title{padding:15px 0;margin:4px;font-size:14px;font-weight:700;text-align:center;border:1px solid #eee;background-color:#f7f7f7}.csf-modal-icon .csf-modal-header{text-align:center}.csf-modal-icon .csf-icon-search{width:50%;height:40px;line-height:40px}.csf-modal-icon i{cursor:pointer;display:inline-block;margin:4px;width:35px;height:35px;line-height:35px;font-size:16px;color:#555;text-align:center;border:1px solid #ccc;background-color:#f7f7f7;border-radius:2px;box-shadow:1px 1px 0 rgba(0,0,0,.05)}.csf-modal-icon i:hover{color:#fff;border-color:#222;background-color:#222}.csf-modal-icon .csf-modal-content{padding:10px;height:618px}.csf-modal-icon .csf-error-text{padding:10px}.csf-modal-loading{display:none;position:absolute;left:15px;top:15px}.csf-loading{position:relative;width:20px;height:20px;background:#ccc;border-radius:20px;box-shadow:0 2px 5px rgba(0,0,0,.07)}.csf-loading:after{position:absolute;top:50%;left:50%;width:4px;height:4px;content:"";margin-top:-2px;margin-left:-2px;background-color:#fff;animation-duration:.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:csfLoader;border-radius:4px}@keyframes csfLoader{0%{transform:rotate(0) translateX(-6px) rotate(0)}100%{transform:rotate(360deg) translateX(-6px) rotate(-360deg)}}.csf-subtitle-text{margin-top:6px;font-weight:400;color:#999}.csf-desc-text{clear:both;float:left;width:100%;margin-top:6px;font-weight:400;color:#999}.csf-error-text{margin-top:6px;color:#d02c21}.csf-before-text{margin-bottom:6px}.csf-after-text{margin-top:6px}.csf-metabox-hide{display:none!important}.csf-metabox-show{display:block!important}.csf-depend-hidden.csf-depend-on{display:none}.csf-depend-visible.csf-depend-on{display:block;opacity:.75;filter:grayscale(1);user-select:none;border-top:1px solid #eee}.csf-depend-visible.csf-depend-on .clear:before{content:"";left:0;top:0;right:0;bottom:0;position:absolute;background-color:#eee;opacity:.25;z-index:10}.csf-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.csf-warning-primary:focus,.csf-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.csf-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.csf-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.csf-form-result{display:none;float:left;padding:0 8px;margin-right:4px;font-size:11px;line-height:30px;user-select:none;border-radius:2px}.csf-form-show{display:block}.csf-form-success{color:#fff;background-color:#46b450}.csf-form-warning{color:#8a6d3b;background-color:#faebcc}.csf-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;border-radius:2px}.csf-no-option{padding:30px}.csf-input-number{-moz-appearance:textfield}.csf-input-number::-webkit-inner-spin-button,.csf-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.csf-fa5-shims .csf .fab,.csf-fa5-shims .csf .far,.csf-fa5-shims .csf .fas{font-family:FontAwesome;font-style:normal}.csf-welcome-wrap{position:relative;margin:25px 40px 0 20px;font-size:15px;max-width:1200px}.csf-welcome-wrap p{font-size:14px;line-height:1.5}.csf-welcome-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2em;font-size:2.8em;font-weight:400}.csf-welcome-wrap .csf-logo{position:absolute;overflow:hidden;top:0;right:0;height:160px;width:140px;background-image:linear-gradient(45deg,#2d67cb,#ad19f3);box-shadow:0 1px 4px rgba(0,0,0,.25),inset 0 0 0 4px rgba(0,0,0,.25)}.csf-welcome-wrap .csf-logo .csf--effects i{position:absolute;width:200px;height:100px;background-color:rgba(0,0,0,.15);transform:rotate(-45deg)}.csf-welcome-wrap .csf-logo .csf--effects i:nth-child(1){bottom:-20px;right:-70px}.csf-welcome-wrap .csf-logo .csf--effects i:nth-child(2){bottom:-35px;right:-80px}.csf-welcome-wrap .csf-logo .csf--effects i:nth-child(3){bottom:-50px;right:-90px}.csf-welcome-wrap .csf-logo .csf--effects i:nth-child(4){bottom:-65px;right:-100px}.csf-welcome-wrap .csf-logo .csf--wp-logos{position:relative;padding-top:25px;text-align:center}.csf-welcome-wrap .csf-logo .csf--wp-logo{position:absolute;left:20px;width:20px;height:20px;background-repeat:no-repeat;background-position:center center;background-image:url(../images/wp-logo.svg)}.csf-welcome-wrap .csf-logo .csf--wp-plugin-logo{display:inline-block;width:50px;height:50px;border:3px solid #fff;background-size:40px;background-repeat:no-repeat;background-position:center center;background-image:url(../images/wp-plugin-logo.svg);border-radius:100%;vertical-align:middle}.csf-welcome-wrap .csf-logo .csf--text{position:absolute;left:0;right:0;top:90px;color:#fff;font-size:13px;line-height:1.2em;font-weight:600;text-align:center;text-transform:uppercase;text-shadow:1px 1px 0 rgba(0,0,0,.25)}.csf-welcome-wrap .csf-logo .csf--version{top:auto;left:auto;right:8px;bottom:4px;font-size:11px;text-transform:lowercase}.csf-welcome-wrap .csf-about-text{font-weight:400;line-height:1.6em;font-size:19px;margin:1em 200px 1em 0;color:#555d66}.csf-welcome-wrap .csf-demo-button{margin:1em 200px 2em 0}.csf-welcome-wrap .nav-tab-wrapper{margin-bottom:20px}.csf-welcome-wrap ul{list-style-type:disc;padding-left:15px}.csf-welcome-wrap .csf--col{float:left;padding-right:20px;box-sizing:border-box}.csf-welcome-wrap .csf--col-2{width:50%}.csf-welcome-wrap .csf--col-3{width:33.333%}.csf-welcome-wrap .csf--col-4{width:25%}.csf-welcome-wrap .csf--col-5{width:20%}.csf-welcome-wrap .csf--col-last{padding-right:0}.csf-welcome-wrap .csf--col-upgrade{padding:10px 0;text-align:center;border-top:1px solid #e5e5e5}.csf--table-compare tfoot td,.csf--table-compare thead td{text-align:center}.csf--table-compare td{font-size:14px;text-align:center;vertical-align:middle;padding:10px}.csf--table-compare td:first-child{text-align:left}.csf--table-compare tfoot td{padding:15px 0}.csf--table-compare .fa{font-size:18px}.csf--table-compare .fa-check-circle{color:#46b450}.csf--table-compare .fa-times-circle{color:#dc3232}.csf-welcome-cols{clear:both;margin:20px 0;background-color:#fff;padding:0 0;border-radius:2px;border:1px solid #e5e5e5}.csf-welcome-cols .csf--col{width:33.333%;float:left;padding:20px;text-align:center;box-sizing:border-box;min-height:200px;border-right:1px solid #e5e5e5}.csf-welcome-cols .csf--block,.csf-welcome-cols .csf--left{float:left;width:20%;padding:0 30px;text-align:center;box-sizing:border-box}.csf-welcome-cols .csf--block{width:80%}.csf-welcome-cols .csf--col-first{border-bottom:1px solid #e5e5e5}.csf-welcome-cols .csf--last{border-right:none}.csf-welcome-cols .csf--space{height:20px}.csf-welcome-cols .csf--icon{display:inline-block;font-size:20px;width:30px;height:30px;line-height:30px;text-align:center;margin-bottom:10px;color:#fff;background-color:#555;border-radius:30px}.csf-welcome-cols .csf--active{background-color:#5cb85c}.csf-welcome-cols .csf--deactive{background-color:#e14d43}.csf-welcome-cols .csf--title{font-weight:700;display:block}.csf-welcome-cols p:last-child{margin-bottom:0}.csf-features-cols .csf--key-features{width:30%}.csf-features-cols .csf--available-fields{width:70%}.csf-code-block{margin:20px 0;padding:5px 20px;background-color:#fff;border-radius:2px;box-shadow:0 1px 1px rgba(0,0,0,.15)}.csf-code-block pre{font-size:13px;color:#0073aa}.csf-code-block pre span{color:#999}.csf--table-fields td{font-size:14px}.csf--upgrade a{color:#5cb85c;font-weight:700}.csf--upgrade a:focus,.csf--upgrade a:hover{color:#4aa14a;outline:0;box-shadow:none}@media only screen and (max-width:782px){.csf-welcome-cols .csf--col{width:100%;min-height:auto;border-right:none;border-bottom:1px solid #e5e5e5}.csf-features-cols .csf--key-features{width:100%}.csf-features-cols .csf--available-fields{width:100%}}@media only screen and (max-width:1200px){.csf-metabox .csf-field .csf-title{float:none;width:100%;margin-bottom:10px}.csf-metabox .csf-field .csf-fieldset{float:none;width:100%}}@media only screen and (max-width:782px){.csf-header-inner{text-align:center}.csf-header-inner h1{width:100%;margin-bottom:10px}.csf-form-result{float:none;margin-right:0;margin-bottom:10px}.csf-header-left,.csf-header-right,.csf-search{width:100%}.csf-search{text-align:center;margin-bottom:15px}.csf-footer{text-align:center}.csf-buttons{float:none}.csf-copyright{float:none;margin-top:10px}.csf-expand-all,.csf-nav,.csf-nav-background,.csf-reset-section{display:none!important}.csf-nav-normal+.csf-content{margin-left:0}.csf-section,.csf-section-title{display:block!important}.csf-field .csf-title{float:none;width:100%;margin-bottom:10px}.csf-field .csf-fieldset{float:none;width:100%}.csf-field-color .button.wp-picker-clear{padding:0 8px;line-height:2.14285714;min-height:32px}.csf-profile-options>.csf-field>.csf-title,.csf-taxonomy-edit-fields>.csf-field>.csf-title{float:none;width:100%;margin-bottom:10px}.csf-profile-options>.csf-field>.csf-fieldset,.csf-taxonomy-edit-fields>.csf-field>.csf-fieldset{float:none;width:100%}.csf-nav-menu-options>.csf-fields{margin-left:-10px;margin-right:-10px}.csf-nav-menu-options>.csf-fields>.csf-field{padding:10px}}@media only screen and (max-width:782px){.csf-modal .csf-modal-inner{width:90%}}@media only screen and (max-height:750px){.csf-modal .csf-modal-inner{height:auto}.csf-modal .csf-modal-content{height:calc(100vh - 200px)}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;user-select:none}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.flatpickr-calendar{background:0 0;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:0 0;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9)}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:0 0;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:0 0;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:0;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:0}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:0;padding:0}.flatpickr-weekdays{background:0 0;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:0 0;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:0 0;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:0 0;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}
     1@font-face {font-family: 'FontFARSI';font-style: normal;font-weight: 500;src: url('./fonts/dana-fanum-regular.eot');src: url('./fonts/dana-fanum-regular.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */url('./fonts/dana-fanum-regular.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/url('./fonts/dana-fanum-regular.ttf') format('truetype');}.CFSSMARTSMS{position:relative}.CFSSMARTSMS label{padding:0;margin:0;display:inline-block}.CFSSMARTSMS-ab-icon{top:2px}#screen-meta-links+.CFSSMARTSMS-options{margin-top:40px}.CFSSMARTSMS-options{margin-top:20px;margin-right:20px}.CFSSMARTSMS-header{position:relative}.CFSSMARTSMS-header-inner{padding:25px;transition:box-shadow .3s ease}.CFSSMARTSMS-header-inner h1{float:left;font-size:1.5em;line-height:26px;font-weight:400;margin:0}.CFSSMARTSMS-header-inner h1 small{font-size:11px;font-weight:500}.CFSSMARTSMS-sticky .CFSSMARTSMS-header-inner{position:fixed;z-index:99;top:32px;box-shadow:0 5px 10px rgba(0,0,0,.1)}.CFSSMARTSMS-buttons{float:right}.CFSSMARTSMS-buttons .button{margin:0 2px;line-height:26px}.CFSSMARTSMS-buttons .button:focus{outline:0!important;box-shadow:none!important}.CFSSMARTSMS-buttons .CFSSMARTSMS-save{min-width:72px}.CFSSMARTSMS-header-left{float:left}.CFSSMARTSMS-header-right{float:right}.CFSSMARTSMS-nav{display:block;position:relative;z-index:10;float:left}.CFSSMARTSMS-nav ul{clear:left;margin:0;list-style-type:none}.CFSSMARTSMS-nav ul li{margin-bottom:0}.CFSSMARTSMS-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;transition-property:color,background;transition-duration:.2s;transition-timing-function:ease}.CFSSMARTSMS-nav ul li a:focus{outline:0;box-shadow:none}.CFSSMARTSMS-nav ul li .CFSSMARTSMS-arrow:after{content:"\f054";display:inline-block;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px}.CFSSMARTSMS-nav ul li.CFSSMARTSMS-tab-expanded .CFSSMARTSMS-arrow:after{transform:rotate(90deg)}.CFSSMARTSMS-nav ul li.CFSSMARTSMS-tab-expanded ul{display:block}.CFSSMARTSMS-nav ul ul{display:none;position:relative}.CFSSMARTSMS-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.CFSSMARTSMS-nav .CFSSMARTSMS-tab-icon{width:20px;margin-right:5px;font-size:13px;text-align:center}.CFSSMARTSMS-nav .CFSSMARTSMS-label-error{margin-left:4px;vertical-align:top}.CFSSMARTSMS-nav-normal{width:225px}.CFSSMARTSMS-nav-normal+.CFSSMARTSMS-content{margin-left:225px}.CFSSMARTSMS-nav-inline{width:100%}.CFSSMARTSMS-nav-inline ul li{display:inline-block;vertical-align:top}.CFSSMARTSMS-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:225px}.CFSSMARTSMS-wrapper{position:relative}.CFSSMARTSMS-content{position:relative;background-color:#fff}.CFSSMARTSMS-sections{float:left;width:100%}.CFSSMARTSMS-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.CFSSMARTSMS-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.CFSSMARTSMS-section-title .CFSSMARTSMS-section-icon{margin-right:5px}.CFSSMARTSMS-footer{padding:20px;font-size:11px}.CFSSMARTSMS-copyright{float:left;margin-top:5px}.CFSSMARTSMS-search-all .CFSSMARTSMS-nav,.CFSSMARTSMS-search-all .CFSSMARTSMS-nav-background,.CFSSMARTSMS-show-all .CFSSMARTSMS-nav,.CFSSMARTSMS-show-all .CFSSMARTSMS-nav-background{display:none}.CFSSMARTSMS-search-all .CFSSMARTSMS-content,.CFSSMARTSMS-show-all .CFSSMARTSMS-content{margin-left:0}.CFSSMARTSMS-search-all .CFSSMARTSMS-section,.CFSSMARTSMS-search-all .CFSSMARTSMS-section-title,.CFSSMARTSMS-show-all .CFSSMARTSMS-section,.CFSSMARTSMS-show-all .CFSSMARTSMS-section-title{display:block!important}.CFSSMARTSMS-search-all .CFSSMARTSMS-section-title{display:none!important}.CFSSMARTSMS-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:13px;line-height:30px;cursor:pointer;user-select:none;border-radius:2px;transition:all .2s}.CFSSMARTSMS-expand-all span{font-size:11px;vertical-align:middle}.CFSSMARTSMS-search{float:left}.CFSSMARTSMS-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:30px;min-height:30px;text-align:inherit;padding:0 10px;border-radius:2px;box-shadow:none}.CFSSMARTSMS-search input:focus{box-shadow:none}.CFSSMARTSMS-saving .CFSSMARTSMS-buttons,.CFSSMARTSMS-saving .CFSSMARTSMS-content{cursor:default;pointer-events:none;opacity:.5}.CFSSMARTSMS-metabox{margin:-6px -12px -12px -12px}.CFSSMARTSMS-metabox .CFSSMARTSMS-field{padding:20px}.CFSSMARTSMS-metabox .CFSSMARTSMS-section-title{padding:20px}.block-editor-page .CFSSMARTSMS-metabox{margin:-6px -14px -14px -14px}.block-editor-editor-skeleton__content .CFSSMARTSMS-metabox{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.CFSSMARTSMS-sections-reset{float:left;width:100%;text-align:right;border-top:1px solid #eee}.CFSSMARTSMS-sections-reset .CFSSMARTSMS-button-cancel,.CFSSMARTSMS-sections-reset input{display:none}.CFSSMARTSMS-sections-reset label{padding:10px}.CFSSMARTSMS-sections-reset span{-webkit-user-select:none;user-select:none}.CFSSMARTSMS-sections-reset input:checked~.CFSSMARTSMS-button-reset{display:none}.CFSSMARTSMS-sections-reset input:checked~.CFSSMARTSMS-button-cancel{display:inline-block}#side-sortables .CFSSMARTSMS-section-title{padding:12px}#side-sortables .CFSSMARTSMS-field{padding:10px 15px}#side-sortables .CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:6px}#side-sortables .CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}#side-sortables .CFSSMARTSMS-field-text input{width:100%}#side-sortables .CFSSMARTSMS-notice{padding:10px 15px}.CFSSMARTSMS-comment-metabox{margin:-6px -12px -12px -12px}.CFSSMARTSMS-comment-metabox .CFSSMARTSMS-field{padding:20px}.CFSSMARTSMS-comment-metabox .CFSSMARTSMS-section-title{padding:20px}.CFSSMARTSMS-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:center;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);border-radius:4px}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-header-inner{background-color:#050505}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-header-inner h1{color:#fff}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-header-inner h1 small{color:#555}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-expand-all{color:#999;background-color:#222}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-expand-all:hover{color:#fff;background-color:#333}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-search input{color:#fff;background-color:#222}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-search:focus{background-color:#444}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-search::-webkit-input-placeholder{color:#666}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul li a{color:#999;border-color:#2f2f2f;background-color:#222}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul li a:hover{color:#fff}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul li .CFSSMARTSMS-active{color:#fff;background-color:#111}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul ul li a{border-color:#2f2f2f;background-color:#191919}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul ul li .CFSSMARTSMS-active{background-color:#101010}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav ul ul:before{background-color:rgba(34,34,34,.75)}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav>ul>li:last-child>a{border:none}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-normal ul li a{border-bottom-width:1px;border-bottom-style:solid}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-normal ul li .CFSSMARTSMS-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-inline{background-color:#222}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-inline ul li a{text-align:center;border-right-width:1px;border-right-style:solid}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-inline ul li .CFSSMARTSMS-active:after{content:" ";position:absolute;left:50%;bottom:0;height:0;width:0;pointer-events:none;border:solid transparent;border-bottom-color:#fff;border-width:4px;margin-left:-4px}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-nav-background{background-color:#222}.CFSSMARTSMS-theme-dark .CFSSMARTSMS-footer{color:#555;background-color:#050505}.CFSSMARTSMS-theme-light .CFSSMARTSMS-container{border:1px solid #ccd0d4;box-shadow:0 0 15 rgba(0,0,0,.04)}.CFSSMARTSMS-theme-light .CFSSMARTSMS-header-inner{border-bottom:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fefefe,#f5f5f5)}.CFSSMARTSMS-theme-light .CFSSMARTSMS-header-inner h1 small{color:#999}.CFSSMARTSMS-theme-light .CFSSMARTSMS-expand-all{color:#999;background-color:#eee}.CFSSMARTSMS-theme-light .CFSSMARTSMS-expand-all:hover{color:#555}.CFSSMARTSMS-theme-light .CFSSMARTSMS-search input{color:#555;background-color:#eee}.CFSSMARTSMS-theme-light .CFSSMARTSMS-search input::-webkit-input-placeholder{color:#999}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav ul li a{font-weight:500;color:#444;background-color:#f5f5f5}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav ul li a:hover{color:#111;background-color:#fff}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav ul li .CFSSMARTSMS-active{color:#111;background-color:#fff}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav ul ul li a{background-color:#eee}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-normal>ul{margin-right:-1px;margin-bottom:-1px}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-normal>ul li a{border-bottom:1px solid #ccd0d4;border-right:1px solid #ccd0d4}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-normal>ul li .CFSSMARTSMS-active{border-right-color:#fff}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline{background-color:#f5f5f5;border-bottom:1px solid #ccd0d4}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline>ul{margin-bottom:-1px}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline>ul li a{text-align:center;border-right:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline>ul li .CFSSMARTSMS-active{border-bottom-color:#fff}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline>ul ul{display:none!important}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-inline .CFSSMARTSMS-arrow:after{display:none}.CFSSMARTSMS-theme-light .CFSSMARTSMS-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4}.CFSSMARTSMS-theme-light .CFSSMARTSMS-footer{color:#555;border-top:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.CFSSMARTSMS-field{position:relative;padding:30px}.CFSSMARTSMS-field+.CFSSMARTSMS-field{border-top:1px solid #eee}.CFSSMARTSMS-field p:first-child{margin-top:0}.CFSSMARTSMS-field p:last-child{margin-bottom:0}.CFSSMARTSMS-field:after,.CFSSMARTSMS-field:before{content:" ";display:table}.CFSSMARTSMS-field:after{clear:both}.CFSSMARTSMS-field h4{margin-top:0}.CFSSMARTSMS-field .CFSSMARTSMS-title{position:relative;width:20%;float:left}.CFSSMARTSMS-field .CFSSMARTSMS-title h4{margin:0;color:#23282d}.CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:right;width:calc(80% - 20px)}.CFSSMARTSMS-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.CFSSMARTSMS-pseudo-field+.CFSSMARTSMS-pseudo-field{border:0}.CFSSMARTSMS-pseudo-field pre{display:none}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-item{position:relative;margin-bottom:5px}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-item:last-child{margin-bottom:0}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-item h4{font-size:1em}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-title{display:block;cursor:pointer;position:relative;margin:0;padding:15px;min-height:0;font-size:100%;user-select:none;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-title:active,.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-title:focus,.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-title:hover{outline:0;border-color:#999}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-title .CFSSMARTSMS--icon{width:20px;text-align:center;margin-right:2px}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-icon{width:16px;text-align:center}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-content{display:none;padding:0;border:1px solid #ccd0d4;border-top:none;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-accordion .CFSSMARTSMS-accordion-open{display:block}.CFSSMARTSMS-field-background .CFSSMARTSMS-field{border:0!important;padding:0;margin-bottom:6px;margin-right:6px}.CFSSMARTSMS-field-background .CFSSMARTSMS--title{color:#777;font-size:12px}.CFSSMARTSMS-field-background .CFSSMARTSMS--background-colors{display:flex;flex-wrap:wrap}.CFSSMARTSMS-field-background .CFSSMARTSMS--background-attributes{display:flex;flex-wrap:wrap}.CFSSMARTSMS-field-background .CFSSMARTSMS--background-attributes select{min-width:100%;margin:0}.CFSSMARTSMS-field-background .CFSSMARTSMS--background-attributes .CFSSMARTSMS-field{flex:1}.CFSSMARTSMS-field-background .CFSSMARTSMS--attributes-hidden{display:none}.CFSSMARTSMS-field-backup textarea{width:100%;min-height:200px;margin-bottom:5px}.CFSSMARTSMS-field-backup small{display:inline-block;margin:5px}.CFSSMARTSMS-field-backup hr{margin:20px 0;border:none;border-bottom:1px solid #e5e5e5}.CFSSMARTSMS-field-border .CFSSMARTSMS--inputs,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--inputs,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--inputs{float:left;display:flex;flex-wrap:wrap}.CFSSMARTSMS-field-border .CFSSMARTSMS--input,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--input,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.CFSSMARTSMS-field-border .CFSSMARTSMS--input select,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--input select,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--input select{margin:0}.CFSSMARTSMS-field-border .CFSSMARTSMS--input input,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--input input,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;text-align:center}.CFSSMARTSMS-field-border .CFSSMARTSMS--color,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--color,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--color{float:left}.CFSSMARTSMS-field-border .CFSSMARTSMS--label,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--label,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.CFSSMARTSMS-field-border .CFSSMARTSMS--icon,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--icon,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--icon{border-right:0;border-radius:4px 0 0 4px}.CFSSMARTSMS-field-border .CFSSMARTSMS--icon+input,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--icon+input,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--icon+input{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.CFSSMARTSMS-field-border .CFSSMARTSMS--unit,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--unit,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--unit{border-left:0;border-radius:0 4px 4px 0}.CFSSMARTSMS-field-border .CFSSMARTSMS--is-unit,.CFSSMARTSMS-field-dimensions .CFSSMARTSMS--is-unit,.CFSSMARTSMS-field-spacing .CFSSMARTSMS--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--buttons{display:inline-block}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:16px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button:first-child{border-radius:4px 0 0 4px}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button:last-child{border-radius:0 4px 4px 0}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button:not(:first-child){margin-left:-1px}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--button:hover{background-color:#eee}.CFSSMARTSMS-field-button_set .CFSSMARTSMS--active,.CFSSMARTSMS-field-button_set .CFSSMARTSMS--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.CFSSMARTSMS-field-button_set input{display:none}.CFSSMARTSMS-field-checkbox ul,.CFSSMARTSMS-field-radio ul{margin:0;padding:0;list-style-type:none;overflow-y:auto;max-height:305px}.CFSSMARTSMS-field-checkbox ul li,.CFSSMARTSMS-field-radio ul li{margin-bottom:6px}.CFSSMARTSMS-field-checkbox ul ul,.CFSSMARTSMS-field-radio ul ul{max-height:none}.CFSSMARTSMS-field-checkbox ul ul li,.CFSSMARTSMS-field-radio ul ul li{margin-left:8px}.CFSSMARTSMS-field-checkbox ul ul li:first-child,.CFSSMARTSMS-field-radio ul ul li:first-child{margin-left:0}.CFSSMARTSMS-field-checkbox input,.CFSSMARTSMS-field-radio input{margin:0 1px}.CFSSMARTSMS-field-checkbox .CFSSMARTSMS--inline-list li,.CFSSMARTSMS-field-radio .CFSSMARTSMS--inline-list li{display:inline-block;margin-right:15px}.CFSSMARTSMS-field-checkbox .CFSSMARTSMS--text,.CFSSMARTSMS-field-radio .CFSSMARTSMS--text{margin-left:5px;vertical-align:middle}.CFSSMARTSMS-field-checkbox .CFSSMARTSMS-checker,.CFSSMARTSMS-field-radio .CFSSMARTSMS-checker{cursor:pointer}.CFSSMARTSMS-field-code_editor .CodeMirror{width:100%;height:400px}.CFSSMARTSMS-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.CFSSMARTSMS-field-code_editor textarea{width:100%;height:400px}.CFSSMARTSMS-field-color>input{opacity:.75;width:115px;max-width:100%}.CFSSMARTSMS-field-color .button.wp-picker-clear{padding:0 8px;margin-left:6px;line-height:2.54545455;min-height:30px}.CFSSMARTSMS-field-color_group .CFSSMARTSMS--left{float:left;margin-right:10px;margin-bottom:5px}.CFSSMARTSMS-field-color_group .CFSSMARTSMS--title{color:#999;margin-bottom:5px}.CFSSMARTSMS-field-fieldset .CFSSMARTSMS-fieldset-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-field-fieldset .CFSSMARTSMS-fieldset-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-fieldset .CFSSMARTSMS-field-subheading{font-size:13px}.CFSSMARTSMS-field-date input{margin:0}.CFSSMARTSMS-field-date .CFSSMARTSMS--to{margin-left:7px}.CFSSMARTSMS-datepicker-wrapper{margin-top:5px;width:auto;background-color:#fff;z-index:9999999!important;box-shadow:0 0 30px rgba(0,0,0,.15)}.CFSSMARTSMS-datepicker-wrapper *{float:none;margin:0;padding:0;font-family:inherit;font-weight:400;font-style:normal;text-decoration:none;border:0;border-radius:0;box-shadow:none}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-header,.CFSSMARTSMS-datepicker-wrapper .ui-widget-header{color:#fff;background:#00a0d2}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-header .ui-state-hover{cursor:pointer}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-title{font-size:14px;line-height:40px;text-align:center}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-next,.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-prev{position:static;top:auto;left:auto;right:auto;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;text-align:center;width:41px;height:40px;line-height:40px;color:#fff;background-color:rgba(255,255,255,.1);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-next span,.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-prev span{display:none}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-prev{float:left}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-next{float:right}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-prev:before{content:'\f053'}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-next:before{content:'\f054'}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-next-hover,.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-prev-hover{opacity:.75}.CFSSMARTSMS-datepicker-wrapper tbody .ui-datepicker-week-col{background-color:#f7f7f7}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-buttonpane{padding:10px;text-align:center;background-color:#f7f7f7}.CFSSMARTSMS-datepicker-wrapper .ui-datepicker-buttonpane button{cursor:pointer;margin:0 5px;padding:7px 14px;border:1px solid #eee;background-color:#fff}.CFSSMARTSMS-datepicker-wrapper select{margin:0 4px}.CFSSMARTSMS-datepicker-wrapper select option{color:#555}.CFSSMARTSMS-datepicker-wrapper table{font-size:13px;border-collapse:collapse;width:100%}.CFSSMARTSMS-datepicker-wrapper thead{color:#fff;background:#32373c}.CFSSMARTSMS-datepicker-wrapper th{text-align:center;padding:7px;border:1px solid #444}.CFSSMARTSMS-datepicker-wrapper td{text-align:center;border:1px solid #f4f4f4}.CFSSMARTSMS-datepicker-wrapper td.ui-datepicker-other-month{border:transparent}.CFSSMARTSMS-datepicker-wrapper td .ui-state-default{color:#555;width:auto;display:block;padding:6px 12px}.CFSSMARTSMS-datepicker-wrapper td .ui-state-active,.CFSSMARTSMS-datepicker-wrapper td .ui-state-hover{color:#fff;background-color:#0073aa}.CFSSMARTSMS-datepicker-wrapper td.ui-state-disabled .ui-state-default{opacity:.5}.CFSSMARTSMS-field-datetime input{margin:0}.CFSSMARTSMS-field-datetime .CFSSMARTSMS--to{margin-left:7px}.CFSSMARTSMS-flatpickr input,.CFSSMARTSMS-flatpickr select{min-height:auto}.CFSSMARTSMS-flatpickr input:focus,.CFSSMARTSMS-flatpickr select:focus{box-shadow:none}.CFSSMARTSMS-flatpickr.open{z-index:9999999!important}.CFSSMARTSMS-field-gallery ul{margin:0;padding:0;list-style-type:none}.CFSSMARTSMS-field-gallery ul li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.08)}.CFSSMARTSMS-field-gallery ul li img{max-height:60px;display:inline-block;vertical-align:middle}.CFSSMARTSMS-field-gallery .button{margin-right:5px;margin-bottom:5px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-hidden{display:none!important}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-wrapper{position:relative}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-item{display:none;position:relative;margin-bottom:5px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-item h4{font-size:1em}.CFSSMARTSMS-field-group .ui-accordion .CFSSMARTSMS-cloneable-item{display:block}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title{display:block;cursor:pointer;position:relative;user-select:none;margin:0;padding:15px 65px 15px 10px;min-height:0;font-size:100%;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title:active,.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title:focus,.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title:hover{border-color:#999;outline:0}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-helper{position:absolute;top:12px;right:10px;z-index:1;font-size:14px;line-height:1em}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-helper i{display:inline-block;cursor:pointer;padding:5px;color:#999}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-helper i:hover{color:#555}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-content{padding:0;border-top:0}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title-number,.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-title-prefix{margin-right:5px}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.CFSSMARTSMS-field-group .widget-placeholder{margin-bottom:10px;border:1px dashed #f1c40f;background-color:#fffae4}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-header-icon{display:inline-block;text-align:center;font-size:14px;width:17px;text-indent:0;vertical-align:text-top}.CFSSMARTSMS-field-group .CFSSMARTSMS-cloneable-placeholder{background-color:#ddd;margin-top:4px;width:100px;height:10px;font-size:10px;line-height:10px;display:inline-block;vertical-align:top;border-radius:2px}.CFSSMARTSMS-field-icon .button{margin-right:5px}.CFSSMARTSMS-field-icon .CFSSMARTSMS-icon-select{display:flex}.CFSSMARTSMS-field-icon .CFSSMARTSMS-icon-preview:not(.hidden){display:flex}.CFSSMARTSMS-field-icon .CFSSMARTSMS-icon-preview i{display:flex;justify-content:center;align-items:center;width:30px;font-size:14px;margin-right:5px;text-align:center;vertical-align:top;color:#555;border:1px solid #ccc;background-color:#f7f7f7;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08)}.CFSSMARTSMS-field-image_select .CFSSMARTSMS--image{display:inline-block;margin:0 5px 5px 0}.CFSSMARTSMS-field-image_select .CFSSMARTSMS--inline-list .CFSSMARTSMS--image{display:block}.CFSSMARTSMS-field-image_select figure{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;transition:all .2s}.CFSSMARTSMS-field-image_select figure:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.CFSSMARTSMS-field-image_select .CFSSMARTSMS--active figure{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.CFSSMARTSMS-field-image_select .CFSSMARTSMS--active figure:before{opacity:1}.CFSSMARTSMS-field-image_select img{max-width:100%;height:auto;vertical-align:top}.CFSSMARTSMS-field-image_select input{display:none}.CFSSMARTSMS-field-link_color .CFSSMARTSMS--left{float:left;margin-right:10px;margin-bottom:5px}.CFSSMARTSMS-field-link_color .CFSSMARTSMS--title{color:#777;margin-bottom:5px}.CFSSMARTSMS-field-map input{width:100%}.CFSSMARTSMS-field-map input[type=text].ui-autocomplete-loading{background-position-x:calc(100% - 5px)}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-search+.CFSSMARTSMS--map-osm-wrap{margin-top:10px}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-osm-wrap{position:relative;padding:5px;border:1px solid #eee;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-osm{position:relative;z-index:1;min-height:250px}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-inputs{margin-top:10px;display:flex;justify-content:space-between}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-input{flex:1}.CFSSMARTSMS-field-map .CFSSMARTSMS--map-input:last-child{padding-left:10px}.CFSSMARTSMS-field-map label{display:block;color:#777;font-size:12px;margin:0 0 2px 0}.CFSSMARTSMS-map-ui-autocomplate{z-index:999999;border-radius:4px;overflow:hidden}.CFSSMARTSMS-field-media .CFSSMARTSMS--placeholder{display:flex;align-items:flex-start}.CFSSMARTSMS-field-media .CFSSMARTSMS--placeholder input{width:100%;margin:0}.CFSSMARTSMS-field-media .button{margin-left:5px}.CFSSMARTSMS-field-media .hidden+.button{margin-left:0}.CFSSMARTSMS-field-media .CFSSMARTSMS--preview{position:relative}.CFSSMARTSMS-field-palette .CFSSMARTSMS--palette{position:relative;display:inline-block;cursor:pointer;border:2px solid #ddd;margin-right:10px;margin-bottom:10px;user-select:none;-webkit-user-select:none;transition:all .2s}.CFSSMARTSMS-field-palette .CFSSMARTSMS--palette span{vertical-align:middle;display:inline-block;width:22px;height:60px;line-height:60px;overflow:hidden;text-indent:-999px}.CFSSMARTSMS-field-palette .CFSSMARTSMS--palette:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.CFSSMARTSMS-field-palette .CFSSMARTSMS--active{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.CFSSMARTSMS-field-palette .CFSSMARTSMS--active:before{opacity:1}.CFSSMARTSMS-field-palette input{display:none}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-field-text input{width:100%}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-hidden{display:none!important}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-wrapper .CFSSMARTSMS-repeater-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-wrapper .CFSSMARTSMS-repeater-item h4{font-size:1em}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-helper i{display:inline-block;cursor:pointer;color:#999;padding:5px}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-helper i:hover{color:#555}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-helper-inner{width:75px}.CFSSMARTSMS-field-repeater .CFSSMARTSMS-repeater-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.CFSSMARTSMS-field-repeater .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.CFSSMARTSMS-field-repeater .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.CFSSMARTSMS-field-repeater .ui-sortable-helper .CFSSMARTSMS-repeater-content,.CFSSMARTSMS-field-repeater .ui-sortable-helper .CFSSMARTSMS-repeater-helper{display:none}.CFSSMARTSMS-field-select .CFSSMARTSMS-fieldset{min-height:30px}.CFSSMARTSMS-field-select .CFSSMARTSMS-chosen{display:none}.CFSSMARTSMS-field-select select{max-width:100%;margin:0}.CFSSMARTSMS-field-select .CFSSMARTSMS-hide-select{display:none!important}.CFSSMARTSMS-field-slider .CFSSMARTSMS--wrap{display:flex;align-items:center}.CFSSMARTSMS-field-slider .CFSSMARTSMS--input{display:flex}.CFSSMARTSMS-field-slider .CFSSMARTSMS--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.CFSSMARTSMS-field-slider .CFSSMARTSMS-slider-ui{margin-right:15px}.CFSSMARTSMS-field-slider input[type=number]{position:relative;z-index:1;margin:0;width:50px;text-align:center}.CFSSMARTSMS-field-slider .CFSSMARTSMS--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.CFSSMARTSMS-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.CFSSMARTSMS-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.CFSSMARTSMS-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.CFSSMARTSMS-field-slider .ui-slider-handle:hover,.CFSSMARTSMS-field-slider .ui-state-active{cursor:pointer;background:#111}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-field-text input{width:100%;max-width:100%}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable .CFSSMARTSMS-sortable-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable .CFSSMARTSMS-sortable-item h4{font-size:1em}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-helper i{display:inline-block;cursor:pointer;width:50px;color:#555}.CFSSMARTSMS-field-sortable .CFSSMARTSMS-sortable-helper i:hover{opacity:.5}.CFSSMARTSMS-field-sortable .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.CFSSMARTSMS-field-sortable .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.CFSSMARTSMS-field-sortable .ui-sortable-helper .CFSSMARTSMS-sortable-content,.CFSSMARTSMS-field-sortable .ui-sortable-helper .CFSSMARTSMS-sortable-helper{display:none}.CFSSMARTSMS-field-sorter .ui-sortable-placeholder{height:20px;border:1px dashed #f1c40f;background-color:#fffae4}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-modules{float:left;width:50%;box-sizing:border-box}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-modules:first-child{padding-right:15px}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-modules:last-child{padding-left:15px}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-disabled,.CFSSMARTSMS-field-sorter .CFSSMARTSMS-enabled{padding:5px 15px;border:1px dashed #ddd;background-color:#fff}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-disabled li{opacity:.5;transition:opacity .15s}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-disabled .ui-sortable-helper{opacity:1}.CFSSMARTSMS-field-sorter .CFSSMARTSMS-sorter-title{font-size:13px;font-weight:600;padding:10px;text-align:center;border:1px dashed #ddd;border-bottom:none;background-color:#f8f8f8;text-transform:uppercase}.CFSSMARTSMS-field-sorter ul{list-style-type:none;margin:0;padding:0;min-height:62px}.CFSSMARTSMS-field-sorter ul li{margin:10px 0;padding:10px 15px;cursor:move;font-weight:700;text-align:center;border:1px solid #e5e5e5;background-color:#fafafa;transition:border-color .15s}.CFSSMARTSMS-field-sorter ul li:hover{border-color:#bbb}.CFSSMARTSMS-field-spinner .CFSSMARTSMS--spin{display:flex}.CFSSMARTSMS-field-spinner .ui-widget{font-family:inherit}.CFSSMARTSMS-field-spinner .ui-spinner{display:flex;align-items:stretch;overflow:unset;border:none;background:0 0;border-radius:0}.CFSSMARTSMS-field-spinner .ui-spinner .ui-button{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;margin:0;color:#555;background-color:#f5f5f5;border:1px solid #7e8993}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-button{position:relative;cursor:pointer;height:auto}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-button:hover{background-color:#e7e7e7}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-button:active{background-color:#ddd}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-button:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;line-height:14px}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-down{border-right:0;border-radius:4px 0 0 4px}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-down:before{content:"\f0d9"}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-up{border-left:0;border-radius:0 4px 4px 0}.CFSSMARTSMS-field-spinner .ui-spinner .ui-spinner-up:before{content:"\f0da"}.CFSSMARTSMS-field-spinner .ui-spinner .CFSSMARTSMS--unit{border-left:0;user-select:none}.CFSSMARTSMS-field-spinner .ui-spinner .ui-button-icon,.CFSSMARTSMS-field-spinner .ui-spinner .ui-button-icon-space,.CFSSMARTSMS-field-spinner .ui-spinner .ui-button-text{display:none}.CFSSMARTSMS-field-spinner .ui-spinner input{font-family:inherit;font-size:inherit;position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.CFSSMARTSMS-field-spinner .ui-spinner-down{order:1}.CFSSMARTSMS-field-spinner .ui-spinner-input{order:2}.CFSSMARTSMS-field-spinner .CFSSMARTSMS--unit{order:3}.CFSSMARTSMS-field-spinner .ui-spinner-up{order:4}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--off,.CFSSMARTSMS-field-switcher .CFSSMARTSMS--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--off{padding-right:0;padding-left:28px;opacity:1}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--active{background:#4fb845}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--active .CFSSMARTSMS--on{opacity:1}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--active .CFSSMARTSMS--off{opacity:0}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--active .CFSSMARTSMS--ball{left:100%;margin-left:-28px}.CFSSMARTSMS-field-switcher .CFSSMARTSMS--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-content>.CFSSMARTSMS-field{padding:15px}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav .CFSSMARTSMS--icon{padding-right:5px}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav a{display:inline-block;padding:12px 15px;margin-top:1px;margin-right:5px;margin-bottom:-1px;position:relative;text-decoration:none;color:#444;font-weight:600;border:1px solid #ccd0d4;background-color:#f3f3f3;transition:all .2s}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav a:hover{background-color:#f9f9f9}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav a.CFSSMARTSMS-tabbed-active{background-color:#fff;border-bottom-color:#fff}.CFSSMARTSMS-field-tabbed .CFSSMARTSMS-tabbed-nav a:focus{outline:0;box-shadow:none}.CFSSMARTSMS-field-text input{width:50%;max-width:100%;margin:0}.CFSSMARTSMS-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.CFSSMARTSMS-field-textarea .CFSSMARTSMS-shortcode-button{margin-bottom:10px;margin-right:5px}.CFSSMARTSMS-field-typography select,.CFSSMARTSMS-field-typography textarea{margin:0;min-width:100%;max-width:100%}.CFSSMARTSMS-field-typography .CFSSMARTSMS--title{color:#777;margin:0 0 2px 0;font-size:12px}.CFSSMARTSMS-field-typography .CFSSMARTSMS--title small{vertical-align:top}.CFSSMARTSMS-field-typography .CFSSMARTSMS--blocks{display:flex;flex-wrap:wrap}.CFSSMARTSMS-field-typography .CFSSMARTSMS--block{flex:1;max-width:100%;padding-right:6px;padding-bottom:6px}.CFSSMARTSMS-field-typography .CFSSMARTSMS--input{margin:0;min-width:100%}.CFSSMARTSMS-field-typography .CFSSMARTSMS--input-wrap{position:relative}.CFSSMARTSMS-field-typography .CFSSMARTSMS--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.CFSSMARTSMS-field-typography .CFSSMARTSMS--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.CFSSMARTSMS-field-typography .CFSSMARTSMS--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;max-width:100%}.CFSSMARTSMS-field-typography .CFSSMARTSMS--black-background{border-color:#000;background-color:#000}.CFSSMARTSMS-field-typography .CFSSMARTSMS--toggle{position:absolute;top:5px;right:10px;color:#999}.CFSSMARTSMS-field-typography .CFSSMARTSMS--block-extra-styles{margin-top:5px}.CFSSMARTSMS-field-upload input{width:100%;margin:0}.CFSSMARTSMS-field-upload .CFSSMARTSMS--wrap{display:flex;align-items:flex-start}.CFSSMARTSMS-field-upload .button{margin-left:5px}.CFSSMARTSMS-field-upload .CFSSMARTSMS--preview{position:relative}.CFSSMARTSMS-field-wp_editor .CFSSMARTSMS-wp-editor{float:left;width:100%}.CFSSMARTSMS-field-wp_editor .mce-toolbar-grp{border:none}.CFSSMARTSMS-field-wp_editor .mce-btn.mce-active button,.CFSSMARTSMS-field-wp_editor .mce-btn.mce-active i,.CFSSMARTSMS-field-wp_editor .mce-btn.mce-active:hover button,.CFSSMARTSMS-field-wp_editor .mce-btn.mce-active:hover i{color:#23282d}.CFSSMARTSMS-field-wp_editor .wp-media-buttons{position:relative;z-index:2}.CFSSMARTSMS-field-wp_editor .wp-editor-tabs{position:relative;z-index:1}.CFSSMARTSMS-field-wp_editor .CFSSMARTSMS-no-tinymce{border:1px solid #e5e5e5}.CFSSMARTSMS-field-wp_editor .CFSSMARTSMS-no-quicktags .wp-media-buttons{float:none;display:block}.CFSSMARTSMS-field-wp_editor .CFSSMARTSMS-no-quicktags .mce-tinymce{box-shadow:none;border:1px solid #e5e5e5}.CFSSMARTSMS-field-wp_editor textarea{width:100%;max-width:100%;margin:0;box-shadow:none}.CFSSMARTSMS-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.CFSSMARTSMS-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.CFSSMARTSMS-field-submessage{padding:0!important;border:0!important}.CFSSMARTSMS-field-submessage+.CFSSMARTSMS-field{border-top:0!important}.CFSSMARTSMS-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.CFSSMARTSMS-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.CFSSMARTSMS-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.CFSSMARTSMS-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.CFSSMARTSMS-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.CFSSMARTSMS-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.CFSSMARTSMS-field-notice{background-color:#f7f7f7}.CFSSMARTSMS-notice{padding:12px;background-color:#fff;border-left-style:solid;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.1)}.CFSSMARTSMS-notice-success{border-color:#46b450}.CFSSMARTSMS-notice-info{border-color:#339fd4}.CFSSMARTSMS-notice-warning{border-color:#ffbc00}.CFSSMARTSMS-notice-danger{border-color:#dc3232}.CFSSMARTSMS-notice-normal{border-color:#222}.CFSSMARTSMS-field-number input{width:100%;margin:0}.CFSSMARTSMS-field-number .CFSSMARTSMS--wrap{position:relative;float:left;width:100px}.CFSSMARTSMS-field-number .CFSSMARTSMS--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.CFSSMARTSMS-field-link .CFSSMARTSMS--result{display:inline-block;font-size:12px;line-height:16px;padding:7px 10px;margin-bottom:7px;color:#777;border:1px solid #e5e5e5;background-color:#f5f5f5;border-radius:2px;world-break:break-word}.CFSSMARTSMS-field-link .CFSSMARTSMS--wrap{position:relative;float:left;width:100px}.CFSSMARTSMS-field-link .CFSSMARTSMS--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.CFSSMARTSMS-help{cursor:help;position:absolute;top:0;right:0;padding:5px;font-size:13px;color:#aaa}.CFSSMARTSMS-help .CFSSMARTSMS-help-text{display:none}.CFSSMARTSMS--preview{max-width:100%}.CFSSMARTSMS-image-preview{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:6px;max-width:120px;max-height:120px;min-width:40px;min-height:40px;margin-bottom:10px;text-align:center;border-radius:2px;border:1px solid #ccc;background-color:#f9f9f9;box-shadow:0 1px 0 rgba(0,0,0,.08)}.CFSSMARTSMS-image-preview i{cursor:pointer;position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.75;border-radius:2px;transition:all .2s}.CFSSMARTSMS-image-preview i:hover{opacity:1}.CFSSMARTSMS-image-preview i:focus{box-shadow:none}.CFSSMARTSMS-image-preview span{position:relative;overflow:hidden;display:flex;height:100%;width:100%}.CFSSMARTSMS-image-preview img{max-width:100%;height:auto;object-fit:contain}.CFSSMARTSMS-field-custom .CFSSMARTSMS-field{padding:0}.CFSSMARTSMS-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.CFSSMARTSMS-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.CFSSMARTSMS-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.CFSSMARTSMS-field .chosen-container-single .chosen-single abbr:hover{color:#555}.CFSSMARTSMS-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.CFSSMARTSMS-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.CFSSMARTSMS-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.CFSSMARTSMS-field .chosen-container-single .chosen-single div b{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;color:#aaa;background:0 0}.CFSSMARTSMS-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.CFSSMARTSMS-field .chosen-container-single .chosen-single div b:hover{color:#555}.CFSSMARTSMS-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.CFSSMARTSMS-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.CFSSMARTSMS-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.CFSSMARTSMS-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.CFSSMARTSMS-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.CFSSMARTSMS-field .chosen-container-single .chosen-search:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:11px;content:"\f002";position:absolute;right:12px;top:10px;color:#aaa}.CFSSMARTSMS-field .wp-picker-container{display:inline-block}.CFSSMARTSMS-field .wp-picker-container .wp-color-result.button{margin-bottom:0}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.CFSSMARTSMS-field .wp-picker-active .CFSSMARTSMS--transparent-wrap{display:block}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2)}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;border-radius:2px;box-shadow:inset 0 0 5px rgba(0,0,0,.4)}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-active .CFSSMARTSMS--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.CFSSMARTSMS-field .CFSSMARTSMS--transparent-active .fa:before{content:"\f205"}.CFSSMARTSMS-widgets>.CFSSMARTSMS-field{position:relative;top:-1px;margin-left:-15px;margin-right:-15px;padding:12px 15px}.CFSSMARTSMS-widgets>.CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:5px}.CFSSMARTSMS-widgets>.CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}.CFSSMARTSMS-widgets .CFSSMARTSMS-field-text input{width:100%}.CFSSMARTSMS-widgets .CFSSMARTSMS-field-notice .CFSSMARTSMS-notice{padding:15px}.control-section .CFSSMARTSMS-widgets>.CFSSMARTSMS-field{margin-left:-10px;margin-right:-10px;padding:10px 12px}.wp-block .CFSSMARTSMS-widgets{font-size:13px}.wp-block .CFSSMARTSMS-widgets>.CFSSMARTSMS-field{margin-left:-10px;margin-right:-10px}.wp-block .CFSSMARTSMS-widgets>.CFSSMARTSMS-field .button-primary{color:#fff}.wp-block .CFSSMARTSMS-widgets>.CFSSMARTSMS-field>.CFSSMARTSMS-title>h4{font-size:13px}.control-section .CFSSMARTSMS-field{padding:0}.control-section .CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:6px}.control-section .CFSSMARTSMS-field .CFSSMARTSMS-title h4{display:block;font-size:13px;line-height:1;font-weight:600;color:inherit}.control-section .CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}.control-section .CFSSMARTSMS-help{top:-5px;right:-5px}.control-section .CFSSMARTSMS-field-select select{width:100%}.control-section .CFSSMARTSMS-field-heading{color:inherit;font-size:14px;line-height:1em;margin-right:-15px;margin-left:-15px;padding:15px}.control-section .CFSSMARTSMS-field-subheading{color:inherit;font-size:11px;margin-right:-15px;margin-left:-15px;padding:10px 15px}.control-section .CFSSMARTSMS-subtitle-text{margin-top:4px;font-size:12px}.control-section .CFSSMARTSMS-field-submessage .CFSSMARTSMS-submessage{margin-right:-15px;margin-left:-15px;padding:15px}.control-section .CFSSMARTSMS-fieldset .CFSSMARTSMS-field-heading,.control-section .CFSSMARTSMS-fieldset .CFSSMARTSMS-field-subheading,.control-section .CFSSMARTSMS-fieldset .CFSSMARTSMS-field-submessage .CFSSMARTSMS-submessage{margin-left:0;margin-right:0}.control-section .CFSSMARTSMS-field-date label,.control-section .CFSSMARTSMS-field-datetime label{display:block}.control-section .CFSSMARTSMS-field-date .CFSSMARTSMS--to,.control-section .CFSSMARTSMS-field-datetime .CFSSMARTSMS--to{margin-top:4px;margin-left:0}.control-section .CFSSMARTSMS-field-sorter ul li{padding:5px}.control-section .CFSSMARTSMS-field-sorter .CFSSMARTSMS-modules{float:none;width:100%}.control-section .CFSSMARTSMS-field-sorter .CFSSMARTSMS-modules:first-child{padding-right:0;padding-bottom:15px}.control-section .CFSSMARTSMS-field-background .CFSSMARTSMS--background-attributes{flex-direction:column}.control-section .CFSSMARTSMS-field-spacing input{width:90px}.control-section .CFSSMARTSMS-field-border .CFSSMARTSMS--input{flex:1 50%}.control-section .CFSSMARTSMS-field-border input,.control-section .CFSSMARTSMS-field-border select{width:100%}.control-section .CFSSMARTSMS-field-spinner input{width:50px}.control-section .CFSSMARTSMS-field-number .CFSSMARTSMS--wrap{width:100%}.control-section .CFSSMARTSMS-field-backup .CFSSMARTSMS-export-data{display:none}.control-section .CFSSMARTSMS-field-fieldset .CFSSMARTSMS-fieldset-content{border-color:#e5e5e5}.control-section .CFSSMARTSMS-accordion-content>.CFSSMARTSMS-field,.control-section .CFSSMARTSMS-cloneable-content>.CFSSMARTSMS-field,.control-section .CFSSMARTSMS-fieldset-content>.CFSSMARTSMS-field,.control-section .CFSSMARTSMS-repeater-content>.CFSSMARTSMS-field,.control-section .CFSSMARTSMS-sortable-content>.CFSSMARTSMS-field,.control-section .CFSSMARTSMS-tabbed-content>.CFSSMARTSMS-field{padding:10px}.control-section .CFSSMARTSMS-accordion-content>.CFSSMARTSMS-field .CFSSMARTSMS-title,.control-section .CFSSMARTSMS-cloneable-content>.CFSSMARTSMS-field .CFSSMARTSMS-title,.control-section .CFSSMARTSMS-fieldset-content>.CFSSMARTSMS-field .CFSSMARTSMS-title,.control-section .CFSSMARTSMS-repeater-content>.CFSSMARTSMS-field .CFSSMARTSMS-title,.control-section .CFSSMARTSMS-sortable-content>.CFSSMARTSMS-field .CFSSMARTSMS-title,.control-section .CFSSMARTSMS-tabbed-content>.CFSSMARTSMS-field .CFSSMARTSMS-title{margin-bottom:5px}.control-section .CFSSMARTSMS-accordion-content>.CFSSMARTSMS-field h4,.control-section .CFSSMARTSMS-cloneable-content>.CFSSMARTSMS-field h4,.control-section .CFSSMARTSMS-fieldset-content>.CFSSMARTSMS-field h4,.control-section .CFSSMARTSMS-repeater-content>.CFSSMARTSMS-field h4,.control-section .CFSSMARTSMS-sortable-content>.CFSSMARTSMS-field h4,.control-section .CFSSMARTSMS-tabbed-content>.CFSSMARTSMS-field h4{font-size:12px}.control-section .CFSSMARTSMS-depend-hidden.CFSSMARTSMS-depend-on{display:none!important}.control-section .CFSSMARTSMS-depend-visible.CFSSMARTSMS-depend-on{border-top:0!important}.CFSSMARTSMS-taxonomy{max-width:95%}.CFSSMARTSMS-taxonomy>.CFSSMARTSMS-field{border-top:none!important}.CFSSMARTSMS-taxonomy>.CFSSMARTSMS-field-heading{font-size:1.1em;padding:20px!important;border:1px solid #ddd}.CFSSMARTSMS-taxonomy>.CFSSMARTSMS-field-subheading{font-size:12px;padding:15px!important;border:1px solid #ddd}.CFSSMARTSMS-taxonomy>.CFSSMARTSMS-field-submessage .CFSSMARTSMS-submessage{padding:15px;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid}.CFSSMARTSMS-taxonomy>.CFSSMARTSMS-field-notice{background-color:transparent}.CFSSMARTSMS-taxonomy .CFSSMARTSMS-section-title{display:block;padding:15px;background-color:#f9f9f9;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.CFSSMARTSMS-taxonomy-add-fields>.CFSSMARTSMS-field{padding:8px 0}.CFSSMARTSMS-taxonomy-add-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-title{float:none;width:100%;padding:2px 2px 4px 0}.CFSSMARTSMS-taxonomy-add-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-title h4{font-size:12px;font-weight:400}.CFSSMARTSMS-taxonomy-add-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset{float:none;width:100%}.CFSSMARTSMS-taxonomy-add-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{right:-5px}.CFSSMARTSMS-taxonomy-add-fields+p.submit{margin-top:0}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field{padding:20px 0}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-title{width:200px}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-title h4{font-size:14px;font-weight:600;line-height:1.3;display:inline-block;vertical-align:middle}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset{width:calc(100% - 220px)}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{top:-5px;right:-5px}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field-submessage{margin:20px 0}.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field-heading,.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field-subheading{margin:20px 0;border:1px solid #ddd}.CFSSMARTSMS-nav-menu-options{clear:both;float:left;width:100%}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields{margin-left:-10px;margin-top:10px;margin-bottom:10px;border-top:1px solid #eee;border-bottom:1px solid #eee}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields>.CFSSMARTSMS-field{padding:12px 14px 12px 12px}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields>.CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:5px}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields>.CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}.CFSSMARTSMS-nav-menu-options .CFSSMARTSMS-field-text input{width:100%}.CFSSMARTSMS-nav-menu-options .CFSSMARTSMS-field-notice .CFSSMARTSMS-notice{padding:15px}.CFSSMARTSMS-nav-menu-title{padding:12px 14px 12px 12px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.CFSSMARTSMS-nav-menu-title:first-child{border-top:0}.CFSSMARTSMS-nav-menu-title h4{margin:0;padding:0;color:#23282d}.CFSSMARTSMS-nav-menu-icon{margin-right:5px}.CFSSMARTSMS-profile-options>h2>.fa{padding-right:7px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field{max-width:750px;padding:15px 0;border-top:none!important}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-title{width:200px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-title h4{font-size:14px;font-weight:600;line-height:1.3;display:inline-block;vertical-align:middle}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset{width:calc(100% - 220px)}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset>.CFSSMARTSMS-help{top:-15px;right:-5px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-heading{font-size:1.1em}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-subheading{font-size:12px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-heading,.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-subheading{margin:10px 0;padding:15px!important;border:1px solid #ddd}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-submessage{margin:20px 0}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-submessage .CFSSMARTSMS-submessage{padding:10px;border-left-width:1px;border-left-style:solid;border-right-width:1px;border-right-style:solid}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field-notice{background-color:transparent}.CFSSMARTSMS-modal{position:fixed;z-index:100101;top:0;left:0;width:100%;height:100%}.CFSSMARTSMS-modal.hidden{display:none}.CFSSMARTSMS-modal-icon{z-index:100102}.CFSSMARTSMS-modal-table{display:table;width:100%;height:100%}.CFSSMARTSMS-modal-table-cell{display:table-cell;vertical-align:middle;margin:100px 0}.CFSSMARTSMS-modal-inner{position:relative;z-index:10;width:760px;height:750px;margin:0 auto;background-color:#fff}.CFSSMARTSMS-modal-content{position:relative;overflow:hidden;overflow-y:auto;height:595px}.CFSSMARTSMS-modal-content .CFSSMARTSMS-shortcode-button{display:none}.CFSSMARTSMS-modal-content .CFSSMARTSMS-field{padding:15px 30px 15px 15px}.CFSSMARTSMS-modal-content a:active,.CFSSMARTSMS-modal-content a:focus{outline:0;box-shadow:none}.CFSSMARTSMS-modal-content h4{font-size:13px}.CFSSMARTSMS-modal-content h4 small{font-style:italic;font-weight:400;color:#aaa}.CFSSMARTSMS-modal-title{position:relative;background-color:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:16px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.CFSSMARTSMS-modal-header{width:100%;padding:14px 0;background-color:#f5f5f5;border-bottom:1px solid #ddd}.CFSSMARTSMS-modal-header select{display:block;width:250px;margin:0 auto;font-size:13px;line-height:1;height:30px;min-height:30px;background-color:#fff}.CFSSMARTSMS-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}.CFSSMARTSMS-modal-close:before{font:normal 20px/36px dashicons;content:"\f158";vertical-align:top;width:36px;height:36px}.CFSSMARTSMS-modal-close:hover{opacity:.5}.CFSSMARTSMS-modal-insert-wrapper{text-align:center;width:100%;padding:15px 0;background-color:#f5f5f5;border-top:1px solid #ddd}.CFSSMARTSMS-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5}.CFSSMARTSMS--repeatable{padding:15px 15px 0 15px}.CFSSMARTSMS--repeat-button-block{text-align:center;padding-bottom:15px}.CFSSMARTSMS--repeat-shortcode{position:relative;margin-bottom:15px;border:1px dashed #ddd}.CFSSMARTSMS--repeat-shortcode:first-child .CFSSMARTSMS-repeat-remove{display:none}.CFSSMARTSMS--repeat-shortcode .CFSSMARTSMS-repeat-remove{position:absolute;right:10px;top:10px;z-index:10;cursor:pointer;display:inline-block;font-size:11px;width:18px;height:18px;line-height:18px;text-align:center;border-radius:2px;color:#fff;background-color:#e14d43;opacity:.5}.CFSSMARTSMS--repeat-shortcode .CFSSMARTSMS-repeat-remove:hover{opacity:.5}.CFSSMARTSMS-shortcode-single .CFSSMARTSMS-modal-inner{height:750px}.CFSSMARTSMS-shortcode-single .CFSSMARTSMS-modal-content{height:652px}.elementor-editor-active .CFSSMARTSMS-shortcode-button{margin-left:5px}.elementor-editor-active .CFSSMARTSMS-modal .hidden{display:none!important}.CFSSMARTSMS-shortcode-block{text-align:center;padding:14px;font-size:13px;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.CFSSMARTSMS-shortcode-block .components-button{margin-bottom:10px}.CFSSMARTSMS-modal-icon .CFSSMARTSMS-icon-title{padding:15px 0;margin:4px;font-size:14px;font-weight:700;text-align:center;border:1px solid #eee;background-color:#f7f7f7}.CFSSMARTSMS-modal-icon .CFSSMARTSMS-modal-header{text-align:center}.CFSSMARTSMS-modal-icon .CFSSMARTSMS-icon-search{width:50%;height:40px;line-height:40px}.CFSSMARTSMS-modal-icon i{cursor:pointer;display:inline-block;margin:4px;width:35px;height:35px;line-height:35px;font-size:16px;color:#555;text-align:center;border:1px solid #ccc;background-color:#f7f7f7;border-radius:2px;box-shadow:1px 1px 0 rgba(0,0,0,.05)}.CFSSMARTSMS-modal-icon i:hover{color:#fff;border-color:#222;background-color:#222}.CFSSMARTSMS-modal-icon .CFSSMARTSMS-modal-content{padding:10px;height:618px}.CFSSMARTSMS-modal-icon .CFSSMARTSMS-error-text{padding:10px}.CFSSMARTSMS-modal-loading{display:none;position:absolute;left:15px;top:15px}.CFSSMARTSMS-loading{position:relative;width:20px;height:20px;background:#ccc;border-radius:20px;box-shadow:0 2px 5px rgba(0,0,0,.07)}.CFSSMARTSMS-loading:after{position:absolute;top:50%;left:50%;width:4px;height:4px;content:"";margin-top:-2px;margin-left:-2px;background-color:#fff;animation-duration:.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:csfLoader;border-radius:4px}@keyframes csfLoader{0%{transform:rotate(0) translateX(-6px) rotate(0)}100%{transform:rotate(360deg) translateX(-6px) rotate(-360deg)}}.CFSSMARTSMS-subtitle-text{margin-top:6px;font-weight:400;color:#999}.CFSSMARTSMS-desc-text{clear:both;float:left;width:100%;margin-top:6px;font-weight:400;color:#999}.CFSSMARTSMS-error-text{margin-top:6px;color:#d02c21}.CFSSMARTSMS-before-text{margin-bottom:6px}.CFSSMARTSMS-after-text{margin-top:6px}.CFSSMARTSMS-metabox-hide{display:none!important}.CFSSMARTSMS-metabox-show{display:block!important}.CFSSMARTSMS-depend-hidden.CFSSMARTSMS-depend-on{display:none}.CFSSMARTSMS-depend-visible.CFSSMARTSMS-depend-on{display:block;opacity:.75;filter:grayscale(1);user-select:none;border-top:1px solid #eee}.CFSSMARTSMS-depend-visible.CFSSMARTSMS-depend-on .clear:before{content:"";left:0;top:0;right:0;bottom:0;position:absolute;background-color:#eee;opacity:.25;z-index:10}.CFSSMARTSMS-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.CFSSMARTSMS-warning-primary:focus,.CFSSMARTSMS-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.CFSSMARTSMS-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.CFSSMARTSMS-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.CFSSMARTSMS-form-result{display:none;float:left;padding:0 8px;margin-right:4px;font-size:11px;line-height:30px;user-select:none;border-radius:2px}.CFSSMARTSMS-form-show{display:block}.CFSSMARTSMS-form-success{color:#fff;background-color:#46b450}.CFSSMARTSMS-form-warning{color:#8a6d3b;background-color:#faebcc}.CFSSMARTSMS-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;border-radius:2px}.CFSSMARTSMS-no-option{padding:30px}.CFSSMARTSMS-input-number{-moz-appearance:textfield}.CFSSMARTSMS-input-number::-webkit-inner-spin-button,.CFSSMARTSMS-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.CFSSMARTSMS-fa5-shims .CFSSMARTSMS .fab,.CFSSMARTSMS-fa5-shims .CFSSMARTSMS .far,.CFSSMARTSMS-fa5-shims .CFSSMARTSMS .fas{font-family:FontAwesome;font-style:normal}.CFSSMARTSMS-welcome-wrap{position:relative;margin:25px 40px 0 20px;font-size:15px;max-width:1200px;font-family: 'FontFARSI';}.CFSSMARTSMS-welcome-wrap p{font-size:14px;line-height:1.5}.CFSSMARTSMS-welcome-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2em;font-size:2.1em;font-weight:400;font-family:'FontFARSI';}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo{position:absolute;overflow:hidden;top:0;right:0;height:160px;width:140px;background-image:linear-gradient(45deg,#2d67cb,#ad19f3);box-shadow:0 1px 4px rgba(0,0,0,.25),inset 0 0 0 4px rgba(0,0,0,.25)}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--effects i{position:absolute;width:200px;height:100px;background-color:rgba(0,0,0,.15);transform:rotate(-45deg)}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--effects i:nth-child(1){bottom:-20px;right:-70px}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--effects i:nth-child(2){bottom:-35px;right:-80px}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--effects i:nth-child(3){bottom:-50px;right:-90px}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--effects i:nth-child(4){bottom:-65px;right:-100px}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--wp-logos{position:relative;padding-top:25px;text-align:center}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--wp-logo{position:absolute;left:20px;width:20px;height:20px;background-repeat:no-repeat;background-position:center center;background-image:url(../images/wp-logo.svg)}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--wp-plugin-logo{display:inline-block;width:50px;height:50px;border:3px solid #fff;background-size:40px;background-repeat:no-repeat;background-position:center center;background-image:url(../images/wp-plugin-logo.svg);border-radius:100%;vertical-align:middle}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--text{position:absolute;left:0;right:0;top:90px;color:#fff;font-size:13px;line-height:1.2em;font-weight:600;text-align:center;text-transform:uppercase;text-shadow:1px 1px 0 rgba(0,0,0,.25)}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-logo .CFSSMARTSMS--version{top:auto;left:auto;right:8px;bottom:4px;font-size:11px;text-transform:lowercase}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-about-text{font-weight:400;line-height:1.6em;font-size:19px;margin:1em 200px 1em 0;color:#555d66;font-family:'FontFARSI';}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS-demo-button{margin:1em 200px 2em 0}.CFSSMARTSMS-welcome-wrap .nav-tab-wrapper{margin-bottom:20px;font-family: 'FontFARSI';}.CFSSMARTSMS-welcome-wrap ul{list-style-type:disc;padding-left:15px}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col{float:left;padding-right:40px;box-sizing:border-box}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-2{width:50%}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-3{width:33.333%}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-4{width:25%}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-5{width:20%}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-last{padding-right:0}.CFSSMARTSMS-welcome-wrap .CFSSMARTSMS--col-upgrade{padding:10px 0;text-align:center;border-top:1px solid #e5e5e5}.CFSSMARTSMS--table-compare tfoot td,.CFSSMARTSMS--table-compare thead td{text-align:center}.CFSSMARTSMS--table-compare td{font-size:14px;text-align:center;vertical-align:middle;padding:10px}.CFSSMARTSMS--table-compare td:first-child{text-align:left}.CFSSMARTSMS--table-compare tfoot td{padding:15px 0}.CFSSMARTSMS--table-compare .fa{font-size:18px}.CFSSMARTSMS--table-compare .fa-check-circle{color:#46b450}.CFSSMARTSMS--table-compare .fa-times-circle{color:#dc3232}.CFSSMARTSMS-welcome-cols{clear:both;margin:20px 0;background-color:#fff;padding:0 0;border-radius:2px;border:1px solid #e5e5e5}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--col{width:33.333%;float:left;padding:20px;text-align:center;box-sizing:border-box;min-height:200px;border-right:1px solid #e5e5e5}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--block,.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--left{float:left;width:20%;padding:0 30px;text-align:center;box-sizing:border-box}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--block{width:80%}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--col-first{border-bottom:1px solid #e5e5e5}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--last{border-right:none}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--space{height:20px}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--icon{display:inline-block;font-size:20px;width:30px;height:30px;line-height:30px;text-align:center;margin-bottom:10px;color:#fff;background-color:#555;border-radius:30px}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--active{background-color:#5cb85c}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--deactive{background-color:#e14d43}.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--title{font-weight:700;display:block}.CFSSMARTSMS-welcome-cols p:last-child{margin-bottom:0}.CFSSMARTSMS-features-cols .CFSSMARTSMS--key-features{width:30%}.CFSSMARTSMS-features-cols .CFSSMARTSMS--available-fields{width:70%}.CFSSMARTSMS-code-block{margin:20px 0;padding:5px 20px;background-color:#fff;border-radius:2px;box-shadow:0 1px 1px rgba(0,0,0,.15);text-align: left;}.CFSSMARTSMS-code-block pre{font-size:13px;color:#0073aa}.CFSSMARTSMS-code-block pre span{color:#999}.CFSSMARTSMS--table-fields td{font-size:14px}.CFSSMARTSMS--upgrade a{color:#5cb85c;font-weight:700}.CFSSMARTSMS--upgrade a:focus,.CFSSMARTSMS--upgrade a:hover{color:#4aa14a;outline:0;box-shadow:none}@media only screen and (max-width:782px){.CFSSMARTSMS-welcome-cols .CFSSMARTSMS--col{width:100%;min-height:auto;border-right:none;border-bottom:1px solid #e5e5e5}.CFSSMARTSMS-features-cols .CFSSMARTSMS--key-features{width:100%}.CFSSMARTSMS-features-cols .CFSSMARTSMS--available-fields{width:100%}}@media only screen and (max-width:1200px){.CFSSMARTSMS-metabox .CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:10px}.CFSSMARTSMS-metabox .CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}}@media only screen and (max-width:782px){.CFSSMARTSMS-header-inner{text-align:center}.CFSSMARTSMS-header-inner h1{width:100%;margin-bottom:10px}.CFSSMARTSMS-form-result{float:none;margin-right:0;margin-bottom:10px}.CFSSMARTSMS-header-left,.CFSSMARTSMS-header-right,.CFSSMARTSMS-search{width:100%}.CFSSMARTSMS-search{text-align:center;margin-bottom:15px}.CFSSMARTSMS-footer{text-align:center}.CFSSMARTSMS-buttons{float:none}.CFSSMARTSMS-copyright{float:none;margin-top:10px}.CFSSMARTSMS-expand-all,.CFSSMARTSMS-nav,.CFSSMARTSMS-nav-background,.CFSSMARTSMS-reset-section{display:none!important}.CFSSMARTSMS-nav-normal+.CFSSMARTSMS-content{margin-left:0}.CFSSMARTSMS-section,.CFSSMARTSMS-section-title{display:block!important}.CFSSMARTSMS-field .CFSSMARTSMS-title{float:none;width:100%;margin-bottom:10px}.CFSSMARTSMS-field .CFSSMARTSMS-fieldset{float:none;width:100%}.CFSSMARTSMS-field-color .button.wp-picker-clear{padding:0 8px;line-height:2.14285714;min-height:32px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-title,.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-title{float:none;width:100%;margin-bottom:10px}.CFSSMARTSMS-profile-options>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset,.CFSSMARTSMS-taxonomy-edit-fields>.CFSSMARTSMS-field>.CFSSMARTSMS-fieldset{float:none;width:100%}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields{margin-left:-10px;margin-right:-10px}.CFSSMARTSMS-nav-menu-options>.CFSSMARTSMS-fields>.CFSSMARTSMS-field{padding:10px}}@media only screen and (max-width:782px){.CFSSMARTSMS-modal .CFSSMARTSMS-modal-inner{width:90%}}@media only screen and (max-height:750px){.CFSSMARTSMS-modal .CFSSMARTSMS-modal-inner{height:auto}.CFSSMARTSMS-modal .CFSSMARTSMS-modal-content{height:calc(100vh - 200px)}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;user-select:none}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.flatpickr-calendar{background:0 0;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:0 0;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9)}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:0 0;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:0 0;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:0;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:0}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:0;padding:0}.flatpickr-weekdays{background:0 0;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:0 0;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:0 0;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:0 0;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:0 0;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:0 0;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}
  • nirweb-smart-sms/trunk/option/assets/js/main.min.js

    r2729089 r2729124  
    1 /* Codestar Framework | A Simple and Lightweight WordPress Option Framework - v2.2.8*/
    2 
    3 !function(I,_,b,y){"use strict";var T=T||{};T.funcs={},T.vars={onloaded:!1,$body:I("body"),$window:I(_),$document:I(b),$form_warning:null,is_confirm:!1,form_modified:!1,code_themes:[],is_rtl:I("body").hasClass("rtl")},T.helper={uid:function(e){return(e||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(e){return(e+"").replace(/(\[|\])/g,"\\$1")},name_nested_replace:function(e,t){var n=new RegExp(T.helper.preg_quote(t+"[\\d+]"),"g");e.find(":radio").each(function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)}),e.each(function(e){I(this).find(":input").each(function(){this.name=this.name.replace(n,t+"["+e+"]"),this.orginal_checked&&(this.checked=!0)})})},debounce:function(i,a,s){var c;return function(){var e=this,t=arguments,n=s&&!c;clearTimeout(c),c=setTimeout(function(){c=null,s||i.apply(e,t)},a),n&&i.apply(e,t)}}},I.fn.csf_clone=function(){for(var e=I.fn.clone.apply(this,arguments),t=this.find("select").add(this.filter("select")),n=e.find("select").add(e.filter("select")),i=0;i<t.length;++i)for(var a=0;a<t[i].options.length;++a)!0===t[i].options[a].selected&&(n[i].options[a].selected=!0);return this.find(":radio").each(function(){this.orginal_checked=this.checked}),e},I.fn.csf_expand_all=function(){return this.each(function(){I(this).on("click",function(e){e.preventDefault(),I(".csf-wrapper").toggleClass("csf-show-all"),I(".csf-section").csf_reload_script(),I(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")})})},I.fn.csf_nav_options=function(){return this.each(function(){var a,e=I(this),t=I(_),s=I("#wpwrap"),c=e.find("a");t.on("hashchange csf.hashchange",function(){var e=_.location.hash.replace("#tab=",""),t=e||c.first().attr("href").replace("#tab=",""),n=I('[data-tab-id="'+t+'"]');if(n.length){n.closest(".csf-tab-item").addClass("csf-tab-expanded").siblings().removeClass("csf-tab-expanded"),n.next().is("ul")&&(t=(n=n.next().find("li").first().find("a")).data("tab-id")),c.removeClass("csf-active"),n.addClass("csf-active"),a&&a.addClass("hidden");var i=I('[data-section-id="'+t+'"]');i.removeClass("hidden"),i.csf_reload_script(),I(".csf-section-id").val(i.index()+1),a=i,s.hasClass("wp-responsive-open")&&(I("html, body").animate({scrollTop:i.offset().top-50},200),s.removeClass("wp-responsive-open"))}}).trigger("csf.hashchange")})},I.fn.csf_nav_metabox=function(){return this.each(function(){var a,e=I(this),s=e.find("a"),c=e.parent().find(".csf-section");s.each(function(i){I(this).on("click",function(e){e.preventDefault();var t=I(this);s.removeClass("csf-active"),t.addClass("csf-active"),a!==y&&a.addClass("hidden");var n=c.eq(i);n.removeClass("hidden"),n.csf_reload_script(),a=n})}),s.first().trigger("click")})},I.fn.csf_page_templates=function(){this.length&&I(b).on("change",".editor-page-attributes__template select, #page_template",function(){var e=I(this).val()||"default";I(".csf-page-templates").removeClass("csf-metabox-show").addClass("csf-metabox-hide"),I(".csf-page-"+e.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("csf-metabox-hide").addClass("csf-metabox-show")})},I.fn.csf_post_formats=function(){this.length&&I(b).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',function(){var e=I(this).val()||"default";e="0"===e?"default":e,I(".csf-post-formats").removeClass("csf-metabox-show").addClass("csf-metabox-hide"),I(".csf-post-format-"+e).removeClass("csf-metabox-hide").addClass("csf-metabox-show")})},I.fn.csf_search=function(){return this.each(function(){I(this).find("input").on("change keyup",function(){var n=I(this).val(),e=I(".csf-wrapper"),t=e.find(".csf-section").find("> .csf-field:not(.csf-depend-on)"),i=t.find("> .csf-title, .csf-search-tags");3<n.length?(t.addClass("csf-metabox-hide"),e.addClass("csf-search-all"),i.each(function(){var e=I(this);if(e.text().match(new RegExp(".*?"+n+".*?","i"))){var t=e.closest(".csf-field");t.removeClass("csf-metabox-hide"),t.parent().csf_reload_script()}})):(t.removeClass("csf-metabox-hide"),e.removeClass("csf-search-all"))})})},I.fn.csf_sticky=function(){return this.each(function(){var i=I(this),a=I(_),s=i.find(".csf-header-inner"),c=parseInt(s.css("padding-left"))+parseInt(s.css("padding-right")),r=0,o=!1,e=function(){o||requestAnimationFrame(function(){var e,t,n;e=i.offset().top,t=Math.max(32,e-r),n=a.innerWidth(),t<=32&&782<n?(s.css({width:i.outerWidth()-c}),i.css({height:i.outerHeight()}).addClass("csf-sticky")):(s.removeAttr("style"),i.removeAttr("style").removeClass("csf-sticky")),o=!1}),o=!0},t=function(){r=a.scrollTop(),e()};a.on("scroll resize",t),t()})},I.fn.csf_dependency=function(){return this.each(function(){var e=I(this),t=e.children("[data-controller]");if(t.length){var n=I.csf_deps.createRuleset(),i=I.csf_deps.createRuleset(),f=[],l=[];t.each(function(){var a=I(this),e=a.data("controller").split("|"),s=a.data("condition").split("|"),c=a.data("value").toString().split("|"),r=!!a.data("depend-global"),o=r?i:n;I.each(e,function(e,t){var n=c[e]||"",i=s[e]||s[0];(o=o.createRule('[data-depend-id="'+t+'"]',i,n)).include(a),r?l.push(t):f.push(t)})}),f.length&&I.csf_deps.enable(e,n,f),l.length&&I.csf_deps.enable(T.vars.$body,i,l)}})},I.fn.csf_field_accordion=function(){return this.each(function(){I(this).find(".csf-accordion-title").on("click",function(){var e=I(this),t=e.find(".csf-accordion-icon"),n=e.next();t.hasClass("fa-angle-right")?t.removeClass("fa-angle-right").addClass("fa-angle-down"):t.removeClass("fa-angle-down").addClass("fa-angle-right"),n.data("opened")||(n.csf_reload_script(),n.data("opened",!0)),n.toggleClass("csf-accordion-open")})})},I.fn.csf_field_backup=function(){return this.each(function(){if(_.wp.customize!==y){var t=this,n=I(this),i=(I("body"),n.find(".csf-import")),a=n.find(".csf-reset");t.notificationOverlay=function(){wp.customize.notifications&&wp.customize.OverlayNotification&&(wp.customize.state("saved").get()||(wp.customize.state("changesetStatus").set("trash"),wp.customize.each(function(e){e._dirty=!1}),wp.customize.state("saved").set(!0)),wp.customize.notifications.add(new wp.customize.OverlayNotification("csf_field_backup_notification",{type:"default",message:"&nbsp;",loading:!0})))},a.on("click",function(e){e.preventDefault(),T.vars.is_confirm&&(t.notificationOverlay(),_.wp.ajax.post("csf-reset",{unique:a.data("unique"),nonce:a.data("nonce")}).done(function(e){_.location.reload(!0)}).fail(function(e){alert(e.error),wp.customize.notifications.remove("csf_field_backup_notification")}))}),i.on("click",function(e){e.preventDefault(),T.vars.is_confirm&&(t.notificationOverlay(),_.wp.ajax.post("csf-import",{unique:i.data("unique"),nonce:i.data("nonce"),data:n.find(".csf-import-data").val()}).done(function(e){_.location.reload(!0)}).fail(function(e){alert(e.error),wp.customize.notifications.remove("csf_field_backup_notification")}))})}})},I.fn.csf_field_background=function(){return this.each(function(){I(this).find(".csf--background-image").csf_reload_script()})},I.fn.csf_field_code_editor=function(){return this.each(function(){if("function"==typeof CodeMirror){var t=I(this),i=t.find("textarea"),e=t.find(".CodeMirror"),a=i.data("editor");e.length&&e.remove();var s=setInterval(function(){if(t.is(":visible")){var n=CodeMirror.fromTextArea(i[0],a);if("default"!==a.theme&&-1===T.vars.code_themes.indexOf(a.theme)){var e=I("<link>");I("#csf-codemirror-css").after(e),e.attr({rel:"stylesheet",id:"csf-codemirror-"+a.theme+"-css",href:a.cdnURL+"/theme/"+a.theme+".min.css",type:"text/css",media:"all"}),T.vars.code_themes.push(a.theme)}CodeMirror.modeURL=a.cdnURL+"/mode/%N/%N.min.js",CodeMirror.autoLoadMode(n,a.mode),n.on("change",function(e,t){i.val(n.getValue()).trigger("change")}),clearInterval(s)}})}})},I.fn.csf_field_date=function(){return this.each(function(){var e=I(this),i=e.find("input"),a=e.find(".csf-date-settings").data("settings"),t={showAnim:"",beforeShow:function(e,t){I(t.dpDiv).addClass("csf-datepicker-wrapper")},onClose:function(e,t){I(t.dpDiv).removeClass("csf-datepicker-wrapper")}};a=I.extend({},a,t),2===i.length&&(a=I.extend({},a,{onSelect:function(e){I(this),i.first();var t=i.first().attr("id")===I(this).attr("id")?"minDate":"maxDate",n=I.datepicker.parseDate(a.dateFormat,e);i.not(this).datepicker("option",t,n)}})),i.each(function(){var e=I(this);e.hasClass("hasDatepicker")&&e.removeAttr("id").removeClass("hasDatepicker"),e.datepicker(a)})})},I.fn.csf_field_datetime=function(){return this.each(function(){var e=I(this),i=e.find("input"),t=e.find(".csf-datetime-settings").data("settings");t=I.extend({},t,{onReady:function(e,t,n){I(n.calendarContainer).addClass("csf-flatpickr")}}),2===i.length&&(t=I.extend({},t,{onChange:function(e,t,n){"from"===I(n.element).data("type")?i.last().get(0)._flatpickr.set("minDate",e[0]):i.first().get(0)._flatpickr.set("maxDate",e[0])}})),i.each(function(){I(this).flatpickr(t)})})},I.fn.csf_field_fieldset=function(){return this.each(function(){I(this).find(".csf-fieldset-content").csf_reload_script()})},I.fn.csf_field_gallery=function(){return this.each(function(){var s,e=I(this),c=e.find(".csf-edit-gallery"),r=e.find(".csf-clear-gallery"),o=e.find("ul"),f=e.find("input");e.find("img");e.on("click",".csf-button, .csf-edit-gallery",function(e){var t=I(this),n=f.val(),i=t.hasClass("csf-edit-gallery")?"edit":"add",a="add"!==i||n.length?"gallery-edit":"gallery";e.preventDefault(),void 0!==_.wp&&_.wp.media&&_.wp.media.gallery&&("gallery"===a?(s=_.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(s=_.wp.media.gallery.edit('[gallery ids="'+n+'"]'),"add"===i&&s.setState("gallery-library")),s.on("update",function(e){o.empty();var t=e.models.map(function(e){var t=e.toJSON(),n=t.sizes&&t.sizes.thumbnail&&t.sizes.thumbnail.url?t.sizes.thumbnail.url:t.url;return o.append('<li><img src="'+n+'"></li>'),t.id});f.val(t.join(",")).trigger("change"),r.removeClass("hidden"),c.removeClass("hidden")}))}),r.on("click",function(e){e.preventDefault(),o.empty(),f.val("").trigger("change"),r.addClass("hidden"),c.addClass("hidden")})})},I.fn.csf_field_group=function(){return this.each(function(){var e=I(this),t=e.children(".csf-fieldset"),n=t.length?t:e,r=n.children(".csf-cloneable-wrapper"),i=n.children(".csf-cloneable-hidden"),o=n.children(".csf-cloneable-max"),f=n.children(".csf-cloneable-min"),c=r.data("title-by"),l=r.data("title-by-prefix"),d=r.data("field-id"),h=Boolean(Number(r.data("title-number"))),p=parseInt(r.data("max")),a=parseInt(r.data("min"));r.hasClass("ui-accordion")&&r.find(".ui-accordion-header-icon").remove();var u=function(e){e.find(".csf-cloneable-title-number").each(function(e){I(this).html(I(this).closest(".csf-cloneable-item").index()+1+".")})};r.accordion({header:"> .csf-cloneable-item > .csf-cloneable-title",collapsible:!0,active:!1,animate:!1,heightStyle:"content",icons:{header:"csf-cloneable-header-icon fas fa-angle-right",activeHeader:"csf-cloneable-header-icon fas fa-angle-down"},activate:function(e,t){var n=t.newPanel,i=t.newHeader;if(n.length&&!n.data("opened")){var a=i.find(".csf-cloneable-value"),s=[];I.each(c,function(e,t){s.push(n.find('[data-depend-id="'+t+'"]'))}),I.each(s,function(e,t){t.on("change keyup csf.keyup",function(){var i=[];I.each(s,function(e,t){var n=t.val();n&&i.push(n)}),i.length&&a.text(i.join(l))}).trigger("csf.keyup")}),n.csf_reload_script(),n.data("opened",!0),n.data("retry",!1)}else n.data("retry")&&(n.csf_reload_script_retry(),n.data("retry",!1))}}),r.sortable({axis:"y",handle:".csf-cloneable-title,.csf-cloneable-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",start:function(e,t){r.accordion({active:!1}),r.sortable("refreshPositions"),t.item.children(".csf-cloneable-content").data("retry",!0)},update:function(e,t){T.helper.name_nested_replace(r.children(".csf-cloneable-item"),d),r.csf_customizer_refresh(),h&&u(r)}}),n.children(".csf-cloneable-add").on("click",function(e){e.preventDefault();var t=r.children(".csf-cloneable-item").length;if(f.hide(),p&&p<t+1)o.show();else{var n=i.csf_clone(!0);n.removeClass("csf-cloneable-hidden"),n.find(':input[name!="_pseudo"]').each(function(){this.name=this.name.replace("___","").replace(d+"[0]",d+"["+t+"]")}),r.append(n),r.accordion("refresh"),r.accordion({active:t}),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0}),h&&u(r)}});var s=function(e){e.preventDefault();var t=r.children(".csf-cloneable-item").length;if(f.hide(),p&&p<t+1)o.show();else{var n=I(this).parent().parent(),i=n.children(".csf-cloneable-helper").csf_clone(!0),a=n.children(".csf-cloneable-title").csf_clone(),s=n.children(".csf-cloneable-content").csf_clone(),c=I('<div class="csf-cloneable-item" />');c.append(i),c.append(a),c.append(s),r.children().eq(n.index()).after(c),T.helper.name_nested_replace(r.children(".csf-cloneable-item"),d),r.accordion("refresh"),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0}),h&&u(r)}};r.children(".csf-cloneable-item").children(".csf-cloneable-helper").on("click",".csf-cloneable-clone",s),n.children(".csf-cloneable-hidden").children(".csf-cloneable-helper").on("click",".csf-cloneable-clone",s);var v=function(e){e.preventDefault();var t=r.children(".csf-cloneable-item").length;o.hide(),f.hide(),a&&t-1<a?f.show():(I(this).closest(".csf-cloneable-item").remove(),T.helper.name_nested_replace(r.children(".csf-cloneable-item"),d),r.csf_customizer_refresh(),h&&u(r))};r.children(".csf-cloneable-item").children(".csf-cloneable-helper").on("click",".csf-cloneable-remove",v),n.children(".csf-cloneable-hidden").children(".csf-cloneable-helper").on("click",".csf-cloneable-remove",v)})},I.fn.csf_field_icon=function(){return this.each(function(){var n=I(this);n.on("click",".csf-icon-add",function(e){e.preventDefault();var t=I(this),i=I("#csf-modal-icon");i.removeClass("hidden"),T.vars.$icon_target=n,T.vars.icon_modal_loaded||(i.find(".csf-modal-loading").show(),_.wp.ajax.post("csf-get-icons",{nonce:t.data("nonce")}).done(function(e){i.find(".csf-modal-loading").hide(),T.vars.icon_modal_loaded=!0;var n=i.find(".csf-modal-load").html(e.content);n.on("click","i",function(e){e.preventDefault();var t=I(this).attr("title");T.vars.$icon_target.find(".csf-icon-preview i").removeAttr("class").addClass(t),T.vars.$icon_target.find(".csf-icon-preview").removeClass("hidden"),T.vars.$icon_target.find(".csf-icon-remove").removeClass("hidden"),T.vars.$icon_target.find("input").val(t).trigger("change"),i.addClass("hidden")}),i.on("change keyup",".csf-icon-search",function(){var t=I(this).val();n.find("i").each(function(){var e=I(this);e.attr("title").search(new RegExp(t,"i"))<0?e.hide():e.show()})}),i.on("click",".csf-modal-close, .csf-modal-overlay",function(){i.addClass("hidden")})}).fail(function(e){i.find(".csf-modal-loading").hide(),i.find(".csf-modal-load").html(e.error),i.on("click",function(){i.addClass("hidden")})}))}),n.on("click",".csf-icon-remove",function(e){e.preventDefault(),n.find(".csf-icon-preview").addClass("hidden"),n.find("input").val("").trigger("change"),I(this).addClass("hidden")})})},I.fn.csf_field_map=function(){return this.each(function(){if("undefined"!=typeof L){var e=I(this),t=e.find(".csf--map-osm"),n=e.find(".csf--map-search input"),i=e.find(".csf--latitude"),a=e.find(".csf--longitude"),s=e.find(".csf--zoom"),c=t.data("map"),r=L.map(t.get(0),c);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(r);var o=L.marker(c.center,{draggable:!0}).addTo(r),f=function(e){i.val(e.lat),a.val(e.lng),s.val(r.getZoom())};r.on("click",function(e){o.setLatLng(e.latlng),f(e.latlng)}),r.on("zoom",function(){f(o.getLatLng())}),o.on("drag",function(){f(o.getLatLng())}),n.length||(n=I('[data-depend-id="'+e.find(".csf--address-field").data("address-field")+'"]'));var l={};n.autocomplete({source:function(e,n){var i=e.term;i in l?n(l[i]):I.get("https://nominatim.openstreetmap.org/search",{format:"json",q:i},function(e){var t;t=e.length?e.map(function(e){return{value:e.display_name,label:e.display_name,lat:e.lat,lon:e.lon}},"json"):[{value:"no-data",label:"No Results."}],l[i]=t,n(t)})},select:function(e,t){if("no-data"===t.item.value)return!1;var n=L.latLng(t.item.lat,t.item.lon);r.panTo(n),o.setLatLng(n),f(n)},create:function(e,t){I(this).autocomplete("widget").addClass("csf-map-ui-autocomplate")}});var d=function(){var e=L.latLng(i.val(),a.val());r.panTo(e),o.setLatLng(e)};i.on("change",d),a.on("change",d)}})},I.fn.csf_field_link=function(){return this.each(function(){var a=I(this),e=a.find(".csf--link"),s=a.find(".csf--add"),c=a.find(".csf--edit"),r=a.find(".csf--remove"),o=a.find(".csf--result"),t=T.helper.uid("csf-wplink-textarea-");s.on("click",function(e){e.preventDefault(),_.wpLink.open(t)}),c.on("click",function(e){e.preventDefault(),s.trigger("click"),I("#wp-link-url").val(a.find(".csf--url").val()),I("#wp-link-text").val(a.find(".csf--text").val()),I("#wp-link-target").prop("checked","_blank"===a.find(".csf--target").val())}),r.on("click",function(e){e.preventDefault(),a.find(".csf--url").val("").trigger("change"),a.find(".csf--text").val(""),a.find(".csf--target").val(""),s.removeClass("hidden"),c.addClass("hidden"),r.addClass("hidden"),o.parent().addClass("hidden")}),e.attr("id",t).on("change",function(){var e=_.wpLink.getAttrs(),t=e.href,n=I("#wp-link-text").val(),i=e.target?e.target:"";a.find(".csf--url").val(t).trigger("change"),a.find(".csf--text").val(n),a.find(".csf--target").val(i),o.html('{url:"'+t+'", text:"'+n+'", target:"'+i+'"}'),s.addClass("hidden"),c.removeClass("hidden"),r.removeClass("hidden"),o.parent().removeClass("hidden")})})},I.fn.csf_field_media=function(){return this.each(function(){var i,a=I(this),s=a.find(".csf--button"),c=a.find(".csf--remove"),r=s.data("library")&&s.data("library").split(",")||"",o=!!a.hasClass("csf-assign-field-background")&&a.closest(".csf-field-background").find(".csf--auto-attributes");s.on("click",function(e){e.preventDefault(),void 0!==_.wp&&_.wp.media&&_.wp.media.gallery&&(i||(i=_.wp.media({library:{type:r}})).on("select",function(){var e,t=i.state().get("selection").first().attributes,n=s.data("preview-size")||"thumbnail";r.length&&-1===r.indexOf(t.subtype)&&-1===r.indexOf(t.type)||(a.find(".csf--id").val(t.id),a.find(".csf--width").val(t.width),a.find(".csf--height").val(t.height),a.find(".csf--alt").val(t.alt),a.find(".csf--title").val(t.title),a.find(".csf--description").val(t.description),e=void 0!==t.sizes&&void 0!==t.sizes.thumbnail&&"thumbnail"===n?t.sizes.thumbnail.url:void 0!==t.sizes&&void 0!==t.sizes.full?t.sizes.full.url:"image"===t.type?t.url:t.icon,o&&o.removeClass("csf--attributes-hidden"),c.removeClass("hidden"),a.find(".csf--preview").removeClass("hidden"),a.find(".csf--src").attr("src",e),a.find(".csf--thumbnail").val(e),a.find(".csf--url").val(t.url).trigger("change"))}),i.open())}),c.on("click",function(e){e.preventDefault(),o&&o.addClass("csf--attributes-hidden"),c.addClass("hidden"),a.find("input").val(""),a.find(".csf--preview").addClass("hidden"),a.find(".csf--url").trigger("change")})})},I.fn.csf_field_repeater=function(){return this.each(function(){var e=I(this),t=e.children(".csf-fieldset"),n=t.length?t:e,c=n.children(".csf-repeater-wrapper"),i=n.children(".csf-repeater-hidden"),r=n.children(".csf-repeater-max"),o=n.children(".csf-repeater-min"),f=c.data("field-id"),l=parseInt(c.data("max")),a=parseInt(c.data("min"));c.children(".csf-repeater-item").children(".csf-repeater-content").csf_reload_script(),c.sortable({axis:"y",handle:".csf-repeater-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(e,t){T.helper.name_nested_replace(c.children(".csf-repeater-item"),f),c.csf_customizer_refresh(),t.item.csf_reload_script_retry()}}),n.children(".csf-repeater-add").on("click",function(e){e.preventDefault();var t=c.children(".csf-repeater-item").length;if(o.hide(),l&&l<t+1)r.show();else{var n=i.csf_clone(!0);n.removeClass("csf-repeater-hidden"),n.find(':input[name!="_pseudo"]').each(function(){this.name=this.name.replace("___","").replace(f+"[0]",f+"["+t+"]")}),c.append(n),n.children(".csf-repeater-content").csf_reload_script(),c.csf_customizer_refresh(),c.csf_customizer_listen({closest:!0})}});var s=function(e){e.preventDefault();var t=c.children(".csf-repeater-item").length;if(o.hide(),l&&l<t+1)r.show();else{var n=I(this).parent().parent().parent(),i=n.children(".csf-repeater-content").csf_clone(),a=n.children(".csf-repeater-helper").csf_clone(!0),s=I('<div class="csf-repeater-item" />');s.append(i),s.append(a),c.children().eq(n.index()).after(s),s.children(".csf-repeater-content").csf_reload_script(),T.helper.name_nested_replace(c.children(".csf-repeater-item"),f),c.csf_customizer_refresh(),c.csf_customizer_listen({closest:!0})}};c.children(".csf-repeater-item").children(".csf-repeater-helper").on("click",".csf-repeater-clone",s),n.children(".csf-repeater-hidden").children(".csf-repeater-helper").on("click",".csf-repeater-clone",s);var d=function(e){e.preventDefault();var t=c.children(".csf-repeater-item").length;r.hide(),o.hide(),a&&t-1<a?o.show():(I(this).closest(".csf-repeater-item").remove(),T.helper.name_nested_replace(c.children(".csf-repeater-item"),f),c.csf_customizer_refresh())};c.children(".csf-repeater-item").children(".csf-repeater-helper").on("click",".csf-repeater-remove",d),n.children(".csf-repeater-hidden").children(".csf-repeater-helper").on("click",".csf-repeater-remove",d)})},I.fn.csf_field_slider=function(){return this.each(function(){var e=I(this),n=e.find("input"),t=e.find(".csf-slider-ui"),i=n.data(),a=n.val()||0;t.hasClass("ui-slider")&&t.empty(),t.slider({range:"min",value:a,min:i.min||0,max:i.max||100,step:i.step||1,slide:function(e,t){n.val(t.value).trigger("change")}}),n.on("keyup",function(){t.slider("value",n.val())})})},I.fn.csf_field_sortable=function(){return this.each(function(){var n=I(this).find(".csf-sortable");n.sortable({axis:"y",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(e,t){n.csf_customizer_refresh()}}),n.find(".csf-sortable-content").csf_reload_script()})},I.fn.csf_field_sorter=function(){return this.each(function(){var i=I(this),e=i.find(".csf-enabled"),t=i.find(".csf-disabled"),n=!!t.length&&t;e.sortable({connectWith:n,placeholder:"ui-sortable-placeholder",update:function(e,t){var n=t.item.find("input");t.item.parent().hasClass("csf-enabled")?n.attr("name",n.attr("name").replace("disabled","enabled")):n.attr("name",n.attr("name").replace("enabled","disabled")),i.csf_customizer_refresh()}}),n&&n.sortable({connectWith:e,placeholder:"ui-sortable-placeholder",update:function(e,t){i.csf_customizer_refresh()}})})},I.fn.csf_field_spinner=function(){return this.each(function(){var e=I(this),n=e.find("input"),t=e.find(".ui-button"),i=n.data();t.length&&t.remove(),n.spinner({min:i.min||0,max:i.max||100,step:i.step||1,create:function(e,t){i.unit&&n.after('<span class="ui-button csf--unit">'+i.unit+"</span>")},spin:function(e,t){n.val(t.value).trigger("change")}})})},I.fn.csf_field_switcher=function(){return this.each(function(){var n=I(this).find(".csf--switcher");n.on("click",function(){var e=0,t=n.find("input");n.hasClass("csf--active")?n.removeClass("csf--active"):(e=1,n.addClass("csf--active")),t.val(e).trigger("change")})})},I.fn.csf_field_tabbed=function(){return this.each(function(){var e=I(this),t=e.find(".csf-tabbed-nav a"),a=e.find(".csf-tabbed-content");a.eq(0).csf_reload_script(),t.on("click",function(e){e.preventDefault();var t=I(this),n=t.index(),i=a.eq(n);t.addClass("csf-tabbed-active").siblings().removeClass("csf-tabbed-active"),i.csf_reload_script(),i.removeClass("hidden").siblings().addClass("hidden")})})},I.fn.csf_field_typography=function(){return this.each(function(){var j=this,L=I(this),i=[],A=csf_typography_json.webfonts,t=csf_typography_json.googlestyles,q=csf_typography_json.defaultstyles;j.sanitize_subset=function(e){return e=(e=e.replace("-ext"," Extended")).charAt(0).toUpperCase()+e.slice(1)},j.sanitize_style=function(e){return t[e]?t[e]:e},j.load_google_font=function(e,t,n){e&&"object"==typeof WebFont&&(t=t?t.replace("normal",""):"",n=n?n.replace("normal",""):"",(t||n)&&(e=e+":"+t+n),-1===i.indexOf(e)&&WebFont.load({google:{families:[e]}}),i.push(e))},j.append_select_options=function(e,t,a,s,c){e.find("option").not(":first").remove();var r="";I.each(t,function(e,t){var n,i=t;n=c?a&&-1!==a.indexOf(t)?" selected":"":a&&a===t?" selected":"","subset"===s?i=j.sanitize_subset(t):"style"===s&&(i=j.sanitize_style(t)),r+='<option value="'+t+'"'+n+">"+i+"</option>"}),e.append(r).trigger("csf.change").trigger("chosen:updated")},j.init=function(){var l=[],e=L.find(".csf--typography"),d=L.find(".csf--type"),h=L.find(".csf--block-font-style"),v=e.data("unit"),g=e.data("line-height-unit"),t=e.data("exclude")?e.data("exclude").split(","):[];L.find(".csf--chosen").length&&L.find("select").each(function(){var e=I(this),t=e.parent().find(".chosen-container");t.length&&t.remove(),e.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})});var m=L.find(".csf--font-family"),i=m.val();m.find("option").not(":first-child").remove();var a="";I.each(A,function(n,e){t&&-1!==t.indexOf(n)||(a+='<optgroup label="'+e.label+'">',I.each(e.fonts,function(e,t){a+='<option value="'+(t="object"==typeof t?e:t)+'" data-type="'+n+'"'+(t===i?" selected":"")+">"+t+"</option>"}),a+="</optgroup>")}),m.append(a).trigger("chosen:updated");var p=L.find(".csf--block-font-style");if(p.length){var u=L.find(".csf--font-style-select"),_=u.val()?u.val().replace(/normal/g,""):"";u.on("change csf.change",function(e){var t=u.val();!t&&l&&-1===l.indexOf("normal")&&(t=l[0]);var n=t&&"italic"!==t&&"normal"===t?"normal":"",i=t&&"italic"!==t&&"normal"!==t?t.replace("italic",""):n,a=t&&"italic"===t.substr(-6)?"italic":"";L.find(".csf--font-weight").val(i),L.find(".csf--font-style").val(a)});var b=L.find(".csf--block-extra-styles");if(b.length)var y=L.find(".csf--extra-styles"),w=y.val()}var C=L.find(".csf--block-subset");if(C.length)var k=L.find(".csf--subset"),x=k.val(),z=k.data("multiple")||!1;var D=L.find(".csf--block-backup-font-family");m.on("change csf.change",function(e){C.length&&C.addClass("hidden"),b.length&&b.addClass("hidden"),D.length&&D.addClass("hidden");var t=m.find(":selected"),n=t.val(),i=t.data("type");if(i&&n){if("google"!==i&&"custom"!==i||!D.length||D.removeClass("hidden"),p.length){var a=q;"google"===i&&A[i].fonts[n][0]?a=A[i].fonts[n][0]:"custom"===i&&A[i].fonts[n]&&(a=A[i].fonts[n]);var s=-1!==(l=a).indexOf("normal")?"normal":a[0],c=_&&-1!==a.indexOf(_)?_:s;j.append_select_options(u,a,c,"style"),_=!1,p.removeClass("hidden"),"google"===i&&b.length&&1<a.length&&(j.append_select_options(y,a,w,"style",!0),w=!1,b.removeClass("hidden"))}if("google"===i&&C.length&&A[i].fonts[n][1]){var r=A[i].fonts[n][1],o=r.length<2&&"latin"!==r[0]?r[0]:"",f=x&&-1!==r.indexOf(x)?x:o;f=z&&x?x:f,j.append_select_options(k,r,f,"subset",z),x=!1,C.removeClass("hidden")}}else h.find(":input").val(""),C.length&&(k.find("option").not(":first-child").remove(),k.trigger("chosen:updated")),p.length&&(u.find("option").not(":first-child").remove(),u.trigger("chosen:updated"));d.val(i)}).trigger("csf.change");var O=L.find(".csf--block-preview");if(O.length){var S=L.find(".csf--preview");L.on("change",T.helper.debounce(function(e){O.removeClass("hidden");var t=m.val(),n=L.find(".csf--font-weight").val(),i=L.find(".csf--font-style").val(),a=L.find(".csf--font-size").val(),s=L.find(".csf--font-variant").val(),c=L.find(".csf--line-height").val(),r=L.find(".csf--text-align").val(),o=L.find(".csf--text-transform").val(),f=L.find(".csf--text-decoration").val(),l=L.find(".csf--color").val(),d=L.find(".csf--word-spacing").val(),h=L.find(".csf--letter-spacing").val(),p=L.find(".csf--custom-style").val();"google"===L.find(".csf--type").val()&&j.load_google_font(t,n,i);var u={};t&&(u.fontFamily=t),n&&(u.fontWeight=n),i&&(u.fontStyle=i),s&&(u.fontVariant=s),a&&(u.fontSize=a+v),c&&(u.lineHeight=c+g),h&&(u.letterSpacing=h+v),d&&(u.wordSpacing=d+v),r&&(u.textAlign=r),o&&(u.textTransform=o),f&&(u.textDecoration=f),l&&(u.color=l),S.removeAttr("style"),p&&S.attr("style",p),S.css(u)},100)),O.on("click",function(){S.toggleClass("csf--black-background");var e=O.find(".csf--toggle");e.hasClass("fa-toggle-off")?e.removeClass("fa-toggle-off").addClass("fa-toggle-on"):e.removeClass("fa-toggle-on").addClass("fa-toggle-off")}),O.hasClass("hidden")||L.trigger("change")}},j.init()})},I.fn.csf_field_upload=function(){return this.each(function(){var t,e=I(this),n=e.find("input"),i=e.find(".csf--button"),a=e.find(".csf--remove"),s=e.find(".csf--preview"),c=e.find(".csf--src"),r=i.data("library")&&i.data("library").split(",")||"";i.on("click",function(e){e.preventDefault(),void 0!==_.wp&&_.wp.media&&_.wp.media.gallery&&(t||(t=_.wp.media({library:{type:r}})).on("select",function(){var e=t.state().get("selection").first().attributes;r.length&&-1===r.indexOf(e.subtype)&&-1===r.indexOf(e.type)||n.val(e.url).trigger("change")}),t.open())}),a.on("click",function(e){e.preventDefault(),n.val("").trigger("change")}),n.on("change",function(e){var t=n.val();t?a.removeClass("hidden"):a.addClass("hidden"),s.length&&(-1!==I.inArray(t.split(".").pop().toLowerCase(),["jpg","jpeg","gif","png","svg","webp"])?(s.removeClass("hidden"),c.attr("src",t)):s.addClass("hidden"))})})},I.fn.csf_field_wp_editor=function(){return this.each(function(){if(void 0!==_.wp.editor&&void 0!==_.tinyMCEPreInit&&void 0!==_.tinyMCEPreInit.mceInit.csf_wp_editor){var e=I(this),t=e.find(".csf-wp-editor"),n=e.find("textarea");(e.find(".wp-editor-wrap").length||e.find(".mce-container").length)&&(t.empty(),t.append(n),n.css("display",""));var i=T.helper.uid("csf-editor-");n.attr("id",i);var a={tinymce:_.tinyMCEPreInit.mceInit.csf_wp_editor,quicktags:_.tinyMCEPreInit.qtInit.csf_wp_editor},s=t.data("editor-settings"),c=wp.oldEditor?wp.oldEditor:wp.editor;c&&c.hasOwnProperty("autop")&&(wp.editor.autop=c.autop,wp.editor.removep=c.removep,wp.editor.initialize=c.initialize);a.tinymce=I.extend({},a.tinymce,{selector:"#"+i,setup:function(t){t.on("change keyup",function(){var e=s.wpautop?t.getContent():wp.editor.removep(t.getContent());n.val(e).trigger("change")})}}),!1===s.tinymce&&(a.tinymce=!1,t.addClass("csf-no-tinymce")),!1===s.quicktags&&(a.quicktags=!1,t.addClass("csf-no-quicktags"));var r=setInterval(function(){e.is(":visible")&&(_.wp.editor.initialize(i,a),clearInterval(r))});if(s.media_buttons&&_.csf_media_buttons){var o=t.find(".wp-media-buttons");if(o.length)o.find(".csf-shortcode-button").data("editor-id",i);else{var f=I(_.csf_media_buttons);f.find(".csf-shortcode-button").data("editor-id",i),t.prepend(f)}}}})},I.fn.csf_confirm=function(){return this.each(function(){I(this).on("click",function(e){var t=I(this).data("confirm")||_.csf_vars.i18n.confirm;if(!confirm(t))return e.preventDefault(),!1;T.vars.is_confirm=!0,T.vars.form_modified=!1})})},I.fn.serializeObject=function(){var a={};return I.each(this.serializeArray(),function(e,t){var n=t.name,i=t.value;a[n]=a[n]===y?i:I.isArray(a[n])?a[n].concat(i):[a[n],i]}),a},I.fn.csf_save=function(){return this.each(function(){var i,a=I(this),c=I(".csf-save"),r=I(".csf-options"),o=!1;a.on("click",function(e){if(!o){var t=a.data("save"),n=a.val();c.attr("value",t),a.hasClass("csf-save-ajax")?(e.preventDefault(),r.addClass("csf-saving"),c.prop("disabled",!0),_.wp.ajax.post("csf_"+r.data("unique")+"_ajax_save",{data:I("#csf-form").serializeJSONCSF()}).done(function(e){if(I(".csf-error").remove(),Object.keys(e.errors).length){var s='<i class="csf-label-error csf-error">!</i>';I.each(e.errors,function(e,t){var n=I('[data-depend-id="'+e+'"]'),i=I('a[href="#tab='+n.closest(".csf-section").data("section-id")+'"]'),a=i.closest(".csf-tab-item");n.closest(".csf-fieldset").append('<p class="csf-error csf-error-text">'+t+"</p>"),i.find(".csf-error").length||i.append(s),a.find(".csf-arrow .csf-error").length||a.find(".csf-arrow").append(s)})}r.removeClass("csf-saving"),c.prop("disabled",!1).attr("value",n),o=!1,T.vars.form_modified=!1,T.vars.$form_warning.hide(),clearTimeout(i);var t=I(".csf-form-success");t.empty().append(e.notice).fadeIn("fast",function(){i=setTimeout(function(){t.fadeOut("fast")},1e3)})}).fail(function(e){alert(e.error)})):T.vars.form_modified=!1}o=!0})})},I.fn.csf_options=function(){return this.each(function(){var e=I(this),t=e.find(".csf-content"),n=e.find(".csf-form-success"),i=e.find(".csf-form-warning"),a=e.find(".csf-header .csf-save");(T.vars.$form_warning=i).length&&(_.onbeforeunload=function(){return!!T.vars.form_modified||y},t.on("change keypress",":input",function(){T.vars.form_modified||(n.hide(),i.fadeIn("fast"),T.vars.form_modified=!0)})),n.hasClass("csf-form-show")&&setTimeout(function(){n.fadeOut("fast")},1e3),I(b).keydown(function(e){if((e.ctrlKey||e.metaKey)&&83===e.which)return a.trigger("click"),e.preventDefault(),!1})})},I.fn.csf_taxonomy=function(){return this.each(function(){var e=I(this),t=e.parents("form");if("addtag"===t.attr("id")){var n=t.find("#submit"),i=e.find(".csf-field").csf_clone();n.on("click",function(){t.find(".form-required").hasClass("form-invalid")||(e.data("inited",!1),e.empty(),e.html(i),i=i.csf_clone(),e.csf_reload_script())})}})},I.fn.csf_shortcode=function(){var m=this;return m.shortcode_parse=function(e,n){var i="";return I.each(e,function(e,t){i+="["+(n=n||e),I.each(t,function(e,t){"content"===e?(i+="]",i+=t,i+="[/"+n):i+=m.shortcode_tags(e,t)}),i+="]"}),i},m.shortcode_tags=function(e,t){var n="";return""!==t&&("object"!=typeof t||I.isArray(t)?n+=" "+e+'="'+t.toString()+'"':I.each(t,function(e,t){switch(e){case"background-image":t=t.url?t.url:""}""!==t&&(n+=" "+e+'="'+t.toString()+'"')})),n},m.insertAtChars=function(e,t){var n=void 0!==e[0].name?e[0]:e;return n.value.length&&void 0!==n.selectionStart?(n.focus(),n.value.substring(0,n.selectionStart)+t+n.value.substring(n.selectionEnd,n.value.length)):(n.focus(),t)},m.send_to_editor=function(e,t){var n;if("undefined"!=typeof tinymce&&(n=tinymce.get(t)),n&&!n.isHidden())n.execCommand("mceInsertContent",!1,e);else{var i=I("#"+t);i.val(m.insertAtChars(i,e)).trigger("change")}},this.each(function(){var c,r,o,n,f,l,d,a,h,p=I(this),i=p.find(".csf-modal-load"),u=(p.find(".csf-modal-content"),p.find(".csf-modal-insert")),s=p.find(".csf-modal-loading"),t=p.find("select"),v=p.data("modal-id"),g=p.data("nonce");I(b).on("click",'.csf-shortcode-button[data-modal-id="'+v+'"]',function(e){e.preventDefault(),h=I(this),c=h.data("editor-id")||!1,r=h.data("target-id")||!1,o=h.data("gutenberg-id")||!1,p.removeClass("hidden"),p.hasClass("csf-shortcode-single")&&f===y&&t.trigger("change")}),t.on("change",function(){var e=I(this),t=e.find(":selected");n=e.val(),f=t.data("shortcode"),l=t.data("view")||"normal",d=t.data("group")||f,i.empty(),n?(s.show(),_.wp.ajax.post("csf-get-shortcode-"+v,{shortcode_key:n,nonce:g}).done(function(e){s.hide();var t=I(e.content).appendTo(i);u.parent().removeClass("hidden"),a=t.find(".csf--repeat-shortcode").csf_clone(),t.csf_reload_script(),t.find(".csf-fields").csf_reload_script()})):u.parent().addClass("hidden")}),u.on("click",function(e){if(e.preventDefault(),!u.prop("disabled")&&!u.attr("disabled")){var i="",t=p.find(".csf-field:not(.csf-depend-on)").find(":input:not(.ignore)").serializeObjectCSF();switch(l){case"contents":var n=f?t[f]:t;I.each(n,function(e,t){var n=f||e;i+="["+n+"]"+t+"[/"+n+"]"});break;case"group":i+="["+f,I.each(t[f],function(e,t){i+=m.shortcode_tags(e,t)}),i+="]",i+=m.shortcode_parse(t[d],d),i+="[/"+f+"]";break;case"repeater":i+=m.shortcode_parse(t[d],d);break;default:i+=m.shortcode_parse(t)}if(i=""===i?"["+f+"]":i,o){var a=_.csf_gutenberg_props.attributes.hasOwnProperty("shortcode")?_.csf_gutenberg_props.attributes.shortcode:"";_.csf_gutenberg_props.setAttributes({shortcode:a+i})}else if(c)m.send_to_editor(i,c);else{var s=r?I(r):h.parent().find("textarea");s.val(m.insertAtChars(s,i)).trigger("change")}p.addClass("hidden")}}),p.on("click",".csf--repeat-button",function(e){e.preventDefault();var t=p.find(".csf--repeatable"),n=a.csf_clone(),i=n.find(".csf-repeat-remove");n.appendTo(t);n.find(".csf-fields").csf_reload_script(),T.helper.name_nested_replace(p.find(".csf--repeat-shortcode"),d),i.on("click",function(){n.remove(),T.helper.name_nested_replace(p.find(".csf--repeat-shortcode"),d)})}),p.on("click",".csf-modal-close, .csf-modal-overlay",function(){p.addClass("hidden")})})},"function"==typeof Color&&(Color.prototype.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;0<=t;t--)e="0"+e;return"#"+e}),T.funcs.parse_color=function(e){var t=e.replace(/\s+/g,""),n=-1!==t.indexOf("rgba")?parseFloat(100*t.replace(/^.*,(.+)\)/,"$1")):100;return{value:t,transparent:n,rgba:n<100}},I.fn.csf_color=function(){return this.each(function(){var c,r=I(this),o=T.funcs.parse_color(r.val()),e=!_.csf_vars.color_palette.length||_.csf_vars.color_palette;r.hasClass("wp-color-picker")&&r.closest(".wp-picker-container").after(r).remove(),r.wpColorPicker({palettes:e,change:function(e,t){var n=t.color.toString();c.removeClass("csf--transparent-active"),c.find(".csf--transparent-offset").css("background-color",n),r.val(n).trigger("change")},create:function(){c=r.closest(".wp-picker-container");var i=r.data("a8cIris"),e=I('<div class="csf--transparent-wrap"><div class="csf--transparent-slider"></div><div class="csf--transparent-offset"></div><div class="csf--transparent-text"></div><div class="csf--transparent-button">transparent <i class="fas fa-toggle-off"></i></div></div>').appendTo(c.find(".wp-picker-holder")),a=e.find(".csf--transparent-slider"),s=e.find(".csf--transparent-text"),n=e.find(".csf--transparent-offset"),t=e.find(".csf--transparent-button");"transparent"===r.val()&&c.addClass("csf--transparent-active"),t.on("click",function(){"transparent"!==r.val()?(r.val("transparent").trigger("change").removeClass("iris-error"),c.addClass("csf--transparent-active")):(r.val(i._color.toString()).trigger("change"),c.removeClass("csf--transparent-active"))}),a.slider({value:o.transparent,step:1,min:0,max:100,slide:function(e,t){var n=parseFloat(t.value/100);i._color._alpha=n,r.wpColorPicker("color",i._color.toString()),s.text(1===n||0===n?"":n)},create:function(){var e=parseFloat(o.transparent/100),t=e<1?e:"";s.text(t),n.css("background-color",o.value),c.on("click",".wp-picker-clear",function(){i._color._alpha=1,s.text(""),a.slider("option","value",100),c.removeClass("csf--transparent-active"),r.trigger("change")}),c.on("click",".wp-picker-default",function(){var e=T.funcs.parse_color(r.data("default-color")),t=parseFloat(e.transparent/100),n=t<1?t:"";i._color._alpha=t,s.text(n),a.slider("option","value",e.transparent),"transparent"===e.value&&(r.removeClass("iris-error"),c.addClass("csf--transparent-active"))})}})}})})},I.fn.csf_chosen=function(){return this.each(function(){var s=I(this),e=s.parent().find(".chosen-container"),t=s.hasClass("csf-chosen-sortable")||!1,n=s.hasClass("csf-chosen-ajax")||!1,i=s.attr("multiple")||!1,a=i?"100%":"auto",c=I.extend({allow_single_deselect:!0,disable_search_threshold:10,width:a,no_results_text:_.csf_vars.i18n.no_results_text},s.data("chosen-settings"));if(e.length&&e.remove(),n){var r=I.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:_.csf_vars.i18n.typing_text,searching_text:_.csf_vars.i18n.searching_text,no_results_text:_.csf_vars.i18n.no_results_text},s.data("chosen-settings"));s.CSFAjaxChosen(r)}else s.chosen(c);if(i){var o=s.parent().find(".csf-hide-select"),f=o.val()||[];s.on("change",function(e,t){t&&t.selected?o.append('<option value="'+t.selected+'" selected="selected">'+t.selected+"</option>"):t&&t.deselected&&o.find('option[value="'+t.deselected+'"]').remove(),_.wp.customize!==y&&0===o.children().length&&o.data("customize-setting-link")&&_.wp.customize.control(o.data("customize-setting-link")).setting.set(""),o.trigger("change")}),s.CSFChosenOrder(f,!0)}if(t){var l=s.parent().find(".chosen-container").find(".chosen-choices");l.bind("mousedown",function(e){I(e.target).is("span")&&e.stopPropagation()}),l.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,t){t.placeholder.width(t.item.innerWidth()),t.placeholder.height(t.item.innerHeight())},update:function(e,t){var i="",a=s.data("chosen"),n=s.parent().find(".csf-hide-select");l.find(".search-choice-close").each(function(){var n=I(this).data("option-array-index");I.each(a.results_data,function(e,t){t.array_index===n&&(i+='<option value="'+t.value+'" selected>'+t.value+"</option>")})}),n.children().remove(),n.append(i),n.trigger("change")}})}})},I.fn.csf_checkbox=function(){return this.each(function(){var e=I(this),t=e.find(".csf--input"),n=e.find(".csf--checkbox");n.on("click",function(){t.val(Number(n.prop("checked"))).trigger("change")})})},I.fn.csf_siblings=function(){return this.each(function(){var t=I(this),e=t.find(".csf--sibling"),n=t.data("multiple")||!1;e.on("click",function(){var e=I(this);n?e.hasClass("csf--active")?(e.removeClass("csf--active"),e.find("input").prop("checked",!1).trigger("change")):(e.addClass("csf--active"),e.find("input").prop("checked",!0).trigger("change")):(t.find("input").prop("checked",!1),e.find("input").prop("checked",!0).trigger("change"),e.addClass("csf--active").siblings().removeClass("csf--active"))})})},I.fn.csf_help=function(){return this.each(function(){var e,t,n=I(this);n.on({mouseenter:function(){e=I('<div class="csf-tooltip"></div>').html(n.find(".csf-help-text").html()).appendTo("body"),t=T.vars.is_rtl?n.offset().left+24:n.offset().left-e.outerWidth(),e.css({top:n.offset().top-(e.outerHeight()/2-14),left:t})},mouseleave:function(){e!==y&&e.remove()}})})},I.fn.csf_customizer_refresh=function(){return this.each(function(){var e=I(this),t=e.closest(".csf-customize-complex");if(t.length){var n=t.data("unique-id");if(n===y)return;var i=t.find(":input"),a=t.data("option-id"),s=i.serializeObjectCSF(),c=!I.isEmptyObject(s)&&s[n]&&s[n][a]?s[n][a]:"",r=_.wp.customize.control(n+"["+a+"]");r.setting._value=null,r.setting.set(c)}else e.find(":input").first().trigger("change");I(b).trigger("csf-customizer-refresh",e)})},I.fn.csf_customizer_listen=function(e){var t=I.extend({closest:!1},e);return this.each(function(){if(_.wp.customize!==y){var n=t.closest?I(this).closest(".csf-customize-complex"):I(this),e=n.find(":input"),i=n.data("unique-id"),a=n.data("option-id");i!==y&&e.on("change keyup csf.change",function(){var e=n.find(":input").serializeObjectCSF(),t=!I.isEmptyObject(e)&&e[i]&&e[i][a]?e[i][a]:"";_.wp.customize.control(i+"["+a+"]").setting.set(t)})}})},I(b).on("expanded",".control-section",function(){var e=I(this);if(e.hasClass("open")&&!e.data("inited")){var t=e.find(".csf-customize-field"),n=e.find(".csf-customize-complex");t.length&&(e.csf_dependency(),t.csf_reload_script({dependency:!1}),n.csf_customizer_listen()),e.data("inited",!0)}}),T.vars.$window.on("resize csf.resize",T.helper.debounce(function(e){(-1<navigator.userAgent.indexOf("AppleWebKit/")?T.vars.$window.width():_.innerWidth)<=782&&!T.vars.onloaded&&(I(".csf-section").csf_reload_script(),T.vars.onloaded=!0)},200)).trigger("csf.resize"),I.fn.csf_widgets=function(){return this.each(function(){I(b).on("widget-added widget-updated",function(e,t){var n=t.find(".csf-fields");n.length&&n.csf_reload_script()}),I(b).on("click",".widget-top",function(e){var t=I(this).parent().find(".csf-fields");t.length&&t.csf_reload_script()}),I(".widgets-sortables, .control-section-sidebar").on("sortstop",function(e,t){t.item.find(".csf-fields").csf_reload_script_retry()})})},I.fn.csf_nav_menu=function(){return this.each(function(){var e=I(this);e.on("click","a.item-edit",function(){I(this).closest("li.menu-item").find(".csf-fields").csf_reload_script()}),e.on("sortstop",function(e,t){t.item.find(".csf-fields").csf_reload_script_retry()})})},I.fn.csf_reload_script_retry=function(){return this.each(function(){var e=I(this);e.data("inited")&&e.children(".csf-field-wp_editor").csf_field_wp_editor()})},I.fn.csf_reload_script=function(e){var t=I.extend({dependency:!0},e);return this.each(function(){var e=I(this);e.data("inited")||(e.children(".csf-field-accordion").csf_field_accordion(),e.children(".csf-field-backup").csf_field_backup(),e.children(".csf-field-background").csf_field_background(),e.children(".csf-field-code_editor").csf_field_code_editor(),e.children(".csf-field-date").csf_field_date(),e.children(".csf-field-datetime").csf_field_datetime(),e.children(".csf-field-fieldset").csf_field_fieldset(),e.children(".csf-field-gallery").csf_field_gallery(),e.children(".csf-field-group").csf_field_group(),e.children(".csf-field-icon").csf_field_icon(),e.children(".csf-field-link").csf_field_link(),e.children(".csf-field-media").csf_field_media(),e.children(".csf-field-map").csf_field_map(),e.children(".csf-field-repeater").csf_field_repeater(),e.children(".csf-field-slider").csf_field_slider(),e.children(".csf-field-sortable").csf_field_sortable(),e.children(".csf-field-sorter").csf_field_sorter(),e.children(".csf-field-spinner").csf_field_spinner(),e.children(".csf-field-switcher").csf_field_switcher(),e.children(".csf-field-tabbed").csf_field_tabbed(),e.children(".csf-field-typography").csf_field_typography(),e.children(".csf-field-upload").csf_field_upload(),e.children(".csf-field-wp_editor").csf_field_wp_editor(),e.children(".csf-field-border").find(".csf-color").csf_color(),e.children(".csf-field-background").find(".csf-color").csf_color(),e.children(".csf-field-color").find(".csf-color").csf_color(),e.children(".csf-field-color_group").find(".csf-color").csf_color(),e.children(".csf-field-link_color").find(".csf-color").csf_color(),e.children(".csf-field-typography").find(".csf-color").csf_color(),e.children(".csf-field-select").find(".csf-chosen").csf_chosen(),e.children(".csf-field-checkbox").find(".csf-checkbox").csf_checkbox(),e.children(".csf-field-button_set").find(".csf-siblings").csf_siblings(),e.children(".csf-field-image_select").find(".csf-siblings").csf_siblings(),e.children(".csf-field-palette").find(".csf-siblings").csf_siblings(),e.children(".csf-field").find(".csf-help").csf_help(),t.dependency&&e.csf_dependency(),e.data("inited",!0),I(b).trigger("csf-reload-script",e))})},I(b).ready(function(){I(".csf-save").csf_save(),I(".csf-options").csf_options(),I(".csf-sticky-header").csf_sticky(),I(".csf-nav-options").csf_nav_options(),I(".csf-nav-metabox").csf_nav_metabox(),I(".csf-taxonomy").csf_taxonomy(),I(".csf-page-templates").csf_page_templates(),I(".csf-post-formats").csf_post_formats(),I(".csf-shortcode").csf_shortcode(),I(".csf-search").csf_search(),I(".csf-confirm").csf_confirm(),I(".csf-expand-all").csf_expand_all(),I(".csf-onload").csf_reload_script(),I("#widgets-editor").csf_widgets(),I("#widgets-right").csf_widgets(),I("#menu-to-edit").csf_nav_menu()})}(jQuery,window,document);
     1!function(e,t,n,i){"use strict";var a=a||{};a.funcs={},a.vars={onloaded:!1,$body:e("body"),$window:e(t),$document:e(n),$form_warning:null,is_confirm:!1,form_modified:!1,code_themes:[],is_rtl:e("body").hasClass("rtl")},a.helper={uid:function(e){return(e||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(e){return(e+"").replace(/(\[|\])/g,"\\$1")},name_nested_replace:function(t,n){var i=new RegExp(a.helper.preg_quote(n+"[\\d+]"),"g");t.find(":radio").each(function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)}),t.each(function(t){e(this).find(":input").each(function(){this.name=this.name.replace(i,n+"["+t+"]"),this.orginal_checked&&(this.checked=!0)})})},debounce:function(e,t,n){var i;return function(){var a=this,r=arguments,S=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(a,r)},t),S&&e.apply(a,r)}}},e.fn.csf_clone=function(){for(var t=e.fn.clone.apply(this,arguments),n=this.find("select").add(this.filter("select")),i=t.find("select").add(t.filter("select")),a=0;a<n.length;++a)for(var r=0;r<n[a].options.length;++r)!0===n[a].options[r].selected&&(i[a].options[r].selected=!0);return this.find(":radio").each(function(){this.orginal_checked=this.checked}),t},e.fn.csf_expand_all=function(){return this.each(function(){e(this).on("click",function(t){t.preventDefault(),e(".CFSSMARTSMS-wrapper").toggleClass("CFSSMARTSMS-show-all"),e(".CFSSMARTSMS-section").csf_reload_script(),e(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")})})},e.fn.csf_nav_options=function(){return this.each(function(){var n,i=e(this),a=e(t),r=e("#wpwrap"),S=i.find("a");a.on("hashchange CFSSMARTSMS.hashchange",function(){var i=t.location.hash.replace("#tab=",""),a=i||S.first().attr("href").replace("#tab=",""),o=e('[data-tab-id="'+a+'"]');if(o.length){o.closest(".CFSSMARTSMS-tab-item").addClass("CFSSMARTSMS-tab-expanded").siblings().removeClass("CFSSMARTSMS-tab-expanded"),o.next().is("ul")&&(a=(o=o.next().find("li").first().find("a")).data("tab-id")),S.removeClass("CFSSMARTSMS-active"),o.addClass("CFSSMARTSMS-active"),n&&n.addClass("hidden");var s=e('[data-section-id="'+a+'"]');s.removeClass("hidden"),s.csf_reload_script(),e(".CFSSMARTSMS-section-id").val(s.index()+1),n=s,r.hasClass("wp-responsive-open")&&(e("html, body").animate({scrollTop:s.offset().top-50},200),r.removeClass("wp-responsive-open"))}}).trigger("CFSSMARTSMS.hashchange")})},e.fn.csf_nav_metabox=function(){return this.each(function(){var t,n=e(this),i=n.find("a"),a=n.parent().find(".CFSSMARTSMS-section");i.each(function(n){e(this).on("click",function(r){r.preventDefault();var S=e(this);i.removeClass("CFSSMARTSMS-active"),S.addClass("CFSSMARTSMS-active"),void 0!==t&&t.addClass("hidden");var o=a.eq(n);o.removeClass("hidden"),o.csf_reload_script(),t=o})}),i.first().trigger("click")})},e.fn.csf_page_templates=function(){this.length&&e(n).on("change",".editor-page-attributes__template select, #page_template",function(){var t=e(this).val()||"default";e(".CFSSMARTSMS-page-templates").removeClass("CFSSMARTSMS-metabox-show").addClass("CFSSMARTSMS-metabox-hide"),e(".CFSSMARTSMS-page-"+t.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("CFSSMARTSMS-metabox-hide").addClass("CFSSMARTSMS-metabox-show")})},e.fn.csf_post_formats=function(){this.length&&e(n).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',function(){var t=e(this).val()||"default";t="0"===t?"default":t,e(".CFSSMARTSMS-post-formats").removeClass("CFSSMARTSMS-metabox-show").addClass("CFSSMARTSMS-metabox-hide"),e(".CFSSMARTSMS-post-format-"+t).removeClass("CFSSMARTSMS-metabox-hide").addClass("CFSSMARTSMS-metabox-show")})},e.fn.csf_search=function(){return this.each(function(){e(this).find("input").on("change keyup",function(){var t=e(this).val(),n=e(".CFSSMARTSMS-wrapper"),i=n.find(".CFSSMARTSMS-section").find("> .CFSSMARTSMS-field:not(.CFSSMARTSMS-depend-on)"),a=i.find("> .CFSSMARTSMS-title, .CFSSMARTSMS-search-tags");t.length>3?(i.addClass("CFSSMARTSMS-metabox-hide"),n.addClass("CFSSMARTSMS-search-all"),a.each(function(){var n=e(this);if(n.text().match(new RegExp(".*?"+t+".*?","i"))){var i=n.closest(".CFSSMARTSMS-field");i.removeClass("CFSSMARTSMS-metabox-hide"),i.parent().csf_reload_script()}})):(i.removeClass("CFSSMARTSMS-metabox-hide"),n.removeClass("CFSSMARTSMS-search-all"))})})},e.fn.csf_sticky=function(){return this.each(function(){var n=e(this),i=e(t),a=n.find(".CFSSMARTSMS-header-inner"),r=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right")),S=0,o=!1,s=function(){o||requestAnimationFrame(function(){var e,t,s;e=n.offset().top,t=Math.max(32,e-S),s=i.innerWidth(),t<=32&&s>782?(a.css({width:n.outerWidth()-r}),n.css({height:n.outerHeight()}).addClass("CFSSMARTSMS-sticky")):(a.removeAttr("style"),n.removeAttr("style").removeClass("CFSSMARTSMS-sticky")),o=!1}),o=!0},c=function(){S=i.scrollTop(),s()};i.on("scroll resize",c),c()})},e.fn.csf_dependency=function(){return this.each(function(){var t=e(this),n=t.children("[data-controller]");if(n.length){var i=e.csf_deps.createRuleset(),r=e.csf_deps.createRuleset(),S=[],o=[];n.each(function(){var t=e(this),n=t.data("controller").split("|"),a=t.data("condition").split("|"),s=t.data("value").toString().split("|"),c=!!t.data("depend-global"),l=c?r:i;e.each(n,function(e,n){var i=s[e]||"",r=a[e]||a[0];(l=l.createRule('[data-depend-id="'+n+'"]',r,i)).include(t),c?o.push(n):S.push(n)})}),S.length&&e.csf_deps.enable(t,i,S),o.length&&e.csf_deps.enable(a.vars.$body,r,o)}})},e.fn.csf_field_accordion=function(){return this.each(function(){e(this).find(".CFSSMARTSMS-accordion-title").on("click",function(){var t=e(this),n=t.find(".CFSSMARTSMS-accordion-icon"),i=t.next();n.hasClass("fa-angle-right")?n.removeClass("fa-angle-right").addClass("fa-angle-down"):n.removeClass("fa-angle-down").addClass("fa-angle-right"),i.data("opened")||(i.csf_reload_script(),i.data("opened",!0)),i.toggleClass("CFSSMARTSMS-accordion-open")})})},e.fn.csf_field_backup=function(){return this.each(function(){if(void 0!==t.wp.customize){var n=this,i=e(this),r=(e("body"),i.find(".CFSSMARTSMS-import")),S=i.find(".CFSSMARTSMS-reset");n.notificationOverlay=function(){wp.customize.notifications&&wp.customize.OverlayNotification&&(wp.customize.state("saved").get()||(wp.customize.state("changesetStatus").set("trash"),wp.customize.each(function(e){e._dirty=!1}),wp.customize.state("saved").set(!0)),wp.customize.notifications.add(new wp.customize.OverlayNotification("csf_field_backup_notification",{type:"default",message:"&nbsp;",loading:!0})))},S.on("click",function(e){e.preventDefault(),a.vars.is_confirm&&(n.notificationOverlay(),t.wp.ajax.post("CFSSMARTSMS-reset",{unique:S.data("unique"),nonce:S.data("nonce")}).done(function(e){t.location.reload(!0)}).fail(function(e){alert(e.error),wp.customize.notifications.remove("csf_field_backup_notification")}))}),r.on("click",function(e){e.preventDefault(),a.vars.is_confirm&&(n.notificationOverlay(),t.wp.ajax.post("CFSSMARTSMS-import",{unique:r.data("unique"),nonce:r.data("nonce"),data:i.find(".CFSSMARTSMS-import-data").val()}).done(function(e){t.location.reload(!0)}).fail(function(e){alert(e.error),wp.customize.notifications.remove("csf_field_backup_notification")}))})}})},e.fn.csf_field_background=function(){return this.each(function(){e(this).find(".CFSSMARTSMS--background-image").csf_reload_script()})},e.fn.csf_field_date=function(){return this.each(function(){var t=e(this),n=t.find("input"),i=t.find(".CFSSMARTSMS-date-settings").data("settings"),a={showAnim:"",beforeShow:function(t,n){e(n.dpDiv).addClass("CFSSMARTSMS-datepicker-wrapper")},onClose:function(t,n){e(n.dpDiv).removeClass("CFSSMARTSMS-datepicker-wrapper")}};i=e.extend({},i,a),2===n.length&&(i=e.extend({},i,{onSelect:function(t){e(this),n.first();var a=n.first().attr("id")===e(this).attr("id")?"minDate":"maxDate",r=e.datepicker.parseDate(i.dateFormat,t);n.not(this).datepicker("option",a,r)}})),n.each(function(){var t=e(this);t.hasClass("hasDatepicker")&&t.removeAttr("id").removeClass("hasDatepicker"),t.datepicker(i)})})},e.fn.csf_field_datetime=function(){return this.each(function(){var t=e(this),n=t.find("input"),i=t.find(".CFSSMARTSMS-datetime-settings").data("settings");i=e.extend({},i,{onReady:function(t,n,i){e(i.calendarContainer).addClass("CFSSMARTSMS-flatpickr")}}),2===n.length&&(i=e.extend({},i,{onChange:function(t,i,a){"from"===e(a.element).data("type")?n.last().get(0)._flatpickr.set("minDate",t[0]):n.first().get(0)._flatpickr.set("maxDate",t[0])}})),n.each(function(){e(this).flatpickr(i)})})},e.fn.csf_field_fieldset=function(){return this.each(function(){e(this).find(".CFSSMARTSMS-fieldset-content").csf_reload_script()})},e.fn.csf_field_gallery=function(){return this.each(function(){var n,i=e(this),a=i.find(".CFSSMARTSMS-edit-gallery"),r=i.find(".CFSSMARTSMS-clear-gallery"),S=i.find("ul"),o=i.find("input");i.find("img");i.on("click",".CFSSMARTSMS-button, .CFSSMARTSMS-edit-gallery",function(i){var s=e(this),c=o.val(),l=s.hasClass("CFSSMARTSMS-edit-gallery")?"edit":"add",d="add"!==l||c.length?"gallery-edit":"gallery";i.preventDefault(),void 0!==t.wp&&t.wp.media&&t.wp.media.gallery&&("gallery"===d?(n=t.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(n=t.wp.media.gallery.edit('[gallery ids="'+c+'"]'),"add"===l&&n.setState("gallery-library")),n.on("update",function(e){S.empty();var t=e.models.map(function(e){var t=e.toJSON(),n=t.sizes&&t.sizes.thumbnail&&t.sizes.thumbnail.url?t.sizes.thumbnail.url:t.url;return S.append('<li><img src="'+n+'"></li>'),t.id});o.val(t.join(",")).trigger("change"),r.removeClass("hidden"),a.removeClass("hidden")}))}),r.on("click",function(e){e.preventDefault(),S.empty(),o.val("").trigger("change"),r.addClass("hidden"),a.addClass("hidden")})})},e.fn.csf_field_group=function(){return this.each(function(){var t=e(this),n=t.children(".CFSSMARTSMS-fieldset"),i=n.length?n:t,r=i.children(".CFSSMARTSMS-cloneable-wrapper"),S=i.children(".CFSSMARTSMS-cloneable-hidden"),o=i.children(".CFSSMARTSMS-cloneable-max"),s=i.children(".CFSSMARTSMS-cloneable-min"),c=r.data("field-id"),l=Boolean(Number(r.data("title-number"))),d=parseInt(r.data("max")),f=parseInt(r.data("min"));r.hasClass("ui-accordion")&&r.find(".ui-accordion-header-icon").remove();var h=function(t){t.find(".CFSSMARTSMS-cloneable-title-number").each(function(t){e(this).html(e(this).closest(".CFSSMARTSMS-cloneable-item").index()+1+".")})};r.accordion({header:"> .CFSSMARTSMS-cloneable-item > .CFSSMARTSMS-cloneable-title",collapsible:!0,active:!1,animate:!1,heightStyle:"content",icons:{header:"CFSSMARTSMS-cloneable-header-icon fas fa-angle-right",activeHeader:"CFSSMARTSMS-cloneable-header-icon fas fa-angle-down"},activate:function(e,t){var n=t.newPanel,i=t.newHeader;if(n.length&&!n.data("opened")){var a=n.children().first().find(":input").first(),r=i.find(".CFSSMARTSMS-cloneable-value");a.on("change keyup",function(e){r.text(a.val())}),n.csf_reload_script(),n.data("opened",!0),n.data("retry",!1)}else n.data("retry")&&(n.csf_reload_script_retry(),n.data("retry",!1))}}),r.sortable({axis:"y",handle:".CFSSMARTSMS-cloneable-title,.CFSSMARTSMS-cloneable-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",start:function(e,t){r.accordion({active:!1}),r.sortable("refreshPositions"),t.item.children(".CFSSMARTSMS-cloneable-content").data("retry",!0)},update:function(e,t){a.helper.name_nested_replace(r.children(".CFSSMARTSMS-cloneable-item"),c),r.csf_customizer_refresh(),l&&h(r)}}),i.children(".CFSSMARTSMS-cloneable-add").on("click",function(e){e.preventDefault();var t=r.children(".CFSSMARTSMS-cloneable-item").length;if(s.hide(),d&&t+1>d)o.show();else{var n=S.csf_clone(!0);n.removeClass("CFSSMARTSMS-cloneable-hidden"),n.find(':input[name!="_pseudo"]').each(function(){this.name=this.name.replace("___","").replace(c+"[0]",c+"["+t+"]")}),r.append(n),r.accordion("refresh"),r.accordion({active:t}),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0}),l&&h(r)}});var M=function(t){t.preventDefault();var n=r.children(".CFSSMARTSMS-cloneable-item").length;if(s.hide(),d&&n+1>d)o.show();else{var i=e(this).parent().parent(),S=i.children(".CFSSMARTSMS-cloneable-helper").csf_clone(!0),f=i.children(".CFSSMARTSMS-cloneable-title").csf_clone(),M=i.children(".CFSSMARTSMS-cloneable-content").csf_clone(),p=e('<div class="CFSSMARTSMS-cloneable-item" />');p.append(S),p.append(f),p.append(M),r.children().eq(i.index()).after(p),a.helper.name_nested_replace(r.children(".CFSSMARTSMS-cloneable-item"),c),r.accordion("refresh"),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0}),l&&h(r)}};r.children(".CFSSMARTSMS-cloneable-item").children(".CFSSMARTSMS-cloneable-helper").on("click",".CFSSMARTSMS-cloneable-clone",M),i.children(".CFSSMARTSMS-cloneable-hidden").children(".CFSSMARTSMS-cloneable-helper").on("click",".CFSSMARTSMS-cloneable-clone",M);var p=function(t){t.preventDefault();var n=r.children(".CFSSMARTSMS-cloneable-item").length;o.hide(),s.hide(),f&&n-1<f?s.show():(e(this).closest(".CFSSMARTSMS-cloneable-item").remove(),a.helper.name_nested_replace(r.children(".CFSSMARTSMS-cloneable-item"),c),r.csf_customizer_refresh(),l&&h(r))};r.children(".CFSSMARTSMS-cloneable-item").children(".CFSSMARTSMS-cloneable-helper").on("click",".CFSSMARTSMS-cloneable-remove",p),i.children(".CFSSMARTSMS-cloneable-hidden").children(".CFSSMARTSMS-cloneable-helper").on("click",".CFSSMARTSMS-cloneable-remove",p)})},e.fn.csf_field_icon=function(){return this.each(function(){var n=e(this);n.on("click",".CFSSMARTSMS-icon-add",function(i){i.preventDefault();var r=e(this),S=e("#CFSSMARTSMS-modal-icon");S.removeClass("hidden"),a.vars.$icon_target=n,a.vars.icon_modal_loaded||(S.find(".CFSSMARTSMS-modal-loading").show(),t.wp.ajax.post("CFSSMARTSMS-get-icons",{nonce:r.data("nonce")}).done(function(t){S.find(".CFSSMARTSMS-modal-loading").hide(),a.vars.icon_modal_loaded=!0;var n=S.find(".CFSSMARTSMS-modal-load").html(t.content);n.on("click","i",function(t){t.preventDefault();var n=e(this).attr("title");a.vars.$icon_target.find(".CFSSMARTSMS-icon-preview i").removeAttr("class").addClass(n),a.vars.$icon_target.find(".CFSSMARTSMS-icon-preview").removeClass("hidden"),a.vars.$icon_target.find(".CFSSMARTSMS-icon-remove").removeClass("hidden"),a.vars.$icon_target.find("input").val(n).trigger("change"),S.addClass("hidden")}),S.on("change keyup",".CFSSMARTSMS-icon-search",function(){var t=e(this).val();n.find("i").each(function(){var n=e(this);n.attr("title").search(new RegExp(t,"i"))<0?n.hide():n.show()})}),S.on("click",".CFSSMARTSMS-modal-close, .CFSSMARTSMS-modal-overlay",function(){S.addClass("hidden")})}).fail(function(e){S.find(".CFSSMARTSMS-modal-loading").hide(),S.find(".CFSSMARTSMS-modal-load").html(e.error),S.on("click",function(){S.addClass("hidden")})}))}),n.on("click",".CFSSMARTSMS-icon-remove",function(t){t.preventDefault(),n.find(".CFSSMARTSMS-icon-preview").addClass("hidden"),n.find("input").val("").trigger("change"),e(this).addClass("hidden")})})},e.fn.csf_field_map=function(){return this.each(function(){if("undefined"!=typeof L){var t=e(this),n=t.find(".CFSSMARTSMS--map-osm"),i=t.find(".CFSSMARTSMS--map-search input"),a=t.find(".CFSSMARTSMS--latitude"),r=t.find(".CFSSMARTSMS--longitude"),S=t.find(".CFSSMARTSMS--zoom"),o=n.data("map"),s=L.map(n.get(0),o);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(s);var c=L.marker(o.center,{draggable:!0}).addTo(s),l=function(e){a.val(e.lat),r.val(e.lng),S.val(s.getZoom())};s.on("click",function(e){c.setLatLng(e.latlng),l(e.latlng)}),s.on("zoom",function(){l(c.getLatLng())}),c.on("drag",function(){l(c.getLatLng())}),i.length||(i=e('[data-depend-id="'+t.find(".CFSSMARTSMS--address-field").data("address-field")+'"]'));var d={};i.autocomplete({source:function(t,n){var i=t.term;i in d?n(d[i]):e.get("https://nominatim.openstreetmap.org/search",{format:"json",q:i},function(e){var t;t=e.length?e.map(function(e){return{value:e.display_name,label:e.display_name,lat:e.lat,lon:e.lon}},"json"):[{value:"no-data",label:"No Results."}],d[i]=t,n(t)})},select:function(e,t){if("no-data"===t.item.value)return!1;var n=L.latLng(t.item.lat,t.item.lon);s.panTo(n),c.setLatLng(n),l(n)},create:function(t,n){e(this).autocomplete("widget").addClass("CFSSMARTSMS-map-ui-autocomplate")}});var f=function(){var e=L.latLng(a.val(),r.val());s.panTo(e),c.setLatLng(e)};a.on("change",f),r.on("change",f)}})},e.fn.csf_field_link=function(){return this.each(function(){var n=e(this),i=n.find(".CFSSMARTSMS--link"),r=n.find(".CFSSMARTSMS--add"),S=n.find(".CFSSMARTSMS--edit"),o=n.find(".CFSSMARTSMS--remove"),s=n.find(".CFSSMARTSMS--result"),c=a.helper.uid("CFSSMARTSMS-wplink-textarea-");r.on("click",function(e){e.preventDefault(),t.wpLink.open(c)}),S.on("click",function(t){t.preventDefault(),r.trigger("click"),e("#wp-link-url").val(n.find(".CFSSMARTSMS--url").val()),e("#wp-link-text").val(n.find(".CFSSMARTSMS--text").val()),e("#wp-link-target").prop("checked","_blank"===n.find(".CFSSMARTSMS--target").val())}),o.on("click",function(e){e.preventDefault(),n.find(".CFSSMARTSMS--url").val("").trigger("change"),n.find(".CFSSMARTSMS--text").val(""),n.find(".CFSSMARTSMS--target").val(""),r.removeClass("hidden"),S.addClass("hidden"),o.addClass("hidden"),s.parent().addClass("hidden")}),i.attr("id",c).on("change",function(){var i=t.wpLink.getAttrs(),a=i.href,c=e("#wp-link-text").val(),l=i.target?i.target:"";n.find(".CFSSMARTSMS--url").val(a).trigger("change"),n.find(".CFSSMARTSMS--text").val(c),n.find(".CFSSMARTSMS--target").val(l),s.html('{url:"'+a+'", text:"'+c+'", target:"'+l+'"}'),r.addClass("hidden"),S.removeClass("hidden"),o.removeClass("hidden"),s.parent().removeClass("hidden")})})},e.fn.csf_field_media=function(){return this.each(function(){var n,i=e(this),a=i.find(".CFSSMARTSMS--button"),r=i.find(".CFSSMARTSMS--remove"),S=a.data("library")&&a.data("library").split(",")||"",o=!!i.hasClass("CFSSMARTSMS-assign-field-background")&&i.closest(".CFSSMARTSMS-field-background").find(".CFSSMARTSMS--auto-attributes");a.on("click",function(e){e.preventDefault(),void 0!==t.wp&&t.wp.media&&t.wp.media.gallery&&(n?n.open():((n=t.wp.media({library:{type:S}})).on("select",function(){var e,t=n.state().get("selection").first().attributes,s=a.data("preview-size")||"thumbnail";S.length&&-1===S.indexOf(t.subtype)&&-1===S.indexOf(t.type)||(i.find(".CFSSMARTSMS--id").val(t.id),i.find(".CFSSMARTSMS--width").val(t.width),i.find(".CFSSMARTSMS--height").val(t.height),i.find(".CFSSMARTSMS--alt").val(t.alt),i.find(".CFSSMARTSMS--title").val(t.title),i.find(".CFSSMARTSMS--description").val(t.description),e=void 0!==t.sizes&&void 0!==t.sizes.thumbnail&&"thumbnail"===s?t.sizes.thumbnail.url:void 0!==t.sizes&&void 0!==t.sizes.full?t.sizes.full.url:"image"===t.type?t.url:t.icon,console.log(t),o&&o.removeClass("CFSSMARTSMS--attributes-hidden"),r.removeClass("hidden"),i.find(".CFSSMARTSMS--preview").removeClass("hidden"),i.find(".CFSSMARTSMS--src").attr("src",e),i.find(".CFSSMARTSMS--thumbnail").val(e),i.find(".CFSSMARTSMS--url").val(t.url).trigger("change"))}),n.open()))}),r.on("click",function(e){e.preventDefault(),o&&o.addClass("CFSSMARTSMS--attributes-hidden"),r.addClass("hidden"),i.find("input").val(""),i.find(".CFSSMARTSMS--preview").addClass("hidden"),i.find(".CFSSMARTSMS--url").trigger("change")})})},e.fn.csf_field_repeater=function(){return this.each(function(){var t=e(this),n=t.children(".CFSSMARTSMS-fieldset"),i=n.length?n:t,r=i.children(".CFSSMARTSMS-repeater-wrapper"),S=i.children(".CFSSMARTSMS-repeater-hidden"),o=i.children(".CFSSMARTSMS-repeater-max"),s=i.children(".CFSSMARTSMS-repeater-min"),c=r.data("field-id"),l=parseInt(r.data("max")),d=parseInt(r.data("min"));r.children(".CFSSMARTSMS-repeater-item").children(".CFSSMARTSMS-repeater-content").csf_reload_script(),r.sortable({axis:"y",handle:".CFSSMARTSMS-repeater-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(e,t){a.helper.name_nested_replace(r.children(".CFSSMARTSMS-repeater-item"),c),r.csf_customizer_refresh(),t.item.csf_reload_script_retry()}}),i.children(".CFSSMARTSMS-repeater-add").on("click",function(e){e.preventDefault();var t=r.children(".CFSSMARTSMS-repeater-item").length;if(s.hide(),l&&t+1>l)o.show();else{var n=S.csf_clone(!0);n.removeClass("CFSSMARTSMS-repeater-hidden"),n.find(':input[name!="_pseudo"]').each(function(){this.name=this.name.replace("___","").replace(c+"[0]",c+"["+t+"]")}),r.append(n),n.children(".CFSSMARTSMS-repeater-content").csf_reload_script(),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0})}});var f=function(t){t.preventDefault();var n=r.children(".CFSSMARTSMS-repeater-item").length;if(s.hide(),l&&n+1>l)o.show();else{var i=e(this).parent().parent().parent(),S=i.children(".CFSSMARTSMS-repeater-content").csf_clone(),d=i.children(".CFSSMARTSMS-repeater-helper").csf_clone(!0),f=e('<div class="CFSSMARTSMS-repeater-item" />');f.append(S),f.append(d),r.children().eq(i.index()).after(f),f.children(".CFSSMARTSMS-repeater-content").csf_reload_script(),a.helper.name_nested_replace(r.children(".CFSSMARTSMS-repeater-item"),c),r.csf_customizer_refresh(),r.csf_customizer_listen({closest:!0})}};r.children(".CFSSMARTSMS-repeater-item").children(".CFSSMARTSMS-repeater-helper").on("click",".CFSSMARTSMS-repeater-clone",f),i.children(".CFSSMARTSMS-repeater-hidden").children(".CFSSMARTSMS-repeater-helper").on("click",".CFSSMARTSMS-repeater-clone",f);var h=function(t){t.preventDefault();var n=r.children(".CFSSMARTSMS-repeater-item").length;o.hide(),s.hide(),d&&n-1<d?s.show():(e(this).closest(".CFSSMARTSMS-repeater-item").remove(),a.helper.name_nested_replace(r.children(".CFSSMARTSMS-repeater-item"),c),r.csf_customizer_refresh())};r.children(".CFSSMARTSMS-repeater-item").children(".CFSSMARTSMS-repeater-helper").on("click",".CFSSMARTSMS-repeater-remove",h),i.children(".CFSSMARTSMS-repeater-hidden").children(".CFSSMARTSMS-repeater-helper").on("click",".CFSSMARTSMS-repeater-remove",h)})},e.fn.csf_field_slider=function(){return this.each(function(){var t=e(this),n=t.find("input"),i=t.find(".CFSSMARTSMS-slider-ui"),a=n.data(),r=n.val()||0;i.hasClass("ui-slider")&&i.empty(),i.slider({range:"min",value:r,min:a.min||0,max:a.max||100,step:a.step||1,slide:function(e,t){n.val(t.value).trigger("change")}}),n.on("keyup",function(){i.slider("value",n.val())})})},e.fn.csf_field_sortable=function(){return this.each(function(){var t=e(this).find(".CFSSMARTSMS-sortable");t.sortable({axis:"y",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(e,n){t.csf_customizer_refresh()}}),t.find(".CFSSMARTSMS-sortable-content").csf_reload_script()})},e.fn.csf_field_sorter=function(){return this.each(function(){var t=e(this),n=t.find(".CFSSMARTSMS-enabled"),i=t.find(".CFSSMARTSMS-disabled"),a=!!i.length&&i;n.sortable({connectWith:a,placeholder:"ui-sortable-placeholder",update:function(e,n){var i=n.item.find("input");n.item.parent().hasClass("CFSSMARTSMS-enabled")?i.attr("name",i.attr("name").replace("disabled","enabled")):i.attr("name",i.attr("name").replace("enabled","disabled")),t.csf_customizer_refresh()}}),a&&a.sortable({connectWith:n,placeholder:"ui-sortable-placeholder",update:function(e,n){t.csf_customizer_refresh()}})})},e.fn.csf_field_spinner=function(){return this.each(function(){var t=e(this),n=t.find("input"),i=t.find(".ui-button"),a=n.data();i.length&&i.remove(),n.spinner({min:a.min||0,max:a.max||100,step:a.step||1,create:function(e,t){a.unit&&n.after('<span class="ui-button CFSSMARTSMS--unit">'+a.unit+"</span>")},spin:function(e,t){n.val(t.value).trigger("change")}})})},e.fn.csf_field_switcher=function(){return this.each(function(){var t=e(this).find(".CFSSMARTSMS--switcher");t.on("click",function(){var e=0,n=t.find("input");t.hasClass("CFSSMARTSMS--active")?t.removeClass("CFSSMARTSMS--active"):(e=1,t.addClass("CFSSMARTSMS--active")),n.val(e).trigger("change")})})},e.fn.csf_field_tabbed=function(){return this.each(function(){var t=e(this),n=t.find(".CFSSMARTSMS-tabbed-nav a"),i=t.find(".CFSSMARTSMS-tabbed-content");i.eq(0).csf_reload_script(),n.on("click",function(t){t.preventDefault();var n=e(this),a=n.index(),r=i.eq(a);n.addClass("CFSSMARTSMS-tabbed-active").siblings().removeClass("CFSSMARTSMS-tabbed-active"),r.csf_reload_script(),r.removeClass("hidden").siblings().addClass("hidden")})})},e.fn.csf_field_typography=function(){return this.each(function(){var t=this,n=e(this),i=[],r=csf_typography_json.webfonts,S=csf_typography_json.googlestyles,o=csf_typography_json.defaultstyles;t.sanitize_subset=function(e){return e=(e=e.replace("-ext"," Extended")).charAt(0).toUpperCase()+e.slice(1)},t.sanitize_style=function(e){return S[e]?S[e]:e},t.load_google_font=function(e,t,n){e&&"object"==typeof WebFont&&(t=t?t.replace("normal",""):"",n=n?n.replace("normal",""):"",(t||n)&&(e=e+":"+t+n),-1===i.indexOf(e)&&WebFont.load({google:{families:[e]}}),i.push(e))},t.append_select_options=function(n,i,a,r,S){n.find("option").not(":first").remove();var o="";e.each(i,function(e,n){var i,s=n;i=S?a&&-1!==a.indexOf(n)?" selected":"":a&&a===n?" selected":"","subset"===r?s=t.sanitize_subset(n):"style"===r&&(s=t.sanitize_style(n)),o+='<option value="'+n+'"'+i+">"+s+"</option>"}),n.append(o).trigger("CFSSMARTSMS.change").trigger("chosen:updated")},t.init=function(){var i=[],S=n.find(".CFSSMARTSMS--typography"),s=n.find(".CFSSMARTSMS--type"),c=n.find(".CFSSMARTSMS--block-font-style"),l=S.data("unit"),d=S.data("line-height-unit"),f=S.data("exclude")?S.data("exclude").split(","):[];n.find(".CFSSMARTSMS--chosen").length&&n.find("select").each(function(){var t=e(this),n=t.parent().find(".chosen-container");n.length&&n.remove(),t.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})});var h=n.find(".CFSSMARTSMS--font-family"),M=h.val();h.find("option").not(":first-child").remove();var p="";e.each(r,function(t,n){f&&-1!==f.indexOf(t)||(p+='<optgroup label="'+n.label+'">',e.each(n.fonts,function(e,n){p+='<option value="'+(n="object"==typeof n?e:n)+'" data-type="'+t+'"'+(n===M?" selected":"")+">"+n+"</option>"}),p+="</optgroup>")}),h.append(p).trigger("chosen:updated");var u=n.find(".CFSSMARTSMS--block-font-style");if(u.length){var C=n.find(".CFSSMARTSMS--font-style-select"),v=C.val()?C.val().replace(/normal/g,""):"";C.on("change CFSSMARTSMS.change",function(e){var t=C.val();!t&&i&&-1===i.indexOf("normal")&&(t=i[0]);var a=t&&"italic"!==t&&"normal"===t?"normal":"",r=t&&"italic"!==t&&"normal"!==t?t.replace("italic",""):a,S=t&&"italic"===t.substr(-6)?"italic":"";n.find(".CFSSMARTSMS--font-weight").val(r),n.find(".CFSSMARTSMS--font-style").val(S)});var g=n.find(".CFSSMARTSMS--block-extra-styles");if(g.length)var _=n.find(".CFSSMARTSMS--extra-styles"),m=_.val()}var A=n.find(".CFSSMARTSMS--block-subset");if(A.length)var T=n.find(".CFSSMARTSMS--subset"),F=T.val(),R=T.data("multiple")||!1;var b=n.find(".CFSSMARTSMS--block-backup-font-family");h.on("change CFSSMARTSMS.change",function(e){A.length&&A.addClass("hidden"),g.length&&g.addClass("hidden"),b.length&&b.addClass("hidden");var n=h.find(":selected"),a=n.val(),S=n.data("type");if(S&&a){if("google"!==S&&"custom"!==S||!b.length||b.removeClass("hidden"),u.length){var l=o;"google"===S&&r[S].fonts[a][0]?l=r[S].fonts[a][0]:"custom"===S&&r[S].fonts[a]&&(l=r[S].fonts[a]),i=l;var d=-1!==l.indexOf("normal")?"normal":l[0],f=v&&-1!==l.indexOf(v)?v:d;t.append_select_options(C,l,f,"style"),v=!1,u.removeClass("hidden"),"google"===S&&g.length&&l.length>1&&(t.append_select_options(_,l,m,"style",!0),m=!1,g.removeClass("hidden"))}if("google"===S&&A.length&&r[S].fonts[a][1]){var M=r[S].fonts[a][1],p=M.length<2&&"latin"!==M[0]?M[0]:"",y=F&&-1!==M.indexOf(F)?F:p;y=R&&F?F:y,t.append_select_options(T,M,y,"subset",R),F=!1,A.removeClass("hidden")}}else c.find(":input").val(""),A.length&&(T.find("option").not(":first-child").remove(),T.trigger("chosen:updated")),u.length&&(C.find("option").not(":first-child").remove(),C.trigger("chosen:updated"));s.val(S)}).trigger("CFSSMARTSMS.change");var y=n.find(".CFSSMARTSMS--block-preview");if(y.length){var w=n.find(".CFSSMARTSMS--preview");n.on("change",a.helper.debounce(function(e){y.removeClass("hidden");var i=h.val(),a=n.find(".CFSSMARTSMS--font-weight").val(),r=n.find(".CFSSMARTSMS--font-style").val(),S=n.find(".CFSSMARTSMS--font-size").val(),o=n.find(".CFSSMARTSMS--font-variant").val(),s=n.find(".CFSSMARTSMS--line-height").val(),c=n.find(".CFSSMARTSMS--text-align").val(),f=n.find(".CFSSMARTSMS--text-transform").val(),M=n.find(".CFSSMARTSMS--text-decoration").val(),p=n.find(".CFSSMARTSMS--color").val(),u=n.find(".CFSSMARTSMS--word-spacing").val(),C=n.find(".CFSSMARTSMS--letter-spacing").val(),v=n.find(".CFSSMARTSMS--custom-style").val();"google"===n.find(".CFSSMARTSMS--type").val()&&t.load_google_font(i,a,r);var g={};i&&(g.fontFamily=i),a&&(g.fontWeight=a),r&&(g.fontStyle=r),o&&(g.fontVariant=o),S&&(g.fontSize=S+l),s&&(g.lineHeight=s+d),C&&(g.letterSpacing=C+l),u&&(g.wordSpacing=u+l),c&&(g.textAlign=c),f&&(g.textTransform=f),M&&(g.textDecoration=M),p&&(g.color=p),w.removeAttr("style"),v&&w.attr("style",v),w.css(g)},100)),y.on("click",function(){w.toggleClass("CFSSMARTSMS--black-background");var e=y.find(".CFSSMARTSMS--toggle");e.hasClass("fa-toggle-off")?e.removeClass("fa-toggle-off").addClass("fa-toggle-on"):e.removeClass("fa-toggle-on").addClass("fa-toggle-off")}),y.hasClass("hidden")||n.trigger("change")}},t.init()})},e.fn.csf_field_upload=function(){return this.each(function(){var n,i=e(this),a=i.find("input"),r=i.find(".CFSSMARTSMS--button"),S=i.find(".CFSSMARTSMS--remove"),o=i.find(".CFSSMARTSMS--preview"),s=i.find(".CFSSMARTSMS--src"),c=r.data("library")&&r.data("library").split(",")||"";r.on("click",function(e){e.preventDefault(),void 0!==t.wp&&t.wp.media&&t.wp.media.gallery&&(n?n.open():((n=t.wp.media({library:{type:c}})).on("select",function(){var e=n.state().get("selection").first().attributes;c.length&&-1===c.indexOf(e.subtype)&&-1===c.indexOf(e.type)||a.val(e.url).trigger("change")}),n.open()))}),S.on("click",function(e){e.preventDefault(),a.val("").trigger("change")}),a.on("change",function(t){var n=a.val();n?S.removeClass("hidden"):S.addClass("hidden"),o.length&&(-1!==e.inArray(n.split(".").pop().toLowerCase(),["jpg","jpeg","gif","png","svg","webp"])?(o.removeClass("hidden"),s.attr("src",n)):o.addClass("hidden"))})})},e.fn.csf_field_wp_editor=function(){return this.each(function(){if(void 0!==t.wp.editor&&void 0!==t.tinyMCEPreInit&&void 0!==t.tinyMCEPreInit.mceInit.csf_wp_editor){var n=e(this),i=n.find(".CFSSMARTSMS-wp-editor"),r=n.find("textarea");(n.find(".wp-editor-wrap").length||n.find(".mce-container").length)&&(i.empty(),i.append(r),r.css("display",""));var S=a.helper.uid("CFSSMARTSMS-editor-");r.attr("id",S);var o={tinymce:t.tinyMCEPreInit.mceInit.csf_wp_editor,quicktags:t.tinyMCEPreInit.qtInit.csf_wp_editor},s=i.data("editor-settings"),c=wp.oldEditor?wp.oldEditor:wp.editor;c&&c.hasOwnProperty("autop")&&(wp.editor.autop=c.autop,wp.editor.removep=c.removep,wp.editor.initialize=c.initialize);o.tinymce=e.extend({},o.tinymce,{selector:"#"+S,setup:function(e){e.on("change keyup",function(){var t=s.wpautop?e.getContent():wp.editor.removep(e.getContent());r.val(t).trigger("change")})}}),!1===s.tinymce&&(o.tinymce=!1,i.addClass("CFSSMARTSMS-no-tinymce")),!1===s.quicktags&&(o.quicktags=!1,i.addClass("CFSSMARTSMS-no-quicktags"));var l=setInterval(function(){n.is(":visible")&&(t.wp.editor.initialize(S,o),clearInterval(l))});if(s.media_buttons&&t.csf_media_buttons){var d=i.find(".wp-media-buttons");if(d.length)d.find(".CFSSMARTSMS-shortcode-button").data("editor-id",S);else{var f=e(t.csf_media_buttons);f.find(".CFSSMARTSMS-shortcode-button").data("editor-id",S),i.prepend(f)}}}})},e.fn.csf_confirm=function(){return this.each(function(){e(this).on("click",function(n){var i=e(this).data("confirm")||t.csf_vars.i18n.confirm;if(!confirm(i))return n.preventDefault(),!1;a.vars.is_confirm=!0,a.vars.form_modified=!1})})},e.fn.serializeObject=function(){var t={};return e.each(this.serializeArray(),function(n,i){var a=i.name,r=i.value;t[a]=void 0===t[a]?r:e.isArray(t[a])?t[a].concat(r):[t[a],r]}),t},e.fn.csf_save=function(){return this.each(function(){var n,i=e(this),r=e(".CFSSMARTSMS-save"),S=e(".CFSSMARTSMS-options"),o=!1;i.on("click",function(s){if(!o){var c=i.data("save"),l=i.val();r.attr("value",c),i.hasClass("CFSSMARTSMS-save-ajax")?(s.preventDefault(),S.addClass("CFSSMARTSMS-saving"),r.prop("disabled",!0),t.wp.ajax.post("csf_"+S.data("unique")+"_ajax_save",{data:e("#CFSSMARTSMS-form").serializeJSONCSF()}).done(function(t){if(e(".CFSSMARTSMS-error").remove(),Object.keys(t.errors).length){var i='<i class="CFSSMARTSMS-label-error CFSSMARTSMS-error">!</i>';e.each(t.errors,function(t,n){var a=e('[data-depend-id="'+t+'"]'),r=e('a[href="#tab='+a.closest(".CFSSMARTSMS-section").data("section-id")+'"]'),S=r.closest(".CFSSMARTSMS-tab-item");a.closest(".CFSSMARTSMS-fieldset").append('<p class="CFSSMARTSMS-error CFSSMARTSMS-error-text">'+n+"</p>"),r.find(".CFSSMARTSMS-error").length||r.append(i),S.find(".CFSSMARTSMS-arrow .CFSSMARTSMS-error").length||S.find(".CFSSMARTSMS-arrow").append(i)})}S.removeClass("CFSSMARTSMS-saving"),r.prop("disabled",!1).attr("value",l),o=!1,a.vars.form_modified=!1,a.vars.$form_warning.hide(),clearTimeout(n);var s=e(".CFSSMARTSMS-form-success");s.empty().append(t.notice).fadeIn("fast",function(){n=setTimeout(function(){s.fadeOut("fast")},1e3)})}).fail(function(e){alert(e.error)})):a.vars.form_modified=!1}o=!0})})},e.fn.csf_options=function(){return this.each(function(){var i=e(this),r=i.find(".CFSSMARTSMS-content"),S=i.find(".CFSSMARTSMS-form-success"),o=i.find(".CFSSMARTSMS-form-warning"),s=i.find(".CFSSMARTSMS-header .CFSSMARTSMS-save");a.vars.$form_warning=o,o.length&&(t.onbeforeunload=function(){return!!a.vars.form_modified||void 0},r.on("change keypress",":input",function(){a.vars.form_modified||(S.hide(),o.fadeIn("fast"),a.vars.form_modified=!0)})),S.hasClass("CFSSMARTSMS-form-show")&&setTimeout(function(){S.fadeOut("fast")},1e3),e(n).keydown(function(e){if((e.ctrlKey||e.metaKey)&&83===e.which)return s.trigger("click"),e.preventDefault(),!1})})},e.fn.csf_taxonomy=function(){return this.each(function(){var t=e(this),n=t.parents("form");if("addtag"===n.attr("id")){var i=n.find("#submit"),a=t.find(".CFSSMARTSMS-field").csf_clone();i.on("click",function(){n.find(".form-required").hasClass("form-invalid")||(t.data("inited",!1),t.empty(),t.html(a),a=a.csf_clone(),t.csf_reload_script())})}})},e.fn.csf_shortcode=function(){var i=this;return i.shortcode_parse=function(t,n){var a="";return e.each(t,function(t,r){a+="["+(n=n||t),e.each(r,function(e,t){"content"===e?(a+="]",a+=t,a+="[/"+n):a+=i.shortcode_tags(e,t)}),a+="]"}),a},i.shortcode_tags=function(t,n){var i="";return""!==n&&("object"!=typeof n||e.isArray(n)?i+=" "+t.replace("-","_")+'="'+n.toString()+'"':e.each(n,function(e,t){switch(e){case"background-image":t=t.url?t.url:""}""!==t&&(i+=" "+e.replace("-","_")+'="'+t.toString()+'"')})),i},i.insertAtChars=function(e,t){var n=void 0!==e[0].name?e[0]:e;return n.value.length&&void 0!==n.selectionStart?(n.focus(),n.value.substring(0,n.selectionStart)+t+n.value.substring(n.selectionEnd,n.value.length)):(n.focus(),t)},i.send_to_editor=function(t,n){var a;if("undefined"!=typeof tinymce&&(a=tinymce.get(n)),a&&!a.isHidden())a.execCommand("mceInsertContent",!1,t);else{var r=e("#"+n);r.val(i.insertAtChars(r,t)).trigger("change")}},this.each(function(){var r,S,o,s,c,l,d,f,h,M=e(this),p=M.find(".CFSSMARTSMS-modal-load"),u=(M.find(".CFSSMARTSMS-modal-content"),M.find(".CFSSMARTSMS-modal-insert")),C=M.find(".CFSSMARTSMS-modal-loading"),v=M.find("select"),g=M.data("modal-id"),_=M.data("nonce");e(n).on("click",'.CFSSMARTSMS-shortcode-button[data-modal-id="'+g+'"]',function(t){t.preventDefault(),h=e(this),r=h.data("editor-id")||!1,S=h.data("target-id")||!1,o=h.data("gutenberg-id")||!1,M.removeClass("hidden"),M.hasClass("CFSSMARTSMS-shortcode-single")&&void 0===c&&v.trigger("change")}),v.on("change",function(){var n=e(this),i=n.find(":selected");s=n.val(),c=i.data("shortcode"),l=i.data("view")||"normal",d=i.data("group")||c,p.empty(),s?(C.show(),t.wp.ajax.post("CFSSMARTSMS-get-shortcode-"+g,{shortcode_key:s,nonce:_}).done(function(t){C.hide();var n=e(t.content).appendTo(p);u.parent().removeClass("hidden"),f=n.find(".CFSSMARTSMS--repeat-shortcode").csf_clone(),n.csf_reload_script(),n.find(".CFSSMARTSMS-fields").csf_reload_script()})):u.parent().addClass("hidden")}),u.on("click",function(n){if(n.preventDefault(),!u.prop("disabled")&&!u.attr("disabled")){var a="",s=M.find(".CFSSMARTSMS-field:not(.CFSSMARTSMS-depend-on)").find(":input:not(.ignore)").serializeObjectCSF();switch(l){case"contents":var f=c?s[c]:s;e.each(f,function(e,t){var n=c||e;a+="["+n+"]"+t+"[/"+n+"]"});break;case"group":a+="["+c,e.each(s[c],function(e,t){a+=i.shortcode_tags(e,t)}),a+="]",a+=i.shortcode_parse(s[d],d),a+="[/"+c+"]";break;case"repeater":a+=i.shortcode_parse(s[d],d);break;default:a+=i.shortcode_parse(s)}if(a=""===a?"["+c+"]":a,o){var p=t.csf_gutenberg_props.attributes.hasOwnProperty("shortcode")?t.csf_gutenberg_props.attributes.shortcode:"";t.csf_gutenberg_props.setAttributes({shortcode:p+a})}else if(r)i.send_to_editor(a,r);else{var C=S?e(S):h.parent().find("textarea");C.val(i.insertAtChars(C,a)).trigger("change")}M.addClass("hidden")}}),M.on("click",".CFSSMARTSMS--repeat-button",function(e){e.preventDefault();var t=M.find(".CFSSMARTSMS--repeatable"),n=f.csf_clone(),i=n.find(".CFSSMARTSMS-repeat-remove");n.appendTo(t);n.find(".CFSSMARTSMS-fields").csf_reload_script(),a.helper.name_nested_replace(M.find(".CFSSMARTSMS--repeat-shortcode"),d),i.on("click",function(){n.remove(),a.helper.name_nested_replace(M.find(".CFSSMARTSMS--repeat-shortcode"),d)})}),M.on("click",".CFSSMARTSMS-modal-close, .CFSSMARTSMS-modal-overlay",function(){M.addClass("hidden")})})},"function"==typeof Color&&(Color.prototype.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;t>=0;t--)e="0"+e;return"#"+e}),a.funcs.parse_color=function(e){var t=e.replace(/\s+/g,""),n=-1!==t.indexOf("rgba")?parseFloat(100*t.replace(/^.*,(.+)\)/,"$1")):100;return{value:t,transparent:n,rgba:n<100}},e.fn.csf_color=function(){return this.each(function(){var n,i=e(this),r=a.funcs.parse_color(i.val()),S=!t.csf_vars.color_palette.length||t.csf_vars.color_palette;i.hasClass("wp-color-picker")&&i.closest(".wp-picker-container").after(i).remove(),i.wpColorPicker({palettes:S,change:function(e,t){var a=t.color.toString();n.removeClass("CFSSMARTSMS--transparent-active"),n.find(".CFSSMARTSMS--transparent-offset").css("background-color",a),i.val(a).trigger("change")},create:function(){n=i.closest(".wp-picker-container");var t=i.data("a8cIris"),S=e('<div class="CFSSMARTSMS--transparent-wrap"><div class="CFSSMARTSMS--transparent-slider"></div><div class="CFSSMARTSMS--transparent-offset"></div><div class="CFSSMARTSMS--transparent-text"></div><div class="CFSSMARTSMS--transparent-button">transparent <i class="fas fa-toggle-off"></i></div></div>').appendTo(n.find(".wp-picker-holder")),o=S.find(".CFSSMARTSMS--transparent-slider"),s=S.find(".CFSSMARTSMS--transparent-text"),c=S.find(".CFSSMARTSMS--transparent-offset"),l=S.find(".CFSSMARTSMS--transparent-button");"transparent"===i.val()&&n.addClass("CFSSMARTSMS--transparent-active"),l.on("click",function(){"transparent"!==i.val()?(i.val("transparent").trigger("change").removeClass("iris-error"),n.addClass("CFSSMARTSMS--transparent-active")):(i.val(t._color.toString()).trigger("change"),n.removeClass("CFSSMARTSMS--transparent-active"))}),o.slider({value:r.transparent,step:1,min:0,max:100,slide:function(e,n){var a=parseFloat(n.value/100);t._color._alpha=a,i.wpColorPicker("color",t._color.toString()),s.text(1===a||0===a?"":a)},create:function(){var e=parseFloat(r.transparent/100),S=e<1?e:"";s.text(S),c.css("background-color",r.value),n.on("click",".wp-picker-clear",function(){t._color._alpha=1,s.text(""),o.slider("option","value",100),n.removeClass("CFSSMARTSMS--transparent-active"),i.trigger("change")}),n.on("click",".wp-picker-default",function(){var e=a.funcs.parse_color(i.data("default-color")),r=parseFloat(e.transparent/100),S=r<1?r:"";t._color._alpha=r,s.text(S),o.slider("option","value",e.transparent),"transparent"===e.value&&(i.removeClass("iris-error"),n.addClass("CFSSMARTSMS--transparent-active"))})}})}})})},e.fn.csf_chosen=function(){return this.each(function(){var n=e(this),i=n.parent().find(".chosen-container"),a=n.hasClass("CFSSMARTSMS-chosen-sortable")||!1,r=n.hasClass("CFSSMARTSMS-chosen-ajax")||!1,S=n.attr("multiple")||!1,o=S?"100%":"auto",s=e.extend({allow_single_deselect:!0,disable_search_threshold:10,width:o,no_results_text:t.csf_vars.i18n.no_results_text},n.data("chosen-settings"));if(i.length&&i.remove(),r){var c=e.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:t.csf_vars.i18n.typing_text,searching_text:t.csf_vars.i18n.searching_text,no_results_text:t.csf_vars.i18n.no_results_text},n.data("chosen-settings"));n.CSFAjaxChosen(c)}else n.chosen(s);if(S){var l=n.parent().find(".CFSSMARTSMS-hide-select"),d=l.val()||[];n.on("change",function(e,n){n&&n.selected?l.append('<option value="'+n.selected+'" selected="selected">'+n.selected+"</option>"):n&&n.deselected&&l.find('option[value="'+n.deselected+'"]').remove(),void 0!==t.wp.customize&&0===l.children().length&&l.data("customize-setting-link")&&t.wp.customize.control(l.data("customize-setting-link")).setting.set(""),l.trigger("change")}),n.CSFChosenOrder(d,!0)}if(a){var f=n.parent().find(".chosen-container").find(".chosen-choices");f.bind("mousedown",function(t){e(t.target).is("span")&&t.stopPropagation()}),f.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,t){t.placeholder.width(t.item.innerWidth()),t.placeholder.height(t.item.innerHeight())},update:function(t,i){var a="",r=n.data("chosen"),S=n.parent().find(".CFSSMARTSMS-hide-select");f.find(".search-choice-close").each(function(){var t=e(this).data("option-array-index");e.each(r.results_data,function(e,n){n.array_index===t&&(a+='<option value="'+n.value+'" selected>'+n.value+"</option>")})}),S.children().remove(),S.append(a),S.trigger("change")}})}})},e.fn.csf_checkbox=function(){return this.each(function(){var t=e(this),n=t.find(".CFSSMARTSMS--input"),i=t.find(".CFSSMARTSMS--checkbox");i.on("click",function(){n.val(Number(i.prop("checked"))).trigger("change")})})},e.fn.csf_siblings=function(){return this.each(function(){var t=e(this),n=t.find(".CFSSMARTSMS--sibling"),i=t.data("multiple")||!1;n.on("click",function(){var n=e(this);i?n.hasClass("CFSSMARTSMS--active")?(n.removeClass("CFSSMARTSMS--active"),n.find("input").prop("checked",!1).trigger("change")):(n.addClass("CFSSMARTSMS--active"),n.find("input").prop("checked",!0).trigger("change")):(t.find("input").prop("checked",!1),n.find("input").prop("checked",!0).trigger("change"),n.addClass("CFSSMARTSMS--active").siblings().removeClass("CFSSMARTSMS--active"))})})},e.fn.csf_help=function(){return this.each(function(){var t,n,i=e(this);i.on({mouseenter:function(){t=e('<div class="CFSSMARTSMS-tooltip"></div>').html(i.find(".CFSSMARTSMS-help-text").html()).appendTo("body"),n=a.vars.is_rtl?i.offset().left+24:i.offset().left-t.outerWidth(),t.css({top:i.offset().top-(t.outerHeight()/2-14),left:n})},mouseleave:function(){void 0!==t&&t.remove()}})})},e.fn.csf_customizer_refresh=function(){return this.each(function(){var i=e(this),a=i.closest(".CFSSMARTSMS-customize-complex");if(a.length){var r=a.data("unique-id");if(void 0===r)return;var S=a.find(":input"),o=a.data("option-id"),s=S.serializeObjectCSF(),c=!e.isEmptyObject(s)&&s[r]&&s[r][o]?s[r][o]:"",l=t.wp.customize.control(r+"["+o+"]");l.setting._value=null,l.setting.set(c)}else i.find(":input").first().trigger("change");e(n).trigger("CFSSMARTSMS-customizer-refresh",i)})},e.fn.csf_customizer_listen=function(n){var i=e.extend({closest:!1},n);return this.each(function(){if(void 0!==t.wp.customize){var n=i.closest?e(this).closest(".CFSSMARTSMS-customize-complex"):e(this),a=n.find(":input"),r=n.data("unique-id"),S=n.data("option-id");void 0!==r&&a.on("change keyup",function(){var i=n.find(":input").serializeObjectCSF(),a=!e.isEmptyObject(i)&&i[r]&&i[r][S]?i[r][S]:"";t.wp.customize.control(r+"["+S+"]").setting.set(a)})}})},e(n).on("expanded",".control-section",function(){var t=e(this);if(t.hasClass("open")&&!t.data("inited")){var n=t.find(".CFSSMARTSMS-customize-field"),i=t.find(".CFSSMARTSMS-customize-complex");n.length&&(t.csf_dependency(),n.csf_reload_script({dependency:!1}),i.csf_customizer_listen()),t.data("inited",!0)}}),a.vars.$window.on("resize CFSSMARTSMS.resize",a.helper.debounce(function(n){(navigator.userAgent.indexOf("AppleWebKit/")>-1?a.vars.$window.width():t.innerWidth)<=782&&!a.vars.onloaded&&(e(".CFSSMARTSMS-section").csf_reload_script(),a.vars.onloaded=!0)},200)).trigger("CFSSMARTSMS.resize"),e.fn.csf_widgets=function(){return this.each(function(){e(n).on("widget-added widget-updated",function(e,t){var n=t.find(".CFSSMARTSMS-fields");n.length&&n.csf_reload_script()}),e(n).on("click",".widget-top",function(t){var n=e(this).parent().find(".CFSSMARTSMS-fields");n.length&&n.csf_reload_script()}),e(".widgets-sortables, .control-section-sidebar").on("sortstop",function(e,t){t.item.find(".CFSSMARTSMS-fields").csf_reload_script_retry()})})},e.fn.csf_nav_menu=function(){return this.each(function(){var t=e(this);t.on("click","a.item-edit",function(){e(this).closest("li.menu-item").find(".CFSSMARTSMS-fields").csf_reload_script()}),t.on("sortstop",function(e,t){t.item.find(".CFSSMARTSMS-fields").csf_reload_script_retry()})})},e.fn.csf_reload_script_retry=function(){return this.each(function(){var t=e(this);t.data("inited")&&t.children(".CFSSMARTSMS-field-wp_editor").csf_field_wp_editor()})},e.fn.csf_reload_script=function(t){var i=e.extend({dependency:!0},t);return this.each(function(){var t=e(this);t.data("inited")||(t.children(".CFSSMARTSMS-field-accordion").csf_field_accordion(),t.children(".CFSSMARTSMS-field-backup").csf_field_backup(),t.children(".CFSSMARTSMS-field-background").csf_field_background(),t.children(".CFSSMARTSMS-field-code_editor").csf_field_code_editor(),t.children(".CFSSMARTSMS-field-date").csf_field_date(),t.children(".CFSSMARTSMS-field-datetime").csf_field_datetime(),t.children(".CFSSMARTSMS-field-fieldset").csf_field_fieldset(),t.children(".CFSSMARTSMS-field-gallery").csf_field_gallery(),t.children(".CFSSMARTSMS-field-group").csf_field_group(),t.children(".CFSSMARTSMS-field-icon").csf_field_icon(),t.children(".CFSSMARTSMS-field-link").csf_field_link(),t.children(".CFSSMARTSMS-field-media").csf_field_media(),t.children(".CFSSMARTSMS-field-map").csf_field_map(),t.children(".CFSSMARTSMS-field-repeater").csf_field_repeater(),t.children(".CFSSMARTSMS-field-slider").csf_field_slider(),t.children(".CFSSMARTSMS-field-sortable").csf_field_sortable(),t.children(".CFSSMARTSMS-field-sorter").csf_field_sorter(),t.children(".CFSSMARTSMS-field-spinner").csf_field_spinner(),t.children(".CFSSMARTSMS-field-switcher").csf_field_switcher(),t.children(".CFSSMARTSMS-field-tabbed").csf_field_tabbed(),t.children(".CFSSMARTSMS-field-typography").csf_field_typography(),t.children(".CFSSMARTSMS-field-upload").csf_field_upload(),t.children(".CFSSMARTSMS-field-wp_editor").csf_field_wp_editor(),t.children(".CFSSMARTSMS-field-border").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-background").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-color").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-color_group").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-link_color").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-typography").find(".CFSSMARTSMS-color").csf_color(),t.children(".CFSSMARTSMS-field-select").find(".CFSSMARTSMS-chosen").csf_chosen(),t.children(".CFSSMARTSMS-field-checkbox").find(".CFSSMARTSMS-checkbox").csf_checkbox(),t.children(".CFSSMARTSMS-field-button_set").find(".CFSSMARTSMS-siblings").csf_siblings(),t.children(".CFSSMARTSMS-field-image_select").find(".CFSSMARTSMS-siblings").csf_siblings(),t.children(".CFSSMARTSMS-field-palette").find(".CFSSMARTSMS-siblings").csf_siblings(),t.children(".CFSSMARTSMS-field").find(".CFSSMARTSMS-help").csf_help(),i.dependency&&t.csf_dependency(),t.data("inited",!0),e(n).trigger("CFSSMARTSMS-reload-script",t))})},e(n).ready(function(){e(".CFSSMARTSMS-save").csf_save(),e(".CFSSMARTSMS-options").csf_options(),e(".CFSSMARTSMS-sticky-header").csf_sticky(),e(".CFSSMARTSMS-nav-options").csf_nav_options(),e(".CFSSMARTSMS-nav-metabox").csf_nav_metabox(),e(".CFSSMARTSMS-taxonomy").csf_taxonomy(),e(".CFSSMARTSMS-page-templates").csf_page_templates(),e(".CFSSMARTSMS-post-formats").csf_post_formats(),e(".CFSSMARTSMS-shortcode").csf_shortcode(),e(".CFSSMARTSMS-search").csf_search(),e(".CFSSMARTSMS-confirm").csf_confirm(),e(".CFSSMARTSMS-expand-all").csf_expand_all(),e(".CFSSMARTSMS-onload").csf_reload_script(),e("#widgets-editor").csf_widgets(),e("#widgets-right").csf_widgets(),e("#menu-to-edit").csf_nav_menu()})}(jQuery,window,document);
  • nirweb-smart-sms/trunk/option/assets/js/plugins.min.js

    r2729089 r2729124  
    1 /* Codestar Framework | A Simple and Lightweight WordPress Option Framework - v2.2.8*/
     1/* Codestar Framework | A Simple and Lightweight WordPress Option Framework - v2.2.6*/
    22
    3 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,function(){"use strict";var ee=function(){return(ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function te(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}var ne=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ie={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},oe={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(3<t&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},re=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},se=function(e){return!0===e?1:0};function ae(t,n){var i;return function(){var e=this;clearTimeout(i),i=setTimeout(function(){return t.apply(e,arguments)},n)}}var le=function(e){return e instanceof Array?e:[e]};function ce(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function ue(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function he(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function de(e,t){var n=ue("div","numInputWrapper"),i=ue("input","numInput "+e),o=ue("span","arrowUp"),r=ue("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var s in t)i.setAttribute(s,t[s]);return n.appendChild(i),n.appendChild(o),n.appendChild(r),n}function fe(t){try{return"function"!=typeof t.composedPath?t.target:t.composedPath()[0]}catch(e){return t.target}}var e=function(){},pe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},b={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*se(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},_e={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return pe(l.n(e,t,n)-1,!1,t)},G:function(e,t,n){return re(l.h(e,t,n))},H:function(e){return re(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[se(11<e.getHours())]},M:function(e,t){return pe(e.getMonth(),!0,t)},S:function(e){return re(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return re(e.getFullYear(),4)},d:function(e){return re(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return re(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return re(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},me=function(e){var t=e.config,r=void 0===t?ie:t,n=e.l10n,s=void 0===n?oe:n,i=e.isMobile,a=void 0!==i&&i;return function(i,e,t){var o=t||s;return void 0===r.formatDate||a?e.split("").map(function(e,t,n){return l[e]&&"\\"!==n[t-1]?l[e](i,o,r):"\\"!==e?e:""}).join(""):r.formatDate(i,e,o)}},ge=function(e){var t=e.config,v=void 0===t?ie:t,n=e.l10n,y=void 0===n?oe:n;return function(e,t,n,i){if(0===e||e){var o,r=i||y,s=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var a=t||(v||ie).dateFormat,l=String(e).trim();if("today"===l)o=new Date,n=!0;else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(v&&v.parseDate)o=v.parseDate(e,a);else{o=v&&v.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var c=void 0,u=[],h=0,d=0,f="";h<a.length;h++){var p=a[h],_="\\"===p,m="\\"===a[h-1]||_;if(_e[p]&&!m){f+=_e[p];var g=new RegExp(f).exec(e);g&&(c=!0)&&u["Y"!==p?"push":"unshift"]({fn:b[p],val:g[++d]})}else _||(f+=".");u.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,r)||o})}o=c?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;v.errorHandler(new Error("Invalid date provided: "+s))}}};function ve(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var ye=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},be={DAY:864e5};function we(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),r=e.minDate.getMinutes(),s=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<r&&(n=r),t===o&&n===r&&i<s&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var a=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,a))===a&&(n=Math.min(l,n)),t===a&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(e){return n[e]=t[e]})},o=0,r=e;o<r.length;o++){i(r[o])}return n});var De=300;function s(d,u){var D={config:ee(ee({},ie),Ce.defaultConfig),l10n:oe};function h(e){return e.bind(D)}function t(){var t=D.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==D.calendarContainer&&(D.calendarContainer.style.visibility="hidden",D.calendarContainer.style.display="block"),void 0!==D.daysContainer){var e=(D.days.offsetWidth+1)*t.showMonths;D.daysContainer.style.width=e+"px",D.calendarContainer.style.width=e+(void 0!==D.weekWrapper?D.weekWrapper.offsetWidth:0)+"px",D.calendarContainer.style.removeProperty("visibility"),D.calendarContainer.style.removeProperty("display")}})}function f(e){if(0===D.selectedDates.length){var t=void 0===D.config.minDate||0<=ve(new Date,D.config.minDate)?new Date:new Date(D.config.minDate.getTime()),n=we(D.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),D.selectedDates=[t],D.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=fe(e),i=n;void 0!==D.amPM&&n===D.amPM&&(D.amPM.textContent=D.l10n.amPM[se(D.amPM.textContent===D.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),r=parseFloat(i.getAttribute("max")),s=parseFloat(i.getAttribute("step")),a=parseInt(i.value,10),l=e.delta||(t?38===e.which?1:-1:0),c=a+s*l;if(void 0!==i.value&&2===i.value.length){var u=i===D.hourElement,h=i===D.minuteElement;c<o?(c=r+c+se(!u)+(se(u)&&se(!D.amPM)),h&&_(void 0,-1,D.hourElement)):r<c&&(c=i===D.hourElement?c-r-se(!D.amPM):o,h&&_(void 0,1,D.hourElement)),D.amPM&&u&&(1===s?c+a===23:Math.abs(c-a)>s)&&(D.amPM.textContent=D.l10n.amPM[se(D.amPM.textContent===D.l10n.amPM[0])]),i.value=re(c)}}(e);var i=D._input.value;p(),X(),D._input.value!==i&&D._debouncedChange()}function p(){if(void 0!==D.hourElement&&void 0!==D.minuteElement){var e,t,n=(parseInt(D.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(D.minuteElement.value,10)||0)%60,o=void 0!==D.secondElement?(parseInt(D.secondElement.value,10)||0)%60:0;void 0!==D.amPM&&(e=n,t=D.amPM.textContent,n=e%12+12*se(t===D.l10n.amPM[1]));var r=void 0!==D.config.minTime||D.config.minDate&&D.minDateHasTime&&D.latestSelectedDateObj&&0===ve(D.latestSelectedDateObj,D.config.minDate,!0);if(void 0!==D.config.maxTime||D.config.maxDate&&D.maxDateHasTime&&D.latestSelectedDateObj&&0===ve(D.latestSelectedDateObj,D.config.maxDate,!0)){var s=void 0!==D.config.maxTime?D.config.maxTime:D.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(r){var a=void 0!==D.config.minTime?D.config.minTime:D.config.minDate;(n=Math.max(n,a.getHours()))===a.getHours()&&i<a.getMinutes()&&(i=a.getMinutes()),i===a.getMinutes()&&(o=Math.max(o,a.getSeconds()))}l(n,i,o)}}function o(e){var t=e||D.latestSelectedDateObj;t&&l(t.getHours(),t.getMinutes(),t.getSeconds())}function l(e,t,n){void 0!==D.latestSelectedDateObj&&D.latestSelectedDateObj.setHours(e%24,t,n||0,0),D.hourElement&&D.minuteElement&&!D.isMobile&&(D.hourElement.value=re(D.config.time_24hr?e:(12+e)%12+12*se(e%12==0)),D.minuteElement.value=re(t),void 0!==D.amPM&&(D.amPM.textContent=D.l10n.amPM[se(12<=e)]),void 0!==D.secondElement&&(D.secondElement.value=re(n)))}function n(e){var t=fe(e),n=parseInt(t.value)+(e.delta||0);(1<n/1e3||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&S(n)}function s(t,n,i,o){return n instanceof Array?n.forEach(function(e){return s(t,e,i,o)}):t instanceof Array?t.forEach(function(e){return s(e,n,i,o)}):(t.addEventListener(n,i,o),void D._handlers.push({remove:function(){return t.removeEventListener(n,i)}}))}function c(){K("onChange")}function i(e,t){var n=void 0!==e?D.parseDate(e):D.latestSelectedDateObj||(D.config.minDate&&D.config.minDate>D.now?D.config.minDate:D.config.maxDate&&D.config.maxDate<D.now?D.config.maxDate:D.now),i=D.currentYear,o=D.currentMonth;try{void 0!==n&&(D.currentYear=n.getFullYear(),D.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,D.config.errorHandler(e)}t&&D.currentYear!==i&&(K("onYearChange"),w()),!t||D.currentYear===i&&D.currentMonth===o||K("onMonthChange"),D.redraw()}function r(e){var t=fe(e);~t.className.indexOf("arrow")&&_(e,t.classList.contains("arrowUp")?1:-1)}function _(e,t,n){var i=e&&fe(e),o=n||i&&i.parentNode&&i.parentNode.firstChild,r=$("increment");r.delta=t,o&&o.dispatchEvent(r)}function m(e,t,n,i){var o,r=A(t,!0),s=ue("span","flatpickr-day "+e,t.getDate().toString());return s.dateObj=t,s.$i=i,s.setAttribute("aria-label",D.formatDate(t,D.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===ve(t,D.now)&&((D.todayDateElem=s).classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,Q(t)&&(s.classList.add("selected"),D.selectedDateElem=s,"range"===D.config.mode&&(ce(s,"startRange",D.selectedDates[0]&&0===ve(t,D.selectedDates[0],!0)),ce(s,"endRange",D.selectedDates[1]&&0===ve(t,D.selectedDates[1],!0)),"nextMonthDay"===e&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===D.config.mode&&(o=t,!("range"!==D.config.mode||D.selectedDates.length<2)&&0<=ve(o,D.selectedDates[0])&&ve(o,D.selectedDates[1])<=0&&!Q(t)&&s.classList.add("inRange")),D.weekNumbers&&1===D.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&D.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+D.config.getWeek(t)+"</span>"),K("onDayCreate",s),s}function g(e){e.focus(),"range"===D.config.mode&&F(e)}function v(e){for(var t=0<e?0:D.config.showMonths-1,n=0<e?D.config.showMonths:-1,i=t;i!=n;i+=e)for(var o=D.daysContainer.children[i],r=0<e?0:o.children.length-1,s=0<e?o.children.length:-1,a=r;a!=s;a+=e){var l=o.children[a];if(-1===l.className.indexOf("hidden")&&A(l.dateObj))return l}}function y(e,t){var n=I(document.activeElement||document.body),i=void 0!==e?e:n?document.activeElement:void 0!==D.selectedDateElem&&I(D.selectedDateElem)?D.selectedDateElem:void 0!==D.todayDateElem&&I(D.todayDateElem)?D.todayDateElem:v(0<t?1:-1);void 0===i?D._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():D.currentMonth,i=0<t?D.config.showMonths:-1,o=0<t?1:-1,r=n-D.currentMonth;r!=i;r+=o)for(var s=D.daysContainer.children[r],a=n-D.currentMonth===r?e.$i+t:t<0?s.children.length-1:0,l=s.children.length,c=a;0<=c&&c<l&&c!=(0<t?l:-1);c+=o){var u=s.children[c];if(-1===u.className.indexOf("hidden")&&A(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return g(u)}D.changeMonth(o),y(v(o),0)}(i,t):g(i)}function a(e,t){for(var n=(new Date(e,t,1).getDay()-D.l10n.firstDayOfWeek+7)%7,i=D.utils.getDaysInMonth((t-1+12)%12,e),o=D.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),s=1<D.config.showMonths,a=s?"prevMonthDay hidden":"prevMonthDay",l=s?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,u=0;c<=i;c++,u++)r.appendChild(m(a,new Date(e,t-1,c),c,u));for(c=1;c<=o;c++,u++)r.appendChild(m("",new Date(e,t,c),c,u));for(var h=o+1;h<=42-n&&(1===D.config.showMonths||u%7!=0);h++,u++)r.appendChild(m(l,new Date(e,t+1,h%o),h,u));var d=ue("div","dayContainer");return d.appendChild(r),d}function b(){if(void 0!==D.daysContainer){he(D.daysContainer),D.weekNumbers&&he(D.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<D.config.showMonths;t++){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),e.appendChild(a(n.getFullYear(),n.getMonth()))}D.daysContainer.appendChild(e),D.days=D.daysContainer.firstChild,"range"===D.config.mode&&1===D.selectedDates.length&&F()}}function w(){if(!(1<D.config.showMonths||"dropdown"!==D.config.monthSelectorType)){var e;D.monthsDropdownContainer.tabIndex=-1,D.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e=t,!(void 0!==D.config.minDate&&D.currentYear===D.config.minDate.getFullYear()&&e<D.config.minDate.getMonth()||void 0!==D.config.maxDate&&D.currentYear===D.config.maxDate.getFullYear()&&e>D.config.maxDate.getMonth())){var n=ue("option","flatpickr-monthDropdown-month");n.value=new Date(D.currentYear,t).getMonth().toString(),n.textContent=pe(t,D.config.shorthandCurrentMonth,D.l10n),n.tabIndex=-1,D.currentMonth===t&&(n.selected=!0),D.monthsDropdownContainer.appendChild(n)}}}function C(){var e,t=ue("div","flatpickr-month"),n=window.document.createDocumentFragment();e=1<D.config.showMonths||"static"===D.config.monthSelectorType?ue("span","cur-month"):(D.monthsDropdownContainer=ue("select","flatpickr-monthDropdown-months"),D.monthsDropdownContainer.setAttribute("aria-label",D.l10n.monthAriaLabel),s(D.monthsDropdownContainer,"change",function(e){var t=fe(e),n=parseInt(t.value,10);D.changeMonth(n-D.currentMonth),K("onMonthChange")}),w(),D.monthsDropdownContainer);var i=de("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",D.l10n.yearAriaLabel),D.config.minDate&&o.setAttribute("min",D.config.minDate.getFullYear().toString()),D.config.maxDate&&(o.setAttribute("max",D.config.maxDate.getFullYear().toString()),o.disabled=!!D.config.minDate&&D.config.minDate.getFullYear()===D.config.maxDate.getFullYear());var r=ue("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function x(){he(D.monthNav),D.monthNav.appendChild(D.prevMonthNav),D.config.showMonths&&(D.yearElements=[],D.monthElements=[]);for(var e=D.config.showMonths;e--;){var t=C();D.yearElements.push(t.yearElement),D.monthElements.push(t.monthElement),D.monthNav.appendChild(t.container)}D.monthNav.appendChild(D.nextMonthNav)}function M(){D.weekdayContainer?he(D.weekdayContainer):D.weekdayContainer=ue("div","flatpickr-weekdays");for(var e=D.config.showMonths;e--;){var t=ue("div","flatpickr-weekdaycontainer");D.weekdayContainer.appendChild(t)}return k(),D.weekdayContainer}function k(){if(D.weekdayContainer){var e=D.l10n.firstDayOfWeek,t=te(D.l10n.weekdays.shorthand);0<e&&e<t.length&&(t=te(t.splice(e,t.length),t.splice(0,e)));for(var n=D.config.showMonths;n--;)D.weekdayContainer.children[n].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function E(e,t){void 0===t&&(t=!0);var n=t?e:e-D.currentMonth;n<0&&!0===D._hidePrevMonthArrow||0<n&&!0===D._hideNextMonthArrow||(D.currentMonth+=n,(D.currentMonth<0||11<D.currentMonth)&&(D.currentYear+=11<D.currentMonth?1:-1,D.currentMonth=(D.currentMonth+12)%12,K("onYearChange"),w()),b(),K("onMonthChange"),V())}function T(e){return!(!D.config.appendTo||!D.config.appendTo.contains(e))||D.calendarContainer.contains(e)}function O(e){if(D.isOpen&&!D.config.inline){var t=fe(e),n=T(t),i=t===D.input||t===D.altInput||D.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(D.input)||~e.path.indexOf(D.altInput)),o="blur"===e.type?i&&e.relatedTarget&&!T(e.relatedTarget):!i&&!n&&!T(e.relatedTarget),r=!D.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&r&&(void 0!==D.timeContainer&&void 0!==D.minuteElement&&void 0!==D.hourElement&&""!==D.input.value&&void 0!==D.input.value&&f(),D.close(),D.config&&"range"===D.config.mode&&1===D.selectedDates.length&&(D.clear(!1),D.redraw()))}}function S(e){if(!(!e||D.config.minDate&&e<D.config.minDate.getFullYear()||D.config.maxDate&&e>D.config.maxDate.getFullYear())){var t=e,n=D.currentYear!==t;D.currentYear=t||D.currentYear,D.config.maxDate&&D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth=Math.min(D.config.maxDate.getMonth(),D.currentMonth):D.config.minDate&&D.currentYear===D.config.minDate.getFullYear()&&(D.currentMonth=Math.max(D.config.minDate.getMonth(),D.currentMonth)),n&&(D.redraw(),K("onYearChange"),w())}}function A(e,t){var n;void 0===t&&(t=!0);var i=D.parseDate(e,void 0,t);if(D.config.minDate&&i&&ve(i,D.config.minDate,void 0!==t?t:!D.minDateHasTime)<0||D.config.maxDate&&i&&0<ve(i,D.config.maxDate,void 0!==t?t:!D.maxDateHasTime))return!1;if(!D.config.enable&&0===D.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!D.config.enable,r=null!==(n=D.config.enable)&&void 0!==n?n:D.config.disable,s=0,a=void 0;s<r.length;s++){if("function"==typeof(a=r[s])&&a(i))return o;if(a instanceof Date&&void 0!==i&&a.getTime()===i.getTime())return o;if("string"==typeof a){var l=D.parseDate(a,void 0,!0);return l&&l.getTime()===i.getTime()?o:!o}if("object"==typeof a&&void 0!==i&&a.from&&a.to&&i.getTime()>=a.from.getTime()&&i.getTime()<=a.to.getTime())return o}return!o}function I(e){return void 0!==D.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&D.daysContainer.contains(e))}function N(e){!(e.target===D._input)||!(0<D.selectedDates.length||0<D._input.value.length)||e.relatedTarget&&T(e.relatedTarget)||D.setDate(D._input.value,!0,e.target===D.altInput?D.config.altFormat:D.config.dateFormat)}function j(e){var t=fe(e),n=D.config.wrap?d.contains(t):t===D._input,i=D.config.allowInput,o=D.isOpen&&(!i||!n),r=D.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return D.setDate(D._input.value,!0,t===D.altInput?D.config.altFormat:D.config.dateFormat),t.blur();D.open()}else if(T(t)||o||r){var s=!!D.timeContainer&&D.timeContainer.contains(t);switch(e.keyCode){case 13:s?(e.preventDefault(),f(),W()):B(e);break;case 27:e.preventDefault(),W();break;case 8:case 46:n&&!D.config.allowInput&&(e.preventDefault(),D.clear());break;case 37:case 39:if(s||n)D.hourElement&&D.hourElement.focus();else if(e.preventDefault(),void 0!==D.daysContainer&&(!1===i||document.activeElement&&I(document.activeElement))){var a=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),E(a),y(v(1),0)):y(void 0,a)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;D.daysContainer&&void 0!==t.$i||t===D.input||t===D.altInput?e.ctrlKey?(e.stopPropagation(),S(D.currentYear-l),y(v(1),0)):s||y(void 0,7*l):t===D.currentYearElement?S(D.currentYear-l):D.config.enableTime&&(!s&&D.hourElement&&D.hourElement.focus(),f(e),D._debouncedChange());break;case 9:if(s){var c=[D.hourElement,D.minuteElement,D.secondElement,D.amPM].concat(D.pluginElements).filter(function(e){return e}),u=c.indexOf(t);if(-1!==u){var h=c[u+(e.shiftKey?-1:1)];e.preventDefault(),(h||D._input).focus()}}else!D.config.noCalendar&&D.daysContainer&&D.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),D._input.focus())}}if(void 0!==D.amPM&&t===D.amPM)switch(e.key){case D.l10n.amPM[0].charAt(0):case D.l10n.amPM[0].charAt(0).toLowerCase():D.amPM.textContent=D.l10n.amPM[0],p(),X();break;case D.l10n.amPM[1].charAt(0):case D.l10n.amPM[1].charAt(0).toLowerCase():D.amPM.textContent=D.l10n.amPM[1],p(),X()}(n||T(t))&&K("onKeyDown",e)}function F(r){if(1===D.selectedDates.length&&(!r||r.classList.contains("flatpickr-day")&&!r.classList.contains("flatpickr-disabled"))){for(var s=r?r.dateObj.getTime():D.days.firstElementChild.dateObj.getTime(),a=D.parseDate(D.selectedDates[0],void 0,!0).getTime(),e=Math.min(s,D.selectedDates[0].getTime()),t=Math.max(s,D.selectedDates[0].getTime()),l=!1,c=0,u=0,n=e;n<t;n+=be.DAY)A(new Date(n),!0)||(l=l||e<n&&n<t,n<a&&(!c||c<n)?c=n:a<n&&(!u||n<u)&&(u=n));for(var i=0;i<D.config.showMonths;i++)for(var h=D.daysContainer.children[i],o=function(e,t){var n=h.children[e],i=n.dateObj.getTime(),o=0<c&&i<c||0<u&&u<i;return o?(n.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)}),"continue"):l&&!o?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)}),void(void 0!==r&&(r.classList.add(s<=D.selectedDates[0].getTime()?"startRange":"endRange"),a<s&&i===a?n.classList.add("startRange"):s<a&&i===a&&n.classList.add("endRange"),c<=i&&(0===u||i<=u)&&ye(i,a,s)&&n.classList.add("inRange"))))},d=0,f=h.children.length;d<f;d++)o(d)}}function P(){!D.isOpen||D.config.static||D.config.inline||R()}function Y(i){return function(e){var t=D.config["_"+i+"Date"]=D.parseDate(e,D.config.dateFormat),n=D.config["_"+("min"===i?"max":"min")+"Date"];void 0!==t&&(D["min"===i?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),D.selectedDates&&(D.selectedDates=D.selectedDates.filter(function(e){return A(e)}),D.selectedDates.length||"min"!==i||o(t),X()),D.daysContainer&&(q(),void 0!==t?D.currentYearElement[i]=t.getFullYear().toString():D.currentYearElement.removeAttribute(i),D.currentYearElement.disabled=!!n&&void 0!==t&&n.getFullYear()===t.getFullYear())}}function H(){return D.config.wrap?d.querySelector("[data-input]"):d}function L(){"object"!=typeof D.config.locale&&void 0===Ce.l10ns[D.config.locale]&&D.config.errorHandler(new Error("flatpickr: invalid locale "+D.config.locale)),D.l10n=ee(ee({},Ce.l10ns.default),"object"==typeof D.config.locale?D.config.locale:"default"!==D.config.locale?Ce.l10ns[D.config.locale]:void 0),_e.K="("+D.l10n.amPM[0]+"|"+D.l10n.amPM[1]+"|"+D.l10n.amPM[0].toLowerCase()+"|"+D.l10n.amPM[1].toLowerCase()+")",void 0===ee(ee({},u),JSON.parse(JSON.stringify(d.dataset||{}))).time_24hr&&void 0===Ce.defaultConfig.time_24hr&&(D.config.time_24hr=D.l10n.time_24hr),D.formatDate=me(D),D.parseDate=ge({config:D.config,l10n:D.l10n})}function R(e){if("function"!=typeof D.config.position){if(void 0!==D.calendarContainer){K("onPreCalendarPosition");var t=e||D._positionElement,n=Array.prototype.reduce.call(D.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=D.calendarContainer.offsetWidth,o=D.config.position.split(" "),r=o[0],s=1<o.length?o[1]:null,a=t.getBoundingClientRect(),l=window.innerHeight-a.bottom,c="above"===r||"below"!==r&&l<n&&a.top>n,u=window.pageYOffset+a.top+(c?-n-2:t.offsetHeight+2);if(ce(D.calendarContainer,"arrowTop",!c),ce(D.calendarContainer,"arrowBottom",c),!D.config.inline){var h=window.pageXOffset+a.left,d=!1,f=!1;"center"===s?(h-=(i-a.width)/2,d=!0):"right"===s&&(h-=i-a.width,f=!0),ce(D.calendarContainer,"arrowLeft",!d&&!f),ce(D.calendarContainer,"arrowCenter",d),ce(D.calendarContainer,"arrowRight",f);var p=window.document.body.offsetWidth-(window.pageXOffset+a.right),_=h+i>window.document.body.offsetWidth,m=p+i>window.document.body.offsetWidth;if(ce(D.calendarContainer,"rightMost",_),!D.config.static)if(D.calendarContainer.style.top=u+"px",_)if(m){var g=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===g)return;var v=window.document.body.offsetWidth,y=Math.max(0,v/2-i/2),b=g.cssRules.length,w="{left:"+a.left+"px;right:auto;}";ce(D.calendarContainer,"rightMost",!1),ce(D.calendarContainer,"centerMost",!0),g.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,b),D.calendarContainer.style.left=y+"px",D.calendarContainer.style.right="auto"}else D.calendarContainer.style.left="auto",D.calendarContainer.style.right=p+"px";else D.calendarContainer.style.left=h+"px",D.calendarContainer.style.right="auto"}}}else D.config.position(D,e)}function q(){D.config.noCalendar||D.isMobile||(w(),V(),b())}function W(){D._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(D.close,0):D.close()}function B(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(fe(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,i=D.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<D.currentMonth||i.getMonth()>D.currentMonth+D.config.showMonths-1)&&"range"!==D.config.mode;if(D.selectedDateElem=n,"single"===D.config.mode)D.selectedDates=[i];else if("multiple"===D.config.mode){var r=Q(i);r?D.selectedDates.splice(parseInt(r),1):D.selectedDates.push(i)}else"range"===D.config.mode&&(2===D.selectedDates.length&&D.clear(!1,!1),D.latestSelectedDateObj=i,D.selectedDates.push(i),0!==ve(i,D.selectedDates[0],!0)&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(p(),o){var s=D.currentYear!==i.getFullYear();D.currentYear=i.getFullYear(),D.currentMonth=i.getMonth(),s&&(K("onYearChange"),w()),K("onMonthChange")}if(V(),b(),X(),o||"range"===D.config.mode||1!==D.config.showMonths?void 0!==D.selectedDateElem&&void 0===D.hourElement&&D.selectedDateElem&&D.selectedDateElem.focus():g(n),void 0!==D.hourElement&&void 0!==D.hourElement&&D.hourElement.focus(),D.config.closeOnSelect){var a="single"===D.config.mode&&!D.config.enableTime,l="range"===D.config.mode&&2===D.selectedDates.length&&!D.config.enableTime;(a||l)&&W()}c()}}D.parseDate=ge({config:D.config,l10n:D.l10n}),D._handlers=[],D.pluginElements=[],D.loadedPlugins=[],D._bind=s,D._setHoursFromDate=o,D._positionCalendar=R,D.changeMonth=E,D.changeYear=S,D.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);D.input.value="",void 0!==D.altInput&&(D.altInput.value="");void 0!==D.mobileInput&&(D.mobileInput.value="");D.selectedDates=[],!(D.latestSelectedDateObj=void 0)===t&&(D.currentYear=D._initialDate.getFullYear(),D.currentMonth=D._initialDate.getMonth());if(!0===D.config.enableTime){var n=we(D.config),i=n.hours,o=n.minutes,r=n.seconds;l(i,o,r)}D.redraw(),e&&K("onChange")},D.close=function(){D.isOpen=!1,D.isMobile||(void 0!==D.calendarContainer&&D.calendarContainer.classList.remove("open"),void 0!==D._input&&D._input.classList.remove("active"));K("onClose")},D._createElement=ue,D.destroy=function(){void 0!==D.config&&K("onDestroy");for(var e=D._handlers.length;e--;)D._handlers[e].remove();if(D._handlers=[],D.mobileInput)D.mobileInput.parentNode&&D.mobileInput.parentNode.removeChild(D.mobileInput),D.mobileInput=void 0;else if(D.calendarContainer&&D.calendarContainer.parentNode)if(D.config.static&&D.calendarContainer.parentNode){var t=D.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else D.calendarContainer.parentNode.removeChild(D.calendarContainer);D.altInput&&(D.input.type="text",D.altInput.parentNode&&D.altInput.parentNode.removeChild(D.altInput),delete D.altInput);D.input&&(D.input.type=D.input._type,D.input.classList.remove("flatpickr-input"),D.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete D[e]}catch(e){}})},D.isEnabled=A,D.jumpToDate=i,D.open=function(e,t){void 0===t&&(t=D._positionElement);{if(!0===D.isMobile){if(e){e.preventDefault();var n=fe(e);n&&n.blur()}return void 0!==D.mobileInput&&(D.mobileInput.focus(),D.mobileInput.click()),void K("onOpen")}if(D._input.disabled||D.config.inline)return}var i=D.isOpen;D.isOpen=!0,i||(D.calendarContainer.classList.add("open"),D._input.classList.add("active"),K("onOpen"),R(t));!0===D.config.enableTime&&!0===D.config.noCalendar&&(!1!==D.config.allowInput||void 0!==e&&D.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return D.hourElement.select()},50))},D.redraw=q,D.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(D.config,e),e)void 0!==z[n]&&z[n].forEach(function(e){return e()});else D.config[e]=t,void 0!==z[e]?z[e].forEach(function(e){return e()}):-1<ne.indexOf(e)&&(D.config[e]=le(t));D.redraw(),X(!0)},D.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=D.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return D.clear(t);U(e,n),D.latestSelectedDateObj=D.selectedDates[D.selectedDates.length-1],D.redraw(),i(void 0,t),o(),0===D.selectedDates.length&&D.clear(!1);X(t),t&&K("onChange")},D.toggle=function(e){if(!0===D.isOpen)return D.close();D.open(e)};var z={locale:[L,k],showMonths:[x,t,M],minDate:[i],maxDate:[i],clickOpens:[function(){!0===D.config.clickOpens?(s(D._input,"focus",D.open),s(D._input,"click",D.open)):(D._input.removeEventListener("focus",D.open),D._input.removeEventListener("click",D.open))}]};function U(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return D.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[D.parseDate(e,t)];else if("string"==typeof e)switch(D.config.mode){case"single":case"time":n=[D.parseDate(e,t)];break;case"multiple":n=e.split(D.config.conjunction).map(function(e){return D.parseDate(e,t)});break;case"range":n=e.split(D.l10n.rangeSeparator).map(function(e){return D.parseDate(e,t)})}else D.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));D.selectedDates=D.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&A(e,!1)}),"range"===D.config.mode&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function J(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?D.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:D.parseDate(e.from,void 0),to:D.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function K(e,t){if(void 0!==D.config){var n=D.config[e];if(void 0!==n&&0<n.length)for(var i=0;n[i]&&i<n.length;i++)n[i](D.selectedDates,D.input.value,D,t);"onChange"===e&&(D.input.dispatchEvent($("change")),D.input.dispatchEvent($("input")))}}function $(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Q(e){for(var t=0;t<D.selectedDates.length;t++)if(0===ve(D.selectedDates[t],e))return""+t;return!1}function V(){D.config.noCalendar||D.isMobile||!D.monthNav||(D.yearElements.forEach(function(e,t){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),1<D.config.showMonths||"static"===D.config.monthSelectorType?D.monthElements[t].textContent=pe(n.getMonth(),D.config.shorthandCurrentMonth,D.l10n)+" ":D.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),D._hidePrevMonthArrow=void 0!==D.config.minDate&&(D.currentYear===D.config.minDate.getFullYear()?D.currentMonth<=D.config.minDate.getMonth():D.currentYear<D.config.minDate.getFullYear()),D._hideNextMonthArrow=void 0!==D.config.maxDate&&(D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth+1>D.config.maxDate.getMonth():D.currentYear>D.config.maxDate.getFullYear()))}function G(t){return D.selectedDates.map(function(e){return D.formatDate(e,t)}).filter(function(e,t,n){return"range"!==D.config.mode||D.config.enableTime||n.indexOf(e)===t}).join("range"!==D.config.mode?D.config.conjunction:D.l10n.rangeSeparator)}function X(e){void 0===e&&(e=!0),void 0!==D.mobileInput&&D.mobileFormatStr&&(D.mobileInput.value=void 0!==D.latestSelectedDateObj?D.formatDate(D.latestSelectedDateObj,D.mobileFormatStr):""),D.input.value=G(D.config.dateFormat),void 0!==D.altInput&&(D.altInput.value=G(D.config.altFormat)),!1!==e&&K("onValueUpdate")}function Z(e){var t=fe(e),n=D.prevMonthNav.contains(t),i=D.nextMonthNav.contains(t);n||i?E(n?-1:1):0<=D.yearElements.indexOf(t)?t.select():t.classList.contains("arrowUp")?D.changeYear(D.currentYear+1):t.classList.contains("arrowDown")&&D.changeYear(D.currentYear-1)}return function(){D.element=D.input=d,D.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=ee(ee({},JSON.parse(JSON.stringify(d.dataset||{}))),u),n={};D.config.parseDate=t.parseDate,D.config.formatDate=t.formatDate,Object.defineProperty(D.config,"enable",{get:function(){return D.config._enable},set:function(e){D.config._enable=J(e)}}),Object.defineProperty(D.config,"disable",{get:function(){return D.config._disable},set:function(e){D.config._disable=J(e)}});var i="time"===t.mode;if(!t.dateFormat&&(t.enableTime||i)){var o=Ce.defaultConfig.dateFormat||ie.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):o+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var r=Ce.defaultConfig.altFormat||ie.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):r+" h:i"+(t.enableSeconds?":S":"")+" K"}Object.defineProperty(D.config,"minDate",{get:function(){return D.config._minDate},set:Y("min")}),Object.defineProperty(D.config,"maxDate",{get:function(){return D.config._maxDate},set:Y("max")});var s=function(t){return function(e){D.config["min"===t?"_minTime":"_maxTime"]=D.parseDate(e,"H:i:S")}};Object.defineProperty(D.config,"minTime",{get:function(){return D.config._minTime},set:s("min")}),Object.defineProperty(D.config,"maxTime",{get:function(){return D.config._maxTime},set:s("max")}),"time"===t.mode&&(D.config.noCalendar=!0,D.config.enableTime=!0),Object.assign(D.config,n,t);for(var a=0;a<e.length;a++)D.config[e[a]]=!0===D.config[e[a]]||"true"===D.config[e[a]];ne.filter(function(e){return void 0!==D.config[e]}).forEach(function(e){D.config[e]=le(D.config[e]||[]).map(h)}),D.isMobile=!D.config.disableMobile&&!D.config.inline&&"single"===D.config.mode&&!D.config.disable.length&&!D.config.enable&&!D.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var a=0;a<D.config.plugins.length;a++){var l=D.config.plugins[a](D)||{};for(var c in l)-1<ne.indexOf(c)?D.config[c]=le(l[c]).map(h).concat(D.config[c]):void 0===t[c]&&(D.config[c]=l[c])}t.altInputClass||(D.config.altInputClass=H().className+" "+D.config.altInputClass),K("onParseConfig")}(),L(),function(){if(D.input=H(),!D.input)return D.config.errorHandler(new Error("Invalid input element specified"));D.input._type=D.input.type,D.input.type="text",D.input.classList.add("flatpickr-input"),D._input=D.input,D.config.altInput&&(D.altInput=ue(D.input.nodeName,D.config.altInputClass),D._input=D.altInput,D.altInput.placeholder=D.input.placeholder,D.altInput.disabled=D.input.disabled,D.altInput.required=D.input.required,D.altInput.tabIndex=D.input.tabIndex,D.altInput.type="text",D.input.setAttribute("type","hidden"),!D.config.static&&D.input.parentNode&&D.input.parentNode.insertBefore(D.altInput,D.input.nextSibling)),D.config.allowInput||D._input.setAttribute("readonly","readonly"),D._positionElement=D.config.positionElement||D._input}(),function(){D.selectedDates=[],D.now=D.parseDate(D.config.now)||new Date;var e=D.config.defaultDate||("INPUT"!==D.input.nodeName&&"TEXTAREA"!==D.input.nodeName||!D.input.placeholder||D.input.value!==D.input.placeholder?D.input.value:null);e&&U(e,D.config.dateFormat),D._initialDate=0<D.selectedDates.length?D.selectedDates[0]:D.config.minDate&&D.config.minDate.getTime()>D.now.getTime()?D.config.minDate:D.config.maxDate&&D.config.maxDate.getTime()<D.now.getTime()?D.config.maxDate:D.now,D.currentYear=D._initialDate.getFullYear(),D.currentMonth=D._initialDate.getMonth(),0<D.selectedDates.length&&(D.latestSelectedDateObj=D.selectedDates[0]),void 0!==D.config.minTime&&(D.config.minTime=D.parseDate(D.config.minTime,"H:i")),void 0!==D.config.maxTime&&(D.config.maxTime=D.parseDate(D.config.maxTime,"H:i")),D.minDateHasTime=!!D.config.minDate&&(0<D.config.minDate.getHours()||0<D.config.minDate.getMinutes()||0<D.config.minDate.getSeconds()),D.maxDateHasTime=!!D.config.maxDate&&(0<D.config.maxDate.getHours()||0<D.config.maxDate.getMinutes()||0<D.config.maxDate.getSeconds())}(),D.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=D.currentMonth),void 0===t&&(t=D.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:D.l10n.daysInMonth[e]}},D.isMobile||function(){var e=window.document.createDocumentFragment();if(D.calendarContainer=ue("div","flatpickr-calendar"),D.calendarContainer.tabIndex=-1,!D.config.noCalendar){if(e.appendChild((D.monthNav=ue("div","flatpickr-months"),D.yearElements=[],D.monthElements=[],D.prevMonthNav=ue("span","flatpickr-prev-month"),D.prevMonthNav.innerHTML=D.config.prevArrow,D.nextMonthNav=ue("span","flatpickr-next-month"),D.nextMonthNav.innerHTML=D.config.nextArrow,x(),Object.defineProperty(D,"_hidePrevMonthArrow",{get:function(){return D.__hidePrevMonthArrow},set:function(e){D.__hidePrevMonthArrow!==e&&(ce(D.prevMonthNav,"flatpickr-disabled",e),D.__hidePrevMonthArrow=e)}}),Object.defineProperty(D,"_hideNextMonthArrow",{get:function(){return D.__hideNextMonthArrow},set:function(e){D.__hideNextMonthArrow!==e&&(ce(D.nextMonthNav,"flatpickr-disabled",e),D.__hideNextMonthArrow=e)}}),D.currentYearElement=D.yearElements[0],V(),D.monthNav)),D.innerContainer=ue("div","flatpickr-innerContainer"),D.config.weekNumbers){var t=function(){D.calendarContainer.classList.add("hasWeeks");var e=ue("div","flatpickr-weekwrapper");e.appendChild(ue("span","flatpickr-weekday",D.l10n.weekAbbreviation));var t=ue("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;D.innerContainer.appendChild(n),D.weekNumbers=i,D.weekWrapper=n}D.rContainer=ue("div","flatpickr-rContainer"),D.rContainer.appendChild(M()),D.daysContainer||(D.daysContainer=ue("div","flatpickr-days"),D.daysContainer.tabIndex=-1),b(),D.rContainer.appendChild(D.daysContainer),D.innerContainer.appendChild(D.rContainer),e.appendChild(D.innerContainer)}D.config.enableTime&&e.appendChild(function(){D.calendarContainer.classList.add("hasTime"),D.config.noCalendar&&D.calendarContainer.classList.add("noCalendar");var e=we(D.config);D.timeContainer=ue("div","flatpickr-time"),D.timeContainer.tabIndex=-1;var t=ue("span","flatpickr-time-separator",":"),n=de("flatpickr-hour",{"aria-label":D.l10n.hourAriaLabel});D.hourElement=n.getElementsByTagName("input")[0];var i=de("flatpickr-minute",{"aria-label":D.l10n.minuteAriaLabel});if(D.minuteElement=i.getElementsByTagName("input")[0],D.hourElement.tabIndex=D.minuteElement.tabIndex=-1,D.hourElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getHours():D.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),D.minuteElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getMinutes():e.minutes),D.hourElement.setAttribute("step",D.config.hourIncrement.toString()),D.minuteElement.setAttribute("step",D.config.minuteIncrement.toString()),D.hourElement.setAttribute("min",D.config.time_24hr?"0":"1"),D.hourElement.setAttribute("max",D.config.time_24hr?"23":"12"),D.hourElement.setAttribute("maxlength","2"),D.minuteElement.setAttribute("min","0"),D.minuteElement.setAttribute("max","59"),D.minuteElement.setAttribute("maxlength","2"),D.timeContainer.appendChild(n),D.timeContainer.appendChild(t),D.timeContainer.appendChild(i),D.config.time_24hr&&D.timeContainer.classList.add("time24hr"),D.config.enableSeconds){D.timeContainer.classList.add("hasSeconds");var o=de("flatpickr-second");D.secondElement=o.getElementsByTagName("input")[0],D.secondElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getSeconds():e.seconds),D.secondElement.setAttribute("step",D.minuteElement.getAttribute("step")),D.secondElement.setAttribute("min","0"),D.secondElement.setAttribute("max","59"),D.secondElement.setAttribute("maxlength","2"),D.timeContainer.appendChild(ue("span","flatpickr-time-separator",":")),D.timeContainer.appendChild(o)}return D.config.time_24hr||(D.amPM=ue("span","flatpickr-am-pm",D.l10n.amPM[se(11<(D.latestSelectedDateObj?D.hourElement.value:D.config.defaultHour))]),D.amPM.title=D.l10n.toggleTitle,D.amPM.tabIndex=-1,D.timeContainer.appendChild(D.amPM)),D.timeContainer}()),ce(D.calendarContainer,"rangeMode","range"===D.config.mode),ce(D.calendarContainer,"animate",!0===D.config.animate),ce(D.calendarContainer,"multiMonth",1<D.config.showMonths),D.calendarContainer.appendChild(e);var o=void 0!==D.config.appendTo&&void 0!==D.config.appendTo.nodeType;if((D.config.inline||D.config.static)&&(D.calendarContainer.classList.add(D.config.inline?"inline":"static"),D.config.inline&&(!o&&D.element.parentNode?D.element.parentNode.insertBefore(D.calendarContainer,D._input.nextSibling):void 0!==D.config.appendTo&&D.config.appendTo.appendChild(D.calendarContainer)),D.config.static)){var r=ue("div","flatpickr-wrapper");D.element.parentNode&&D.element.parentNode.insertBefore(r,D.element),r.appendChild(D.element),D.altInput&&r.appendChild(D.altInput),r.appendChild(D.calendarContainer)}D.config.static||D.config.inline||(void 0!==D.config.appendTo?D.config.appendTo:window.document.body).appendChild(D.calendarContainer)}(),function(){if(D.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(D.element.querySelectorAll("[data-"+t+"]"),function(e){return s(e,"click",D[t])})}),D.isMobile)return function(){var e=D.config.enableTime?D.config.noCalendar?"time":"datetime-local":"date";D.mobileInput=ue("input",D.input.className+" flatpickr-mobile"),D.mobileInput.tabIndex=1,D.mobileInput.type=e,D.mobileInput.disabled=D.input.disabled,D.mobileInput.required=D.input.required,D.mobileInput.placeholder=D.input.placeholder,D.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",0<D.selectedDates.length&&(D.mobileInput.defaultValue=D.mobileInput.value=D.formatDate(D.selectedDates[0],D.mobileFormatStr)),D.config.minDate&&(D.mobileInput.min=D.formatDate(D.config.minDate,"Y-m-d")),D.config.maxDate&&(D.mobileInput.max=D.formatDate(D.config.maxDate,"Y-m-d")),D.input.getAttribute("step")&&(D.mobileInput.step=String(D.input.getAttribute("step"))),D.input.type="hidden",void 0!==D.altInput&&(D.altInput.type="hidden");try{D.input.parentNode&&D.input.parentNode.insertBefore(D.mobileInput,D.input.nextSibling)}catch(e){}s(D.mobileInput,"change",function(e){D.setDate(fe(e).value,!1,D.mobileFormatStr),K("onChange"),K("onClose")})}();var e=ae(P,50);D._debouncedChange=ae(c,De),D.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&s(D.daysContainer,"mouseover",function(e){"range"===D.config.mode&&F(fe(e))}),s(window.document.body,"keydown",j),D.config.inline||D.config.static||s(window,"resize",e),void 0!==window.ontouchstart?s(window.document,"touchstart",O):s(window.document,"mousedown",O),s(window.document,"focus",O,{capture:!0}),!0===D.config.clickOpens&&(s(D._input,"focus",D.open),s(D._input,"click",D.open)),void 0!==D.daysContainer&&(s(D.monthNav,"click",Z),s(D.monthNav,["keyup","increment"],n),s(D.daysContainer,"click",B)),void 0!==D.timeContainer&&void 0!==D.minuteElement&&void 0!==D.hourElement&&(s(D.timeContainer,["increment"],f),s(D.timeContainer,"blur",f,{capture:!0}),s(D.timeContainer,"click",r),s([D.hourElement,D.minuteElement],["focus","click"],function(e){return fe(e).select()}),void 0!==D.secondElement&&s(D.secondElement,"focus",function(){return D.secondElement&&D.secondElement.select()}),void 0!==D.amPM&&s(D.amPM,"click",function(e){f(e),c()})),D.config.allowInput&&s(D._input,"blur",N)}(),(D.selectedDates.length||D.config.noCalendar)&&(D.config.enableTime&&o(D.config.noCalendar?D.latestSelectedDateObj:void 0),X(!1)),t();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!D.isMobile&&e&&R(),K("onReady")}(),D}function n(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=s(r,t||{}),i.push(r._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)},HTMLElement.prototype.flatpickr=function(e){return n([this],e)});var Ce=function(e,t){return"string"==typeof e?n(window.document.querySelectorAll(e),t):e instanceof Node?n([e],t):n(e,t)};return Ce.defaultConfig={},Ce.l10ns={en:ee({},oe),default:ee({},oe)},Ce.localize=function(e){Ce.l10ns.default=ee(ee({},Ce.l10ns.default),e)},Ce.setDefaults=function(e){Ce.defaultConfig=ee(ee({},Ce.defaultConfig),e)},Ce.parseDate=ge({}),Ce.formatDate=me({}),Ce.compareDates=ve,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return n(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=Ce),Ce}),function(s){function t(e,t){this.element=s(e),this.options=t,this.init()}t.prototype.init=function(){this.element.chosen(this.options),this.container=this.element.next(".chosen-container"),this.search_field=this.container.find(".chosen-search-input"),this.is_multiple=this.container.hasClass("chosen-container-multi"),this.is_typing=!1,this.chosenXhr=null,this.events()},t.prototype.events=function(){var e=this;this.search_field.on("compositionstart",function(){e.is_typing=!0}),this.search_field.on("compositionend",function(){e.is_typing=!1,e.update_list()}),this.search_field.on("keyup",function(){e.update_list()}),this.search_field.on("focus",function(){e.search_field_focused()})},t.prototype.search_field_focused=function(){this.search_welcome_message(),0===this.options.min_length&&0===this.search_field.val().length&&this.update_list()},t.prototype.search_welcome_message=function(){var e=s.trim(this.search_field.val()),t=this.container.find(".chosen-results");0===t.children().length&&0===e.length&&t.html('<li class="no-results">'+this.options.typing_text.replace("%s",this.options.min_length-e.length)+"</li>")},t.prototype.update_list=function(){var t=this;if(this.search_welcome_message(),!this.is_typing){var e=s.trim(this.search_field.val()),n=e.length<this.options.min_length?this.options.typing_text.replace("%s",this.options.min_length-e.length):this.options.searching_text;this.container.find(".no-results").text(n),e!==this.search_field.data("prevVal")&&(this.search_field.data("prevVal",e),this.timer&&clearTimeout(this.timer),e.length<this.options.min_length||(this.timer=setTimeout(function(){t.chosenXhr&&t.chosenXhr.abort(),t.options.data.term=e,t.chosenXhr=window.wp.ajax.post("csf-chosen",t.options.data).done(function(e){t.show_results(e)}).fail(function(e){t.container.find(".no-results").text(e.error)})},this.options.type_delay)))}},t.prototype.show_results=function(e){var n=this;if(!this.is_typing&&null!==e){if(0===e.length)return this.element.data().chosen.no_results_clear(),void this.element.data().chosen.no_results(this.search_field.val());var i=[];this.element.find("option").each(function(){s(this).is(":selected")?i.push(s(this).val()+"-"+s(this).text()):s(this).attr("value").length&&s(this).remove()}),s.each(e,function(e,t){-1===s.inArray(t.value+"-"+t.text,i)&&s("<option />").attr("value",t.value).html(t.text).appendTo(n.element)});var t=this.search_field.val(),o=this.search_field.innerWidth();if(this.element.trigger("chosen:updated"),this.is_multiple){var r=this.element.parent().find(".csf-hide-select").val()||[];this.element.CSFChosenOrder(r,!0),this.search_field.css("width",o)}this.search_field.val(t),null!==this.chosenXhr.done&&this.chosenXhr.done(e)}},s.fn.CSFAjaxChosen=function(e){return this.each(function(){new t(this,e)})}}(jQuery),function(){var n,i,s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o={}.hasOwnProperty;i=function(){function e(){}return e.insertAt=function(e,t,n){return n.insertBefore(e,n.children[t].nextSibling)},e.getFlattenedOptionsAndGroups=function(e){var t,n,i,o,r,s,a,l,c;for(t=[],s=0,l=(i=Array.prototype.filter.call(e.childNodes,function(e){var t;return"OPTION"===(t=e.nodeName.toUpperCase())||"OPTGROUP"===t})).length;s<l;s++)if(n=i[s],t.push(n),"OPTGROUP"===n.nodeName.toUpperCase())for(a=0,c=(r=Array.prototype.filter.call(n.childNodes,function(e){return"OPTION"===e.nodeName.toUpperCase()})).length;a<c;a++)o=r[a],t.push(o);return t},e.isValidMultipleSelectElement=function(e){return null!=e&&"SELECT"===e.nodeName&&e.multiple},e.getChosenUIContainer=function(e){return""!==e.id?document.getElementById(e.id.replace(/-/g,"_")+"_chosen"):this.searchChosenUIContainer(e)},e.isChosenified=function(e){return null!=this.getChosenUIContainer(e)},e.forceSelection=function(e,t){var n,i,o,r;for(o=this.getFlattenedOptionsAndGroups(e),n=0;n<o.length;)r=(i=o[n]).getAttribute("value"),0<=s.call(t,r)?(i.selected=!0,i.setAttribute("selected","")):(i.selected=!1,i.removeAttribute("selected")),n++;return this.triggerEvent(e,"chosen:updated")},e.CSFChosenOrder=function(e,t,n){var i,o,r,s,a,l,c,u,h,d,f,p,_,m;if(null!=this.getDOMElement&&(e=this.getDOMElement(e)),this.isValidMultipleSelectElement(e)&&null!=(o=this.getChosenUIContainer(e))&&t instanceof Array){for(t=t.map(Function.prototype.call,String.prototype.trim),c=this.getFlattenedOptionsAndGroups(e),null!=n&&!0===n&&this.forceSelection(e,t),m=[],r=d=0,p=t.length;d<p;r=++d){for(a=t[r],u=null,s=f=0,_=c.length;f<_;s=++f)c[s].value===a&&(u=s);i=o.querySelectorAll(".search-choice"),h=this.relAttributeName,null!=(l=Array.prototype.filter.call(i,function(e){return null!=e.querySelector("a.search-choice-close["+h+'="'+u+'"]')})[0])&&(o.querySelector("ul.chosen-choices"),m.push(this.insertAt(l,r,o.querySelector("ul.chosen-choices"))))}return m}},e}(),(n=jQuery).fn.extend({CSFChosenOrder:function(e,t){return _CSFChosenOrder.CSFChosenOrder(this,e,t)}}),this._CSFChosenOrder=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,i),t.relAttributeName="data-option-array-index",t.isjQueryObject=function(e){return"undefined"!=typeof jQuery&&null!==jQuery&&e instanceof jQuery},t.getDOMElement=function(e){return this.isjQueryObject(e)?e.get(0):e},t.searchChosenUIContainer=function(e){return null!=n(e).data("chosen")?n(e).data("chosen").container[0]:n(e).next(".chosen-container.chosen-container-multi").get(0)},t.triggerEvent=function(e,t){return n(e).trigger(t)},t}()}.call(this),function(){var a,n,o,s,r={}.hasOwnProperty;(s=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,r,s;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),s=[],n=0,i=(r=e.childNodes).length;n<i;n++)o=r[n],s.push(this.add_option(o,t,e.disabled));return s},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,n,i,o,r;for(o=new s,n=0,i=(r=e.childNodes).length;n<i;n++)t=r[n],o.add_node(t);return o.parsed},n=function(){function o(e,t){var n,i;this.form_field=e,this.options=null!=t?t:{},this.label_click_handler=(n=this.label_click_handler,i=this,function(){return n.apply(i,arguments)}),o.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return o.prototype.set_default_values=function(){var t,n;return this.click_test_action=(t=this,function(e){return t.test_active_click(e)}),this.activate_action=(n=this,function(e){return n.activate_field(e)}),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},o.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||o.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||o.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||o.default_no_result_text},o.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},o.prototype.mouse_enter=function(){return this.mouse_on_container=!0},o.prototype.mouse_leave=function(){return this.mouse_on_container=!1},o.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},o.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},o.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},o.prototype.results_option_build=function(e){var t,n,i,o,r,s,a;for(t="",o=a=0,r=(s=this.results_data).length;o<r&&((i="")!==(i=(n=s[o]).group?this.result_add_group(n):this.result_add_option(n))&&(a++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(a>=this.max_shown_results));o++);return t},o.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},o.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&0<e.active_options?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},o.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},o.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(o=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?o.push(i.selected=!1):o.push(void 0);return o},o.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},o.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},o.prototype.winnow_results=function(e){var t,n,i,o,r,s,a,l,c,u,h,d,f,p,_;for(this.no_results_clear(),u=0,t=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),i=0,o=(l=this.results_data).length;i<o;i++)(r=l[i]).search_match=!1,d=h=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(h=this.results_data[r.group_array_index]).active_options&&h.search_match&&(u+=1),h.active_options+=1),_=r.group?r.label:r.text,r.group&&!this.group_search||(d=this.search_string_match(_,c),r.search_match=null!=d,r.search_match&&!r.group&&(u+=1),r.search_match?(a.length&&(f=d.index,s=_.slice(0,f),n=_.slice(f,f+a.length),p=_.slice(f+a.length),r.highlighted_html=this.escape_html(s)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=h&&(h.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),u<1&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},o.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},o.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},o.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(e=this.selected_option_count=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},o.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},o.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},o.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&0<this.choices_count()?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},o.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},o.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},o.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},o.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},o.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},o.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},o.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},o.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n  <span>'+this.default_text+'</span>\n  <div><b></b></div>\n</a>\n<div class="chosen-drop">\n  <div class="chosen-search">\n    <input class="chosen-search-input" type="text" autocomplete="off" />\n  </div>\n  <ul class="chosen-results"></ul>\n</div>'},o.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n  <li class="search-field">\n    <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n  </li>\n</ul>\n<div class="chosen-drop">\n  <ul class="chosen-results"></ul>\n</div>'},o.prototype.get_no_results_html=function(e){return'<li class="no-results">\n  '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},o.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?8<=document.documentMode:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},o.default_multiple_text="Select Some Options",o.default_single_text="Select an Option",o.default_no_result_text="No results match",o}(),(a=jQuery).fn.extend({chosen:function(i){return n.browser_is_supported()?this.each(function(e){var t,n;n=(t=a(this)).data("chosen"),"destroy"!==i?n instanceof o||t.data("chosen",new o(this,i)):n instanceof o&&n.destroy()}):this}}),o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,n),t.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},t.prototype.set_up_html=function(){var e,t;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),t={class:e.join(" "),title:this.form_field.title},this.form_field.id.length&&(t.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",t),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},t.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},t.prototype.register_observers=function(){var t,n,i,o,r,s,a,l,c,u,h,d,f,p,_,m,g,v,y,b,w,D,C,x;return this.container.on("touchstart.chosen",(t=this,function(e){t.container_mousedown(e)})),this.container.on("touchend.chosen",(n=this,function(e){n.container_mouseup(e)})),this.container.on("mousedown.chosen",(i=this,function(e){i.container_mousedown(e)})),this.container.on("mouseup.chosen",(o=this,function(e){o.container_mouseup(e)})),this.container.on("mouseenter.chosen",(r=this,function(e){r.mouse_enter(e)})),this.container.on("mouseleave.chosen",(s=this,function(e){s.mouse_leave(e)})),this.search_results.on("mouseup.chosen",(a=this,function(e){a.search_results_mouseup(e)})),this.search_results.on("mouseover.chosen",(l=this,function(e){l.search_results_mouseover(e)})),this.search_results.on("mouseout.chosen",(c=this,function(e){c.search_results_mouseout(e)})),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",(u=this,function(e){u.search_results_mousewheel(e)})),this.search_results.on("touchstart.chosen",(h=this,function(e){h.search_results_touchstart(e)})),this.search_results.on("touchmove.chosen",(d=this,function(e){d.search_results_touchmove(e)})),this.search_results.on("touchend.chosen",(f=this,function(e){f.search_results_touchend(e)})),this.form_field_jq.on("chosen:updated.chosen",(p=this,function(e){p.results_update_field(e)})),this.form_field_jq.on("chosen:activate.chosen",(_=this,function(e){_.activate_field(e)})),this.form_field_jq.on("chosen:open.chosen",(m=this,function(e){m.container_mousedown(e)})),this.form_field_jq.on("chosen:close.chosen",(g=this,function(e){g.close_field(e)})),this.search_field.on("blur.chosen",(v=this,function(e){v.input_blur(e)})),this.search_field.on("keyup.chosen",(y=this,function(e){y.keyup_checker(e)})),this.search_field.on("keydown.chosen",(b=this,function(e){b.keydown_checker(e)})),this.search_field.on("focus.chosen",(w=this,function(e){w.input_focus(e)})),this.search_field.on("cut.chosen",(D=this,function(e){D.clipboard_event_checker(e)})),this.search_field.on("paste.chosen",(C=this,function(e){C.clipboard_event_checker(e)})),this.is_multiple?this.search_choices.on("click.chosen",(x=this,function(e){x.choices_click(e)})):this.container.on("click.chosen",function(e){e.preventDefault()})},t.prototype.destroy=function(){return a(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),0<this.form_field_label.length&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},t.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},t.prototype.container_mousedown=function(e){var t;if(!this.is_disabled)return!e||"mousedown"!==(t=e.type)&&"touchstart"!==t||this.results_showing||e.preventDefault(),null!=e&&a(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||a(e.target)[0]!==this.selected_item[0]&&!a(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},t.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},t.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},t.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},t.prototype.close_field=function(){return a(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},t.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},t.prototype.test_active_click=function(e){var t;return(t=a(e.target).closest(".chosen-container")).length&&this.container[0]===t[0]?this.active_field=!0:this.close_field()},t.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=s.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},t.prototype.result_do_highlight=function(e){var t,n,i,o;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),(i=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop())<=(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight()))return this.search_results.scrollTop(0<t-i?t-i:0);if(n<o)return this.search_results.scrollTop(n)}},t.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},t.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},t.prototype.update_results_content=function(e){return this.search_results.html(e)},t.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},t.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},t.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),0<this.form_field_label.length)return this.form_field_label.on("click.chosen",this.label_click_handler)},t.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},t.prototype.search_results_mouseup=function(e){var t;if((t=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first()).length)return this.result_highlight=t,this.result_select(e),this.search_field.focus()},t.prototype.search_results_mouseover=function(e){var t;if(t=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first())return this.result_do_highlight(t)},t.prototype.search_results_mouseout=function(e){if(a(e.target).hasClass("active-result")||a(e.target).parents(".active-result").first())return this.result_clear_highlight()},t.prototype.choice_build=function(e){var t,n,i;return t=a("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?t.addClass("search-choice-disabled"):((n=a("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).on("click.chosen",(i=this,function(e){return i.choice_destroy_link_click(e)})),t.append(n)),this.search_container.before(t)},t.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(a(e.target))},t.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&0<this.choices_count()&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},t.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},t.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},t.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},t.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},t.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},t.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},t.prototype.get_search_field_value=function(){return this.search_field.val()},t.prototype.get_search_text=function(){return a.trim(this.get_search_field_value())},t.prototype.escape_html=function(e){return a("<div/>").text(e).html()},t.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},t.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},t.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},t.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},t.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(0<this.choices_count()&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},t.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},t.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},t.prototype.search_field_scale=function(){var e,t,n,i,o,r,s;if(this.is_multiple){for(o={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},t=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;t<n;t++)o[i=r[t]]=this.search_field.css(i);return(e=a("<div />").css(o)).text(this.get_search_field_value()),a("body").append(e),s=e.width()+25,e.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},t.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},t}()}.call(this),function(s){"use strict";function o(e,t,n){this.init(e,t,n)}function e(){this.rules=[]}s.extend(o.prototype,{init:function(e,t,n){this.controller=e,this.condition=t,this.value=n,this.rules=[],this.controls=[]},evalCondition:function(e,t,n,i,o){if("=="==n)return this.checkBoolean(i)==this.checkBoolean(o);if("!="==n)return this.checkBoolean(i)!=this.checkBoolean(o);if(">="==n)return Number(o)>=Number(i);if("<="==n)return Number(o)<=Number(i);if(">"==n)return Number(o)>Number(i);if("<"==n)return Number(o)<Number(i);if("()"==n)return window[i](e,t,o);if("any"==n){if(s.isArray(o)){for(var r=o.length-1;0<=r;r--)if(-1!==s.inArray(o[r],i.split(",")))return!0}else if(-1!==s.inArray(o,i.split(",")))return!0}else if("not-any"==n)if(s.isArray(o)){for(r=o.length-1;0<=r;r--)if(-1==s.inArray(o[r],i.split(",")))return!0}else if(-1==s.inArray(o,i.split(",")))return!0;return!1},checkBoolean:function(e){switch(e){case!0:case"true":case 1:case"1":e=!0;break;case null:case!1:case"false":case 0:case"0":e=!1}return e},checkCondition:function(e){if(!this.condition)return!0;var t=e.find(this.controller),n=this.getControlValue(e,t);return void 0!==n&&(n=this.normalizeValue(t,this.value,n),this.evalCondition(e,t,this.condition,this.value,n))},normalizeValue:function(e,t,n){return"number"==typeof t?parseFloat(n):n},getControlValue:function(e,t){return 1<t.length&&("radio"==t.attr("type")||"checkbox"==t.attr("type"))?t.filter(":checked").map(function(){return this.value}).get():"checkbox"==t.attr("type")||"radio"==t.attr("type")?t.is(":checked"):t.val()},createRule:function(e,t,n){var i=new o(e,t,n);return this.rules.push(i),i},include:function(e){this.controls.push(e)},applyRule:function(n,e){var t;t=void 0===e?this.checkCondition(n):e;var i=s.map(this.controls,function(e,t){return n.find(e)});t?(s(i).each(function(){s(this).removeClass("csf-depend-on")}),s(this.rules).each(function(){this.applyRule(n)})):(s(i).each(function(){s(this).addClass("csf-depend-on")}),s(this.rules).each(function(){this.applyRule(n,!1)}))}}),s.extend(e.prototype,{createRule:function(e,t,n){var i=new o(e,t,n);return this.rules.push(i),i},applyRules:function(e){s(this.rules).each(function(){this.applyRule(e)})}}),s.csf_deps={createRuleset:function(){return new e},enable:function(n,i,o){return n.on("change keyup",function(e){var t=e.target.getAttribute("data-depend-id")||e.target.getAttribute("data-sub-depend-id");-1!==o.indexOf(t)&&i.applyRules(n)}),i.applyRules(n),!0}}}(jQuery),function(e,n){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,t){return n(e,t)});else if("undefined"!=typeof exports){var t=require("jquery");n(exports,t)}else n(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t){var a={validate:/^(?!(_nonce|_pseudo))[a-zA-Z0-9_-]*(?:\[(?:\d*|(?!(_nonce|_pseudo))[a-zA-Z0-9_-]+)\])*$/i,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,named:/^[a-zA-Z0-9_-]+$/,push:/^$/,fixed:/^\d+$/};function n(i,e){var n={},r={};function s(e,t,n){return e[t]=n,e}function t(){return n}this.addPair=function(e){if(!a.validate.test(e.name))return this;var t=function(e,t){for(var n,i=e.match(a.key);void 0!==(n=i.pop());)a.push.test(n)?t=s([],(o=e.replace(/\[\]$/,""),void 0===r[o]&&(r[o]=0),r[o]++),t):a.fixed.test(n)?t=s([],n,t):a.named.test(n)&&(t=s({},n,t));var o;return t}(e.name,e.value);return n=i.extend(!0,n,t),this},this.addPairs=function(e){if(!i.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=e.length;t<n;t++)this.addPair(e[t]);return this},this.serialize=t,this.serializeJSON=function(){return JSON.stringify(t())}}return n.patterns=a,n.serializeObject=function(){return new n(t,this).addPairs(this.serializeArray()).serialize()},n.serializeJSON=function(){return new n(t,this).addPairs(this.serializeArray()).serializeJSON()},void 0!==t.fn&&(t.fn.serializeObjectCSF=n.serializeObject,t.fn.serializeJSONCSF=n.serializeJSON),e.FormSerializer=n});
     3!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,function(){"use strict";var ee=function(){return(ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function te(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}var ne=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ie={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},oe={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(3<t&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},re=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},se=function(e){return!0===e?1:0};function ae(t,n){var i;return function(){var e=this;clearTimeout(i),i=setTimeout(function(){return t.apply(e,arguments)},n)}}var le=function(e){return e instanceof Array?e:[e]};function ce(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function ue(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function he(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function de(e,t){var n=ue("div","numInputWrapper"),i=ue("input","numInput "+e),o=ue("span","arrowUp"),r=ue("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var s in t)i.setAttribute(s,t[s]);return n.appendChild(i),n.appendChild(o),n.appendChild(r),n}function fe(t){try{return"function"!=typeof t.composedPath?t.target:t.composedPath()[0]}catch(e){return t.target}}var e=function(){},pe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},b={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*se(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},_e={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return pe(l.n(e,t,n)-1,!1,t)},G:function(e,t,n){return re(l.h(e,t,n))},H:function(e){return re(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[se(11<e.getHours())]},M:function(e,t){return pe(e.getMonth(),!0,t)},S:function(e){return re(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return re(e.getFullYear(),4)},d:function(e){return re(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return re(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return re(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},me=function(e){var t=e.config,r=void 0===t?ie:t,n=e.l10n,s=void 0===n?oe:n,i=e.isMobile,a=void 0!==i&&i;return function(i,e,t){var o=t||s;return void 0===r.formatDate||a?e.split("").map(function(e,t,n){return l[e]&&"\\"!==n[t-1]?l[e](i,o,r):"\\"!==e?e:""}).join(""):r.formatDate(i,e,o)}},ge=function(e){var t=e.config,v=void 0===t?ie:t,n=e.l10n,y=void 0===n?oe:n;return function(e,t,n,i){if(0===e||e){var o,r=i||y,s=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var a=t||(v||ie).dateFormat,l=String(e).trim();if("today"===l)o=new Date,n=!0;else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(v&&v.parseDate)o=v.parseDate(e,a);else{o=v&&v.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var c=void 0,u=[],h=0,d=0,f="";h<a.length;h++){var p=a[h],_="\\"===p,m="\\"===a[h-1]||_;if(_e[p]&&!m){f+=_e[p];var g=new RegExp(f).exec(e);g&&(c=!0)&&u["Y"!==p?"push":"unshift"]({fn:b[p],val:g[++d]})}else _||(f+=".");u.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,r)||o})}o=c?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;v.errorHandler(new Error("Invalid date provided: "+s))}}};function ve(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var ye=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},be={DAY:864e5};function we(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),r=e.minDate.getMinutes(),s=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<r&&(n=r),t===o&&n===r&&i<s&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var a=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,a))===a&&(n=Math.min(l,n)),t===a&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(e){return n[e]=t[e]})},o=0,r=e;o<r.length;o++){i(r[o])}return n});var De=300;function s(d,u){var D={config:ee(ee({},ie),Ce.defaultConfig),l10n:oe};function h(e){return e.bind(D)}function t(){var t=D.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==D.calendarContainer&&(D.calendarContainer.style.visibility="hidden",D.calendarContainer.style.display="block"),void 0!==D.daysContainer){var e=(D.days.offsetWidth+1)*t.showMonths;D.daysContainer.style.width=e+"px",D.calendarContainer.style.width=e+(void 0!==D.weekWrapper?D.weekWrapper.offsetWidth:0)+"px",D.calendarContainer.style.removeProperty("visibility"),D.calendarContainer.style.removeProperty("display")}})}function f(e){if(0===D.selectedDates.length){var t=void 0===D.config.minDate||0<=ve(new Date,D.config.minDate)?new Date:new Date(D.config.minDate.getTime()),n=we(D.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),D.selectedDates=[t],D.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=fe(e),i=n;void 0!==D.amPM&&n===D.amPM&&(D.amPM.textContent=D.l10n.amPM[se(D.amPM.textContent===D.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),r=parseFloat(i.getAttribute("max")),s=parseFloat(i.getAttribute("step")),a=parseInt(i.value,10),l=e.delta||(t?38===e.which?1:-1:0),c=a+s*l;if(void 0!==i.value&&2===i.value.length){var u=i===D.hourElement,h=i===D.minuteElement;c<o?(c=r+c+se(!u)+(se(u)&&se(!D.amPM)),h&&_(void 0,-1,D.hourElement)):r<c&&(c=i===D.hourElement?c-r-se(!D.amPM):o,h&&_(void 0,1,D.hourElement)),D.amPM&&u&&(1===s?c+a===23:Math.abs(c-a)>s)&&(D.amPM.textContent=D.l10n.amPM[se(D.amPM.textContent===D.l10n.amPM[0])]),i.value=re(c)}}(e);var i=D._input.value;p(),X(),D._input.value!==i&&D._debouncedChange()}function p(){if(void 0!==D.hourElement&&void 0!==D.minuteElement){var e,t,n=(parseInt(D.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(D.minuteElement.value,10)||0)%60,o=void 0!==D.secondElement?(parseInt(D.secondElement.value,10)||0)%60:0;void 0!==D.amPM&&(e=n,t=D.amPM.textContent,n=e%12+12*se(t===D.l10n.amPM[1]));var r=void 0!==D.config.minTime||D.config.minDate&&D.minDateHasTime&&D.latestSelectedDateObj&&0===ve(D.latestSelectedDateObj,D.config.minDate,!0);if(void 0!==D.config.maxTime||D.config.maxDate&&D.maxDateHasTime&&D.latestSelectedDateObj&&0===ve(D.latestSelectedDateObj,D.config.maxDate,!0)){var s=void 0!==D.config.maxTime?D.config.maxTime:D.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(r){var a=void 0!==D.config.minTime?D.config.minTime:D.config.minDate;(n=Math.max(n,a.getHours()))===a.getHours()&&i<a.getMinutes()&&(i=a.getMinutes()),i===a.getMinutes()&&(o=Math.max(o,a.getSeconds()))}l(n,i,o)}}function o(e){var t=e||D.latestSelectedDateObj;t&&l(t.getHours(),t.getMinutes(),t.getSeconds())}function l(e,t,n){void 0!==D.latestSelectedDateObj&&D.latestSelectedDateObj.setHours(e%24,t,n||0,0),D.hourElement&&D.minuteElement&&!D.isMobile&&(D.hourElement.value=re(D.config.time_24hr?e:(12+e)%12+12*se(e%12==0)),D.minuteElement.value=re(t),void 0!==D.amPM&&(D.amPM.textContent=D.l10n.amPM[se(12<=e)]),void 0!==D.secondElement&&(D.secondElement.value=re(n)))}function n(e){var t=fe(e),n=parseInt(t.value)+(e.delta||0);(1<n/1e3||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&S(n)}function s(t,n,i,o){return n instanceof Array?n.forEach(function(e){return s(t,e,i,o)}):t instanceof Array?t.forEach(function(e){return s(e,n,i,o)}):(t.addEventListener(n,i,o),void D._handlers.push({remove:function(){return t.removeEventListener(n,i)}}))}function c(){K("onChange")}function i(e,t){var n=void 0!==e?D.parseDate(e):D.latestSelectedDateObj||(D.config.minDate&&D.config.minDate>D.now?D.config.minDate:D.config.maxDate&&D.config.maxDate<D.now?D.config.maxDate:D.now),i=D.currentYear,o=D.currentMonth;try{void 0!==n&&(D.currentYear=n.getFullYear(),D.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,D.config.errorHandler(e)}t&&D.currentYear!==i&&(K("onYearChange"),w()),!t||D.currentYear===i&&D.currentMonth===o||K("onMonthChange"),D.redraw()}function r(e){var t=fe(e);~t.className.indexOf("arrow")&&_(e,t.classList.contains("arrowUp")?1:-1)}function _(e,t,n){var i=e&&fe(e),o=n||i&&i.parentNode&&i.parentNode.firstChild,r=$("increment");r.delta=t,o&&o.dispatchEvent(r)}function m(e,t,n,i){var o,r=A(t,!0),s=ue("span","flatpickr-day "+e,t.getDate().toString());return s.dateObj=t,s.$i=i,s.setAttribute("aria-label",D.formatDate(t,D.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===ve(t,D.now)&&((D.todayDateElem=s).classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,Q(t)&&(s.classList.add("selected"),D.selectedDateElem=s,"range"===D.config.mode&&(ce(s,"startRange",D.selectedDates[0]&&0===ve(t,D.selectedDates[0],!0)),ce(s,"endRange",D.selectedDates[1]&&0===ve(t,D.selectedDates[1],!0)),"nextMonthDay"===e&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===D.config.mode&&(o=t,!("range"!==D.config.mode||D.selectedDates.length<2)&&0<=ve(o,D.selectedDates[0])&&ve(o,D.selectedDates[1])<=0&&!Q(t)&&s.classList.add("inRange")),D.weekNumbers&&1===D.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&D.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+D.config.getWeek(t)+"</span>"),K("onDayCreate",s),s}function g(e){e.focus(),"range"===D.config.mode&&F(e)}function v(e){for(var t=0<e?0:D.config.showMonths-1,n=0<e?D.config.showMonths:-1,i=t;i!=n;i+=e)for(var o=D.daysContainer.children[i],r=0<e?0:o.children.length-1,s=0<e?o.children.length:-1,a=r;a!=s;a+=e){var l=o.children[a];if(-1===l.className.indexOf("hidden")&&A(l.dateObj))return l}}function y(e,t){var n=I(document.activeElement||document.body),i=void 0!==e?e:n?document.activeElement:void 0!==D.selectedDateElem&&I(D.selectedDateElem)?D.selectedDateElem:void 0!==D.todayDateElem&&I(D.todayDateElem)?D.todayDateElem:v(0<t?1:-1);void 0===i?D._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():D.currentMonth,i=0<t?D.config.showMonths:-1,o=0<t?1:-1,r=n-D.currentMonth;r!=i;r+=o)for(var s=D.daysContainer.children[r],a=n-D.currentMonth===r?e.$i+t:t<0?s.children.length-1:0,l=s.children.length,c=a;0<=c&&c<l&&c!=(0<t?l:-1);c+=o){var u=s.children[c];if(-1===u.className.indexOf("hidden")&&A(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return g(u)}D.changeMonth(o),y(v(o),0)}(i,t):g(i)}function a(e,t){for(var n=(new Date(e,t,1).getDay()-D.l10n.firstDayOfWeek+7)%7,i=D.utils.getDaysInMonth((t-1+12)%12,e),o=D.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),s=1<D.config.showMonths,a=s?"prevMonthDay hidden":"prevMonthDay",l=s?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,u=0;c<=i;c++,u++)r.appendChild(m(a,new Date(e,t-1,c),c,u));for(c=1;c<=o;c++,u++)r.appendChild(m("",new Date(e,t,c),c,u));for(var h=o+1;h<=42-n&&(1===D.config.showMonths||u%7!=0);h++,u++)r.appendChild(m(l,new Date(e,t+1,h%o),h,u));var d=ue("div","dayContainer");return d.appendChild(r),d}function b(){if(void 0!==D.daysContainer){he(D.daysContainer),D.weekNumbers&&he(D.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<D.config.showMonths;t++){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),e.appendChild(a(n.getFullYear(),n.getMonth()))}D.daysContainer.appendChild(e),D.days=D.daysContainer.firstChild,"range"===D.config.mode&&1===D.selectedDates.length&&F()}}function w(){if(!(1<D.config.showMonths||"dropdown"!==D.config.monthSelectorType)){var e;D.monthsDropdownContainer.tabIndex=-1,D.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e=t,!(void 0!==D.config.minDate&&D.currentYear===D.config.minDate.getFullYear()&&e<D.config.minDate.getMonth()||void 0!==D.config.maxDate&&D.currentYear===D.config.maxDate.getFullYear()&&e>D.config.maxDate.getMonth())){var n=ue("option","flatpickr-monthDropdown-month");n.value=new Date(D.currentYear,t).getMonth().toString(),n.textContent=pe(t,D.config.shorthandCurrentMonth,D.l10n),n.tabIndex=-1,D.currentMonth===t&&(n.selected=!0),D.monthsDropdownContainer.appendChild(n)}}}function C(){var e,t=ue("div","flatpickr-month"),n=window.document.createDocumentFragment();e=1<D.config.showMonths||"static"===D.config.monthSelectorType?ue("span","cur-month"):(D.monthsDropdownContainer=ue("select","flatpickr-monthDropdown-months"),D.monthsDropdownContainer.setAttribute("aria-label",D.l10n.monthAriaLabel),s(D.monthsDropdownContainer,"change",function(e){var t=fe(e),n=parseInt(t.value,10);D.changeMonth(n-D.currentMonth),K("onMonthChange")}),w(),D.monthsDropdownContainer);var i=de("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",D.l10n.yearAriaLabel),D.config.minDate&&o.setAttribute("min",D.config.minDate.getFullYear().toString()),D.config.maxDate&&(o.setAttribute("max",D.config.maxDate.getFullYear().toString()),o.disabled=!!D.config.minDate&&D.config.minDate.getFullYear()===D.config.maxDate.getFullYear());var r=ue("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function x(){he(D.monthNav),D.monthNav.appendChild(D.prevMonthNav),D.config.showMonths&&(D.yearElements=[],D.monthElements=[]);for(var e=D.config.showMonths;e--;){var t=C();D.yearElements.push(t.yearElement),D.monthElements.push(t.monthElement),D.monthNav.appendChild(t.container)}D.monthNav.appendChild(D.nextMonthNav)}function M(){D.weekdayContainer?he(D.weekdayContainer):D.weekdayContainer=ue("div","flatpickr-weekdays");for(var e=D.config.showMonths;e--;){var t=ue("div","flatpickr-weekdaycontainer");D.weekdayContainer.appendChild(t)}return k(),D.weekdayContainer}function k(){if(D.weekdayContainer){var e=D.l10n.firstDayOfWeek,t=te(D.l10n.weekdays.shorthand);0<e&&e<t.length&&(t=te(t.splice(e,t.length),t.splice(0,e)));for(var n=D.config.showMonths;n--;)D.weekdayContainer.children[n].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function E(e,t){void 0===t&&(t=!0);var n=t?e:e-D.currentMonth;n<0&&!0===D._hidePrevMonthArrow||0<n&&!0===D._hideNextMonthArrow||(D.currentMonth+=n,(D.currentMonth<0||11<D.currentMonth)&&(D.currentYear+=11<D.currentMonth?1:-1,D.currentMonth=(D.currentMonth+12)%12,K("onYearChange"),w()),b(),K("onMonthChange"),V())}function T(e){return!(!D.config.appendTo||!D.config.appendTo.contains(e))||D.calendarContainer.contains(e)}function O(e){if(D.isOpen&&!D.config.inline){var t=fe(e),n=T(t),i=t===D.input||t===D.altInput||D.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(D.input)||~e.path.indexOf(D.altInput)),o="blur"===e.type?i&&e.relatedTarget&&!T(e.relatedTarget):!i&&!n&&!T(e.relatedTarget),r=!D.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&r&&(void 0!==D.timeContainer&&void 0!==D.minuteElement&&void 0!==D.hourElement&&""!==D.input.value&&void 0!==D.input.value&&f(),D.close(),D.config&&"range"===D.config.mode&&1===D.selectedDates.length&&(D.clear(!1),D.redraw()))}}function S(e){if(!(!e||D.config.minDate&&e<D.config.minDate.getFullYear()||D.config.maxDate&&e>D.config.maxDate.getFullYear())){var t=e,n=D.currentYear!==t;D.currentYear=t||D.currentYear,D.config.maxDate&&D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth=Math.min(D.config.maxDate.getMonth(),D.currentMonth):D.config.minDate&&D.currentYear===D.config.minDate.getFullYear()&&(D.currentMonth=Math.max(D.config.minDate.getMonth(),D.currentMonth)),n&&(D.redraw(),K("onYearChange"),w())}}function A(e,t){var n;void 0===t&&(t=!0);var i=D.parseDate(e,void 0,t);if(D.config.minDate&&i&&ve(i,D.config.minDate,void 0!==t?t:!D.minDateHasTime)<0||D.config.maxDate&&i&&0<ve(i,D.config.maxDate,void 0!==t?t:!D.maxDateHasTime))return!1;if(!D.config.enable&&0===D.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!D.config.enable,r=null!==(n=D.config.enable)&&void 0!==n?n:D.config.disable,s=0,a=void 0;s<r.length;s++){if("function"==typeof(a=r[s])&&a(i))return o;if(a instanceof Date&&void 0!==i&&a.getTime()===i.getTime())return o;if("string"==typeof a){var l=D.parseDate(a,void 0,!0);return l&&l.getTime()===i.getTime()?o:!o}if("object"==typeof a&&void 0!==i&&a.from&&a.to&&i.getTime()>=a.from.getTime()&&i.getTime()<=a.to.getTime())return o}return!o}function I(e){return void 0!==D.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&D.daysContainer.contains(e))}function N(e){!(e.target===D._input)||!(0<D.selectedDates.length||0<D._input.value.length)||e.relatedTarget&&T(e.relatedTarget)||D.setDate(D._input.value,!0,e.target===D.altInput?D.config.altFormat:D.config.dateFormat)}function j(e){var t=fe(e),n=D.config.wrap?d.contains(t):t===D._input,i=D.config.allowInput,o=D.isOpen&&(!i||!n),r=D.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return D.setDate(D._input.value,!0,t===D.altInput?D.config.altFormat:D.config.dateFormat),t.blur();D.open()}else if(T(t)||o||r){var s=!!D.timeContainer&&D.timeContainer.contains(t);switch(e.keyCode){case 13:s?(e.preventDefault(),f(),W()):B(e);break;case 27:e.preventDefault(),W();break;case 8:case 46:n&&!D.config.allowInput&&(e.preventDefault(),D.clear());break;case 37:case 39:if(s||n)D.hourElement&&D.hourElement.focus();else if(e.preventDefault(),void 0!==D.daysContainer&&(!1===i||document.activeElement&&I(document.activeElement))){var a=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),E(a),y(v(1),0)):y(void 0,a)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;D.daysContainer&&void 0!==t.$i||t===D.input||t===D.altInput?e.ctrlKey?(e.stopPropagation(),S(D.currentYear-l),y(v(1),0)):s||y(void 0,7*l):t===D.currentYearElement?S(D.currentYear-l):D.config.enableTime&&(!s&&D.hourElement&&D.hourElement.focus(),f(e),D._debouncedChange());break;case 9:if(s){var c=[D.hourElement,D.minuteElement,D.secondElement,D.amPM].concat(D.pluginElements).filter(function(e){return e}),u=c.indexOf(t);if(-1!==u){var h=c[u+(e.shiftKey?-1:1)];e.preventDefault(),(h||D._input).focus()}}else!D.config.noCalendar&&D.daysContainer&&D.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),D._input.focus())}}if(void 0!==D.amPM&&t===D.amPM)switch(e.key){case D.l10n.amPM[0].charAt(0):case D.l10n.amPM[0].charAt(0).toLowerCase():D.amPM.textContent=D.l10n.amPM[0],p(),X();break;case D.l10n.amPM[1].charAt(0):case D.l10n.amPM[1].charAt(0).toLowerCase():D.amPM.textContent=D.l10n.amPM[1],p(),X()}(n||T(t))&&K("onKeyDown",e)}function F(r){if(1===D.selectedDates.length&&(!r||r.classList.contains("flatpickr-day")&&!r.classList.contains("flatpickr-disabled"))){for(var s=r?r.dateObj.getTime():D.days.firstElementChild.dateObj.getTime(),a=D.parseDate(D.selectedDates[0],void 0,!0).getTime(),e=Math.min(s,D.selectedDates[0].getTime()),t=Math.max(s,D.selectedDates[0].getTime()),l=!1,c=0,u=0,n=e;n<t;n+=be.DAY)A(new Date(n),!0)||(l=l||e<n&&n<t,n<a&&(!c||c<n)?c=n:a<n&&(!u||n<u)&&(u=n));for(var i=0;i<D.config.showMonths;i++)for(var h=D.daysContainer.children[i],o=function(e,t){var n=h.children[e],i=n.dateObj.getTime(),o=0<c&&i<c||0<u&&u<i;return o?(n.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)}),"continue"):l&&!o?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)}),void(void 0!==r&&(r.classList.add(s<=D.selectedDates[0].getTime()?"startRange":"endRange"),a<s&&i===a?n.classList.add("startRange"):s<a&&i===a&&n.classList.add("endRange"),c<=i&&(0===u||i<=u)&&ye(i,a,s)&&n.classList.add("inRange"))))},d=0,f=h.children.length;d<f;d++)o(d)}}function P(){!D.isOpen||D.config.static||D.config.inline||R()}function Y(i){return function(e){var t=D.config["_"+i+"Date"]=D.parseDate(e,D.config.dateFormat),n=D.config["_"+("min"===i?"max":"min")+"Date"];void 0!==t&&(D["min"===i?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),D.selectedDates&&(D.selectedDates=D.selectedDates.filter(function(e){return A(e)}),D.selectedDates.length||"min"!==i||o(t),X()),D.daysContainer&&(q(),void 0!==t?D.currentYearElement[i]=t.getFullYear().toString():D.currentYearElement.removeAttribute(i),D.currentYearElement.disabled=!!n&&void 0!==t&&n.getFullYear()===t.getFullYear())}}function H(){return D.config.wrap?d.querySelector("[data-input]"):d}function L(){"object"!=typeof D.config.locale&&void 0===Ce.l10ns[D.config.locale]&&D.config.errorHandler(new Error("flatpickr: invalid locale "+D.config.locale)),D.l10n=ee(ee({},Ce.l10ns.default),"object"==typeof D.config.locale?D.config.locale:"default"!==D.config.locale?Ce.l10ns[D.config.locale]:void 0),_e.K="("+D.l10n.amPM[0]+"|"+D.l10n.amPM[1]+"|"+D.l10n.amPM[0].toLowerCase()+"|"+D.l10n.amPM[1].toLowerCase()+")",void 0===ee(ee({},u),JSON.parse(JSON.stringify(d.dataset||{}))).time_24hr&&void 0===Ce.defaultConfig.time_24hr&&(D.config.time_24hr=D.l10n.time_24hr),D.formatDate=me(D),D.parseDate=ge({config:D.config,l10n:D.l10n})}function R(e){if("function"!=typeof D.config.position){if(void 0!==D.calendarContainer){K("onPreCalendarPosition");var t=e||D._positionElement,n=Array.prototype.reduce.call(D.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=D.calendarContainer.offsetWidth,o=D.config.position.split(" "),r=o[0],s=1<o.length?o[1]:null,a=t.getBoundingClientRect(),l=window.innerHeight-a.bottom,c="above"===r||"below"!==r&&l<n&&a.top>n,u=window.pageYOffset+a.top+(c?-n-2:t.offsetHeight+2);if(ce(D.calendarContainer,"arrowTop",!c),ce(D.calendarContainer,"arrowBottom",c),!D.config.inline){var h=window.pageXOffset+a.left,d=!1,f=!1;"center"===s?(h-=(i-a.width)/2,d=!0):"right"===s&&(h-=i-a.width,f=!0),ce(D.calendarContainer,"arrowLeft",!d&&!f),ce(D.calendarContainer,"arrowCenter",d),ce(D.calendarContainer,"arrowRight",f);var p=window.document.body.offsetWidth-(window.pageXOffset+a.right),_=h+i>window.document.body.offsetWidth,m=p+i>window.document.body.offsetWidth;if(ce(D.calendarContainer,"rightMost",_),!D.config.static)if(D.calendarContainer.style.top=u+"px",_)if(m){var g=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===g)return;var v=window.document.body.offsetWidth,y=Math.max(0,v/2-i/2),b=g.cssRules.length,w="{left:"+a.left+"px;right:auto;}";ce(D.calendarContainer,"rightMost",!1),ce(D.calendarContainer,"centerMost",!0),g.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,b),D.calendarContainer.style.left=y+"px",D.calendarContainer.style.right="auto"}else D.calendarContainer.style.left="auto",D.calendarContainer.style.right=p+"px";else D.calendarContainer.style.left=h+"px",D.calendarContainer.style.right="auto"}}}else D.config.position(D,e)}function q(){D.config.noCalendar||D.isMobile||(w(),V(),b())}function W(){D._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(D.close,0):D.close()}function B(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(fe(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,i=D.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<D.currentMonth||i.getMonth()>D.currentMonth+D.config.showMonths-1)&&"range"!==D.config.mode;if(D.selectedDateElem=n,"single"===D.config.mode)D.selectedDates=[i];else if("multiple"===D.config.mode){var r=Q(i);r?D.selectedDates.splice(parseInt(r),1):D.selectedDates.push(i)}else"range"===D.config.mode&&(2===D.selectedDates.length&&D.clear(!1,!1),D.latestSelectedDateObj=i,D.selectedDates.push(i),0!==ve(i,D.selectedDates[0],!0)&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(p(),o){var s=D.currentYear!==i.getFullYear();D.currentYear=i.getFullYear(),D.currentMonth=i.getMonth(),s&&(K("onYearChange"),w()),K("onMonthChange")}if(V(),b(),X(),o||"range"===D.config.mode||1!==D.config.showMonths?void 0!==D.selectedDateElem&&void 0===D.hourElement&&D.selectedDateElem&&D.selectedDateElem.focus():g(n),void 0!==D.hourElement&&void 0!==D.hourElement&&D.hourElement.focus(),D.config.closeOnSelect){var a="single"===D.config.mode&&!D.config.enableTime,l="range"===D.config.mode&&2===D.selectedDates.length&&!D.config.enableTime;(a||l)&&W()}c()}}D.parseDate=ge({config:D.config,l10n:D.l10n}),D._handlers=[],D.pluginElements=[],D.loadedPlugins=[],D._bind=s,D._setHoursFromDate=o,D._positionCalendar=R,D.changeMonth=E,D.changeYear=S,D.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);D.input.value="",void 0!==D.altInput&&(D.altInput.value="");void 0!==D.mobileInput&&(D.mobileInput.value="");D.selectedDates=[],!(D.latestSelectedDateObj=void 0)===t&&(D.currentYear=D._initialDate.getFullYear(),D.currentMonth=D._initialDate.getMonth());if(!0===D.config.enableTime){var n=we(D.config),i=n.hours,o=n.minutes,r=n.seconds;l(i,o,r)}D.redraw(),e&&K("onChange")},D.close=function(){D.isOpen=!1,D.isMobile||(void 0!==D.calendarContainer&&D.calendarContainer.classList.remove("open"),void 0!==D._input&&D._input.classList.remove("active"));K("onClose")},D._createElement=ue,D.destroy=function(){void 0!==D.config&&K("onDestroy");for(var e=D._handlers.length;e--;)D._handlers[e].remove();if(D._handlers=[],D.mobileInput)D.mobileInput.parentNode&&D.mobileInput.parentNode.removeChild(D.mobileInput),D.mobileInput=void 0;else if(D.calendarContainer&&D.calendarContainer.parentNode)if(D.config.static&&D.calendarContainer.parentNode){var t=D.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else D.calendarContainer.parentNode.removeChild(D.calendarContainer);D.altInput&&(D.input.type="text",D.altInput.parentNode&&D.altInput.parentNode.removeChild(D.altInput),delete D.altInput);D.input&&(D.input.type=D.input._type,D.input.classList.remove("flatpickr-input"),D.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete D[e]}catch(e){}})},D.isEnabled=A,D.jumpToDate=i,D.open=function(e,t){void 0===t&&(t=D._positionElement);{if(!0===D.isMobile){if(e){e.preventDefault();var n=fe(e);n&&n.blur()}return void 0!==D.mobileInput&&(D.mobileInput.focus(),D.mobileInput.click()),void K("onOpen")}if(D._input.disabled||D.config.inline)return}var i=D.isOpen;D.isOpen=!0,i||(D.calendarContainer.classList.add("open"),D._input.classList.add("active"),K("onOpen"),R(t));!0===D.config.enableTime&&!0===D.config.noCalendar&&(!1!==D.config.allowInput||void 0!==e&&D.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return D.hourElement.select()},50))},D.redraw=q,D.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(D.config,e),e)void 0!==z[n]&&z[n].forEach(function(e){return e()});else D.config[e]=t,void 0!==z[e]?z[e].forEach(function(e){return e()}):-1<ne.indexOf(e)&&(D.config[e]=le(t));D.redraw(),X(!0)},D.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=D.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return D.clear(t);U(e,n),D.latestSelectedDateObj=D.selectedDates[D.selectedDates.length-1],D.redraw(),i(void 0,t),o(),0===D.selectedDates.length&&D.clear(!1);X(t),t&&K("onChange")},D.toggle=function(e){if(!0===D.isOpen)return D.close();D.open(e)};var z={locale:[L,k],showMonths:[x,t,M],minDate:[i],maxDate:[i],clickOpens:[function(){!0===D.config.clickOpens?(s(D._input,"focus",D.open),s(D._input,"click",D.open)):(D._input.removeEventListener("focus",D.open),D._input.removeEventListener("click",D.open))}]};function U(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return D.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[D.parseDate(e,t)];else if("string"==typeof e)switch(D.config.mode){case"single":case"time":n=[D.parseDate(e,t)];break;case"multiple":n=e.split(D.config.conjunction).map(function(e){return D.parseDate(e,t)});break;case"range":n=e.split(D.l10n.rangeSeparator).map(function(e){return D.parseDate(e,t)})}else D.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));D.selectedDates=D.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&A(e,!1)}),"range"===D.config.mode&&D.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function J(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?D.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:D.parseDate(e.from,void 0),to:D.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function K(e,t){if(void 0!==D.config){var n=D.config[e];if(void 0!==n&&0<n.length)for(var i=0;n[i]&&i<n.length;i++)n[i](D.selectedDates,D.input.value,D,t);"onChange"===e&&(D.input.dispatchEvent($("change")),D.input.dispatchEvent($("input")))}}function $(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Q(e){for(var t=0;t<D.selectedDates.length;t++)if(0===ve(D.selectedDates[t],e))return""+t;return!1}function V(){D.config.noCalendar||D.isMobile||!D.monthNav||(D.yearElements.forEach(function(e,t){var n=new Date(D.currentYear,D.currentMonth,1);n.setMonth(D.currentMonth+t),1<D.config.showMonths||"static"===D.config.monthSelectorType?D.monthElements[t].textContent=pe(n.getMonth(),D.config.shorthandCurrentMonth,D.l10n)+" ":D.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),D._hidePrevMonthArrow=void 0!==D.config.minDate&&(D.currentYear===D.config.minDate.getFullYear()?D.currentMonth<=D.config.minDate.getMonth():D.currentYear<D.config.minDate.getFullYear()),D._hideNextMonthArrow=void 0!==D.config.maxDate&&(D.currentYear===D.config.maxDate.getFullYear()?D.currentMonth+1>D.config.maxDate.getMonth():D.currentYear>D.config.maxDate.getFullYear()))}function G(t){return D.selectedDates.map(function(e){return D.formatDate(e,t)}).filter(function(e,t,n){return"range"!==D.config.mode||D.config.enableTime||n.indexOf(e)===t}).join("range"!==D.config.mode?D.config.conjunction:D.l10n.rangeSeparator)}function X(e){void 0===e&&(e=!0),void 0!==D.mobileInput&&D.mobileFormatStr&&(D.mobileInput.value=void 0!==D.latestSelectedDateObj?D.formatDate(D.latestSelectedDateObj,D.mobileFormatStr):""),D.input.value=G(D.config.dateFormat),void 0!==D.altInput&&(D.altInput.value=G(D.config.altFormat)),!1!==e&&K("onValueUpdate")}function Z(e){var t=fe(e),n=D.prevMonthNav.contains(t),i=D.nextMonthNav.contains(t);n||i?E(n?-1:1):0<=D.yearElements.indexOf(t)?t.select():t.classList.contains("arrowUp")?D.changeYear(D.currentYear+1):t.classList.contains("arrowDown")&&D.changeYear(D.currentYear-1)}return function(){D.element=D.input=d,D.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=ee(ee({},JSON.parse(JSON.stringify(d.dataset||{}))),u),n={};D.config.parseDate=t.parseDate,D.config.formatDate=t.formatDate,Object.defineProperty(D.config,"enable",{get:function(){return D.config._enable},set:function(e){D.config._enable=J(e)}}),Object.defineProperty(D.config,"disable",{get:function(){return D.config._disable},set:function(e){D.config._disable=J(e)}});var i="time"===t.mode;if(!t.dateFormat&&(t.enableTime||i)){var o=Ce.defaultConfig.dateFormat||ie.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):o+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var r=Ce.defaultConfig.altFormat||ie.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):r+" h:i"+(t.enableSeconds?":S":"")+" K"}Object.defineProperty(D.config,"minDate",{get:function(){return D.config._minDate},set:Y("min")}),Object.defineProperty(D.config,"maxDate",{get:function(){return D.config._maxDate},set:Y("max")});var s=function(t){return function(e){D.config["min"===t?"_minTime":"_maxTime"]=D.parseDate(e,"H:i:S")}};Object.defineProperty(D.config,"minTime",{get:function(){return D.config._minTime},set:s("min")}),Object.defineProperty(D.config,"maxTime",{get:function(){return D.config._maxTime},set:s("max")}),"time"===t.mode&&(D.config.noCalendar=!0,D.config.enableTime=!0),Object.assign(D.config,n,t);for(var a=0;a<e.length;a++)D.config[e[a]]=!0===D.config[e[a]]||"true"===D.config[e[a]];ne.filter(function(e){return void 0!==D.config[e]}).forEach(function(e){D.config[e]=le(D.config[e]||[]).map(h)}),D.isMobile=!D.config.disableMobile&&!D.config.inline&&"single"===D.config.mode&&!D.config.disable.length&&!D.config.enable&&!D.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var a=0;a<D.config.plugins.length;a++){var l=D.config.plugins[a](D)||{};for(var c in l)-1<ne.indexOf(c)?D.config[c]=le(l[c]).map(h).concat(D.config[c]):void 0===t[c]&&(D.config[c]=l[c])}t.altInputClass||(D.config.altInputClass=H().className+" "+D.config.altInputClass),K("onParseConfig")}(),L(),function(){if(D.input=H(),!D.input)return D.config.errorHandler(new Error("Invalid input element specified"));D.input._type=D.input.type,D.input.type="text",D.input.classList.add("flatpickr-input"),D._input=D.input,D.config.altInput&&(D.altInput=ue(D.input.nodeName,D.config.altInputClass),D._input=D.altInput,D.altInput.placeholder=D.input.placeholder,D.altInput.disabled=D.input.disabled,D.altInput.required=D.input.required,D.altInput.tabIndex=D.input.tabIndex,D.altInput.type="text",D.input.setAttribute("type","hidden"),!D.config.static&&D.input.parentNode&&D.input.parentNode.insertBefore(D.altInput,D.input.nextSibling)),D.config.allowInput||D._input.setAttribute("readonly","readonly"),D._positionElement=D.config.positionElement||D._input}(),function(){D.selectedDates=[],D.now=D.parseDate(D.config.now)||new Date;var e=D.config.defaultDate||("INPUT"!==D.input.nodeName&&"TEXTAREA"!==D.input.nodeName||!D.input.placeholder||D.input.value!==D.input.placeholder?D.input.value:null);e&&U(e,D.config.dateFormat),D._initialDate=0<D.selectedDates.length?D.selectedDates[0]:D.config.minDate&&D.config.minDate.getTime()>D.now.getTime()?D.config.minDate:D.config.maxDate&&D.config.maxDate.getTime()<D.now.getTime()?D.config.maxDate:D.now,D.currentYear=D._initialDate.getFullYear(),D.currentMonth=D._initialDate.getMonth(),0<D.selectedDates.length&&(D.latestSelectedDateObj=D.selectedDates[0]),void 0!==D.config.minTime&&(D.config.minTime=D.parseDate(D.config.minTime,"H:i")),void 0!==D.config.maxTime&&(D.config.maxTime=D.parseDate(D.config.maxTime,"H:i")),D.minDateHasTime=!!D.config.minDate&&(0<D.config.minDate.getHours()||0<D.config.minDate.getMinutes()||0<D.config.minDate.getSeconds()),D.maxDateHasTime=!!D.config.maxDate&&(0<D.config.maxDate.getHours()||0<D.config.maxDate.getMinutes()||0<D.config.maxDate.getSeconds())}(),D.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=D.currentMonth),void 0===t&&(t=D.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:D.l10n.daysInMonth[e]}},D.isMobile||function(){var e=window.document.createDocumentFragment();if(D.calendarContainer=ue("div","flatpickr-calendar"),D.calendarContainer.tabIndex=-1,!D.config.noCalendar){if(e.appendChild((D.monthNav=ue("div","flatpickr-months"),D.yearElements=[],D.monthElements=[],D.prevMonthNav=ue("span","flatpickr-prev-month"),D.prevMonthNav.innerHTML=D.config.prevArrow,D.nextMonthNav=ue("span","flatpickr-next-month"),D.nextMonthNav.innerHTML=D.config.nextArrow,x(),Object.defineProperty(D,"_hidePrevMonthArrow",{get:function(){return D.__hidePrevMonthArrow},set:function(e){D.__hidePrevMonthArrow!==e&&(ce(D.prevMonthNav,"flatpickr-disabled",e),D.__hidePrevMonthArrow=e)}}),Object.defineProperty(D,"_hideNextMonthArrow",{get:function(){return D.__hideNextMonthArrow},set:function(e){D.__hideNextMonthArrow!==e&&(ce(D.nextMonthNav,"flatpickr-disabled",e),D.__hideNextMonthArrow=e)}}),D.currentYearElement=D.yearElements[0],V(),D.monthNav)),D.innerContainer=ue("div","flatpickr-innerContainer"),D.config.weekNumbers){var t=function(){D.calendarContainer.classList.add("hasWeeks");var e=ue("div","flatpickr-weekwrapper");e.appendChild(ue("span","flatpickr-weekday",D.l10n.weekAbbreviation));var t=ue("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;D.innerContainer.appendChild(n),D.weekNumbers=i,D.weekWrapper=n}D.rContainer=ue("div","flatpickr-rContainer"),D.rContainer.appendChild(M()),D.daysContainer||(D.daysContainer=ue("div","flatpickr-days"),D.daysContainer.tabIndex=-1),b(),D.rContainer.appendChild(D.daysContainer),D.innerContainer.appendChild(D.rContainer),e.appendChild(D.innerContainer)}D.config.enableTime&&e.appendChild(function(){D.calendarContainer.classList.add("hasTime"),D.config.noCalendar&&D.calendarContainer.classList.add("noCalendar");var e=we(D.config);D.timeContainer=ue("div","flatpickr-time"),D.timeContainer.tabIndex=-1;var t=ue("span","flatpickr-time-separator",":"),n=de("flatpickr-hour",{"aria-label":D.l10n.hourAriaLabel});D.hourElement=n.getElementsByTagName("input")[0];var i=de("flatpickr-minute",{"aria-label":D.l10n.minuteAriaLabel});if(D.minuteElement=i.getElementsByTagName("input")[0],D.hourElement.tabIndex=D.minuteElement.tabIndex=-1,D.hourElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getHours():D.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),D.minuteElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getMinutes():e.minutes),D.hourElement.setAttribute("step",D.config.hourIncrement.toString()),D.minuteElement.setAttribute("step",D.config.minuteIncrement.toString()),D.hourElement.setAttribute("min",D.config.time_24hr?"0":"1"),D.hourElement.setAttribute("max",D.config.time_24hr?"23":"12"),D.hourElement.setAttribute("maxlength","2"),D.minuteElement.setAttribute("min","0"),D.minuteElement.setAttribute("max","59"),D.minuteElement.setAttribute("maxlength","2"),D.timeContainer.appendChild(n),D.timeContainer.appendChild(t),D.timeContainer.appendChild(i),D.config.time_24hr&&D.timeContainer.classList.add("time24hr"),D.config.enableSeconds){D.timeContainer.classList.add("hasSeconds");var o=de("flatpickr-second");D.secondElement=o.getElementsByTagName("input")[0],D.secondElement.value=re(D.latestSelectedDateObj?D.latestSelectedDateObj.getSeconds():e.seconds),D.secondElement.setAttribute("step",D.minuteElement.getAttribute("step")),D.secondElement.setAttribute("min","0"),D.secondElement.setAttribute("max","59"),D.secondElement.setAttribute("maxlength","2"),D.timeContainer.appendChild(ue("span","flatpickr-time-separator",":")),D.timeContainer.appendChild(o)}return D.config.time_24hr||(D.amPM=ue("span","flatpickr-am-pm",D.l10n.amPM[se(11<(D.latestSelectedDateObj?D.hourElement.value:D.config.defaultHour))]),D.amPM.title=D.l10n.toggleTitle,D.amPM.tabIndex=-1,D.timeContainer.appendChild(D.amPM)),D.timeContainer}()),ce(D.calendarContainer,"rangeMode","range"===D.config.mode),ce(D.calendarContainer,"animate",!0===D.config.animate),ce(D.calendarContainer,"multiMonth",1<D.config.showMonths),D.calendarContainer.appendChild(e);var o=void 0!==D.config.appendTo&&void 0!==D.config.appendTo.nodeType;if((D.config.inline||D.config.static)&&(D.calendarContainer.classList.add(D.config.inline?"inline":"static"),D.config.inline&&(!o&&D.element.parentNode?D.element.parentNode.insertBefore(D.calendarContainer,D._input.nextSibling):void 0!==D.config.appendTo&&D.config.appendTo.appendChild(D.calendarContainer)),D.config.static)){var r=ue("div","flatpickr-wrapper");D.element.parentNode&&D.element.parentNode.insertBefore(r,D.element),r.appendChild(D.element),D.altInput&&r.appendChild(D.altInput),r.appendChild(D.calendarContainer)}D.config.static||D.config.inline||(void 0!==D.config.appendTo?D.config.appendTo:window.document.body).appendChild(D.calendarContainer)}(),function(){if(D.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(D.element.querySelectorAll("[data-"+t+"]"),function(e){return s(e,"click",D[t])})}),D.isMobile)return function(){var e=D.config.enableTime?D.config.noCalendar?"time":"datetime-local":"date";D.mobileInput=ue("input",D.input.className+" flatpickr-mobile"),D.mobileInput.tabIndex=1,D.mobileInput.type=e,D.mobileInput.disabled=D.input.disabled,D.mobileInput.required=D.input.required,D.mobileInput.placeholder=D.input.placeholder,D.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",0<D.selectedDates.length&&(D.mobileInput.defaultValue=D.mobileInput.value=D.formatDate(D.selectedDates[0],D.mobileFormatStr)),D.config.minDate&&(D.mobileInput.min=D.formatDate(D.config.minDate,"Y-m-d")),D.config.maxDate&&(D.mobileInput.max=D.formatDate(D.config.maxDate,"Y-m-d")),D.input.getAttribute("step")&&(D.mobileInput.step=String(D.input.getAttribute("step"))),D.input.type="hidden",void 0!==D.altInput&&(D.altInput.type="hidden");try{D.input.parentNode&&D.input.parentNode.insertBefore(D.mobileInput,D.input.nextSibling)}catch(e){}s(D.mobileInput,"change",function(e){D.setDate(fe(e).value,!1,D.mobileFormatStr),K("onChange"),K("onClose")})}();var e=ae(P,50);D._debouncedChange=ae(c,De),D.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&s(D.daysContainer,"mouseover",function(e){"range"===D.config.mode&&F(fe(e))}),s(window.document.body,"keydown",j),D.config.inline||D.config.static||s(window,"resize",e),void 0!==window.ontouchstart?s(window.document,"touchstart",O):s(window.document,"mousedown",O),s(window.document,"focus",O,{capture:!0}),!0===D.config.clickOpens&&(s(D._input,"focus",D.open),s(D._input,"click",D.open)),void 0!==D.daysContainer&&(s(D.monthNav,"click",Z),s(D.monthNav,["keyup","increment"],n),s(D.daysContainer,"click",B)),void 0!==D.timeContainer&&void 0!==D.minuteElement&&void 0!==D.hourElement&&(s(D.timeContainer,["increment"],f),s(D.timeContainer,"blur",f,{capture:!0}),s(D.timeContainer,"click",r),s([D.hourElement,D.minuteElement],["focus","click"],function(e){return fe(e).select()}),void 0!==D.secondElement&&s(D.secondElement,"focus",function(){return D.secondElement&&D.secondElement.select()}),void 0!==D.amPM&&s(D.amPM,"click",function(e){f(e),c()})),D.config.allowInput&&s(D._input,"blur",N)}(),(D.selectedDates.length||D.config.noCalendar)&&(D.config.enableTime&&o(D.config.noCalendar?D.latestSelectedDateObj:void 0),X(!1)),t();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!D.isMobile&&e&&R(),K("onReady")}(),D}function n(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=s(r,t||{}),i.push(r._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)},HTMLElement.prototype.flatpickr=function(e){return n([this],e)});var Ce=function(e,t){return"string"==typeof e?n(window.document.querySelectorAll(e),t):e instanceof Node?n([e],t):n(e,t)};return Ce.defaultConfig={},Ce.l10ns={en:ee({},oe),default:ee({},oe)},Ce.localize=function(e){Ce.l10ns.default=ee(ee({},Ce.l10ns.default),e)},Ce.setDefaults=function(e){Ce.defaultConfig=ee(ee({},Ce.defaultConfig),e)},Ce.parseDate=ge({}),Ce.formatDate=me({}),Ce.compareDates=ve,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return n(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=Ce),Ce}),function(s){function t(e,t){this.element=s(e),this.options=t,this.init()}t.prototype.init=function(){this.element.chosen(this.options),this.container=this.element.next(".chosen-container"),this.search_field=this.container.find(".chosen-search-input"),this.is_multiple=this.container.hasClass("chosen-container-multi"),this.is_typing=!1,this.chosenXhr=null,this.events()},t.prototype.events=function(){var e=this;this.search_field.on("compositionstart",function(){e.is_typing=!0}),this.search_field.on("compositionend",function(){e.is_typing=!1,e.update_list()}),this.search_field.on("keyup",function(){e.update_list()}),this.search_field.on("focus",function(){e.search_field_focused()})},t.prototype.search_field_focused=function(){this.search_welcome_message(),0===this.options.min_length&&0===this.search_field.val().length&&this.update_list()},t.prototype.search_welcome_message=function(){var e=s.trim(this.search_field.val()),t=this.container.find(".chosen-results");0===t.children().length&&0===e.length&&t.html('<li class="no-results">'+this.options.typing_text.replace("%s",this.options.min_length-e.length)+"</li>")},t.prototype.update_list=function(){var t=this;if(this.search_welcome_message(),!this.is_typing){var e=s.trim(this.search_field.val()),n=e.length<this.options.min_length?this.options.typing_text.replace("%s",this.options.min_length-e.length):this.options.searching_text;this.container.find(".no-results").text(n),e!==this.search_field.data("prevVal")&&(this.search_field.data("prevVal",e),this.timer&&clearTimeout(this.timer),e.length<this.options.min_length||(this.timer=setTimeout(function(){t.chosenXhr&&t.chosenXhr.abort(),t.options.data.term=e,t.chosenXhr=window.wp.ajax.post("CFSSMARTSMS-chosen",t.options.data).done(function(e){t.show_results(e)}).fail(function(e){t.container.find(".no-results").text(e.error)})},this.options.type_delay)))}},t.prototype.show_results=function(e){var n=this;if(!this.is_typing&&null!==e){if(0===e.length)return this.element.data().chosen.no_results_clear(),void this.element.data().chosen.no_results(this.search_field.val());var i=[];this.element.find("option").each(function(){s(this).is(":selected")?i.push(s(this).val()+"-"+s(this).text()):s(this).attr("value").length&&s(this).remove()}),s.each(e,function(e,t){-1===s.inArray(t.value+"-"+t.text,i)&&s("<option />").attr("value",t.value).html(t.text).appendTo(n.element)});var t=this.search_field.val(),o=this.search_field.innerWidth();if(this.element.trigger("chosen:updated"),this.is_multiple){var r=this.element.parent().find(".CFSSMARTSMS-hide-select").val()||[];this.element.CSFChosenOrder(r,!0),this.search_field.css("width",o)}this.search_field.val(t),null!==this.chosenXhr.done&&this.chosenXhr.done(e)}},s.fn.CSFAjaxChosen=function(e){return this.each(function(){new t(this,e)})}}(jQuery),function(){var n,i,s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o={}.hasOwnProperty;i=function(){function e(){}return e.insertAt=function(e,t,n){return n.insertBefore(e,n.children[t].nextSibling)},e.getFlattenedOptionsAndGroups=function(e){var t,n,i,o,r,s,a,l,c;for(t=[],s=0,l=(i=Array.prototype.filter.call(e.childNodes,function(e){var t;return"OPTION"===(t=e.nodeName.toUpperCase())||"OPTGROUP"===t})).length;s<l;s++)if(n=i[s],t.push(n),"OPTGROUP"===n.nodeName.toUpperCase())for(a=0,c=(r=Array.prototype.filter.call(n.childNodes,function(e){return"OPTION"===e.nodeName.toUpperCase()})).length;a<c;a++)o=r[a],t.push(o);return t},e.isValidMultipleSelectElement=function(e){return null!=e&&"SELECT"===e.nodeName&&e.multiple},e.getChosenUIContainer=function(e){return""!==e.id?document.getElementById(e.id.replace(/-/g,"_")+"_chosen"):this.searchChosenUIContainer(e)},e.isChosenified=function(e){return null!=this.getChosenUIContainer(e)},e.forceSelection=function(e,t){var n,i,o,r;for(o=this.getFlattenedOptionsAndGroups(e),n=0;n<o.length;)r=(i=o[n]).getAttribute("value"),0<=s.call(t,r)?(i.selected=!0,i.setAttribute("selected","")):(i.selected=!1,i.removeAttribute("selected")),n++;return this.triggerEvent(e,"chosen:updated")},e.CSFChosenOrder=function(e,t,n){var i,o,r,s,a,l,c,u,h,d,f,p,_,m;if(null!=this.getDOMElement&&(e=this.getDOMElement(e)),this.isValidMultipleSelectElement(e)&&null!=(o=this.getChosenUIContainer(e))&&t instanceof Array){for(t=t.map(Function.prototype.call,String.prototype.trim),c=this.getFlattenedOptionsAndGroups(e),null!=n&&!0===n&&this.forceSelection(e,t),m=[],r=d=0,p=t.length;d<p;r=++d){for(a=t[r],u=null,s=f=0,_=c.length;f<_;s=++f)c[s].value===a&&(u=s);i=o.querySelectorAll(".search-choice"),h=this.relAttributeName,null!=(l=Array.prototype.filter.call(i,function(e){return null!=e.querySelector("a.search-choice-close["+h+'="'+u+'"]')})[0])&&(o.querySelector("ul.chosen-choices"),m.push(this.insertAt(l,r,o.querySelector("ul.chosen-choices"))))}return m}},e}(),(n=jQuery).fn.extend({CSFChosenOrder:function(e,t){return _CSFChosenOrder.CSFChosenOrder(this,e,t)}}),this._CSFChosenOrder=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,i),t.relAttributeName="data-option-array-index",t.isjQueryObject=function(e){return"undefined"!=typeof jQuery&&null!==jQuery&&e instanceof jQuery},t.getDOMElement=function(e){return this.isjQueryObject(e)?e.get(0):e},t.searchChosenUIContainer=function(e){return null!=n(e).data("chosen")?n(e).data("chosen").container[0]:n(e).next(".chosen-container.chosen-container-multi").get(0)},t.triggerEvent=function(e,t){return n(e).trigger(t)},t}()}.call(this),function(){var a,n,o,s,r={}.hasOwnProperty;(s=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,r,s;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),s=[],n=0,i=(r=e.childNodes).length;n<i;n++)o=r[n],s.push(this.add_option(o,t,e.disabled));return s},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,n,i,o,r;for(o=new s,n=0,i=(r=e.childNodes).length;n<i;n++)t=r[n],o.add_node(t);return o.parsed},n=function(){function o(e,t){var n,i;this.form_field=e,this.options=null!=t?t:{},this.label_click_handler=(n=this.label_click_handler,i=this,function(){return n.apply(i,arguments)}),o.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return o.prototype.set_default_values=function(){var t,n;return this.click_test_action=(t=this,function(e){return t.test_active_click(e)}),this.activate_action=(n=this,function(e){return n.activate_field(e)}),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},o.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||o.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||o.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||o.default_no_result_text},o.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},o.prototype.mouse_enter=function(){return this.mouse_on_container=!0},o.prototype.mouse_leave=function(){return this.mouse_on_container=!1},o.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},o.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},o.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},o.prototype.results_option_build=function(e){var t,n,i,o,r,s,a;for(t="",o=a=0,r=(s=this.results_data).length;o<r&&((i="")!==(i=(n=s[o]).group?this.result_add_group(n):this.result_add_option(n))&&(a++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(a>=this.max_shown_results));o++);return t},o.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},o.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&0<e.active_options?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},o.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},o.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(o=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?o.push(i.selected=!1):o.push(void 0);return o},o.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},o.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},o.prototype.winnow_results=function(e){var t,n,i,o,r,s,a,l,c,u,h,d,f,p,_;for(this.no_results_clear(),u=0,t=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),i=0,o=(l=this.results_data).length;i<o;i++)(r=l[i]).search_match=!1,d=h=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(h=this.results_data[r.group_array_index]).active_options&&h.search_match&&(u+=1),h.active_options+=1),_=r.group?r.label:r.text,r.group&&!this.group_search||(d=this.search_string_match(_,c),r.search_match=null!=d,r.search_match&&!r.group&&(u+=1),r.search_match?(a.length&&(f=d.index,s=_.slice(0,f),n=_.slice(f,f+a.length),p=_.slice(f+a.length),r.highlighted_html=this.escape_html(s)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=h&&(h.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),u<1&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},o.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},o.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},o.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(e=this.selected_option_count=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},o.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},o.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},o.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&0<this.choices_count()?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},o.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},o.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},o.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},o.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},o.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},o.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},o.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},o.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n  <span>'+this.default_text+'</span>\n  <div><b></b></div>\n</a>\n<div class="chosen-drop">\n  <div class="chosen-search">\n    <input class="chosen-search-input" type="text" autocomplete="off" />\n  </div>\n  <ul class="chosen-results"></ul>\n</div>'},o.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n  <li class="search-field">\n    <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n  </li>\n</ul>\n<div class="chosen-drop">\n  <ul class="chosen-results"></ul>\n</div>'},o.prototype.get_no_results_html=function(e){return'<li class="no-results">\n  '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},o.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?8<=document.documentMode:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},o.default_multiple_text="Select Some Options",o.default_single_text="Select an Option",o.default_no_result_text="No results match",o}(),(a=jQuery).fn.extend({chosen:function(i){return n.browser_is_supported()?this.each(function(e){var t,n;n=(t=a(this)).data("chosen"),"destroy"!==i?n instanceof o||t.data("chosen",new o(this,i)):n instanceof o&&n.destroy()}):this}}),o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,n),t.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},t.prototype.set_up_html=function(){var e,t;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),t={class:e.join(" "),title:this.form_field.title},this.form_field.id.length&&(t.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",t),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},t.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},t.prototype.register_observers=function(){var t,n,i,o,r,s,a,l,c,u,h,d,f,p,_,m,g,v,y,b,w,D,C,x;return this.container.on("touchstart.chosen",(t=this,function(e){t.container_mousedown(e)})),this.container.on("touchend.chosen",(n=this,function(e){n.container_mouseup(e)})),this.container.on("mousedown.chosen",(i=this,function(e){i.container_mousedown(e)})),this.container.on("mouseup.chosen",(o=this,function(e){o.container_mouseup(e)})),this.container.on("mouseenter.chosen",(r=this,function(e){r.mouse_enter(e)})),this.container.on("mouseleave.chosen",(s=this,function(e){s.mouse_leave(e)})),this.search_results.on("mouseup.chosen",(a=this,function(e){a.search_results_mouseup(e)})),this.search_results.on("mouseover.chosen",(l=this,function(e){l.search_results_mouseover(e)})),this.search_results.on("mouseout.chosen",(c=this,function(e){c.search_results_mouseout(e)})),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",(u=this,function(e){u.search_results_mousewheel(e)})),this.search_results.on("touchstart.chosen",(h=this,function(e){h.search_results_touchstart(e)})),this.search_results.on("touchmove.chosen",(d=this,function(e){d.search_results_touchmove(e)})),this.search_results.on("touchend.chosen",(f=this,function(e){f.search_results_touchend(e)})),this.form_field_jq.on("chosen:updated.chosen",(p=this,function(e){p.results_update_field(e)})),this.form_field_jq.on("chosen:activate.chosen",(_=this,function(e){_.activate_field(e)})),this.form_field_jq.on("chosen:open.chosen",(m=this,function(e){m.container_mousedown(e)})),this.form_field_jq.on("chosen:close.chosen",(g=this,function(e){g.close_field(e)})),this.search_field.on("blur.chosen",(v=this,function(e){v.input_blur(e)})),this.search_field.on("keyup.chosen",(y=this,function(e){y.keyup_checker(e)})),this.search_field.on("keydown.chosen",(b=this,function(e){b.keydown_checker(e)})),this.search_field.on("focus.chosen",(w=this,function(e){w.input_focus(e)})),this.search_field.on("cut.chosen",(D=this,function(e){D.clipboard_event_checker(e)})),this.search_field.on("paste.chosen",(C=this,function(e){C.clipboard_event_checker(e)})),this.is_multiple?this.search_choices.on("click.chosen",(x=this,function(e){x.choices_click(e)})):this.container.on("click.chosen",function(e){e.preventDefault()})},t.prototype.destroy=function(){return a(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),0<this.form_field_label.length&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},t.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},t.prototype.container_mousedown=function(e){var t;if(!this.is_disabled)return!e||"mousedown"!==(t=e.type)&&"touchstart"!==t||this.results_showing||e.preventDefault(),null!=e&&a(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||a(e.target)[0]!==this.selected_item[0]&&!a(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},t.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},t.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},t.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},t.prototype.close_field=function(){return a(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},t.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},t.prototype.test_active_click=function(e){var t;return(t=a(e.target).closest(".chosen-container")).length&&this.container[0]===t[0]?this.active_field=!0:this.close_field()},t.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=s.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},t.prototype.result_do_highlight=function(e){var t,n,i,o;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),(i=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop())<=(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight()))return this.search_results.scrollTop(0<t-i?t-i:0);if(n<o)return this.search_results.scrollTop(n)}},t.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},t.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},t.prototype.update_results_content=function(e){return this.search_results.html(e)},t.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},t.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},t.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),0<this.form_field_label.length)return this.form_field_label.on("click.chosen",this.label_click_handler)},t.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},t.prototype.search_results_mouseup=function(e){var t;if((t=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first()).length)return this.result_highlight=t,this.result_select(e),this.search_field.focus()},t.prototype.search_results_mouseover=function(e){var t;if(t=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first())return this.result_do_highlight(t)},t.prototype.search_results_mouseout=function(e){if(a(e.target).hasClass("active-result")||a(e.target).parents(".active-result").first())return this.result_clear_highlight()},t.prototype.choice_build=function(e){var t,n,i;return t=a("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?t.addClass("search-choice-disabled"):((n=a("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).on("click.chosen",(i=this,function(e){return i.choice_destroy_link_click(e)})),t.append(n)),this.search_container.before(t)},t.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(a(e.target))},t.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&0<this.choices_count()&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},t.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},t.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},t.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},t.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},t.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},t.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},t.prototype.get_search_field_value=function(){return this.search_field.val()},t.prototype.get_search_text=function(){return a.trim(this.get_search_field_value())},t.prototype.escape_html=function(e){return a("<div/>").text(e).html()},t.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},t.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},t.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},t.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},t.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(0<this.choices_count()&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},t.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},t.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},t.prototype.search_field_scale=function(){var e,t,n,i,o,r,s;if(this.is_multiple){for(o={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},t=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;t<n;t++)o[i=r[t]]=this.search_field.css(i);return(e=a("<div />").css(o)).text(this.get_search_field_value()),a("body").append(e),s=e.width()+25,e.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},t.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},t}()}.call(this),function(s){"use strict";function o(e,t,n){this.init(e,t,n)}function e(){this.rules=[]}s.extend(o.prototype,{init:function(e,t,n){this.controller=e,this.condition=t,this.value=n,this.rules=[],this.controls=[]},evalCondition:function(e,t,n,i,o){if("=="==n)return this.checkBoolean(i)==this.checkBoolean(o);if("!="==n)return this.checkBoolean(i)!=this.checkBoolean(o);if(">="==n)return Number(o)>=Number(i);if("<="==n)return Number(o)<=Number(i);if(">"==n)return Number(o)>Number(i);if("<"==n)return Number(o)<Number(i);if("()"==n)return window[i](e,t,o);if("any"==n){if(s.isArray(o)){for(var r=o.length-1;0<=r;r--)if(-1!==s.inArray(o[r],i.split(",")))return!0}else if(-1!==s.inArray(o,i.split(",")))return!0}else if("not-any"==n)if(s.isArray(o)){for(r=o.length-1;0<=r;r--)if(-1==s.inArray(o[r],i.split(",")))return!0}else if(-1==s.inArray(o,i.split(",")))return!0;return!1},checkBoolean:function(e){switch(e){case!0:case"true":case 1:case"1":e=!0;break;case null:case!1:case"false":case 0:case"0":e=!1}return e},checkCondition:function(e){if(!this.condition)return!0;var t=e.find(this.controller),n=this.getControlValue(e,t);return void 0!==n&&(n=this.normalizeValue(t,this.value,n),this.evalCondition(e,t,this.condition,this.value,n))},normalizeValue:function(e,t,n){return"number"==typeof t?parseFloat(n):n},getControlValue:function(e,t){return 1<t.length&&("radio"==t.attr("type")||"checkbox"==t.attr("type"))?t.filter(":checked").map(function(){return this.value}).get():"checkbox"==t.attr("type")||"radio"==t.attr("type")?t.is(":checked"):t.val()},createRule:function(e,t,n){var i=new o(e,t,n);return this.rules.push(i),i},include:function(e){this.controls.push(e)},applyRule:function(n,e){var t;t=void 0===e?this.checkCondition(n):e;var i=s.map(this.controls,function(e,t){return n.find(e)});t?(s(i).each(function(){s(this).removeClass("CFSSMARTSMS-depend-on")}),s(this.rules).each(function(){this.applyRule(n)})):(s(i).each(function(){s(this).addClass("CFSSMARTSMS-depend-on")}),s(this.rules).each(function(){this.applyRule(n,!1)}))}}),s.extend(e.prototype,{createRule:function(e,t,n){var i=new o(e,t,n);return this.rules.push(i),i},applyRules:function(e){s(this.rules).each(function(){this.applyRule(e)})}}),s.csf_deps={createRuleset:function(){return new e},enable:function(n,i,o){return n.on("change keyup",function(e){var t=e.target.getAttribute("data-depend-id")||e.target.getAttribute("data-sub-depend-id");-1!==o.indexOf(t)&&i.applyRules(n)}),i.applyRules(n),!0}}}(jQuery),function(e,n){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,t){return n(e,t)});else if("undefined"!=typeof exports){var t=require("jquery");n(exports,t)}else n(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t){var a={validate:/^(?!(_nonce|_pseudo))[a-zA-Z0-9_-]*(?:\[(?:\d*|(?!(_nonce|_pseudo))[a-zA-Z0-9_-]+)\])*$/i,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,named:/^[a-zA-Z0-9_-]+$/,push:/^$/,fixed:/^\d+$/};function n(i,e){var n={},r={};function s(e,t,n){return e[t]=n,e}function t(){return n}this.addPair=function(e){if(!a.validate.test(e.name))return this;var t=function(e,t){for(var n,i=e.match(a.key);void 0!==(n=i.pop());)a.push.test(n)?t=s([],(o=e.replace(/\[\]$/,""),void 0===r[o]&&(r[o]=0),r[o]++),t):a.fixed.test(n)?t=s([],n,t):a.named.test(n)&&(t=s({},n,t));var o;return t}(e.name,e.value);return n=i.extend(!0,n,t),this},this.addPairs=function(e){if(!i.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=e.length;t<n;t++)this.addPair(e[t]);return this},this.serialize=t,this.serializeJSON=function(){return JSON.stringify(t())}}return n.patterns=a,n.serializeObject=function(){return new n(t,this).addPairs(this.serializeArray()).serialize()},n.serializeJSON=function(){return new n(t,this).addPairs(this.serializeArray()).serializeJSON()},void 0!==t.fn&&(t.fn.serializeObjectCSF=n.serializeObject,t.fn.serializeJSONCSF=n.serializeJSON),e.FormSerializer=n});
  • nirweb-smart-sms/trunk/option/classes/abstract.class.php

    r2729089 r2729124  
    1919      if ( ! empty( $this->args['output_css'] ) || ! empty( $this->args['enqueue_webfont'] ) ) {
    2020        add_action( 'wp_enqueue_scripts', array( $this, 'collect_output_css_and_typography' ), 10 );
    21         CSF::$css = apply_filters( "csf_{$this->unique}_output_css", CSF::$css, $this );
     21        CFSSMARTSMS::$css = apply_filters( "csf_{$this->unique}_output_css", CFSSMARTSMS::$css, $this );
    2222      }
    2323
     
    112112                // output css
    113113                if ( $field_output && $this->args['output_css'] ) {
    114                   CSF::$css .= $instance->output();
     114                  CFSSMARTSMS::$css .= $instance->output();
    115115                }
    116116
  • nirweb-smart-sms/trunk/option/classes/admin-options.class.php

    r2729089 r2729124  
    2424
    2525      // framework title
    26       'framework_title'         => 'Codestar Framework <small>by Codestar</small>',
     26      'framework_title'         => 'Nirwb Team',
    2727      'framework_class'         => '',
    2828
     
    8181      // theme
    8282      'nav'                     => 'normal',
    83       'theme'                   => 'dark',
     83      'theme'                   => 'light',
    8484      'class'                   => '',
    8585
     
    200200
    201201        $menu_slug = $this->args['menu_slug'];
    202         $menu_icon = ( ! empty( $this->args['admin_bar_menu_icon'] ) ) ? '<span class="csf-ab-icon ab-icon '. esc_attr( $this->args['admin_bar_menu_icon'] ) .'"></span>' : '';
     202        $menu_icon = ( ! empty( $this->args['admin_bar_menu_icon'] ) ) ? '<span class="CFSSMARTSMS-ab-icon ab-icon '. esc_html( $this->args['admin_bar_menu_icon'] ) .'"></span>' : '';
    203203
    204204        $wp_admin_bar->add_node( array(
    205205          'id'    => $menu_slug,
    206           'title' => $menu_icon . esc_attr( $this->args['menu_title'] ),
    207           'href'  => esc_url( ( is_network_admin() ) ? network_admin_url( 'admin.php?page='. $menu_slug ) : admin_url( 'admin.php?page='. $menu_slug ) ),
     206          'title' => $menu_icon . esc_html( $this->args['menu_title'] ),
     207          'href'  => esc_url( ( is_network_admin() ) ? network_admin_url( 'admin.php?page='. esc_html($menu_slug) ) : admin_url( 'admin.php?page='. esc_html($menu_slug) ) ),
    208208        ) );
    209209
     
    214214              'id'     => $menu_slug .'-'. $menu_key,
    215215              'title'  => $menu_value[0],
    216               'href'   => esc_url( ( is_network_admin() ) ? network_admin_url( 'admin.php?page='. $menu_value[2] ) : admin_url( 'admin.php?page='. $menu_value[2] ) ),
     216              'href'   => esc_url( ( is_network_admin() ) ? network_admin_url( 'admin.php?page='. esc_html($menu_value[2]) ) : admin_url( 'admin.php?page='. esc_html($menu_value[2]) ) ),
    217217            ) );
    218218          }
     
    228228
    229229      if ( ! $result ) {
    230         wp_send_json_error( array( 'error' => esc_html__( 'Error while saving the changes.', 'csf' ) ) );
     230        wp_send_json_error( array( 'error' => esc_html__( 'Error while saving the changes.', 'CFSSMARTSMS' ) ) );
    231231      } else {
    232232        wp_send_json_success( array( 'notice' => $this->notice, 'errors' => $this->errors ) );
     
    268268      // No worries, This "POST" requests is sanitizing in the below foreach. see #L337 - #L341
    269269      $response  = ( $ajax && ! empty( $_POST['data'] ) ) ? json_decode( wp_unslash( trim( $_POST['data'] ) ), true ) : $_POST;
    270 
     270        array_walk_recursive(
     271            $response,
     272            function (&$value) {
     273                if (!is_array($value)) {
     274                    $value = wp_kses_post($value);
     275                }
     276            }
     277        );
    271278      // Set variables.
    272279      $data      = array();
     
    286293          // No worries, This "POST" requests is sanitizing in the below foreach. see #L337 - #L341
    287294          $import_data  = json_decode( wp_unslash( trim( $response[ 'csf_import_data' ] ) ), true );
     295            array_walk_recursive(
     296                $import_data,
     297                function (&$value) {
     298                    if (!is_array($value)) {
     299                        $value = wp_kses_post($value);
     300                    }
     301                }
     302            );
    288303          $options      = ( is_array( $import_data ) && ! empty( $import_data ) ) ? $import_data : array();
    289304          $importing    = true;
    290           $this->notice = esc_html__( 'Settings successfully imported.', 'csf' );
     305          $this->notice = esc_html__( 'Settings successfully imported.', 'CFSSMARTSMS' );
    291306
    292307        }
     
    300315          }
    301316
    302           $this->notice = esc_html__( 'Default settings restored.', 'csf' );
     317          $this->notice = esc_html__( 'Default settings restored.', 'CFSSMARTSMS' );
    303318
    304319        } else if ( ! empty( $transient['reset_section'] ) && ! empty( $section_id ) ) {
     
    316331          $data = wp_parse_args( $data, $this->options );
    317332
    318           $this->notice = esc_html__( 'Default settings restored.', 'csf' );
     333          $this->notice = esc_html__( 'Default settings restored.', 'CFSSMARTSMS' );
    319334
    320335        } else {
     
    387402
    388403        if ( empty( $this->notice ) ) {
    389           $this->notice = esc_html__( 'Settings saved.', 'csf' );
     404          $this->notice = esc_html__( 'Settings saved.', 'CFSSMARTSMS' );
    390405        }
    391406
     
    437452
    438453    // admin menu
    439     public function add_admin_menu() {
    440 
    441       extract( $this->args );
    442 
    443       if ( $menu_type === 'submenu' ) {
    444 
    445         $menu_page = call_user_func( 'add_submenu_page', $menu_parent, esc_attr( $menu_title ), esc_attr( $menu_title ), $menu_capability, $menu_slug, array( $this, 'add_options_html' ) );
    446 
    447       } else {
    448 
    449         $menu_page = call_user_func( 'add_menu_page', esc_attr( $menu_title ), esc_attr( $menu_title ), $menu_capability, $menu_slug, array( $this, 'add_options_html' ), $menu_icon, $menu_position );
    450 
    451         if ( ! empty( $sub_menu_title ) ) {
    452           call_user_func( 'add_submenu_page', $menu_slug, esc_attr( $sub_menu_title ), esc_attr( $sub_menu_title ), $menu_capability, $menu_slug, array( $this, 'add_options_html' ) );
    453         }
    454 
    455         if ( ! empty( $this->args['show_sub_menu'] ) && count( $this->pre_tabs ) > 1 ) {
    456 
    457           // create submenus
    458           foreach ( $this->pre_tabs as $section ) {
    459             call_user_func( 'add_submenu_page', $menu_slug, esc_attr( $section['title'] ),  esc_attr( $section['title'] ), $menu_capability, $menu_slug .'#tab='. sanitize_title( $section['title'] ), '__return_null' );
    460           }
    461 
    462           remove_submenu_page( $menu_slug, $menu_slug );
    463 
    464         }
    465 
    466         if ( ! empty( $menu_hidden ) ) {
    467           remove_menu_page( $menu_slug );
    468         }
    469 
    470       }
    471 
    472       add_action( 'load-'. $menu_page, array( $this, 'add_page_on_load' ) );
    473 
    474     }
     454      public function add_admin_menu() {
     455
     456          extract( $this->args );
     457
     458          if ( $menu_type === 'submenu' ) {
     459
     460              $menu_page = call_user_func( 'add_submenu_page', esc_html($menu_parent), esc_attr( $menu_title ), esc_attr( $menu_title ),esc_html($menu_capability), esc_html($menu_slug), array( $this, 'add_options_html' ) );
     461
     462          } else {
     463
     464              $menu_page = call_user_func( 'add_menu_page', esc_attr( $menu_title ), esc_attr( $menu_title ), esc_html($menu_capability), esc_html($menu_slug), array( $this, 'add_options_html' ), wp_kses_post($menu_icon), $menu_position );
     465
     466              if ( ! empty( $sub_menu_title ) ) {
     467                  call_user_func( 'add_submenu_page', wp_kses_post($menu_slug), esc_attr( $sub_menu_title ), esc_attr( $sub_menu_title ), esc_html($menu_capability), esc_html($menu_slug), array( $this, 'add_options_html' ) );
     468              }
     469
     470              if ( ! empty( $this->args['show_sub_menu'] ) && count( $this->pre_tabs ) > 1 ) {
     471
     472                  // create submenus
     473                  foreach ( $this->pre_tabs as $section ) {
     474                      call_user_func( 'add_submenu_page', wp_kses_post($menu_slug), esc_attr( $section['title'] ),  esc_attr( $section['title'] ), esc_html($menu_capability), esc_html($menu_slug) .'#tab='. sanitize_title( $section['title'] ), '__return_null' );
     475                  }
     476
     477                  remove_submenu_page( $menu_slug, $menu_slug );
     478
     479              }
     480
     481              if ( ! empty( $menu_hidden ) ) {
     482                  remove_menu_page( $menu_slug );
     483              }
     484
     485          }
     486
     487          add_action( 'load-'. $menu_page, array( $this, 'add_page_on_load' ) );
     488
     489      }
    475490
    476491    public function add_page_on_load() {
     
    490505      }
    491506
    492       if ( ! empty( $this->args['footer_credit'] ) ) {
    493         add_filter( 'admin_footer_text', array( $this, 'add_admin_footer_text' ) );
    494       }
     507      add_filter( 'admin_footer_text', array( $this, 'add_admin_footer_text' ) );
    495508
    496509    }
    497510
    498511    public function add_admin_footer_text() {
    499       echo wp_kses_post( $this->args['footer_credit'] );
     512      $default = 'Nirweb Team';
     513      echo ( ! empty( $this->args['footer_credit'] ) ) ? wp_kses_post($this->args['footer_credit']) : wp_kses_post($default);
    500514    }
    501515
     
    508522            if ( ! empty( $field['id'] ) ) {
    509523              if ( array_key_exists( $field['id'], $this->errors ) ) {
    510                 $err = '<span class="csf-label-error">!</span>';
     524                $err = '<span class="CFSSMARTSMS-label-error">!</span>';
    511525              }
    512526            }
     
    533547
    534548      $has_nav       = ( count( $this->pre_tabs ) > 1 ) ? true : false;
    535       $show_all      = ( ! $has_nav ) ? ' csf-show-all' : '';
    536       $ajax_class    = ( $this->args['ajax_save'] ) ? ' csf-save-ajax' : '';
    537       $sticky_class  = ( $this->args['sticky_header'] ) ? ' csf-sticky-header' : '';
     549      $show_all      = ( ! $has_nav ) ? ' CFSSMARTSMS-show-all' : '';
     550      $ajax_class    = ( $this->args['ajax_save'] ) ? ' CFSSMARTSMS-save-ajax' : '';
     551      $sticky_class  = ( $this->args['sticky_header'] ) ? ' CFSSMARTSMS-sticky-header' : '';
    538552      $wrapper_class = ( $this->args['framework_class'] ) ? ' '. $this->args['framework_class'] : '';
    539       $theme         = ( $this->args['theme'] ) ? ' csf-theme-'. $this->args['theme'] : '';
     553      $theme         = ( $this->args['theme'] ) ? ' CFSSMARTSMS-theme-'. $this->args['theme'] : '';
    540554      $class         = ( $this->args['class'] ) ? ' '. $this->args['class'] : '';
    541555      $nav_type      = ( $this->args['nav'] === 'inline' ) ? 'inline' : 'normal';
     
    544558      do_action( 'csf_options_before' );
    545559
    546       echo '<div class="csf csf-options'. esc_attr( $theme . $class . $wrapper_class ) .'" data-slug="'. esc_attr( $this->args['menu_slug'] ) .'" data-unique="'. esc_attr( $this->unique ) .'">';
    547 
    548         echo '<div class="csf-container">';
    549 
    550         echo '<form method="post" action="'. esc_attr( $form_action ) .'" enctype="multipart/form-data" id="csf-form" autocomplete="off" novalidate="novalidate">';
    551 
    552         echo '<input type="hidden" class="csf-section-id" name="csf_transient[section]" value="1">';
     560      echo '<div class="CFSSMARTSMS CFSSMARTSMS-options'. esc_html( $theme . $class . $wrapper_class ) .'" data-slug="'. esc_html( $this->args['menu_slug'] ) .'" data-unique="'. esc_html( $this->unique ) .'">';
     561
     562        echo '<div class="CFSSMARTSMS-container">';
     563
     564        echo '<form method="post" action="'. esc_html( $form_action ) .'" enctype="multipart/form-data" id="CFSSMARTSMS-form" autocomplete="off" novalidate="novalidate">';
     565
     566        echo '<input type="hidden" class="CFSSMARTSMS-section-id" name="csf_transient[section]" value="1">';
    553567
    554568        wp_nonce_field( 'csf_options_nonce', 'csf_options_nonce'. $this->unique );
    555569
    556         echo '<div class="csf-header'. esc_attr( $sticky_class ) .'">';
    557         echo '<div class="csf-header-inner">';
    558 
    559           echo '<div class="csf-header-left">';
    560           echo '<h1>'. esc_html($this->args['framework_title']) .'</h1>';
     570        echo '<div class="CFSSMARTSMS-header'. esc_html( $sticky_class ) .'">';
     571        echo '<div class="CFSSMARTSMS-header-inner">';
     572
     573          echo '<div class="CFSSMARTSMS-header-left">';
     574          echo '<h1>'. wp_kses_post($this->args['framework_title']) .'</h1>';
    561575          echo '</div>';
    562576
    563           echo '<div class="csf-header-right">';
    564 
    565             $notice_class = ( ! empty( $this->notice ) ) ? 'csf-form-show' : '';
     577          echo '<div class="CFSSMARTSMS-header-right">';
     578
     579            $notice_class = ( ! empty( $this->notice ) ) ? 'CFSSMARTSMS-form-show' : '';
    566580            $notice_text  = ( ! empty( $this->notice ) ) ? $this->notice : '';
    567581
    568             echo '<div class="csf-form-result csf-form-success '. esc_attr( $notice_class ) .'">'. $notice_text .'</div>';
    569 
    570             echo ( $this->args['show_form_warning'] ) ? '<div class="csf-form-result csf-form-warning">'. esc_html__( 'You have unsaved changes, save your changes!', 'csf' ) .'</div>' : '';
    571 
    572             echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class="csf-expand-all" title="'. esc_html__( 'show all settings', 'csf' ) .'"><i class="fas fa-outdent"></i></div>' : '';
    573 
    574             echo ( $this->args['show_search'] ) ? '<div class="csf-search"><input type="text" name="csf-search" placeholder="'. esc_html__( 'Search...', 'csf' ) .'" autocomplete="off" /></div>' : '';
    575 
    576             echo '<div class="csf-buttons">';
    577             echo '<input type="submit" name="'. esc_attr( $this->unique ) .'[_nonce][save]" class="button button-primary csf-top-save csf-save'. esc_attr( $ajax_class ) .'" value="'. esc_html__( 'Save', 'csf' ) .'" data-save="'. esc_html__( 'Saving...', 'csf' ) .'">';
    578             echo ( $this->args['show_reset_section'] ) ? '<input type="submit" name="csf_transient[reset_section]" class="button button-secondary csf-reset-section csf-confirm" value="'. esc_html__( 'Reset Section', 'csf' ) .'" data-confirm="'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'">' : '';
    579             echo ( $this->args['show_reset_all'] ) ? '<input type="submit" name="csf_transient[reset]" class="button csf-warning-primary csf-reset-all csf-confirm" value="'. ( ( $this->args['show_reset_section'] ) ? esc_html__( 'Reset All', 'csf' ) : esc_html__( 'Reset', 'csf' ) ) .'" data-confirm="'. esc_html__( 'Are you sure you want to reset all settings to default values?', 'csf' ) .'">' : '';
     582            echo '<div class="CFSSMARTSMS-form-result CFSSMARTSMS-form-success '. esc_html( $notice_class ) .'">'. wp_kses_post($notice_text) .'</div>';
     583
     584            echo ( $this->args['show_form_warning'] ) ? '<div class="CFSSMARTSMS-form-result CFSSMARTSMS-form-warning">'. esc_html__( 'You have unsaved changes, save your changes!', 'CFSSMARTSMS' ) .'</div>' : '';
     585
     586            echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class="CFSSMARTSMS-expand-all" title="'. esc_html__( 'show all settings', 'CFSSMARTSMS' ) .'"><i class="fas fa-outdent"></i></div>' : '';
     587
     588            echo ( $this->args['show_search'] ) ? '<div class="CFSSMARTSMS-search"><input type="text" name="CFSSMARTSMS-search" placeholder="'. esc_html__( 'Search...', 'CFSSMARTSMS' ) .'" autocomplete="off" /></div>' : '';
     589
     590            echo '<div class="CFSSMARTSMS-buttons">';
     591            echo '<input type="submit" name="'. esc_html( $this->unique ) .'[_nonce][save]" class="button button-primary CFSSMARTSMS-top-save CFSSMARTSMS-save'. esc_html( $ajax_class ) .'" value="'. esc_html__( 'Save', 'CFSSMARTSMS' ) .'" data-save="'. esc_html__( 'Saving...', 'CFSSMARTSMS' ) .'">';
     592            echo ( $this->args['show_reset_section'] ) ? '<input type="submit" name="csf_transient[reset_section]" class="button button-secondary CFSSMARTSMS-reset-section CFSSMARTSMS-confirm" value="'. esc_html__( 'Reset Section', 'CFSSMARTSMS' ) .'" data-confirm="'. esc_html__( 'Are you sure to reset this section options?', 'CFSSMARTSMS' ) .'">' : '';
     593            echo ( $this->args['show_reset_all'] ) ? '<input type="submit" name="csf_transient[reset]" class="button CFSSMARTSMS-warning-primary CFSSMARTSMS-reset-all CFSSMARTSMS-confirm" value="'. ( ( $this->args['show_reset_section'] ) ? esc_html__( 'Reset All', 'CFSSMARTSMS' ) : esc_html__( 'Reset', 'CFSSMARTSMS' ) ) .'" data-confirm="'. esc_html__( 'Are you sure you want to reset all settings to default values?', 'CFSSMARTSMS' ) .'">' : '';
    580594            echo '</div>';
    581595
     
    586600        echo '</div>';
    587601
    588         echo '<div class="csf-wrapper'. esc_attr( $show_all ) .'">';
     602        echo '<div class="CFSSMARTSMS-wrapper'. esc_html( $show_all ) .'">';
    589603
    590604          if ( $has_nav ) {
    591605
    592             echo '<div class="csf-nav csf-nav-'. esc_attr( $nav_type ) .' csf-nav-options">';
     606            echo '<div class="CFSSMARTSMS-nav CFSSMARTSMS-nav-'. esc_html( $nav_type ) .' CFSSMARTSMS-nav-options">';
    593607
    594608              echo '<ul>';
     
    598612                $tab_id    = sanitize_title( $tab['title'] );
    599613                $tab_error = $this->error_check( $tab );
    600                 $tab_icon  = ( ! empty( $tab['icon'] ) ) ? '<i class="csf-tab-icon '. esc_attr( $tab['icon'] ) .'"></i>' : '';
     614                $tab_icon  = ( ! empty( $tab['icon'] ) ) ? '<i class="CFSSMARTSMS-tab-icon '. esc_html( $tab['icon'] ) .'"></i>' : '';
    601615
    602616                if ( ! empty( $tab['subs'] ) ) {
    603617
    604                   echo '<li class="csf-tab-item">';
    605 
    606                     echo '<a href="#tab='. esc_attr( $tab_id ) .'" data-tab-id="'. esc_attr( $tab_id ) .'" class="csf-arrow">'. $tab_icon . $tab['title'] . $tab_error .'</a>';
     618                  echo '<li class="CFSSMARTSMS-tab-item">';
     619
     620                    echo '<a href="#tab='. esc_html( $tab_id ) .'" data-tab-id="'. esc_html( $tab_id ) .'" class="CFSSMARTSMS-arrow">'. wp_kses_post($tab_icon) . wp_kses_post($tab['title']) . wp_kses_post($tab_error) .'</a>';
    607621
    608622                    echo '<ul>';
     
    612626                      $sub_id    = $tab_id .'/'. sanitize_title( $sub['title'] );
    613627                      $sub_error = $this->error_check( $sub );
    614                       $sub_icon  = ( ! empty( $sub['icon'] ) ) ? '<i class="csf-tab-icon '. esc_attr( $sub['icon'] ) .'"></i>' : '';
    615 
    616                       echo '<li><a href="#tab='. esc_attr( $sub_id ) .'" data-tab-id="'. esc_attr( $sub_id ) .'">'. $sub_icon . $sub['title'] . $sub_error .'</a></li>';
     628                      $sub_icon  = ( ! empty( $sub['icon'] ) ) ? '<i class="CFSSMARTSMS-tab-icon '. esc_html( $sub['icon'] ) .'"></i>' : '';
     629
     630                      echo '<li><a href="#tab='. esc_html( $sub_id ) .'" data-tab-id="'. esc_html( $sub_id ) .'">'. wp_kses_post($sub_icon) . wp_kses_post($sub['title']) . wp_kses_post($sub_error) .'</a></li>';
    617631
    618632                    }
     
    624638                } else {
    625639
    626                   echo '<li class="csf-tab-item"><a href="#tab='. esc_attr( $tab_id ) .'" data-tab-id="'. esc_attr( $tab_id ) .'">'. $tab_icon . $tab['title'] . $tab_error .'</a></li>';
     640                  echo '<li class="CFSSMARTSMS-tab-item"><a href="'.esc_url('#tab='. esc_html( $tab_id )).'" data-tab-id="'. esc_html( $tab_id ) .'">'. wp_kses_post($tab_icon) . wp_kses_post($tab['title']) . wp_kses_post($tab_error) .'</a></li>';
    627641
    628642                }
     
    636650          }
    637651
    638           echo '<div class="csf-content">';
    639 
    640             echo '<div class="csf-sections">';
     652          echo '<div class="CFSSMARTSMS-content">';
     653
     654            echo '<div class="CFSSMARTSMS-sections">';
    641655
    642656            foreach ( $this->pre_sections as $section ) {
    643657
    644               $section_onload = ( ! $has_nav ) ? ' csf-onload' : '';
    645               $section_class  = ( ! empty( $section['class'] ) ) ? ' '. $section['class'] : '';
    646               $section_icon   = ( ! empty( $section['icon'] ) ) ? '<i class="csf-section-icon '. esc_attr( $section['icon'] ) .'"></i>' : '';
     658              $section_onload = ( ! $has_nav ) ? ' CFSSMARTSMS-onload' : '';
     659              $section_class  = ( ! empty( $section['class'] ) ) ? ' '. esc_html($section['class']) : '';
     660              $section_icon   = ( ! empty( $section['icon'] ) ) ? '<i class="CFSSMARTSMS-section-icon '. esc_html( $section['icon'] ) .'"></i>' : '';
    647661              $section_title  = ( ! empty( $section['title'] ) ) ? $section['title'] : '';
    648662              $section_parent = ( ! empty( $section['ptitle'] ) ) ? sanitize_title( $section['ptitle'] ) .'/' : '';
    649663              $section_slug   = ( ! empty( $section['title'] ) ) ? sanitize_title( $section_title ) : '';
    650664
    651               echo '<div class="csf-section hidden'. esc_attr( $section_onload . $section_class ) .'" data-section-id="'. esc_attr( $section_parent . $section_slug ) .'">';
    652               echo ( $has_nav ) ? '<div class="csf-section-title"><h3>'. $section_icon . $section_title .'</h3></div>' : '';
    653               echo ( ! empty( $section['description'] ) ) ? '<div class="csf-field csf-section-description">'. $section['description'] .'</div>' : '';
     665              echo '<div class="CFSSMARTSMS-section hidden'. esc_html( $section_onload . $section_class ) .'" data-section-id="'. esc_html( $section_parent . $section_slug ) .'">';
     666              echo ( $has_nav ) ? '<div class="CFSSMARTSMS-section-title"><h3>'. wp_kses_post($section_icon) . wp_kses_post($section_title) .'</h3></div>' : '';
     667              echo ( ! empty( $section['description'] ) ) ? '<div class="CFSSMARTSMS-field CFSSMARTSMS-section-description">'. wp_kses_post($section['description']) .'</div>' : '';
    654668
    655669              if ( ! empty( $section['fields'] ) ) {
    656 
     670                  array_walk_recursive(
     671                      $section['fields'],
     672                      function (&$value) {
     673                          if (!is_array($value)) {
     674                              $value = wp_kses_post($value);
     675                          }
     676                      }
     677                  );
    657678                foreach ( $section['fields'] as $field ) {
    658679
     
    669690                  $value = ( ! empty( $field['id'] ) && isset( $this->options[$field['id']] ) ) ? $this->options[$field['id']] : '';
    670691
    671                   CSF::field( $field, $value, $this->unique, 'options' );
     692                  CFSSMARTSMS::field( $field, $value, $this->unique, 'options' );
    672693
    673694                }
     
    675696              } else {
    676697
    677                 echo '<div class="csf-no-option">'. esc_html__( 'No data available.', 'csf' ) .'</div>';
     698                echo '<div class="CFSSMARTSMS-no-option">'. esc_html__( 'No data available.', 'CFSSMARTSMS' ) .'</div>';
    678699
    679700              }
     
    689710          echo '</div>';
    690711
    691           echo ( $has_nav && $nav_type === 'normal' ) ? '<div class="csf-nav-background"></div>' : '';
     712          echo ( $has_nav && $nav_type === 'normal' ) ? '<div class="CFSSMARTSMS-nav-background"></div>' : '';
    692713
    693714        echo '</div>';
     
    695716        if ( ! empty( $this->args['show_footer'] ) ) {
    696717
    697           echo '<div class="csf-footer">';
    698 
    699           echo '<div class="csf-buttons">';
    700           echo '<input type="submit" name="csf_transient[save]" class="button button-primary csf-save'. esc_attr( $ajax_class ) .'" value="'. esc_html__( 'Save', 'csf' ) .'" data-save="'. esc_html__( 'Saving...', 'csf' ) .'">';
    701           echo ( $this->args['show_reset_section'] ) ? '<input type="submit" name="csf_transient[reset_section]" class="button button-secondary csf-reset-section csf-confirm" value="'. esc_html__( 'Reset Section', 'csf' ) .'" data-confirm="'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'">' : '';
    702           echo ( $this->args['show_reset_all'] ) ? '<input type="submit" name="csf_transient[reset]" class="button csf-warning-primary csf-reset-all csf-confirm" value="'. ( ( $this->args['show_reset_section'] ) ? esc_html__( 'Reset All', 'csf' ) : esc_html__( 'Reset', 'csf' ) ) .'" data-confirm="'. esc_html__( 'Are you sure you want to reset all settings to default values?', 'csf' ) .'">' : '';
     718          echo '<div class="CFSSMARTSMS-footer">';
     719
     720          echo '<div class="CFSSMARTSMS-buttons">';
     721          echo '<input type="submit" name="csf_transient[save]" class="button button-primary CFSSMARTSMS-save'. esc_html( $ajax_class ) .'" value="'. esc_html__( 'Save', 'CFSSMARTSMS' ) .'" data-save="'. esc_html__( 'Saving...', 'CFSSMARTSMS' ) .'">';
     722          echo ( $this->args['show_reset_section'] ) ? '<input type="submit" name="csf_transient[reset_section]" class="button button-secondary CFSSMARTSMS-reset-section CFSSMARTSMS-confirm" value="'. esc_html__( 'Reset Section', 'CFSSMARTSMS' ) .'" data-confirm="'. esc_html__( 'Are you sure to reset this section options?', 'CFSSMARTSMS' ) .'">' : '';
     723          echo ( $this->args['show_reset_all'] ) ? '<input type="submit" name="csf_transient[reset]" class="button CFSSMARTSMS-warning-primary CFSSMARTSMS-reset-all CFSSMARTSMS-confirm" value="'. ( ( $this->args['show_reset_section'] ) ? esc_html__( 'Reset All', 'CFSSMARTSMS' ) : esc_html__( 'Reset', 'CFSSMARTSMS' ) ) .'" data-confirm="'. esc_html__( 'Are you sure you want to reset all settings to default values?', 'CFSSMARTSMS' ) .'">' : '';
    703724          echo '</div>';
    704725
    705           echo ( ! empty( $this->args['footer_text'] ) ) ? '<div class="csf-copyright">'. $this->args['footer_text'] .'</div>' : '';
     726          echo ( ! empty( $this->args['footer_text'] ) ) ? '<div class="CFSSMARTSMS-copyright">'. wp_kses_post($this->args['footer_text']) .'</div>' : '';
    706727
    707728          echo '<div class="clear"></div>';
     
    716737        echo '<div class="clear"></div>';
    717738
    718         echo ( ! empty( $this->args['footer_after'] ) ) ? $this->args['footer_after'] : '';
     739        echo ( ! empty( $this->args['footer_after'] ) ) ? wp_kses_post( $this->args['footer_after']) : '';
    719740
    720741      echo '</div>';
  • nirweb-smart-sms/trunk/option/classes/fields.class.php

    r2729089 r2729124  
    6666
    6767    public function field_before() {
    68       return ( ! empty( $this->field['before'] ) ) ? '<div class="csf-before-text">'. $this->field['before'] .'</div>' : '';
     68      return ( ! empty( $this->field['before'] ) ) ? '<div class="CFSSMARTSMS-before-text">'. wp_kses_post($this->field['before']) .'</div>' : '';
    6969    }
    7070
    7171    public function field_after() {
    7272
    73       $output  = ( ! empty( $this->field['after'] ) ) ? '<div class="csf-after-text">'. $this->field['after'] .'</div>' : '';
    74       $output .= ( ! empty( $this->field['desc'] ) ) ? '<div class="clear"></div><div class="csf-desc-text">'. $this->field['desc'] .'</div>' : '';
    75       $output .= ( ! empty( $this->field['help'] ) ) ? '<div class="csf-help"><span class="csf-help-text">'. $this->field['help'] .'</span><i class="fas fa-question-circle"></i></div>' : '';
    76       $output .= ( ! empty( $this->field['_error'] ) ) ? '<div class="csf-error-text">'. $this->field['_error'] .'</div>' : '';
     73      $output  = ( ! empty( $this->field['after'] ) ) ? '<div class="CFSSMARTSMS-after-text">'. wp_kses_post($this->field['after']) .'</div>' : '';
     74      $output .= ( ! empty( $this->field['desc'] ) ) ? '<div class="clear"></div><div class="CFSSMARTSMS-desc-text">'.wp_kses_post( $this->field['desc']) .'</div>' : '';
     75      $output .= ( ! empty( $this->field['help'] ) ) ? '<div class="CFSSMARTSMS-help"><span class="CFSSMARTSMS-help-text">'. wp_kses_post($this->field['help']) .'</span><i class="fas fa-question-circle"></i></div>' : '';
     76      $output .= ( ! empty( $this->field['_error'] ) ) ? '<div class="CFSSMARTSMS-error-text">'.wp_kses_post( $this->field['_error']) .'</div>' : '';
    7777
    7878      return $output;
  • nirweb-smart-sms/trunk/option/classes/setup.class.php

    r2729089 r2729124  
    1212
    1313    // Default constants
    14     public static $premium  = false;
    15     public static $version  = '2.2.8';
     14    public static $premium  = true;
     15    public static $version  = '2.2.6';
    1616    public static $dir      = '';
    1717    public static $url      = '';
     
    4040    private static $instance = null;
    4141
    42     public static function init( $file = __FILE__, $premium = false ) {
     42    public static function init( $file = __FILE__ ) {
    4343
    4444      // Set file constant
    4545      self::$file = $file;
    4646
    47       // Set file constant
    48       self::$premium = $premium;
    49 
    5047      // Set constants
    5148      self::constants();
     
    7168      self::textdomain();
    7269
    73       add_action( 'after_setup_theme', array( 'CSF', 'setup' ) );
    74       add_action( 'init', array( 'CSF', 'setup' ) );
    75       add_action( 'switch_theme', array( 'CSF', 'setup' ) );
    76       add_action( 'admin_enqueue_scripts', array( 'CSF', 'add_admin_enqueue_scripts' ) );
    77       add_action( 'wp_enqueue_scripts', array( 'CSF', 'add_typography_enqueue_styles' ), 80 );
    78       add_action( 'wp_head', array( 'CSF', 'add_custom_css' ), 80 );
    79       add_filter( 'admin_body_class', array( 'CSF', 'add_admin_body_class' ) );
     70      add_action( 'after_setup_theme', array( 'CFSSMARTSMS', 'setup' ) );
     71      add_action( 'init', array( 'CFSSMARTSMS', 'setup' ) );
     72      add_action( 'switch_theme', array( 'CFSSMARTSMS', 'setup' ) );
     73      add_action( 'admin_enqueue_scripts', array( 'CFSSMARTSMS', 'add_admin_enqueue_scripts' ) );
     74      add_action( 'wp_head', array( 'CFSSMARTSMS', 'add_custom_css' ), 80 );
     75      add_filter( 'admin_body_class', array( 'CFSSMARTSMS', 'add_admin_body_class' ) );
    8076
    8177    }
     
    8480    public static function setup() {
    8581
    86       // Welcome
     82      // Welcome page
    8783      self::include_plugin_file( 'views/welcome.php' );
    8884
     
    329325      $path     = '';
    330326      $file     = ltrim( $file, '/' );
    331       $override = apply_filters( 'csf_override', 'csf-override' );
     327      $override = apply_filters( 'csf_override', 'CFSSMARTSMS-override' );
    332328
    333329      if ( file_exists( get_parent_theme_file_path( $override .'/'. $file ) ) ) {
     
    381377    public static function includes() {
    382378
    383       // Include common functions
     379      // Helpers
    384380      self::include_plugin_file( 'functions/actions.php'  );
    385381      self::include_plugin_file( 'functions/helpers.php'  );
     
    387383      self::include_plugin_file( 'functions/validate.php' );
    388384
    389       // Include free version classes
     385      // Includes free version classes
    390386      self::include_plugin_file( 'classes/abstract.class.php'      );
    391387      self::include_plugin_file( 'classes/fields.class.php'        );
    392388      self::include_plugin_file( 'classes/admin-options.class.php' );
    393389
    394       // Include premium version classes
     390      // Includes premium version classes
    395391      if ( self::$premium ) {
    396392        self::include_plugin_file( 'classes/customize-options.class.php' );
     
    464460    // Setup textdomain
    465461    public static function textdomain() {
    466       load_textdomain( 'csf', self::$dir .'/languages/'. get_locale() .'.mo' );
     462      load_textdomain( 'CFSSMARTSMS', self::$dir .'/languages/'. get_locale() .'.mo' );
    467463        load_textdomain( 'nss', NIRWEB_SMART_SMS .'languages/nss-'. get_locale() .'.mo' );
    468464    }
     
    567563      }
    568564
     565      // Check for developer mode
     566      $min = ( self::$premium && SCRIPT_DEBUG ) ? '' : '.min';
     567
    569568      // Admin utilities
    570569      wp_enqueue_media();
     
    576575      // Font awesome 4 and 5 loader
    577576      if ( apply_filters( 'csf_fa4', false ) ) {
    578         wp_enqueue_style( 'csf-fa', 'https://cdn.jsdelivr.net/npm/[email protected]/css/font-awesome.min.css', array(), '4.7.0', 'all' );
     577        wp_enqueue_style( 'CFSSMARTSMS-fa', self::include_plugin_url('assets/css/font-awesome.min.css'), array(), '4.7.0', 'all' );
    579578      } else {
    580         wp_enqueue_style( 'csf-fa5', 'https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css', array(), '5.15.5', 'all' );
    581         wp_enqueue_style( 'csf-fa5-v4-shims', 'https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/v4-shims.min.css', array(), '5.15.5', 'all' );
    582       }
    583 
    584       // Check for developer mode
    585       $min = ( self::$premium && SCRIPT_DEBUG ) ? '' : '.min';
     579        wp_enqueue_style( 'CFSSMARTSMS-fa5', self::include_plugin_url('assets/css/all.min.css'), array(), '5.15.5', 'all' );
     580        wp_enqueue_style( 'CFSSMARTSMS-fa5-v4-shims', self::include_plugin_url( 'assets/css/v4-shims.min.css'), array(), '5.15.5', 'all' );
     581      }
    586582
    587583      // Main style
    588       wp_enqueue_style( 'csf', self::include_plugin_url( 'assets/css/style'. $min .'.css' ), array(), self::$version, 'all' );
     584      wp_enqueue_style( 'CFSSMARTSMS', self::include_plugin_url('assets/css/style'. $min .'.css') , array(), self::$version, 'all' );
    589585
    590586      // Main RTL styles
    591587      if ( is_rtl() ) {
    592         wp_enqueue_style( 'csf-rtl', self::include_plugin_url( 'assets/css/style-rtl'. $min .'.css' ), array(), self::$version, 'all' );
     588        wp_enqueue_style( 'CFSSMARTSMS-rtl', self::include_plugin_url( 'assets/css/style-rtl'. $min .'.css' ), array(), self::$version, 'all' );
    593589      }
    594590
    595591      // Main scripts
    596       wp_enqueue_script( 'csf-plugins', self::include_plugin_url( 'assets/js/plugins'. $min .'.js' ), array(), self::$version, true );
    597       wp_enqueue_script( 'csf', self::include_plugin_url( 'assets/js/main'. $min .'.js' ), array( 'csf-plugins' ), self::$version, true );
     592      wp_enqueue_script( 'CFSSMARTSMS-plugins', self::include_plugin_url( 'assets/js/plugins'. $min .'.js' ), array(), self::$version, true );
     593      wp_enqueue_script( 'CFSSMARTSMS', self::include_plugin_url( 'assets/js/main'. $min .'.js' ), array( 'CFSSMARTSMS-plugins' ), self::$version, true );
    598594
    599595      // Main variables
    600       wp_localize_script( 'csf', 'csf_vars', array(
     596      wp_localize_script( 'CFSSMARTSMS', 'csf_vars', array(
    601597        'color_palette'     => apply_filters( 'csf_color_palette', array() ),
    602598        'i18n'              => array(
    603           'confirm'         => esc_html__( 'Are you sure?', 'csf' ),
    604           'typing_text'     => esc_html__( 'Please enter %s or more characters', 'csf' ),
    605           'searching_text'  => esc_html__( 'Searching...', 'csf' ),
    606           'no_results_text' => esc_html__( 'No results found.', 'csf' ),
     599          'confirm'         => esc_html__( 'Are you sure?', 'CFSSMARTSMS' ),
     600          'typing_text'     => esc_html__( 'Please enter %s or more characters', 'CFSSMARTSMS' ),
     601          'searching_text'  => esc_html__( 'Searching...', 'CFSSMARTSMS' ),
     602          'no_results_text' => esc_html__( 'No results found.', 'CFSSMARTSMS' ),
    607603        ),
    608604      ) );
     
    630626    }
    631627
    632     // Add typography enqueue styles to front page
    633     public static function add_typography_enqueue_styles() {
    634 
    635       if ( ! empty( self::$webfonts ) ) {
    636 
    637         if ( ! empty( self::$webfonts['enqueue'] ) ) {
    638 
    639           $query = array();
    640           $fonts = array();
    641 
    642           foreach ( self::$webfonts['enqueue'] as $family => $styles ) {
    643             $fonts[] = $family . ( ( ! empty( $styles ) ) ? ':'. implode( ',', $styles ) : '' );
    644           }
    645 
    646           if ( ! empty( $fonts ) ) {
    647             $query['family'] = implode( '%7C', $fonts );
    648           }
    649 
    650           if ( ! empty( self::$subsets ) ) {
    651             $query['subset'] = implode( ',', self::$subsets );
    652           }
    653 
    654           $query['display'] = 'swap';
    655 
    656           wp_enqueue_style( 'csf-google-web-fonts', esc_url( add_query_arg( $query, '//fonts.googleapis.com/css' ) ), array(), null );
    657 
    658         }
    659 
    660         if ( ! empty( self::$webfonts['async'] ) ) {
    661 
    662           $fonts = array();
    663 
    664           foreach ( self::$webfonts['async'] as $family => $styles ) {
    665             $fonts[] = $family . ( ( ! empty( $styles ) ) ? ':'. implode( ',', $styles ) : '' );
    666           }
    667 
    668           wp_enqueue_script( 'csf-google-web-fonts', esc_url( '//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js' ), array(), null );
    669 
    670           wp_localize_script( 'csf-google-web-fonts', 'WebFontConfig', array( 'google' => array( 'families' => $fonts ) ) );
    671 
    672         }
    673 
    674       }
    675 
    676     }
    677628
    678629    // Add admin body class
     
    680631
    681632      if ( apply_filters( 'csf_fa4', false ) ) {
    682         $classes .= 'csf-fa5-shims';
     633        $classes .= 'CFSSMARTSMS-fa5-shims';
    683634      }
    684635
     
    705656
    706657        $field            = array();
    707         $field['content'] = esc_html__( 'Oops! Not allowed.', 'csf' ) .' <strong>('. $field_type .')</strong>';
     658        $field['content'] = esc_html__( 'Oops! Not allowed.', 'CFSSMARTSMS' ) .' <strong>('. wp_kses_post($field_type) .')</strong>';
    708659        $field['type']    = 'notice';
    709660        $field['style']   = 'danger';
     
    715666      $unique     = ( ! empty( $unique ) ) ? $unique : '';
    716667      $class      = ( ! empty( $field['class'] ) ) ? ' ' . esc_attr( $field['class'] ) : '';
    717       $is_pseudo  = ( ! empty( $field['pseudo'] ) ) ? ' csf-pseudo-field' : '';
     668      $is_pseudo  = ( ! empty( $field['pseudo'] ) ) ? ' CFSSMARTSMS-pseudo-field' : '';
    718669      $field_type = ( ! empty( $field['type'] ) ) ? esc_attr( $field['type'] ) : '';
    719670
     
    746697        $depend .= ( ! empty( $data_global ) ) ? ' data-depend-global="true"' : '';
    747698
    748         $visible = ( ! empty( $depend_visible ) ) ? ' csf-depend-visible' : ' csf-depend-hidden';
     699        $visible = ( ! empty( $depend_visible ) ) ? ' CFSSMARTSMS-depend-visible' : ' CFSSMARTSMS-depend-hidden';
    749700
    750701      }
    751702
    752703      // These attributes has been sanitized above.
    753       echo '<div class="csf-field csf-field-'. wp_kses_post($field_type) . esc_attr($is_pseudo) . esc_attr($class) . esc_attr($visible) .'"'. wp_kses_post($depend) .'>';
     704      echo '<div class="CFSSMARTSMS-field CFSSMARTSMS-field-'. wp_kses_post($field_type) . wp_kses_post($is_pseudo) . wp_kses_post($class) . wp_kses_post($visible) .'"'. wp_kses_post($depend) .'>';
    754705
    755706      if ( ! empty( $field_type ) ) {
    756707
     708        if ( ! empty( $field['fancy_title'] ) ) {
     709          echo '<div class="CFSSMARTSMS-fancy-title">' . wp_kses_post( $field['fancy_title']) .'</div>';
     710        }
     711
    757712        if ( ! empty( $field['title'] ) ) {
    758           echo '<div class="csf-title">';
    759           echo '<h4>'.esc_html( $field['title']) .'</h4>';
    760           echo ( ! empty( $field['subtitle'] ) ) ? '<div class="csf-subtitle-text">'. esc_html($field['subtitle']) .'</div>' : '';
     713          echo '<div class="CFSSMARTSMS-title">';
     714          echo '<h4>'. wp_kses_post($field['title']) .'</h4>';
     715          echo ( ! empty( $field['subtitle'] ) ) ? '<div class="CFSSMARTSMS-subtitle-text">'. wp_kses_post($field['subtitle']) .'</div>' : '';
    761716          echo '</div>';
    762717        }
    763718
    764         echo ( ! empty( $field['title'] ) ) ? '<div class="csf-fieldset">' : '';
     719        echo ( ! empty( $field['title'] ) || ! empty( $field['fancy_title'] ) ) ? '<div class="CFSSMARTSMS-fieldset">' : '';
    765720
    766721        $value = ( ! isset( $value ) && isset( $field['default'] ) ) ? $field['default'] : $value;
     
    773728          $instance->render();
    774729        } else {
    775           echo '<p>'. esc_html__( 'Field not found!', 'csf' ) .'</p>';
     730          echo '<p>'. esc_html__( 'Field not found!', 'CFSSMARTSMS' ) .'</p>';
    776731        }
    777732
    778733      } else {
    779         echo '<p>'. esc_html__( 'Field not found!', 'csf' ) .'</p>';
    780       }
    781 
    782       echo ( ! empty( $field['title'] ) ) ? '</div>' : '';
     734        echo '<p>'. esc_html__( 'Field not found!', 'CFSSMARTSMS' ) .'</p>';
     735      }
     736
     737      echo ( ! empty( $field['title'] ) || ! empty( $field['fancy_title'] ) ) ? '</div>' : '';
    783738      echo '<div class="clear"></div>';
    784739      echo '</div>';
     
    790745}
    791746
    792 CFSSMARTSMS::init( __FILE__, false );
    793 
    794 /**
    795  *
    796  * Extended Setup Class for Shortland
    797  *
    798  * @since 1.0.0
    799  * @version 1.0.0
    800  *
    801  */
    802 if ( ! class_exists( 'CSF' ) ) {
    803   class CSF extends CFSSMARTSMS{}
    804 }
     747CFSSMARTSMS::init( __FILE__ );
  • nirweb-smart-sms/trunk/option/fields/date/date.php

    r2729089 r2729124  
    2929
    3030        $args = wp_parse_args( $this->field, array(
    31           'text_from' => esc_html__( 'From', 'csf' ),
    32           'text_to'   => esc_html__( 'To', 'csf' ),
     31          'text_from' => esc_html__( 'From', 'CFSSMARTSMS' ),
     32          'text_to'   => esc_html__( 'To', 'CFSSMARTSMS' ),
    3333        ) );
    3434
     
    3838        ) );
    3939
    40         echo '<label class="csf--from">'. esc_attr( $args['text_from'] ) .' <input type="text" name="'. esc_attr( $this->field_name( '[from]' ) ) .'" value="'. esc_attr( $value['from'] ) .'"'. esc_attr($this->field_attributes()) .'/></label>';
    41         echo '<label class="csf--to">'. esc_attr( $args['text_to'] ) .' <input type="text" name="'. esc_attr( $this->field_name( '[to]' ) ) .'" value="'. esc_attr( $value['to'] ) .'"'. esc_attr($this->field_attributes()) .'/></label>';
     40        echo '<label class="CFSSMARTSMS--from">'. esc_attr( $args['text_from'] ) .' <input type="text" name="'. esc_attr( $this->field_name( '[from]' ) ) .'" value="'. esc_attr( $value['from'] ) .'"'. wp_kses_post($this->field_attributes()) .'/></label>';
     41        echo '<label class="CFSSMARTSMS--to">'. esc_attr( $args['text_to'] ) .' <input type="text" name="'. esc_attr( $this->field_name( '[to]' ) ) .'" value="'. esc_attr( $value['to'] ) .'"'. wp_kses_post($this->field_attributes()) .'/></label>';
    4242
    4343      } else {
    4444
    45         echo '<input type="text" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. esc_attr($this->field_attributes()) .'/>';
     45        echo '<input type="text" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. wp_kses_post($this->field_attributes()) .'/>';
    4646
    4747      }
    4848
    49       echo '<div class="csf-date-settings" data-settings="'. esc_attr( json_encode( $settings ) ) .'"></div>';
     49      echo '<div class="CFSSMARTSMS-date-settings" data-settings="'. esc_attr( json_encode( $settings ) ) .'"></div>';
    5050
    5151      echo wp_kses_post($this->field_after());
  • nirweb-smart-sms/trunk/option/fields/fieldset/fieldset.php

    r2729089 r2729124  
    1919      echo wp_kses_post($this->field_before());
    2020
    21       echo '<div class="csf-fieldset-content" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
     21      echo '<div class="CFSSMARTSMS-fieldset-content" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
    2222
    2323      foreach ( $this->field['fields'] as $field ) {
     
    2828        $unique_id     = ( ! empty( $this->unique ) ) ? $this->unique .'['. $this->field['id'] .']' : $this->field['id'];
    2929
    30         CSF::field( $field, $field_value, $unique_id, 'field/fieldset' );
     30        CFSSMARTSMS::field( $field, $field_value, $unique_id, 'field/fieldset' );
    3131
    3232      }
  • nirweb-smart-sms/trunk/option/fields/notice/notice.php

    r2729089 r2729124  
    1919      $style = ( ! empty( $this->field['style'] ) ) ? $this->field['style'] : 'normal';
    2020
    21       echo ( ! empty( $this->field['content'] ) ) ? '<div class="csf-notice csf-notice-'. esc_attr( $style ) .'">'. wp_kses_post($this->field['content']) .'</div>' : '';
     21      echo ( ! empty( $this->field['content'] ) ) ? '<div class="CFSSMARTSMS-notice CFSSMARTSMS-notice-'. esc_attr( $style ) .'">'. wp_kses_post($this->field['content']) .'</div>' : '';
    2222
    2323    }
  • nirweb-smart-sms/trunk/option/fields/repeater/repeater.php

    r2729089 r2729124  
    2525      if ( preg_match( '/'. preg_quote( '['. $this->field['id'] .']' ) .'/', $this->unique ) ) {
    2626
    27         echo '<div class="csf-notice csf-notice-danger">'. esc_html__( 'Error: Field ID conflict.', 'csf' ) .'</div>';
     27        echo '<div class="CFSSMARTSMS-notice CFSSMARTSMS-notice-danger">'. esc_html__( 'Error: Field ID conflict.', 'CFSSMARTSMS' ) .'</div>';
    2828
    2929      } else {
     
    3131        echo wp_kses_post($this->field_before());
    3232
    33         echo '<div class="csf-repeater-item csf-repeater-hidden" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
    34         echo '<div class="csf-repeater-content">';
     33        echo '<div class="CFSSMARTSMS-repeater-item CFSSMARTSMS-repeater-hidden" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
     34        echo '<div class="CFSSMARTSMS-repeater-content">';
    3535        foreach ( $this->field['fields'] as $field ) {
    3636
     
    3838          $field_unique  = ( ! empty( $this->unique ) ) ? $this->unique .'['. $this->field['id'] .'][0]' : $this->field['id'] .'[0]';
    3939
    40           CSF::field( $field, $field_default, '___'. $field_unique, 'field/repeater' );
     40          CFSSMARTSMS::field( $field, $field_default, '___'. $field_unique, 'field/repeater' );
    4141
    4242        }
    4343        echo '</div>';
    44         echo '<div class="csf-repeater-helper">';
    45         echo '<div class="csf-repeater-helper-inner">';
    46         echo '<i class="csf-repeater-sort fas fa-arrows-alt"></i>';
    47         echo '<i class="csf-repeater-clone far fa-clone"></i>';
    48         echo '<i class="csf-repeater-remove csf-confirm fas fa-times" data-confirm="'. esc_html__( 'Are you sure to delete this item?', 'csf' ) .'"></i>';
     44        echo '<div class="CFSSMARTSMS-repeater-helper">';
     45        echo '<div class="CFSSMARTSMS-repeater-helper-inner">';
     46        echo '<i class="CFSSMARTSMS-repeater-sort fas fa-arrows-alt"></i>';
     47        echo '<i class="CFSSMARTSMS-repeater-clone far fa-clone"></i>';
     48        echo '<i class="CFSSMARTSMS-repeater-remove CFSSMARTSMS-confirm fas fa-times" data-confirm="'. esc_html__( 'Are you sure to delete this item?', 'CFSSMARTSMS' ) .'"></i>';
    4949        echo '</div>';
    5050        echo '</div>';
    5151        echo '</div>';
    5252
    53         echo '<div class="csf-repeater-wrapper csf-data-wrapper" data-field-id="['. esc_attr( $this->field['id'] ) .']" data-max="'. esc_attr( $args['max'] ) .'" data-min="'. esc_attr( $args['min'] ) .'">';
     53        echo '<div class="CFSSMARTSMS-repeater-wrapper CFSSMARTSMS-data-wrapper" data-field-id="['. esc_attr( $this->field['id'] ) .']" data-max="'. esc_attr( $args['max'] ) .'" data-min="'. esc_attr( $args['min'] ) .'">';
    5454
    5555        if ( ! empty( $this->value ) && is_array( $this->value ) ) {
    5656
    5757          $num = 0;
    58 
     58            array_walk_recursive(
     59                $this->value,
     60                function (&$value) {
     61                    if (!is_array($value)) {
     62                        $value = wp_kses_post($value);
     63                    }
     64                }
     65            );
    5966          foreach ( $this->value as $key => $value ) {
    6067
    61             echo '<div class="csf-repeater-item">';
    62             echo '<div class="csf-repeater-content">';
     68            echo '<div class="CFSSMARTSMS-repeater-item">';
     69            echo '<div class="CFSSMARTSMS-repeater-content">';
    6370            foreach ( $this->field['fields'] as $field ) {
    6471
     
    6673              $field_value  = ( isset( $field['id'] ) && isset( $this->value[$key][$field['id']] ) ) ? $this->value[$key][$field['id']] : '';
    6774
    68               CSF::field( $field, $field_value, $field_unique, 'field/repeater' );
     75              CFSSMARTSMS::field( $field, $field_value, $field_unique, 'field/repeater' );
    6976
    7077            }
    7178            echo '</div>';
    72             echo '<div class="csf-repeater-helper">';
    73             echo '<div class="csf-repeater-helper-inner">';
    74             echo '<i class="csf-repeater-sort fas fa-arrows-alt"></i>';
    75             echo '<i class="csf-repeater-clone far fa-clone"></i>';
    76             echo '<i class="csf-repeater-remove csf-confirm fas fa-times" data-confirm="'. esc_html__( 'Are you sure to delete this item?', 'csf' ) .'"></i>';
     79            echo '<div class="CFSSMARTSMS-repeater-helper">';
     80            echo '<div class="CFSSMARTSMS-repeater-helper-inner">';
     81            echo '<i class="CFSSMARTSMS-repeater-sort fas fa-arrows-alt"></i>';
     82            echo '<i class="CFSSMARTSMS-repeater-clone far fa-clone"></i>';
     83            echo '<i class="CFSSMARTSMS-repeater-remove CFSSMARTSMS-confirm fas fa-times" data-confirm="'. esc_html__( 'Are you sure to delete this item?', 'CFSSMARTSMS' ) .'"></i>';
    7784            echo '</div>';
    7885            echo '</div>';
     
    8794        echo '</div>';
    8895
    89         echo '<div class="csf-repeater-alert csf-repeater-max">'. esc_html__( 'You cannot add more.', 'csf' ) .'</div>';
    90         echo '<div class="csf-repeater-alert csf-repeater-min">'. esc_html__( 'You cannot remove more.', 'csf' ) .'</div>';
    91         echo '<a href="#" class="button button-primary csf-repeater-add">'. wp_kses_post($args['button_title']) .'</a>';
     96        echo '<div class="CFSSMARTSMS-repeater-alert CFSSMARTSMS-repeater-max">'. esc_html__( 'You cannot add more.', 'CFSSMARTSMS' ) .'</div>';
     97        echo '<div class="CFSSMARTSMS-repeater-alert CFSSMARTSMS-repeater-min">'. esc_html__( 'You cannot remove more.', 'CFSSMARTSMS' ) .'</div>';
     98        echo '<a href="#" class="button button-primary CFSSMARTSMS-repeater-add">'. wp_kses_post($args['button_title']) .'</a>';
    9299
    93100        echo wp_kses_post($this->field_after());
  • nirweb-smart-sms/trunk/option/fields/select/select.php

    r2729089 r2729124  
    4444        $multiple_name    = ( $args['multiple'] ) ? '[]' : '';
    4545        $multiple_attr    = ( $args['multiple'] ) ? ' multiple="multiple"' : '';
    46         $chosen_sortable  = ( $args['chosen'] && $args['sortable'] ) ? ' csf-chosen-sortable' : '';
    47         $chosen_ajax      = ( $args['chosen'] && $args['ajax'] ) ? ' csf-chosen-ajax' : '';
     46        $chosen_sortable  = ( $args['chosen'] && $args['sortable'] ) ? ' CFSSMARTSMS-chosen-sortable' : '';
     47        $chosen_ajax      = ( $args['chosen'] && $args['ajax'] ) ? ' CFSSMARTSMS-chosen-ajax' : '';
    4848        $placeholder_attr = ( $args['chosen'] && $args['placeholder'] ) ? ' data-placeholder="'. esc_attr( $args['placeholder'] ) .'"' : '';
    49         $field_class      = ( $args['chosen'] ) ? ' class="csf-chosen'. esc_attr( $chosen_rtl . $chosen_sortable . $chosen_ajax ) .'"' : '';
     49        $field_class      = ( $args['chosen'] ) ? ' class="CFSSMARTSMS-chosen'. esc_attr( $chosen_rtl . $chosen_sortable . $chosen_ajax ) .'"' : '';
    5050        $field_name       = $this->field_name( $multiple_name );
    5151        $field_attr       = $this->field_attributes();
     
    6565          if ( ! empty( $args['chosen'] ) && ! empty( $args['multiple'] ) ) {
    6666
    67             echo '<select name="'. esc_attr($field_name) .'" class="csf-hide-select hidden"'. esc_attr($multiple_attr) . wp_kses_post($field_attr) .'>';
     67            echo '<select name="'. esc_html($field_name) .'" class="CFSSMARTSMS-hide-select hidden"'. esc_html($multiple_attr) . esc_html($field_attr) .'>';
    6868            foreach ( $this->value as $option_key ) {
    6969              echo '<option value="'. esc_attr( $option_key ) .'" selected>'. esc_attr( $option_key ) .'</option>';
     
    7777
    7878          // These attributes has been serialized above.
    79           echo '<select name="'. esc_attr( $field_name ) .'"'. wp_kses_post($field_class) . wp_kses_post($multiple_attr) . wp_kses_post($placeholder_attr) . wp_kses_post($field_attr) . wp_kses_post($chosen_data_attr) .'>';
     79          echo '<select name="'. wp_kses_post( $field_name ) .'"'. wp_kses_post($field_class) . wp_kses_post($multiple_attr) . wp_kses_post($placeholder_attr) . wp_kses_post($field_attr) . wp_kses_post($chosen_data_attr) .'>';
    8080
    8181          if ( $args['placeholder'] && empty( $args['multiple'] ) ) {
     
    111111        } else {
    112112
    113           echo ( ! empty( $this->field['empty_message'] ) ) ? esc_attr( $this->field['empty_message'] ) : esc_html__( 'No data available.', 'csf' );
     113          echo ( ! empty( $this->field['empty_message'] ) ) ? esc_attr( $this->field['empty_message'] ) : esc_html__( 'No data available.', 'CFSSMARTSMS' );
    114114
    115115        }
  • nirweb-smart-sms/trunk/option/fields/subheading/subheading.php

    r2729089 r2729124  
    1717    public function render() {
    1818
    19       echo ( ! empty( $this->field['content'] ) ) ? wp_kses_post( $this->field['content']) : '';
     19      echo ( ! empty( $this->field['content'] ) ) ? wp_kses_post($this->field['content']) : '';
    2020
    2121    }
  • nirweb-smart-sms/trunk/option/fields/submessage/submessage.php

    r2729089 r2729124  
    1919      $style = ( ! empty( $this->field['style'] ) ) ? $this->field['style'] : 'normal';
    2020
    21       echo '<div class="csf-submessage csf-submessage-'. esc_attr( $style ) .'">'. wp_kses_post($this->field['content']) .'</div>';
     21      echo '<div class="CFSSMARTSMS-submessage CFSSMARTSMS-submessage-'. esc_attr( $style ) .'">'. wp_kses_post($this->field['content']) .'</div>';
    2222
    2323    }
  • nirweb-smart-sms/trunk/option/fields/switcher/switcher.php

    r2729089 r2729124  
    1717    public function render() {
    1818
    19       $active     = ( ! empty( $this->value ) ) ? ' csf--active' : '';
    20       $text_on    = ( ! empty( $this->field['text_on'] ) ) ? $this->field['text_on'] : esc_html__( 'On', 'csf' );
    21       $text_off   = ( ! empty( $this->field['text_off'] ) ) ? $this->field['text_off'] : esc_html__( 'Off', 'csf' );
     19      $active     = ( ! empty( $this->value ) ) ? ' CFSSMARTSMS--active' : '';
     20      $text_on    = ( ! empty( $this->field['text_on'] ) ) ? $this->field['text_on'] : esc_html__( 'On', 'CFSSMARTSMS' );
     21      $text_off   = ( ! empty( $this->field['text_off'] ) ) ? $this->field['text_off'] : esc_html__( 'Off', 'CFSSMARTSMS' );
    2222      $text_width = ( ! empty( $this->field['text_width'] ) ) ? ' style="width: '. esc_attr( $this->field['text_width'] ) .'px;"': '';
    2323
    2424      echo wp_kses_post($this->field_before());
    2525
    26       echo '<div class="csf--switcher'. esc_attr( $active ) .'"'. wp_kses_post($text_width) .'>';
    27       echo '<span class="csf--on">'. esc_attr( $text_on ) .'</span>';
    28       echo '<span class="csf--off">'. esc_attr( $text_off ) .'</span>';
    29       echo '<span class="csf--ball"></span>';
    30       echo '<input type="hidden" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'.wp_kses_post( $this->field_attributes()) .' />';
     26      echo '<div class="CFSSMARTSMS--switcher'. esc_attr( $active ) .'"'. wp_kses_post($text_width) .'>';
     27      echo '<span class="CFSSMARTSMS--on">'. esc_attr( $text_on ) .'</span>';
     28      echo '<span class="CFSSMARTSMS--off">'. esc_attr( $text_off ) .'</span>';
     29      echo '<span class="CFSSMARTSMS--ball"></span>';
     30      echo '<input type="hidden" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. wp_kses_post($this->field_attributes()) .' />';
    3131      echo '</div>';
    3232
    33       echo ( ! empty( $this->field['label'] ) ) ? '<span class="csf--label">'. esc_attr( $this->field['label'] ) . '</span>' : '';
     33      echo ( ! empty( $this->field['label'] ) ) ? '<span class="CFSSMARTSMS--label">'. esc_attr( $this->field['label'] ) . '</span>' : '';
    3434
    3535      echo wp_kses_post($this->field_after());
  • nirweb-smart-sms/trunk/option/fields/tabbed/tabbed.php

    r2729089 r2729124  
    2121      echo wp_kses_post($this->field_before());
    2222
    23       echo '<div class="csf-tabbed-nav" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
     23      echo '<div class="CFSSMARTSMS-tabbed-nav" data-depend-id="'. esc_attr( $this->field['id'] ) .'">';
    2424      foreach ( $this->field['tabs'] as $key => $tab ) {
    2525
    26         $tabbed_icon   = ( ! empty( $tab['icon'] ) ) ? '<i class="csf--icon '. esc_attr( $tab['icon'] ) .'"></i>' : '';
    27         $tabbed_active = ( empty( $key ) ) ? 'csf-tabbed-active' : '';
     26        $tabbed_icon   = ( ! empty( $tab['icon'] ) ) ? '<i class="CFSSMARTSMS--icon '. esc_attr( $tab['icon'] ) .'"></i>' : '';
     27        $tabbed_active = ( empty( $key ) ) ? 'CFSSMARTSMS-tabbed-active' : '';
    2828
    2929        echo '<a href="#" class="'. esc_attr( $tabbed_active ) .'"">'. wp_kses_post($tabbed_icon) . esc_attr( $tab['title'] ) .'</a>';
     
    3232      echo '</div>';
    3333
    34       echo '<div class="csf-tabbed-contents">';
     34      echo '<div class="CFSSMARTSMS-tabbed-contents">';
    3535      foreach ( $this->field['tabs'] as $key => $tab ) {
    3636
    3737        $tabbed_hidden = ( ! empty( $key ) ) ? ' hidden' : '';
    3838
    39         echo '<div class="csf-tabbed-content'. esc_attr( $tabbed_hidden ) .'">';
     39        echo '<div class="CFSSMARTSMS-tabbed-content'. esc_attr( $tabbed_hidden ) .'">';
    4040
    4141        foreach ( $tab['fields'] as $field ) {
     
    4848          $unique_id     = ( ! empty( $this->unique ) ) ? $this->unique .'['. $this->field['id'] .']' : $this->field['id'];
    4949
    50           CSF::field( $field, $field_value, $unique_id, 'field/tabbed' );
     50          CFSSMARTSMS::field( $field, $field_value, $unique_id, 'field/tabbed' );
    5151
    5252        }
  • nirweb-smart-sms/trunk/option/functions/actions.php

    r2729089 r2729124  
    1414
    1515    if ( ! wp_verify_nonce( $nonce, 'csf_icon_nonce' ) ) {
    16       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'csf' ) ) );
     16      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'CFSSMARTSMS' ) ) );
    1717    }
    1818
     
    2121    $icon_library = ( apply_filters( 'csf_fa4', false ) ) ? 'fa4' : 'fa5';
    2222
    23     CSF::include_plugin_file( 'fields/icon/'. $icon_library .'-icons.php' );
     23    CFSSMARTSMS::include_plugin_file( 'fields/icon/'. $icon_library .'-icons.php' );
    2424
    2525    $icon_lists = apply_filters( 'csf_field_icon_add_icons', csf_get_default_icons() );
     
    2929      foreach ( $icon_lists as $list ) {
    3030
    31         echo ( count( $icon_lists ) >= 2 ) ? '<div class="csf-icon-title">'. esc_attr( $list['title'] ) .'</div>' : '';
     31        echo ( count( $icon_lists ) >= 2 ) ? '<div class="CFSSMARTSMS-icon-title">'. esc_attr( $list['title'] ) .'</div>' : '';
    3232
    3333        foreach ( $list['icons'] as $icon ) {
     
    3939    } else {
    4040
    41       echo '<div class="csf-error-text">'. esc_html__( 'No data available.', 'csf' ) .'</div>';
     41      echo '<div class="CFSSMARTSMS-error-text">'. esc_html__( 'No data available.', 'CFSSMARTSMS' ) .'</div>';
    4242
    4343    }
     
    6666
    6767    if ( ! wp_verify_nonce( $nonce, 'csf_backup_nonce' ) ) {
    68       die( esc_html__( 'Error: Invalid nonce verification.', 'csf' ) );
     68      die( esc_html__( 'Error: Invalid nonce verification.', 'CFSSMARTSMS' ) );
    6969    }
    7070
    7171    if ( empty( $unique ) ) {
    72       die( esc_html__( 'Error: Invalid key.', 'csf' ) );
     72      die( esc_html__( 'Error: Invalid key.', 'CFSSMARTSMS' ) );
    7373    }
    7474
     
    104104
    105105    if ( ! wp_verify_nonce( $nonce, 'csf_backup_nonce' ) ) {
    106       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'csf' ) ) );
     106      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'CFSSMARTSMS' ) ) );
    107107    }
    108108
    109109    if ( empty( $unique ) ) {
    110       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid key.', 'csf' ) ) );
     110      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid key.', 'CFSSMARTSMS' ) ) );
    111111    }
    112112
    113113    if ( empty( $data ) || ! is_array( $data ) ) {
    114       wp_send_json_error( array( 'error' => esc_html__( 'Error: The response is not a valid JSON response.', 'csf' ) ) );
     114      wp_send_json_error( array( 'error' => esc_html__( 'Error: The response is not a valid JSON response.', 'CFSSMARTSMS' ) ) );
    115115    }
    116116
     
    139139
    140140    if ( ! wp_verify_nonce( $nonce, 'csf_backup_nonce' ) ) {
    141       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'csf' ) ) );
     141      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'CFSSMARTSMS' ) ) );
    142142    }
    143143
     
    168168
    169169    if ( ! wp_verify_nonce( $nonce, 'csf_chosen_ajax_nonce' ) ) {
    170       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'csf' ) ) );
     170      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid nonce verification.', 'CFSSMARTSMS' ) ) );
    171171    }
    172172
    173173    if ( empty( $type ) || empty( $term ) ) {
    174       wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid term ID.', 'csf' ) ) );
     174      wp_send_json_error( array( 'error' => esc_html__( 'Error: Invalid term ID.', 'CFSSMARTSMS' ) ) );
    175175    }
    176176
     
    178178
    179179    if ( ! current_user_can( $capability ) ) {
    180       wp_send_json_error( array( 'error' => esc_html__( 'Error: You do not have permission to do that.', 'csf' ) ) );
     180      wp_send_json_error( array( 'error' => esc_html__( 'Error: You do not have permission to do that.', 'CFSSMARTSMS' ) ) );
    181181    }
    182182
  • nirweb-smart-sms/trunk/option/functions/customize.php

    r2729089 r2729124  
    1010if ( ! class_exists( 'WP_Customize_Panel_CSF' ) && class_exists( 'WP_Customize_Panel' ) ) {
    1111  class WP_Customize_Panel_CSF extends WP_Customize_Panel {
    12     public $type = 'csf';
     12    public $type = 'CFSSMARTSMS';
    1313  }
    1414}
     
    2424if ( ! class_exists( 'WP_Customize_Section_CSF' ) && class_exists( 'WP_Customize_Section' ) ) {
    2525  class WP_Customize_Section_CSF extends WP_Customize_Section {
    26     public $type = 'csf';
     26    public $type = 'CFSSMARTSMS';
    2727  }
    2828}
     
    3939  class WP_Customize_Control_CSF extends WP_Customize_Control {
    4040
    41     public $type   = 'csf';
     41    public $type   = 'CFSSMARTSMS';
    4242    public $field  = '';
    4343    public $unique = '';
     
    7676        $depend .= ( ! empty( $data_global ) ) ? ' data-depend-global="true"' : '';
    7777
    78         $visible  = ' csf-dependency-control';
    79         $visible .= ( ! empty( $depend_visible ) ) ? ' csf-depend-visible' : ' csf-depend-hidden';
     78        $visible  = ' CFSSMARTSMS-dependency-control';
     79        $visible .= ( ! empty( $depend_visible ) ) ? ' CFSSMARTSMS-depend-visible' : ' CFSSMARTSMS-depend-hidden';
    8080
    8181      }
     
    8484      $class = 'customize-control customize-control-'. $this->type . $visible;
    8585
    86       echo '<li id="'. esc_attr( $id ) .'" class="'. esc_attr( $class ) .'"'. wp_kses_post($depend) .'>';
     86      echo '<li id="'. esc_attr( $id ) .'" class="'. esc_attr( $class ) .'"'. esc_html($depend) .'>';
    8787      $this->render_field_content();
    8888      echo '</li>';
     
    120120      $custom     = ( ! empty( $this->field['customizer'] ) ) ? true : false;
    121121      $is_complex = ( in_array( $this->field['type'], $complex ) ) ? true : false;
    122       $class      = ( $is_complex || $custom ) ? ' csf-customize-complex' : '';
     122      $class      = ( $is_complex || $custom ) ? ' CFSSMARTSMS-customize-complex' : '';
    123123      $atts       = ( $is_complex || $custom ) ? ' data-unique-id="'. esc_attr( $this->unique ) .'" data-option-id="'. esc_attr( $field_id ) .'"' : '';
    124124
     
    131131      $this->field['dependency'] = array();
    132132
    133       echo '<div class="csf-customize-field'. esc_attr( $class ) .'"'. wp_kses_post($atts) .'>';
     133      echo '<div class="CFSSMARTSMS-customize-field'. esc_attr( $class ) .'"'. esc_html($atts) .'>';
    134134
    135       CSF::field( $this->field, $this->value(), $this->unique, 'customize' );
     135      CFSSMARTSMS::field( $this->field, $this->value(), $this->unique, 'customize' );
    136136
    137137      echo '</div>';
  • nirweb-smart-sms/trunk/option/functions/validate.php

    r2729089 r2729124  
    1212
    1313    if ( ! filter_var( $value, FILTER_VALIDATE_EMAIL ) ) {
    14       return esc_html__( 'Please enter a valid email address.', 'csf' );
     14      return esc_html__( 'Please enter a valid email address.', 'CFSSMARTSMS' );
    1515    }
    1616
     
    3030
    3131    if ( ! is_numeric( $value ) ) {
    32       return esc_html__( 'Please enter a valid number.', 'csf' );
     32      return esc_html__( 'Please enter a valid number.', 'CFSSMARTSMS' );
    3333    }
    3434
     
    4848
    4949    if ( empty( $value ) ) {
    50       return esc_html__( 'This field is required.', 'csf' );
     50      return esc_html__( 'This field is required.', 'CFSSMARTSMS' );
    5151    }
    5252
     
    6666
    6767    if ( ! filter_var( $value, FILTER_VALIDATE_URL ) ) {
    68       return esc_html__( 'Please enter a valid URL.', 'csf' );
     68      return esc_html__( 'Please enter a valid URL.', 'CFSSMARTSMS' );
    6969    }
    7070
     
    8484
    8585    if ( ! sanitize_email( $value ) ) {
    86       $validity->add( 'required', esc_html__( 'Please enter a valid email address.', 'csf' ) );
     86      $validity->add( 'required', esc_html__( 'Please enter a valid email address.', 'CFSSMARTSMS' ) );
    8787    }
    8888
     
    104104
    105105    if ( ! is_numeric( $value ) ) {
    106       $validity->add( 'required', esc_html__( 'Please enter a valid number.', 'csf' ) );
     106      $validity->add( 'required', esc_html__( 'Please enter a valid number.', 'CFSSMARTSMS' ) );
    107107    }
    108108
     
    124124
    125125    if ( empty( $value ) ) {
    126       $validity->add( 'required', esc_html__( 'This field is required.', 'csf' ) );
     126      $validity->add( 'required', esc_html__( 'This field is required.', 'CFSSMARTSMS' ) );
    127127    }
    128128
     
    144144
    145145    if ( ! filter_var( $value, FILTER_VALIDATE_URL ) ) {
    146       $validity->add( 'required', esc_html__( 'Please enter a valid URL.', 'csf' ) );
     146      $validity->add( 'required', esc_html__( 'Please enter a valid URL.', 'CFSSMARTSMS' ) );
    147147    }
    148148
  • nirweb-smart-sms/trunk/option/views/about.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    22
    3 <p>Welcome to the exciting world of Codestar Framework. Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. Allows you to bring custom admin, metabox, taxonomy and customize settings to all of your pages, posts and categories. It's highly modern and advanced framework.</p>
     3<p>به دنیای هیجان انگیز فریمورک کُداستار  خوش آمدید. ساخته شده در پارادایم برنامه نویسی شی گرا با تعداد زیاد فیلدهای سفارشی و تعداد زیادی گزینه. به شما امکان می دهد ادمین سفارشی، متاباکس، طبقه بندی را بیاورید و تنظیمات را به تمام صفحات، پست ها و دسته های خود سفارشی کنید. این چارچوب بسیار مدرن و پیشرفته است.</p>
    44
    5 <div class="csf-welcome-cols">
     5<div class="CFSSMARTSMS-welcome-cols">
    66
    7   <div class="csf--col csf--col-first">
    8     <span class="csf--icon csf--active"><i class="fas fa-check"></i></span>
    9     <div class="csf--title">Admin Option Framework</div>
    10     <p class="csf--text">Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. It's highly modern and advanced framework.</p>
     7  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first">
     8    <span class="CFSSMARTSMS--icon CFSSMARTSMS--active"><i class="fas fa-check"></i></span>
     9    <div class="CFSSMARTSMS--title">تنظیمات مدیریت</div>
     10    <p class="CFSSMARTSMS--text">ساخته شده در پارادایم برنامه نویسی شی گرا با تعداد زیاد فیلدهای سفارشی و تعداد زیادی گزینه. این چارچوب بسیار مدرن و پیشرفته است.</p>
    1111  </div>
    1212
    13   <div class="csf--col csf--col-first">
    14     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    15     <div class="csf--title">Customize Option Framework</div>
    16     <p class="csf--text">Inherits the default WordPress Customizer with integration of own custom fields. It's more powerful to customize your site on live.</p>
     13  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first">
     14    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     15    <div class="CFSSMARTSMS--title">سفارشی کردن چارچوب</div>
     16    <p class="CFSSMARTSMS--text">سفارشی ساز پیش فرض وردپرس را با ادغام فیلدهای سفارشی خود به ارث می برد. سفارشی کردن سایت خود به صورت زنده قدرتمندتر است.</p>
    1717  </div>
    1818
    19   <div class="csf--col csf--col-first csf--last">
    20     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    21     <div class="csf--title">Metabox Option Framework</div>
    22     <p class="csf--text">Allows you to bring custom metabox settings to all of your pages and posts. We provide advanced settings with numerious number of fields.</p>
     19  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first CFSSMARTSMS--last">
     20    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     21    <div class="CFSSMARTSMS--title">تنظیمات متاباکس</div>
     22    <p class="CFSSMARTSMS--text">به شما امکان می دهد تنظیمات متاباکس سفارشی را به همه صفحات و پست های خود بیاورید. ما تنظیمات پیشرفته را با تعداد زیادی فیلد ارائه می دهیم.</p>
    2323  </div>
    2424
    2525  <div class="clear"></div>
    2626
    27   <div class="csf--col csf--col-first">
    28     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    29     <div class="csf--title">Nav Menu Option Framework</div>
    30     <p class="csf--text">Allows you to bring custom nav menu item settings to all of your menus. We provide advanced settings with numerious number of fields.</p>
     27  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first">
     28    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     29    <div class="CFSSMARTSMS--title">تنظیمات منوی ناوبری</div>
     30    <p class="CFSSMARTSMS--text">به شما امکان می دهد تنظیمات آیتم منوی ناوبری سفارشی را به همه منوهای خود بیاورید. ما تنظیمات پیشرفته را با تعداد زیادی فیلد ارائه می دهیم.</p>
    3131  </div>
    3232
    33   <div class="csf--col csf--col-first">
    34     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    35     <div class="csf--title">Taxonomy Option Framework</div>
    36     <p class="csf--text">Allows you to bring custom taxonomy settings to all of your categories, tags or CPT. We provide advanced settings with numerious number of fields.</p>
     33  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first">
     34    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     35    <div class="CFSSMARTSMS--title">تنظیمات طبقه بندی</div>
     36    <p class="CFSSMARTSMS--text">به شما امکان می دهد تنظیمات طبقه بندی سفارشی را به همه دسته ها، برچسب ها یا CPT خود بیاورید. ما تنظیمات پیشرفته را با تعداد زیادی فیلد ارائه می دهیم.</p>
    3737  </div>
    3838
    39   <div class="csf--col csf--col-first csf--last">
    40     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    41     <div class="csf--title">Profile Option Framework</div>
    42     <p class="csf--text">Allows you to bring custom user profile settings to all of users. We provide advanced settings with numerious number of fields.</p>
     39  <div class="CFSSMARTSMS--col CFSSMARTSMS--col-first CFSSMARTSMS--last">
     40    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     41    <div class="CFSSMARTSMS--title">تنظیمات پروفایل</div>
     42    <p class="CFSSMARTSMS--text">به شما امکان می دهد تنظیمات پروفایل کاربری سفارشی را برای همه کاربران بیاورید. ما تنظیمات پیشرفته را با تعداد زیادی فیلد ارائه می دهیم.</p>
    4343  </div>
    4444
    4545  <div class="clear"></div>
    4646
    47   <div class="csf--col">
    48     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    49     <div class="csf--title">Widget Option Framework</div>
    50     <p class="csf--text">Allows you to creating custom widgets. We provide advanced settings wtih numerious number of fields.</p>
     47  <div class="CFSSMARTSMS--col">
     48    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     49    <div class="CFSSMARTSMS--title">تنظیمات ویجت های سفارشی</div>
     50    <p class="CFSSMARTSMS--text">به شما امکان می دهد ویجت های سفارشی ایجاد کنید. ما تنظیمات پیشرفته را با تعداد زیادی فیلد ارائه می دهیم.</p>
    5151  </div>
    5252
    53   <div class="csf--col">
    54     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    55     <div class="csf--title">Comment Option Framework</div>
    56     <p class="csf--text">Allows you to bring custom comment metabox settings to all of comments. We provide advanced settings wtih numerious number of fields.</p>
     53  <div class="CFSSMARTSMS--col">
     54    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     55    <div class="CFSSMARTSMS--title">تنظیمات دیدگاه ها</div>
     56    <p class="CFSSMARTSMS--text">به شما امکان می دهد تنظیمات متاباکس نظرات سفارشی را برای همه نظرات بیاورید. ما تنظیمات پیشرفته ای را با تعداد زیادی فیلد ارائه می دهیم.</p>
    5757  </div>
    5858
    59   <div class="csf--col csf--last">
    60     <span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span>
    61     <div class="csf--title">Shortcode Option Framework</div>
    62     <p class="csf--text">Comes with pre-built shortcode editor to manage your content. It's easy and flexible to build unlimited layouts with endless possibilites.</p>
     59  <div class="CFSSMARTSMS--col CFSSMARTSMS--last">
     60    <span class="CFSSMARTSMS--icon CFSSMARTSMS--<?php echo esc_attr( CFSSMARTSMS::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CFSSMARTSMS::$premium ? 'check' : 'times' ); ?>"></i></span>
     61    <div class="CFSSMARTSMS--title">تنظیمات کدهای کوتاه</div>
     62    <p class="CFSSMARTSMS--text">دارای ویرایشگر کد کوتاه از پیش ساخته شده برای مدیریت محتوای شما. ساخت طرح‌بندی‌های نامحدود با امکانات بی‌پایان آسان و انعطاف‌پذیر است.</p>
    6363  </div>
    6464
    65   <?php if ( ! CSF::$premium ) { ?>
     65  <?php if ( ! CFSSMARTSMS::$premium ) { ?>
    6666  <div class="clear"></div>
    67   <div class="csf--col-upgrade">
    68     <a href="http://codestarframework.com/" class="button button-primary" target="_blank" rel="nofollow"><i class="fas fa-share"></i> Upgrade Premium Version</a>
     67  <div class="CFSSMARTSMS--col-upgrade">
     68    <a href="<?= esc_url('http://codestarframework.com/') ?>" class="button button-primary" target="_blank" rel="nofollow"><i class="fas fa-share"></i> Upgrade Premium Version</a>
    6969  </div>
    7070  <?php } ?>
     
    7575<hr />
    7676
    77 <div class="csf-features-cols csf--col-wrap">
    78   <div class="csf--col csf--key-features">
     77<div class="CFSSMARTSMS-features-cols CFSSMARTSMS--col-wrap">
     78  <div class="CFSSMARTSMS--col CFSSMARTSMS--key-features">
    7979
    80   <h4>Key Features</h4>
     80  <h4>ویژگی های کلیدی</h4>
    8181
    8282  <ul>
     
    9999  </div>
    100100
    101   <div class="csf--col csf--available-fields">
     101  <div class="CFSSMARTSMS--col CFSSMARTSMS--available-fields">
    102102
    103   <h4>Available Fields</h4>
     103  <h4>فیلدهای موجود</h4>
    104104
    105   <table class="csf--table-fields fixed widefat">
     105  <table class="CFSSMARTSMS--table-fields fixed widefat">
    106106    <tbody>
    107107      <tr>
     
    164164  </table>
    165165
    166   <p>and more on the way...</p>
     166  <p>و امکانات و آپشن های بیشتری در راه است...</p>
    167167
    168168  </div>
     
    171171</div>
    172172
    173 <?php if ( CSF::$premium ) { ?>
     173<?php if ( CFSSMARTSMS::$premium ) { ?>
    174174<hr />
    175 <h5>You can force to disable this page with (it would works for only premium users):</h5>
    176 <div class="csf-code-block">
    177 <pre>
    178 add_filter( 'csf_welcome_page', '__return_false' );
    179 </pre>
     175<h5>شما می توانید با قطعه کد زیر نمایش این صفحه را غیرفعال و غیرقابل مشاهده نمایید :</h5>
     176<div class="CFSSMARTSMS-code-block">
     177
    180178</div>
    181179<?php } ?>
  • nirweb-smart-sms/trunk/option/views/documentation.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    22
    3 <p>If you are new to Codestar Framework, here is a step-by-step plan for getting started.</p>
     3<p>برای کسب اطلاعات بیشر در مورد افزونه فریمورک کُداستار می توانید از طریق دکمه زیر وارد بخش مستندات افزونه سایت سازنده شوید.</p>
    44
    5 <p><a href="http://codestarframework.com/documentation/" class="button" target="_blank" rel="nofollow"><i class="fas fa-book"></i> Online Documentation</a></p>
     5<p><a href="<?= esc_url('http://codestarframework.com/documentation/') ?>" class="button" target="_blank" rel="nofollow"><i class="fas fa-book"></i> مستندات آنلاین</a></p>
  • nirweb-smart-sms/trunk/option/views/free-vs-premium.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    22
    3 <table class="csf--table-compare widefat fixed striped">
     3<table class="CFSSMARTSMS--table-compare widefat fixed striped">
    44  <thead>
    55    <tr>
  • nirweb-smart-sms/trunk/option/views/header.php

    r2729089 r2729124  
    22
    33  $demo    = get_option( 'csf_demo_mode', false );
    4   $text    = ( ! empty( $demo ) ) ? 'Deactivate' : 'Activate';
     4  $text    = ( ! empty( $demo ) ) ? 'غیر فعال سازی' : 'فعال سازی';
    55  $status  = ( ! empty( $demo ) ) ? 'deactivate' : 'activate';
    6   $class   = ( ! empty( $demo ) ) ? ' csf-warning-primary' : '';
     6  $class   = ( ! empty( $demo ) ) ? ' CFSSMARTSMS-warning-primary' : '';
    77  $section = ( ! empty( $_GET[ 'section' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'section' ] ) ) : 'about';
    88  $links   = array(
    9     'about'           => 'About',
    10     'quickstart'      => 'Quick Start',
    11     'documentation'   => 'Documentation',
    12     'free-vs-premium' => 'Free vs Premium',
    13     'support'         => 'Support',
    14     'relnotes'        => 'Release Notes',
     9    'about'           => 'درباره',
     10    'quickstart'      => 'شروع سریع',
     11    'documentation'   => 'مستندات افزونه',
     12    'free-vs-premium' => 'مقایسه نسخه رایگان و پرمیوم',
     13    'support'         => 'پشتیبانی',
     14    'relnotes'        => 'یادداشت های انتشار',
    1515  );
    1616
    1717?>
    18 <div class="csf-welcome csf-welcome-wrap">
     18<div class="CFSSMARTSMS-welcome CFSSMARTSMS-welcome-wrap">
    1919
    20   <h1>Welcome to Codestar Framework v<?php echo esc_attr( CSF::$version ); ?></h1>
     20  <h1>به فریمورک قدرتمند کُداستار خوش آمدید <?php echo esc_attr( CFSSMARTSMS::$version ); ?></h1>
    2121
    22   <p class="csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p>
     22  <p class="CFSSMARTSMS-about-text">یک چارچوب قدرتمند و گزینه ساده و سبک وردپرس برای ایجاد پنل تنظیمات حرفه ای برای قالب ها و افزونه ها</p>
    2323
    24   <p class="csf-demo-button"><a href="<?php echo esc_url( add_query_arg( array( 'csf-demo' => $status ) ) ); ?>" class="button button-primary<?php echo esc_attr( $class ); ?>"><?php echo esc_attr( $text ); ?> Demo</a></p>
     24  <p class="CFSSMARTSMS-demo-button"><a href="<?php echo esc_url( add_query_arg( array( 'CFSSMARTSMS-demo' => $status ) ) ); ?>" class="button button-primary<?php echo esc_attr( $class ); ?>"><?php echo esc_attr( $text ); ?> Demo</a></p>
    2525
    26   <div class="csf-logo">
    27     <div class="csf--effects"><i></i><i></i><i></i><i></i></div>
    28     <div class="csf--wp-logos">
    29       <div class="csf--wp-logo"></div>
    30       <div class="csf--wp-plugin-logo"></div>
     26  <div class="CFSSMARTSMS-logo">
     27    <div class="CFSSMARTSMS--effects"><i></i><i></i><i></i><i></i></div>
     28    <div class="CFSSMARTSMS--wp-logos">
     29      <div class="CFSSMARTSMS--wp-logo"></div>
     30      <div class="CFSSMARTSMS--wp-plugin-logo"></div>
    3131    </div>
    32     <div class="csf--text">Codestar Framework</div>
    33     <div class="csf--text csf--version">v<?php echo esc_attr( CSF::$version ); ?></div>
     32    <div class="CFSSMARTSMS--text">فریمورک کُداستار</div>
     33    <div class="CFSSMARTSMS--text CFSSMARTSMS--version">v<?php echo esc_attr( CFSSMARTSMS::$version ); ?></div>
    3434  </div>
    3535
     
    3939      foreach ( $links as $key => $link ) {
    4040
    41         if ( CSF::$premium && $key === 'free-vs-premium' ) { continue; }
     41        if ( CFSSMARTSMS::$premium && $key === 'free-vs-premium' ) { continue; }
    4242
    4343        $activate = ( $section === $key ) ? ' nav-tab-active' : '';
    4444
    45         echo '<a href="'. esc_url( add_query_arg( array( 'page' => 'csf-welcome', 'section' => $key ), admin_url( 'tools.php' ) ) ) .'" class="nav-tab'. esc_attr( $activate ) .'">'. esc_attr( $link ) .'</a>';
     45        echo '<a href="'. esc_url( add_query_arg( array( 'page' => 'CFSSMARTSMS-welcome', 'section' => $key ), admin_url( 'tools.php' ) ) ) .'" class="nav-tab'. esc_attr( $activate ) .'">'. esc_attr( $link ) .'</a>';
    4646
    4747      }
  • nirweb-smart-sms/trunk/option/views/quickstart.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    22
    3 <p><strong>Let's quick start it.</strong></p>
    4 <p>Open your current theme <code>functions.php</code> file and paste this code.</p>
     3<p><strong>سریع شروعش کنیم</strong></p>
     4<p>سورس قالب فعلی خود را باز کنید و به سراغ فایلی تحت نام function.php بروید و قطعه کد زیر را در آن جایگذاری نمایید و در انتها فایل را ذخیره نمایید.</p>
    55
    6 <div class="csf-code-block">
    7 <pre>
    8 <span>// Control core classes for avoid errors</span>
    9 if ( class_exists( 'CSF' ) ) {
    106
    11   <span>//</span>
    12   <span>// Set a unique slug-like ID</span>
    13   $prefix = 'my_framework';
    147
    15   <span>//</span>
    16   <span>// Create options</span>
    17   CSF::createOptions( $prefix, array(
    18     'menu_title' => 'My Framework',
    19     'menu_slug'  => 'my-framework',
    20   ) );
    21 
    22   <span>//</span>
    23   <span>// Create a section</span>
    24   CSF::createSection( $prefix, array(
    25     'title'  => 'Tab Title 1',
    26     'fields' => array(
    27 
    28       <span>//</span>
    29       <span>// A text field</span>
    30       array(
    31         'id'    => 'opt-text',
    32         'type'  => 'text',
    33         'title' => 'Simple Text',
    34       ),
    35 
    36     )
    37   ) );
    38 
    39   CSF::createSection( $prefix, array(
    40     'title'  => 'Tab Title 2',
    41     'fields' => array(
    42 
    43       array(
    44         'id'    => 'opt-textarea',
    45         'type'  => 'textarea',
    46         'title' => 'Simple Textarea',
    47       ),
    48 
    49     )
    50   ) );
    51 
    52 }
    53 </pre>
    54 </div>
    55 
    56 <p><strong>How to get option value ?</strong></p>
    57 
    58 <div class="csf-code-block">
    59 <pre>
    60 $options = get_option( 'my_framework' ); <span>// // unique id of the framework</span>
    61 
    62 echo esc_html($options['opt-text']); <span>// id of field</span>
    63 echo  wp_kses_post($options['opt-textarea']); <span>// id of field</span>
    64 </pre>
    65 </div>
    66 
    67 <p><a href="http://codestarframework.com/documentation/" class="button" target="_blank" rel="nofollow"><i class="fas fa-book"></i> Online Documentation</a></p>
     8<p><a href="<?= esc_url('http://codestarframework.com/documentation/') ?>" class="button" target="_blank" rel="nofollow"><i class="fas fa-book"></i> مستندات آنلاین افزونه</a></p>
  • nirweb-smart-sms/trunk/option/views/relnotes.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    2 
    3 <h3>v2.2.8</h3>
    4 <ul>
    5   <li>Fixed: Free vs Pro version load priority conflict.</li>
    6 </ul>
    7 
    8 <h3>v2.2.7</h3>
    9 <ul>
    10   <li>Added: Number field "min", "max", "step" options.</li>
    11   <li>Updated: Google Web Fonts array added new fonts.</li>
    12   <li>Updated: JS libraries (codemirror, leaflet, etc).</li>
    13   <li>Improved: Group field "custom title and prefix" option (samples added).</li>
    14   <li>Improved: Some JS and CSS coding.</li>
    15 </ul>
    162
    173<h3>v2.2.6</h3>
     
    10894  <li>Fixed: Customizer dependency issue after v2.1.6 update.</li>
    10995  <li>Fixed: Typography field "Normal 400" style embed issue.</li>
    110   <li>Updated: Assets library (csf.css to style.css, csf.js to main.js).</li>
     96  <li>Updated: Assets library (CFSSMARTSMS.css to style.css, CFSSMARTSMS.js to main.js).</li>
    11197  <li>Improved: Sanitize/Validate callback method.</li>
    11298  <li>Improved: Global dependency feature.</li>
  • nirweb-smart-sms/trunk/option/views/support.php

    r2729089 r2729124  
    11<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?>
    22
    3 <p>We are provide support forum for premium version users. You can join to support forum for submit any question after purchasing. Free version users support is limited on github.</p>
     3<p>برای استفاده از خدمات پشتیبانی رایگان محصولات گروه طراحی دانا پیوست در مارکت الزامی است قبل از ارسال تیکت دامنه ای را که محصول را در آن نصب و فعال نموده اید را وارد نمایید. پشتیبانی 6 ماهه رایگان فقط و فقط به دامنه وارد شده تعلق خواهد داشت.</p>
    44
    5 <p><a href="http://support.codestarthemes.com/" class="button" target="_blank" rel="nofollow"><i class="fas fa-life-ring"></i> Support Forum</a> -(or)- <a href="https://github.com/Codestar/codestar-framework/issues" class="button" target="_blank" rel="nofollow"><i class="fab fa-github"></i> Github</a></p>
     5<p><a href="<?= esc_url('https://www.zhaket.com/dashboard/tickets')?>" class="button" target="_blank" rel="nofollow"></i>ارسال درخواست پشتیبانی</a> <a href="https://www.zhaket.com/store/web/danapeyvast/products" class="button" target="_blank" rel="nofollow"></i>مشاهده فروشگاه ما در ژاکت</a></p>
  • nirweb-smart-sms/trunk/option/views/welcome.php

    r2729089 r2729124  
    1515    public function __construct() {
    1616
    17       if ( CSF::$premium && ( ! CSF::is_active_plugin( 'codestar-framework/codestar-framework.php' ) || apply_filters( 'csf_welcome_page', true ) === false ) ) { return; }
     17      if ( CFSSMARTSMS::$premium && ( ! CFSSMARTSMS::is_active_plugin( 'codestar-framework/codestar-framework.php' ) || apply_filters( 'csf_welcome_page', true ) === false ) ) { return; }
    1818
    1919      add_action( 'admin_menu', array( $this, 'add_about_menu' ), 0 );
     
    3434
    3535    public function add_about_menu() {
    36       add_management_page( 'Codestar Framework', 'Codestar Framework', 'manage_options', 'csf-welcome', array( $this, 'add_page_welcome' ) );
     36      add_management_page( 'Codestar Framework', 'فریمورک کُداستار', 'manage_options', 'CFSSMARTSMS-welcome', array( $this, 'add_page_welcome' ) );
    3737    }
    3838
     
    4141      $section = ( ! empty( $_GET['section'] ) ) ? sanitize_text_field( wp_unslash( $_GET['section'] ) ) : '';
    4242
    43       CSF::include_plugin_file( 'views/header.php' );
     43      CFSSMARTSMS::include_plugin_file( 'views/header.php' );
    4444
    4545      // safely include pages
     
    4747
    4848        case 'quickstart':
    49           CSF::include_plugin_file( 'views/quickstart.php' );
     49          CFSSMARTSMS::include_plugin_file( 'views/quickstart.php' );
    5050        break;
    5151
    5252        case 'documentation':
    53           CSF::include_plugin_file( 'views/documentation.php' );
     53          CFSSMARTSMS::include_plugin_file( 'views/documentation.php' );
    5454        break;
    5555
    5656        case 'relnotes':
    57           CSF::include_plugin_file( 'views/relnotes.php' );
     57          CFSSMARTSMS::include_plugin_file( 'views/relnotes.php' );
    5858        break;
    5959
    6060        case 'support':
    61           CSF::include_plugin_file( 'views/support.php' );
     61          CFSSMARTSMS::include_plugin_file( 'views/support.php' );
    6262        break;
    6363
    6464        case 'free-vs-premium':
    65           CSF::include_plugin_file( 'views/free-vs-premium.php' );
     65          CFSSMARTSMS::include_plugin_file( 'views/free-vs-premium.php' );
    6666        break;
    6767
    6868        default:
    69           CSF::include_plugin_file( 'views/about.php' );
     69          CFSSMARTSMS::include_plugin_file( 'views/about.php' );
    7070        break;
    7171
    7272      }
    7373
    74       CSF::include_plugin_file( 'views/footer.php' );
     74      CFSSMARTSMS::include_plugin_file( 'views/footer.php' );
    7575
    7676    }
     
    7979
    8080      if ( $plugin_file === 'codestar-framework/codestar-framework.php' && ! empty( $links ) ) {
    81         $links['csf--welcome'] = '<a href="'. esc_url( admin_url( 'tools.php?page=csf-welcome' ) ) .'">Settings</a>';
    82         if ( ! CSF::$premium ) {
    83           $links['csf--upgrade'] = '<a href="http://codestarframework.com/">Upgrade</a>';
     81        $links['CFSSMARTSMS--welcome'] = '<a href="'. esc_url( admin_url( 'tools.php?page=CFSSMARTSMS-welcome' ) ) .'">تنظیمات</a>';
     82        if ( ! CFSSMARTSMS::$premium ) {
     83          $links['CFSSMARTSMS--upgrade'] = '<a href="'.esc_url('http://codestarframework.com/').'">Upgrade</a>';
    8484        }
    8585      }
     
    9292
    9393      if ( $plugin_file === 'codestar-framework/codestar-framework.php' && ! empty( $links ) ) {
    94         $links['csf--docs'] = '<a href="http://codestarframework.com/documentation/" target="_blank">Documentation</a>';
     94        $links['CFSSMARTSMS--docs'] = '<a href="'.esc_url('http://codestarframework.com/documentation/').'" target="_blank">مستندات افزونه</a>';
    9595      }
    9696
     
    103103      $demo_mode = get_option( 'csf_demo_mode', false );
    104104
    105       $demo_activate = ( ! empty( $_GET[ 'csf-demo' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'csf-demo' ] ) ) : '';
     105      $demo_activate = ( ! empty( $_GET[ 'CFSSMARTSMS-demo' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'CFSSMARTSMS-demo' ] ) ) : '';
    106106
    107107      if ( ! empty( $demo_activate ) ) {
     
    115115      if ( ! empty( $demo_mode ) ) {
    116116
    117         CSF::include_plugin_file( 'samples/admin-options.php' );
     117        CFSSMARTSMS::include_plugin_file( 'samples/admin-options.php' );
    118118
    119         if ( CSF::$premium ) {
     119        if ( CFSSMARTSMS::$premium ) {
    120120
    121           CSF::include_plugin_file( 'samples/customize-options.php' );
    122           CSF::include_plugin_file( 'samples/metabox-options.php'   );
    123           CSF::include_plugin_file( 'samples/nav-menu-options.php'  );
    124           CSF::include_plugin_file( 'samples/profile-options.php'   );
    125           CSF::include_plugin_file( 'samples/shortcode-options.php' );
    126           CSF::include_plugin_file( 'samples/taxonomy-options.php'  );
    127           CSF::include_plugin_file( 'samples/widget-options.php'    );
    128           CSF::include_plugin_file( 'samples/comment-options.php'   );
     121          CFSSMARTSMS::include_plugin_file( 'samples/customize-options.php' );
     122          CFSSMARTSMS::include_plugin_file( 'samples/metabox-options.php'   );
     123          CFSSMARTSMS::include_plugin_file( 'samples/nav-menu-options.php'  );
     124          CFSSMARTSMS::include_plugin_file( 'samples/profile-options.php'   );
     125          CFSSMARTSMS::include_plugin_file( 'samples/shortcode-options.php' );
     126          CFSSMARTSMS::include_plugin_file( 'samples/taxonomy-options.php'  );
     127          CFSSMARTSMS::include_plugin_file( 'samples/widget-options.php'    );
     128          CFSSMARTSMS::include_plugin_file( 'samples/comment-options.php'   );
    129129
    130130        }
  • nirweb-smart-sms/trunk/readme.txt

    r2729121 r2729124  
    1 === افزونه پیامک ووکامرس و وردپرس ===
     1=== افزونه پیامک ووکامرس و وردپرس نیر وب ===
    22Contributors: nirweb
    33Tags: SMS,wocommerce SMS, پیامک , افزونه پیامک ووکامرس
Note: See TracChangeset for help on using the changeset viewer.